fts: depend on fdopendir
[gnulib.git] / ChangeLog
1 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
2
3         fts: depend on fdopendir
4         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
5         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6         problem was introduced when fdopendir was split out.
7
8 2012-03-10  Bruno Haible  <bruno@clisp.org>
9
10         Remove unused variables.
11         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
12         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
13
14 2012-03-10  Bruno Haible  <bruno@clisp.org>
15
16         isnanf-nolibm: Fix last commit.
17         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
18
19         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
20         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
21
22 2012-03-10  Bruno Haible  <bruno@clisp.org>
23
24         logf-ieee: Work around test failure on NetBSD 5.1.
25         * m4/logf-ieee.m4: New file.
26         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
27         whether logf works with a negative argument. Replace it if not.
28         * lib/logf.c (logf): For negative arguments, return NaN.
29         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
30         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
31         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
32
33         logf-ieee: Work around test failure on Solaris 9.
34         * modules/logf-ieee (Depends-on): Add log-ieee.
35         (configure.ac): Require gl_FUNC_LOGF.
36
37         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
38         * m4/log-ieee.m4: New file.
39         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
40         log works with a negative argument. Replace it if not.
41         * lib/log.c (log): For negative arguments, return NaN.
42         * modules/log-ieee (Files): Add m4/log-ieee.m4.
43         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
44         * doc/posix-functions/log.texi: Mention the log-ieee module.
45
46         Tests for module 'logl-ieee'.
47         * modules/logl-ieee-tests: New file.
48         * tests/test-logl-ieee.c: New file.
49
50         New module 'logl-ieee'.
51         * modules/logl-ieee: New file.
52
53         Tests for module 'log-ieee'.
54         * modules/log-ieee-tests: New file.
55         * tests/test-log-ieee.c: New file.
56
57         New module 'log-ieee'.
58         * modules/log-ieee: New file.
59
60         Tests for module 'logf-ieee'.
61         * modules/logf-ieee-tests: New file.
62         * tests/test-logf-ieee.c: New file.
63         * tests/test-log-ieee.h: New file.
64
65         New module 'logf-ieee'.
66         * modules/logf-ieee: New file.
67
68 2012-03-10  Bruno Haible  <bruno@clisp.org>
69
70         log: Fix bug introduced on 2012-03-09.
71         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
72
73 2012-03-10  Pádraig Brady  <P@draigBrady.com>
74
75         timer-time: link explicitly with pthreads on glibc
76         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
77         to support static linking, when newer glibc is
78         detected, as that contains pthread emulation of
79         POSIX timer functions where required.
80         * modules/timer-time: Depend on threadlib to
81         pull in the appropriate library to link.
82
83 2012-03-10  Bruno Haible  <bruno@clisp.org>
84
85         log* tests: More tests.
86         * tests/test-log.h: New file.
87         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
88         (main): Invoke test_function.
89         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
90         (main): Invoke test_function.
91         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
92         (main): Invoke test_function.
93         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
94         tests/randomd.c.
95         (Makefile.am): Add randomd.c to test_log_SOURCES.
96         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
97         tests/randomf.c.
98         (Makefile.am): Add randomf.c to test_logf_SOURCES.
99         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
100         tests/randoml.c.
101         (Depends-on): Add 'float'.
102         (Makefile.am): Add randoml.c to test_logl_SOURCES.
103
104 2012-03-09  Bruno Haible  <bruno@clisp.org>
105
106         logl: Work around OSF/1 5.1 bug.
107         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
108         * lib/logl.c (logl): If logf exists, use it and provide just the
109         workaround.
110         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
111         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
112         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
113         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
114         * modules/logl (configure.ac): Consider REPLACE_LOGL.
115         (Depends-on): Update conditions.
116         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
117
118 2012-03-09  Bruno Haible  <bruno@clisp.org>
119
120         logf: Work around OSF/1 5.1 bug.
121         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
122         * lib/logf.c (logf): If logf exists, use it and provide just the
123         workaround.
124         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
125         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
127         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
128         * modules/logf (configure.ac): Consider REPLACE_LOGF.
129         (Depends-on): Update conditions.
130         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
131
132 2012-03-09  Bruno Haible  <bruno@clisp.org>
133
134         log: Work around OSF/1 5.1 bug.
135         * lib/math.in.h (log): New declaration.
136         * lib/log.c: New file.
137         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
138         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
139         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
141         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
142         * modules/log (Files): Add lib/log.c.
143         (Depends-on): Add math.
144         (configure.ac): If REPLACE_LOG is 1, compile an override.
145         * tests/test-math-c++.cc: Check the declaration of log.
146         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
147
148 2012-03-09  Jim Meyering  <meyering@redhat.com>
149
150         readtokens.c: adjust wording in a comment
151         * lib/readtokens.c: Insert omitted "that" in a comment.
152
153 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
154
155         modechange: add notations +40, 00440, etc.
156         * lib/modechange.c (mode_compile): Support new notations
157         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
158
159 2012-03-08  Bruno Haible  <bruno@clisp.org>
160
161         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
162         * m4/exp2l-ieee.m4: New file.
163         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
164         test whether exp2l works with a NaN argument and with a negative
165         infinity argument. Replace it if not.
166         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
168         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
169         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
170         (Depends-on): Update conditions.
171         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
172         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
173         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
174
175         Tests for module 'exp2l-ieee'.
176         * modules/exp2l-ieee-tests: New file.
177         * tests/test-exp2l-ieee.c: New file.
178
179         New module 'exp2l-ieee'.
180         * modules/exp2l-ieee: New file.
181
182         Tests for module 'exp2-ieee'.
183         * modules/exp2-ieee-tests: New file.
184         * tests/test-exp2-ieee.c: New file.
185
186         New module 'exp2-ieee'.
187         * modules/exp2-ieee: New file.
188
189         Tests for module 'exp2f-ieee'.
190         * modules/exp2f-ieee-tests: New file.
191         * tests/test-exp2f-ieee.c: New file.
192         * tests/test-exp2-ieee.h: New file.
193
194         New module 'exp2f-ieee'.
195         * modules/exp2f-ieee: New file.
196
197 2012-03-08  Bruno Haible  <bruno@clisp.org>
198
199         Tests for module 'exp2l'.
200         * modules/exp2l-tests: New file.
201         * tests/test-exp2l.c: New file.
202
203         New module 'exp2l'.
204         * lib/math.in.h (exp2l): New declaration.
205         * lib/exp2l.c: New file.
206         * lib/expl-table.c: New file, extracted from lib/expl.c.
207         * lib/expl.c (gl_expl_table): New declaration.
208         (expl): Remove expl_table. Update reference.
209         * m4/exp2l.m4: New file.
210         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
211         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
212         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
213         * modules/exp2l: New file.
214         * modules/expl (Files): Add lib/expl-table.c.
215         (configure.ac): Compile also expl-table.c.
216         * tests/test-math-c++.cc: Check the declaration of exp2l.
217         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
218         problem.
219
220 2012-03-08  Bruno Haible  <bruno@clisp.org>
221
222         Tests for module 'exp2f'.
223         * modules/exp2f-tests: New file.
224         * tests/test-exp2f.c: New file.
225
226         New module 'exp2f'.
227         * lib/math.in.h (exp2f): New declaration.
228         * lib/exp2f.c: New file.
229         * m4/exp2f.m4: New file.
230         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
232         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
233         * modules/exp2f: New file.
234         * tests/test-math-c++.cc: Check the declaration of exp2f.
235         * doc/posix-functions/exp2f.texi: Mention the new module and the
236         IRIX problem.
237
238 2012-03-08  Bruno Haible  <bruno@clisp.org>
239
240         Tests for module 'exp2'.
241         * modules/exp2-tests: New file.
242         * tests/test-exp2.c: New file.
243         * tests/test-exp2.h: New file.
244
245         New module 'exp2'.
246         * lib/math.in.h (exp2): New declaration.
247         * lib/exp2.c: New file.
248         * m4/exp2.m4: New file.
249         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
250         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
251         REPLACE_EXP2.
252         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
253         REPLACE_EXP2.
254         * modules/exp2: New file.
255         * tests/test-math-c++.cc: Check the declaration of exp2.
256         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
257         and OpenBSD problems.
258
259 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
260
261         savedir: fix comment typo
262         * lib/savedir.c (savedirstream): Fix typo in comment.
263
264 2012-03-08  Bruno Haible  <bruno@clisp.org>
265
266         test-readtokens.c: use const; remove unwarranted cast
267         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
268
269 2012-03-08  Bruno Haible  <bruno@clisp.org>
270
271         fmal: Avoid compilation error on AIX.
272         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
273         AIX 5.2..7.1.
274
275 2012-03-08  Bruno Haible  <bruno@clisp.org>
276
277         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
278         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
279         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
280         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
281         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
282         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
283         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
284
285 2012-03-08  Bruno Haible  <bruno@clisp.org>
286
287         remainderf: Override buggy system function on IRIX 6.5.
288         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
289         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
290         when it exists.
291         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
292
293 2012-03-08  Jim Meyering  <meyering@redhat.com>
294
295         test-readtokens.c: avoid const-related compilation warnings
296         * tests/test-readtokens.c: Avoid const-related compilation warnings.
297
298 2012-03-07  Jim Meyering  <meyering@redhat.com>
299             Bruno Haible  <bruno@clisp.org>
300
301         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
302         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
303         tests/randomd.c.
304         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
305         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
306         tests/randoml.c.
307         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
308
309 2012-03-07  Bruno Haible  <bruno@clisp.org>
310
311         expm1l: Avoid compilation error on AIX.
312         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
313         AIX 5.2..7.1.
314
315 2012-03-07  Bruno Haible  <bruno@clisp.org>
316
317         expm1l: Don't override undeclared system function on IRIX 6.5.
318         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
319         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
320         it exists. Set HAVE_DECL_EXPM1L.
321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
322         HAVE_EXPM1L.
323         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
324         HAVE_EXPM1L.
325         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
326
327 2012-03-07  Bruno Haible  <bruno@clisp.org>
328
329         remainderl: Don't override undeclared system function on IRIX 6.5.
330         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
331         HAVE_REMAINDERL.
332         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
333         declared when it exists. Set HAVE_DECL_REMAINDERL.
334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
335         not HAVE_REMAINDERL.
336         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
337         HAVE_REMAINDERL.
338         * doc/posix-functions/remainderl.texi: Mention missing declaration
339         problem.
340
341 2012-03-07  Bruno Haible  <bruno@clisp.org>
342
343         rintf: Don't override undeclared system function on IRIX 6.5.
344         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
345         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
346         exists. Set HAVE_DECL_RINTF.
347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
348         HAVE_RINTF.
349         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
350         HAVE_RINTF.
351         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
352
353 2012-03-07  Bruno Haible  <bruno@clisp.org>
354
355         roundl: Avoid compilation error on AIX.
356         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
357         AIX 5.2..7.1.
358
359 2012-03-07  Bruno Haible  <bruno@clisp.org>
360
361         roundl: Don't override undeclared system function on IRIX 6.5.
362         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
363         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
364         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
365         * modules/roundl (configure.ac): For replacement code, test
366         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
367         (Depends-on): Update conditions.
368         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
369
370 2012-03-07  Bruno Haible  <bruno@clisp.org>
371
372         roundf: Don't override undeclared system function on IRIX 6.5.
373         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
374         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
375         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
376         * modules/roundf (configure.ac): For replacement code, test
377         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
378         (Depends-on): Update conditions.
379         * modules/roundf-ieee (Depends-on): Update conditions.
380         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
381
382 2012-03-07  Bruno Haible  <bruno@clisp.org>
383
384         round: Don't override undeclared system function on IRIX 6.5.
385         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
386         argument.
387         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
388         also when it is not declared. Set HAVE_ROUND. For replacement code,
389         test HAVE_ROUND, not HAVE_DECL_ROUND.
390         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
391         not HAVE_DECL_ROUND.
392         (Depends-on): Update conditions.
393         * modules/round-ieee (Depends-on): Update conditions.
394         * doc/posix-functions/round.texi: Mention the IRIX problem.
395
396 2012-03-07  Bruno Haible  <bruno@clisp.org>
397
398         copysignf: Don't override undeclared system function on IRIX 6.5.
399         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
400         HAVE_COPYSIGNF.
401         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
402         declared when it exists. Set HAVE_DECL_COPYSIGNF.
403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
404         not HAVE_COPYSIGNF.
405         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
406         HAVE_COPYSIGNF.
407         * doc/posix-functions/copysignf.texi: Mention missing declaration
408         problem.
409
410 2012-03-07  Jim Meyering  <meyering@redhat.com>
411
412         readtokens: add tests
413         * modules/readtokens-tests: New file.
414         * tests/test-readtokens.c: New file.
415
416 2012-03-07  Jim Meyering  <meyering@redhat.com>
417
418         quotearg: the module must now include quote.h
419         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
420         So must the module.
421         * modules/quotearg (Files): Add quote.h.
422
423 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
424
425         readtokens: avoid core dumps with unusual calling patterns
426         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
427         * lib/readtokens.c: Include limits.h.
428         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
429         (readtoken): Don't cache the delimiters; the cache code was buggy
430         if !delim && saved_delim, or if the new n_delim differs from the old.
431         Also, it wasn't thread-safe.
432
433 2012-03-07  Bruno Haible  <bruno@clisp.org>
434
435         quote: Adhere to common module description layout.
436         * modules/quote (Makefile.am): Add back empty section.
437
438 2012-03-06  Akim Demaille  <demaille@gostai.com>
439
440         quote: fuse into quotearg
441         This patch is made for the benefit of Bison.
442         quote does not leave the choice of the quoting style to the user.
443         quoting_style provides poor customizability, yet quoting_options,
444         which is very rich, is hidden inside quotearg.c.  So in order to
445         allow quote customization, move its implementation to quotearg.c.
446         * lib/quote.c: Remove.
447         * modules/quote: Adjust.
448         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
449         warning: provide all the members of literal structs.
450         (quote_quoting_options): New.
451         (quote, quote_n): Import implementation from quote.c.
452         * lib/quote.h: Import the comments from quote.c.
453         (quote_quoting_options): New.
454
455 2012-03-06  Bruno Haible  <bruno@clisp.org>
456
457         Tests for module 'expm1l-ieee'.
458         * modules/expm1l-ieee-tests: New file.
459         * tests/test-expm1l-ieee.c: New file.
460
461         New module 'expm1l-ieee'.
462         * modules/expm1l-ieee: New file.
463
464         Tests for module 'expm1f-ieee'.
465         * modules/expm1f-ieee-tests: New file.
466         * tests/test-expm1f-ieee.c: New file.
467
468         New module 'expm1f-ieee'.
469         * modules/expm1f-ieee: New file.
470
471         Tests for module 'expm1-ieee'.
472         * modules/expm1-ieee-tests: New file.
473         * tests/test-expm1-ieee.c: New file.
474         * tests/test-expm1-ieee.h: New file.
475
476         New module 'expm1-ieee'.
477         * modules/expm1-ieee: New file.
478         * m4/expm1-ieee.m4: New file.
479         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
480         whether expm1 works with a minus zero argument. Replace it if not.
481         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
483         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
484         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
485         (Depends-on): Update conditions.
486         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
487         AIX problem.
488
489 2012-03-06  Bruno Haible  <bruno@clisp.org>
490
491         Work around expm1f bug on IRIX 6.5.
492         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
493         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
494         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
495         not work.
496         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
497         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
498         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
499         (Depends-on): Update conditions.
500         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
501
502 2012-03-06  Bruno Haible  <bruno@clisp.org>
503
504         Tests for module 'expm1l'.
505         * modules/expm1l-tests: New file.
506         * tests/test-expm1l.c: New file.
507
508         New module 'expm1l'.
509         * lib/math.in.h (expm1l): New declaration.
510         * lib/expm1l.c: New file.
511         * m4/expm1l.m4: New file.
512         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
513         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
514         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
515         * modules/expm1l: New file.
516         * tests/test-math-c++.cc: Check the declaration of expm1l.
517         * doc/posix-functions/expm1l.texi: Mention the new module.
518
519 2012-03-06  Bruno Haible  <bruno@clisp.org>
520
521         Tests for module 'expm1f'.
522         * modules/expm1f-tests: New file.
523         * tests/test-expm1f.c: New file.
524
525         New module 'expm1f'.
526         * lib/math.in.h (expm1f): New declaration.
527         * lib/expm1f.c: New file.
528         * m4/expm1f.m4: New file.
529         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
530         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
531         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
532         * modules/expm1f: New file.
533         * tests/test-math-c++.cc: Check the declaration of expm1f.
534         * doc/posix-functions/expm1f.texi: Mention the new module.
535
536 2012-03-06  Bruno Haible  <bruno@clisp.org>
537
538         Tests for module 'expm1'.
539         * modules/expm1-tests: New file.
540         * tests/test-expm1.c: New file.
541         * tests/test-expm1.h: New file.
542
543         New module 'expm1'.
544         * lib/math.in.h (expm1): New declaration.
545         * lib/expm1.c: New file.
546         * m4/expm1.m4: New file.
547         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
548         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
549         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
550         * modules/expm1: New file.
551         * tests/test-math-c++.cc: Check the declaration of expm1.
552         * doc/posix-functions/expm1.texi: Mention the new module.
553
554 2012-03-06  Bruno Haible  <bruno@clisp.org>
555
556         math: Ensure declarations of math functions.
557         * modules/acosf (Depends-on): Add 'extensions'.
558         * modules/asinf (Depends-on): Likewise.
559         * modules/atan2f (Depends-on): Likewise.
560         * modules/atanf (Depends-on): Likewise.
561         * modules/cbrt (Depends-on): Likewise.
562         * modules/cbrtf (Depends-on): Likewise.
563         * modules/cbrtl (Depends-on): Likewise.
564         * modules/copysignf (Depends-on): Likewise.
565         * modules/copysignl (Depends-on): Likewise.
566         * modules/cosf (Depends-on): Likewise.
567         * modules/coshf (Depends-on): Likewise.
568         * modules/expf (Depends-on): Likewise.
569         * modules/fabsf (Depends-on): Likewise.
570         * modules/fabsl (Depends-on): Likewise.
571         * modules/fmaf (Depends-on): Likewise.
572         * modules/fmal (Depends-on): Likewise.
573         * modules/fmodf (Depends-on): Likewise.
574         * modules/fmodl (Depends-on): Likewise.
575         * modules/frexpf (Depends-on): Likewise.
576         * modules/frexpl (Depends-on): Likewise.
577         * modules/hypot (Depends-on): Likewise.
578         * modules/hypotf (Depends-on): Likewise.
579         * modules/hypotl (Depends-on): Likewise.
580         * modules/ldexpf (Depends-on): Likewise.
581         * modules/ldexpl (Depends-on): Likewise.
582         * modules/log10f (Depends-on): Likewise.
583         * modules/log10l (Depends-on): Likewise.
584         * modules/log1p (Depends-on): Likewise.
585         * modules/logb (Depends-on): Likewise.
586         * modules/logf (Depends-on): Likewise.
587         * modules/modff (Depends-on): Likewise.
588         * modules/modfl (Depends-on): Likewise.
589         * modules/powf (Depends-on): Likewise.
590         * modules/remainderf (Depends-on): Likewise.
591         * modules/remainderl (Depends-on): Likewise.
592         * modules/rintf (Depends-on): Likewise.
593         * modules/rintl (Depends-on): Likewise.
594         * modules/sinf (Depends-on): Likewise.
595         * modules/sinhf (Depends-on): Likewise.
596         * modules/sqrtf (Depends-on): Likewise.
597         * modules/tanf (Depends-on): Likewise.
598         * modules/tanhf (Depends-on): Likewise.
599         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
600         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
601         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
602         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
603         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
604         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
605         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
606         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
607         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
608         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
609         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
610         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
611         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
612         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
613         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
614         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
615         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
616         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
617         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
618         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
619         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
620         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
621         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
622         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
623         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
624         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
625         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
626         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
627         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
628         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
629         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
630         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
631         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
632         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
633         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
634         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
635         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
636         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
637         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
638         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
639         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
640
641 2012-03-06  Bruno Haible  <bruno@clisp.org>
642
643         math: Update module names in warnings.
644         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
645         tanl): Use specific module name in warn-on-use warning.
646
647 2012-03-06  Bruno Haible  <bruno@clisp.org>
648
649         expl: Simplify computation.
650         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
651
652 2012-03-05  Bruno Haible  <bruno@clisp.org>
653
654         exp* tests: More tests.
655         * tests/test-exp.h: New file.
656         * tests/test-exp.c: Include <float.h> and test-exp.h.
657         (main): Invoke test_function.
658         * tests/test-expf.c: Include <float.h> and test-exp.h.
659         (main): Invoke test_function.
660         * tests/test-expl.c: Include <float.h> and test-exp.h.
661         (main): Invoke test_function.
662         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
663         (Makefile.am): Add randomd.c to test_exp_SOURCES.
664         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
665         (Makefile.am): Add randomf.c to test_expf_SOURCES.
666         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
667         (Depends-on): Add 'float'.
668         (Makefile.am): Add randoml.c to test_expl_SOURCES.
669
670         expl: Fix precision of computed result.
671         * lib/expl.c: Completely rewritten.
672         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
673         (Maintainer): Add me.
674         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
675
676 2012-03-05  Bruno Haible  <bruno@clisp.org>
677
678         cbrt* tests: More tests.
679         * tests/test-cbrt.h: New file.
680         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
681         (main): Invoke test_function.
682         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
683         (main): Invoke test_function.
684         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
685         (main): Invoke test_function.
686         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
687         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
688         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
689         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
690         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
691         (Depends-on): Add 'float'.
692         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
693
694 2012-03-05  Bruno Haible  <bruno@clisp.org>
695
696         hypot* tests: More tests.
697         * tests/test-hypot.h: New file, partially extracted from
698         tests/test-hypotl.c.
699         * tests/test-hypot.c: Include test-hypot.h.
700         (main): Invoke test_function.
701         * tests/test-hypotf.c: Include test-hypot.h.
702         (main): Invoke test_function.
703         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
704         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
705         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
706         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
707         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
708         tests/randomf.c.
709         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
710         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
711         tests/randoml.c.
712         (Depends-on): Add 'fpucw', 'float'.
713         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
714
715 2012-03-05  Bruno Haible  <bruno@clisp.org>
716
717         fpucw: Doc about FreeBSD.
718         * lib/fpucw.h: Mention FreeBSD in comments.
719
720 2012-03-04  Bruno Haible  <bruno@clisp.org>
721
722         sqrt* tests: More tests.
723         * tests/test-sqrt.h: New file.
724         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
725         (main): Invoke test_function.
726         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
727         (main): Invoke test_function.
728         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
729         (main): Invoke test_function.
730         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
731         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
732         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
733         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
734         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
735         (Depends-on): Add 'float'.
736         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
737
738 2012-03-04  Bruno Haible  <bruno@clisp.org>
739
740         remainder* tests: More tests.
741         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
742         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
743         (main): Invoke test_function.
744         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
745         (main): Invoke test_function.
746         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
747         (main): Invoke test_function.
748         * modules/remainder-tests (Files): Add tests/test-remainder.h,
749         tests/randomd.c.
750         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
751         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
752         tests/randomf.c.
753         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
754         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
755         tests/randoml.c.
756         (Depends-on): Add 'float'.
757         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
758
759 2012-03-04  Bruno Haible  <bruno@clisp.org>
760
761         remainder, remainderf, remainderl: Fix computation for large quotients.
762         * lib/remainder.c: Completely rewritten.
763         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
764         USE_FLOAT.
765         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
766         USE_LONG_DOUBLE.
767         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
768         isnand, isinf. Remove round, fma.
769         * modules/remainderf (Files): Add lib/remainder.c.
770         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
771         Remove roundf, fmaf.
772         * modules/remainderl (Files): Add lib/remainder.c.
773         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
774         isinf. Remove roundl, fmal.
775         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
776         REMAINDER_LIBM.
777         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
778         REMAINDERF_LIBM.
779         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
780         REMAINDERL_LIBM.
781
782 2012-03-04  Bruno Haible  <bruno@clisp.org>
783
784         fmod* tests: More tests.
785         * tests/test-fmod.h (my_ldexp): New function.
786         (test_function): Reduce amount of random numbers to test. Add tests
787         of very large quotients x / y.
788         * tests/test-fmod.c (MAX_EXP): New macro.
789         * tests/test-fmodf.c (MAX_EXP): Likewise.
790         * tests/test-fmodl.c (MAX_EXP): Likewise.
791
792 2012-03-04  Bruno Haible  <bruno@clisp.org>
793
794         fmod, fmodl: Fix computation for large quotients x / y.
795         * lib/fmod.c: Completely rewritten.
796         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
797         USE_LONG_DOUBLE.
798         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
799         isnand. Remove fma.
800         * modules/fmodl (Files): Add lib/fmod.c.
801         (Depends-on): Add float, isfinite, signbit, fabsl,
802         frexpl, ldexpl, isnanl. Remove fma.
803         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
804         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
805
806 2012-03-03  Bruno Haible  <bruno@clisp.org>
807
808         fmod* tests: More tests.
809         * tests/test-fmod.h: New file.
810         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
811         (main): Invoke test_function.
812         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
813         (main): Invoke test_function.
814         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
815         (main): Invoke test_function.
816         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
817         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
818         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
819         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
820         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
821         (Depends-on): Add 'float'.
822         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
823
824 2012-03-03  Bruno Haible  <bruno@clisp.org>
825
826         rint* tests: More tests.
827         * tests/test-rint.h: New file, partially extracted from
828         tests/test-rintl.c.
829         * tests/test-rint.c: Include test-rint.h.
830         (main): Invoke test_function.
831         * tests/test-rintf.c: Include test-rint.h.
832         (main): Invoke test_function.
833         * tests/test-rintl.c: Include test-rint.h.
834         (main): Invoke test_function.
835         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
836         (Makefile.am): Add randomd.c to test_rint_SOURCES.
837         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
838         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
839         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
840         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
841
842 2012-03-03  Bruno Haible  <bruno@clisp.org>
843
844         modf* tests: More tests.
845         * tests/test-modf.h: New file.
846         * tests/test-modf.c: Include <float.h> and test-modf.h.
847         (main): Invoke test_function.
848         * tests/test-modff.c: Include <float.h> and test-modf.h.
849         (main): Invoke test_function.
850         * tests/test-modfl.c: Include <float.h> and test-modf.h.
851         (main): Invoke test_function.
852         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
853         (Makefile.am): Add randomd.c to test_modf_SOURCES.
854         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
855         (Makefile.am): Add randomf.c to test_modff_SOURCES.
856         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
857         (Depends-on): Add 'float'.
858         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
859
860 2012-03-03  Bruno Haible  <bruno@clisp.org>
861
862         fabs* tests: More tests.
863         * tests/test-fabs.h: New file, partially extracted from
864         tests/test-fabsl.c.
865         * tests/test-fabs.c (RANDOM): New macro.
866         * tests/test-fabsf.c (RANDOM): New macro.
867         * tests/test-fabsl.c (RANDOM): New macro.
868         * modules/fabs-tests (Files): Add tests/randomd.c.
869         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
870         * modules/fabsf-tests (Files): Add tests/randomf.c.
871         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
872         * modules/fabsl-tests (Files): Add tests/randoml.c.
873         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
874
875 2012-03-03  Bruno Haible  <bruno@clisp.org>
876
877         ldexp* tests: More tests.
878         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
879         * tests/test-ldexp.c (RANDOM): New macro.
880         * tests/test-ldexpf.c (RANDOM): New macro.
881         * tests/test-ldexpl.c (RANDOM): New macro.
882         * modules/ldexp-tests (Files): Add tests/randomd.c.
883         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
884         * modules/ldexpf-tests (Files): Add tests/randomf.c.
885         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
886         * modules/ldexpl-tests (Files): Add tests/randoml.c.
887         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
888
889 2012-03-03  Bruno Haible  <bruno@clisp.org>
890
891         frexp* tests: More tests.
892         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
893         * tests/test-frexp.c (RANDOM): New macro.
894         * tests/test-frexpf.c (RANDOM): New macro.
895         * tests/test-frexpl.c (RANDOM): New macro.
896         * modules/frexp-tests (Files): Add tests/randomd.c.
897         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
898         * modules/frexpf-tests (Files): Add tests/randomf.c.
899         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
900         * modules/frexpl-tests (Files): Add tests/randoml.c.
901         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
902
903 2012-03-03  Bruno Haible  <bruno@clisp.org>
904
905         Support for pseudo-random numbers in tests.
906         * tests/randomf.c: New file.
907         * tests/randomd.c: New file.
908         * tests/randoml.c: New file.
909         * tests/macros.h (randomf, randomd, randoml): New declarations.
910
911 2012-03-03  Bruno Haible  <bruno@clisp.org>
912
913         frexp* tests: Refactor.
914         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
915         * tests/test-frexp.c: Include and use it.
916         * tests/test-frexpf.c: Likewise.
917         * tests/test-frexpl.c: Likewise.
918         * modules/frexp-tests (Files): Add tests/test-frexp.h.
919         * modules/frexpf-tests (Files): Likewise.
920         * modules/frexpl-tests (Files): Likewise.
921
922 2012-03-02  Jim Meyering  <meyering@redhat.com>
923
924         maint: don't specify XZ_OPT=-9ev in dist-related rule
925         Using xz's -9 option is warranted only if you have a very large
926         tarball (see xz's documentation for the sizes vs. presets), and
927         requires 64MiB of memory at decompression time.
928         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
929         Automake's default of just "-e" is fine.  Override on a
930         per-package basis by setting XZ_OPT e.g., in cfg.mk.
931
932 2012-03-01  Eric Blake  <eblake@redhat.com>
933
934         maint.mk: allow announcement for non-gnulib project
935         * maint.mk (announcement): Skip gnulib version if not used.
936
937 2012-03-01  Jim Meyering  <meyering@redhat.com>
938
939         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
940         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
941         envvar settings cannot interfere.  Otherwise, setting envvars like
942         prohibit=foo require=bar, etc. would cause spurious test failures.
943
944 2012-03-01  Eric Blake  <eblake@redhat.com>
945
946         maint.mk: add per-line exclusions to prohibitions
947         * maint.mk (_sc_search_regexp): Add $exclude parameter.
948         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
949         (sc_const_long_option): Use it.
950
951 2012-03-01  Bruno Haible  <bruno@clisp.org>
952
953         Tests for module 'expl-ieee'.
954         * modules/expl-ieee-tests: New file.
955         * tests/test-expl-ieee.c: New file.
956
957         New module 'expl-ieee'.
958         * modules/expl-ieee: New file.
959
960         Tests for module 'exp-ieee'.
961         * modules/exp-ieee-tests: New file.
962         * tests/test-exp-ieee.c: New file.
963
964         New module 'exp-ieee'.
965         * modules/exp-ieee: New file.
966
967         Tests for module 'expf-ieee'.
968         * modules/expf-ieee-tests: New file.
969         * tests/test-expf-ieee.c: New file.
970         * tests/test-exp-ieee.h: New file.
971
972         New module 'expf-ieee'.
973         * modules/expf-ieee: New file.
974
975 2012-02-29  Bruno Haible  <bruno@clisp.org>
976
977         cbrtl-ieee: Work around test failure on IRIX 6.5.
978         * m4/cbrtl-ieee.m4: New file.
979         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
980         test whether cbrtl works with a minus zero argument. Replace it if not.
981         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
983         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
984         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
985         (Depends-on): Update conditions.
986         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
987         m4/signbit.m4.
988         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
989         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
990         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
991
992         Tests for module 'cbrtl-ieee'.
993         * modules/cbrtl-ieee-tests: New file.
994         * tests/test-cbrtl-ieee.c: New file.
995
996         New module 'cbrtl-ieee'.
997         * modules/cbrtl-ieee: New file.
998
999         Tests for module 'cbrt-ieee'.
1000         * modules/cbrt-ieee-tests: New file.
1001         * tests/test-cbrt-ieee.c: New file.
1002
1003         New module 'cbrt-ieee'.
1004         * modules/cbrt-ieee: New file.
1005
1006         Tests for module 'cbrtf-ieee'.
1007         * modules/cbrtf-ieee-tests: New file.
1008         * tests/test-cbrtf-ieee.c: New file.
1009         * tests/test-cbrt-ieee.h: New file.
1010
1011         New module 'cbrtf-ieee'.
1012         * modules/cbrtf-ieee: New file.
1013
1014 2012-02-29  Bruno Haible  <bruno@clisp.org>
1015
1016         cbrtf: Work around bug in IRIX 6.5 system function.
1017         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
1018         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
1019         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
1020         work.
1021         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
1022         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
1023         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
1024         (Depends-on): Update conditions.
1025         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
1026
1027 2012-02-29  Bruno Haible  <bruno@clisp.org>
1028
1029         Tests for module 'cbrtl'.
1030         * modules/cbrtl-tests: New file.
1031         * tests/test-cbrtl.c: New file.
1032
1033         New module 'cbrtl'.
1034         * lib/math.in.h (cbrtl): New declaration.
1035         * lib/cbrtl.c: New file.
1036         * m4/cbrtl.m4: New file.
1037         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
1038         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
1039         HAVE_DECL_CBRTL.
1040         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
1041         HAVE_DECL_CBRTL.
1042         * modules/cbrtl: New file.
1043         * tests/test-math-c++.cc: Check the declaration of cbrtl.
1044         * doc/posix-functions/cbrtl.texi: Mention the new module.
1045
1046 2012-02-29  Bruno Haible  <bruno@clisp.org>
1047
1048         Tests for module 'cbrtf'.
1049         * modules/cbrtf-tests: New file.
1050         * tests/test-cbrtf.c: New file.
1051
1052         New module 'cbrtf'.
1053         * lib/math.in.h (cbrtf): New declaration.
1054         * lib/cbrtf.c: New file.
1055         * m4/cbrtf.m4: New file.
1056         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
1057         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
1058         HAVE_DECL_CBRTF.
1059         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
1060         HAVE_DECL_CBRTF.
1061         * modules/cbrtf: New file.
1062         * tests/test-math-c++.cc: Check the declaration of cbrtf.
1063         * doc/posix-functions/cbrtf.texi: Mention the new module.
1064
1065 2012-02-29  Bruno Haible  <bruno@clisp.org>
1066
1067         cbrt: Provide replacement on MSVC and Minix.
1068         * lib/math.in.h (cbrt): New declaration.
1069         * lib/cbrt.c: New file.
1070         * m4/cbrt.m4: New file.
1071         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
1072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
1073         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
1074         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
1075         (Depends-on): Add dependencies.
1076         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
1077         * tests/test-math-c++.cc: Check the declaration of cbrt.
1078         * doc/posix-functions/cbrt.texi: Mention that the module provides a
1079         replacement.
1080
1081 2012-02-29  Bruno Haible  <bruno@clisp.org>
1082
1083         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
1084         * m4/hypotl-ieee.m4: New file.
1085         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
1086         test whether hypotl works with mixed NaN and Infinity arguments.
1087         Replace it if not.
1088         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
1089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
1090         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
1091         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
1092         (Depends-on): Update conditions.
1093         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
1094         (Depends-on): Add hypot-ieee.
1095         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
1096         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
1097
1098         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
1099         * m4/hypotf-ieee.m4: New file.
1100         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
1101         test whether hypotf works with mixed NaN and Infinity arguments.
1102         Replace it if not.
1103         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
1104         (Depends-on): Add hypot-ieee.
1105         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
1106         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
1107
1108         hypot-ieee: Work around test failure on OSF/1 and native Windows.
1109         * lib/math.in.h (hypot): New declaration.
1110         * lib/hypot.c: New file.
1111         * m4/hypot-ieee.m4: New file.
1112         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
1113         whether hypot works with mixed NaN and Infinity arguments. Replace it
1114         if not.
1115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
1116         REPLACE_HYPOT.
1117         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
1118         * modules/hypot (Files): Add lib/hypot.c.
1119         (Depends-on): Add dependencies.
1120         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
1121         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
1122         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
1123         * tests/test-math-c++.cc: Check the declaration of hypot.
1124         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
1125
1126         Tests for module 'hypotl-ieee'.
1127         * modules/hypotl-ieee-tests: New file.
1128         * tests/test-hypotl-ieee.c: New file.
1129
1130         New module 'hypotl-ieee'.
1131         * modules/hypotl-ieee: New file.
1132
1133         Tests for module 'hypot-ieee'.
1134         * modules/hypot-ieee-tests: New file.
1135         * tests/test-hypot-ieee.c: New file.
1136
1137         New module 'hypot-ieee'.
1138         * modules/hypot-ieee: New file.
1139
1140         Tests for module 'hypotf-ieee'.
1141         * modules/hypotf-ieee-tests: New file.
1142         * tests/test-hypotf-ieee.c: New file.
1143         * tests/test-hypot-ieee.h: New file.
1144
1145         New module 'hypotf-ieee'.
1146         * modules/hypotf-ieee: New file.
1147
1148 2012-02-29  Bruno Haible  <bruno@clisp.org>
1149
1150         Remove unused variables.
1151         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
1152         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1153         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
1154         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1155
1156 2012-02-29  Eric Blake  <eblake@redhat.com>
1157
1158         termios: fix pid_t always, not just for tcgetsid
1159         * doc/posix-headers/termios.texi (termios.h): Mention problem.
1160         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
1161         just when building tcgetsid.
1162
1163 2012-02-29  Bruno Haible  <bruno@clisp.org>
1164
1165         Tests for module 'hypotl'.
1166         * modules/hypotl-tests: New file.
1167         * tests/test-hypotl.c: New file.
1168
1169         New module 'hypotl'.
1170         * lib/math.in.h (hypotl): New declaration.
1171         * lib/hypotl.c: New file.
1172         * m4/hypotl.m4: New file.
1173         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
1175         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
1176         * modules/hypotl: New file.
1177         * tests/test-math-c++.cc: Check the hypotl declaration.
1178         * doc/posix-functions/hypotl.texi: Mention the new module.
1179
1180 2012-02-29  Eric Blake  <eblake@redhat.com>
1181
1182         tcgetsid: fix cygwin header bug
1183         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
1184
1185         docs: update cygwin progress
1186         * doc/posix-functions/llround.texi (llround): Added in cygwin
1187         1.7.8.
1188         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
1189         * doc/glibc-functions/program_invocation_name.texi
1190         (program_invocation_name): Likewise.
1191         * doc/glibc-functions/program_invocation_short_name.texi
1192         (program_invocation_short_name): Likewise.
1193         * doc/glibc-functions/madvise.texi (madvise): Likewise.
1194         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
1195         Likewise.
1196         * doc/posix-functions/pthread_spin_destroy.texi
1197         (pthread_spin_destroy): Added in cygwin 1.7.10.
1198         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
1199         Likewise.
1200         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
1201         Likewise.
1202         * doc/posix-functions/pthread_spin_trylock.texi
1203         (pthread_spin_trylock): Likewise.
1204         * doc/posix-functions/pthread_spin_unlock.texi
1205         (pthread_spin_unlock): Likewise.
1206         * doc/posix-functions/pthread_setschedprio.texi
1207         (pthread_setschedprio): Likewise.
1208         * doc/posix-functions/pthread_attr_getstack.texi
1209         (pthread_attr_getstack): Likewise.
1210         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
1211         (pthread_attr_getstackaddr): Likewise.
1212         * doc/glibc-functions/pthread_getattr_np.texi
1213         (pthread_getattr_np): Likewise.
1214         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
1215         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
1216         * doc/posix-functions/clock_settime.texi (clock_settime):
1217         Likewise.
1218         * doc/posix-functions/pthread_attr_getguardsize.texi
1219         (pthread_attr_getguardsize): Likewise.
1220         * doc/posix-functions/pthread_attr_setguardsize.texi
1221         (pthread_attr_setguardsize): Likewise.
1222         * doc/posix-functions/pthread_attr_setstack.texi
1223         (pthread_attr_setstack): Likewise.
1224         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
1225         (pthread_attr_setstackaddr): Likewise.
1226         * doc/posix-functions/clock_getcpuclockid.texi
1227         (clock_getcpuclockid): Likewise.
1228         * doc/posix-functions/pthread_getcpuclockid.texi
1229         (pthread_getcpuclockid): Likewise.
1230         * doc/glibc-functions/error.texi (error): Likewise.
1231         * doc/glibc-functions/error_at_line.texi (error_at_line):
1232         Likewise.
1233         * doc/glibc-functions/error_message_count.texi
1234         (error_message_count): Likewise.
1235         * doc/glibc-functions/error_one_per_line.texi
1236         (error_one_per_line): Likewise.
1237         * doc/glibc-functions/error_print_progname.texi
1238         (error_print_progname): Likewise.
1239         * doc/posix-functions/pthread_condattr_getclock.texi
1240         (pthread_condattr_getclock): Likewise.
1241         * doc/posix-functions/pthread_condattr_setclock.texi
1242         (pthread_condattr_setclock): Likewise.
1243         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
1244         Likewise.
1245         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
1246         * doc/glibc-functions/getpt.texi (getpt): Likewise.
1247         * doc/glibc-functions/get_current_dir_name.texi
1248         (get_current_dir_name): Likewise.
1249         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
1250         Likewise.
1251         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
1252         wrong return type.
1253         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
1254         1.7.11.
1255
1256 2012-02-29  Bruno Haible  <bruno@clisp.org>
1257
1258         Tests for module 'hypotf'.
1259         * modules/hypotf-tests: New file.
1260         * tests/test-hypotf.c: New file.
1261
1262         New module 'hypotf'.
1263         * lib/math.in.h (hypotf): New declaration.
1264         * lib/hypotf.c: New file.
1265         * m4/hypotf.m4: New file.
1266         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1267         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
1268         REPLACE_HYPOTF.
1269         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
1270         REPLACE_HYPOTF.
1271         * modules/hypotf: New file.
1272         * tests/test-math-c++.cc: Check the hypotf declaration.
1273         * doc/posix-functions/hypotf.texi: Mention the new module.
1274
1275         hypot: Prepare for hypotf module.
1276         * m4/hypot.m4: New file.
1277         * modules/hypot (Files): Add m4/hypot.m4.
1278         (configure.ac): Invoke gl_FUNC_HYPOT.
1279
1280 2012-02-29  Bruno Haible  <bruno@clisp.org>
1281
1282         hypot tests: More tests.
1283         * tests/test-hypot.c: Include <float.h>.
1284         (main): Add tests about overflow and underflow.
1285
1286 2012-02-29  Bruno Haible  <bruno@clisp.org>
1287
1288         math code: Add comments.
1289         * lib/acosl.c: Add comment about related glibc source files.
1290         * lib/asinl.c: Likewise.
1291         * lib/atanl.c: Likewise.
1292         * lib/expl.c: Likewise.
1293         * lib/logl.c: Likewise.
1294         * lib/sincosl.c: Likewise.
1295         * lib/sinl.c: Likewise.
1296         * lib/tanl.c: Likewise.
1297         * lib/trigl.c: Likewise.
1298         * lib/cosl.c: Likewise. Fix comments.
1299
1300 2012-02-28  Bruno Haible  <bruno@clisp.org>
1301
1302         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
1303         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
1304         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
1305         HUGE_VALL are defined.
1306         (numeric_equald): Renamed from numeric_equal.
1307         (numeric_equalf, numeric_equall): New functions.
1308         (main): Check also HUGE_VALF, HUGE_VALL.
1309         * modules/math-tests (Files): Add tests/macros.h.
1310         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
1311         HUGE_VALL.
1312
1313 2012-02-28  Bruno Haible  <bruno@clisp.org>
1314
1315         doc: Move ISO C11 feature notes into POSIX chapters.
1316         * doc/posix-functions/aligned_alloc.texi: Renamed from
1317         doc/glibc-functions/aligned_alloc.texi.
1318         * doc/posix-functions/quick_exit.texi: Renamed from
1319         doc/glibc-functions/quick_exit.texi.
1320         * doc/posix-headers/uchar.texi: Renamed from
1321         doc/glibc-headers/uchar.texi.
1322         * doc/posix-functions/c16rtomb.texi: Renamed from
1323         doc/glibc-functions/c16rtomb.texi.
1324         * doc/posix-functions/c32rtomb.texi: Renamed from
1325         doc/glibc-functions/c32rtomb.texi.
1326         * doc/posix-functions/mbrtoc16.texi: Renamed from
1327         doc/glibc-functions/mbrtoc16.texi.
1328         * doc/posix-functions/mbrtoc32.texi: Renamed from
1329         doc/glibc-functions/mbrtoc32.texi.
1330         * doc/gnulib.texi: Update.
1331         (Glibc uchar.h): Remove section.
1332         Suggested by Eric Blake.
1333
1334 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
1335
1336         stdnoreturn: port to MSVC better
1337         MSVC standard headers use __declspec(noreturn), so #define noreturn
1338         to empty on that platform.  Reported by Bruno Haible in
1339         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
1340         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
1341         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
1342
1343 2012-02-28  Bruno Haible  <bruno@clisp.org>
1344
1345         doc: Mention new glibc headers and functions.
1346         * doc/glibc-headers/uchar.texi: New file.
1347         * doc/glibc-functions/aligned_alloc.texi: New file.
1348         * doc/glibc-functions/c16rtomb.texi: New file.
1349         * doc/glibc-functions/c32rtomb.texi: New file.
1350         * doc/glibc-functions/clock_adjtime.texi: New file.
1351         * doc/glibc-functions/fanotify_init.texi: New file.
1352         * doc/glibc-functions/fanotify_mark.texi: New file.
1353         * doc/glibc-functions/inet6_opt_append.texi: New file.
1354         * doc/glibc-functions/inet6_opt_find.texi: New file.
1355         * doc/glibc-functions/inet6_opt_finish.texi: New file.
1356         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
1357         * doc/glibc-functions/inet6_opt_init.texi: New file.
1358         * doc/glibc-functions/inet6_opt_next.texi: New file.
1359         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
1360         * doc/glibc-functions/inet6_rth_add.texi: New file.
1361         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
1362         * doc/glibc-functions/inet6_rth_init.texi: New file.
1363         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
1364         * doc/glibc-functions/inet6_rth_segments.texi: New file.
1365         * doc/glibc-functions/inet6_rth_space.texi: New file.
1366         * doc/glibc-functions/login.texi: New file.
1367         * doc/glibc-functions/mbrtoc16.texi: New file.
1368         * doc/glibc-functions/mbrtoc32.texi: New file.
1369         * doc/glibc-functions/name_to_handle_at.texi: New file.
1370         * doc/glibc-functions/ntp_gettimex.texi: New file.
1371         * doc/glibc-functions/open_by_handle_at.texi: New file.
1372         * doc/glibc-functions/prlimit.texi: New file.
1373         * doc/glibc-functions/process_vm_readv.texi: New file.
1374         * doc/glibc-functions/process_vm_writev.texi: New file.
1375         * doc/glibc-functions/recvmmsg.texi: New file.
1376         * doc/glibc-functions/scandirat.texi: New file.
1377         * doc/glibc-functions/sendmmsg.texi: New file.
1378         * doc/glibc-functions/setns.texi: New file.
1379         * doc/glibc-functions/timespec_get.texi: New file.
1380         * doc/gnulib.texi: Include them.
1381         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
1382         sections.
1383         Reported by Eric Blake.
1384
1385 2012-02-28  Bruno Haible  <bruno@clisp.org>
1386
1387         Avoid compilation errors with MSVC option -fp:strict.
1388         * lib/floor.c: Use MSVC specific pragma fenv_access.
1389         * lib/ceil.c: Likewise.
1390         * lib/trunc.c: Likewise.
1391         * lib/round.c: Likewise.
1392         * lib/rint.c: Likewise.
1393         * lib/fma.c: Likewise.
1394         * lib/integer_length.c: Likewise.
1395         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1396         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1397         * tests/test-floor2.c: Likewise.
1398         * tests/test-floorf2.c: Likewise.
1399         * tests/test-ceil2.c: Likewise.
1400         * tests/test-ceilf2.c: Likewise.
1401         * tests/test-trunc2.c: Likewise.
1402         * tests/test-truncf2.c: Likewise.
1403         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1404
1405 2012-02-27  Bruno Haible  <bruno@clisp.org>
1406
1407         Tests for module 'sqrtl-ieee'.
1408         * modules/sqrtl-ieee-tests: New file.
1409         * tests/test-sqrtl-ieee.c: New file.
1410
1411         New module 'sqrtl-ieee'.
1412         * modules/sqrtl-ieee: New file.
1413
1414         Tests for module 'sqrt-ieee'.
1415         * modules/sqrt-ieee-tests: New file.
1416         * tests/test-sqrt-ieee.c: New file.
1417
1418         New module 'sqrt-ieee'.
1419         * modules/sqrt-ieee: New file.
1420
1421         Tests for module 'sqrtf-ieee'.
1422         * modules/sqrtf-ieee-tests: New file.
1423         * tests/test-sqrtf-ieee.c: New file.
1424         * tests/test-sqrt-ieee.h: New file.
1425
1426         New module 'sqrtf-ieee'.
1427         * modules/sqrtf-ieee: New file.
1428
1429 2012-02-27  Bruno Haible  <bruno@clisp.org>
1430
1431         remainderl-ieee: Work around test failure on OSF/1.
1432         * m4/remainderl-ieee.m4: New file.
1433         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
1434         present, test whether remainderl works with a zero second argument.
1435         Replace it if not.
1436         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
1437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
1438         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
1439         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
1440         (Depends-on): Update conditions.
1441         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
1442         (Depends-on): Add remainder-ieee.
1443         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
1444         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
1445         module.
1446
1447         remainderf-ieee: Work around test failure on OSF/1.
1448         * m4/remainderf-ieee.m4: New file.
1449         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
1450         present, test whether remainderf works with a zero second argument.
1451         Replace it if not.
1452         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
1453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
1454         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
1455         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
1456         (Depends-on): Update conditions.
1457         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
1458         (Depends-on): Add remainder-ieee.
1459         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
1460         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
1461         module.
1462
1463         remainder-ieee: Work around test failure on OSF/1.
1464         * m4/remainder-ieee.m4: New file.
1465         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
1466         present, test whether remainder works with a zero second argument.
1467         Replace it if not.
1468         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
1469         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
1470         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
1471         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
1472         (Depends-on): Update dependencies.
1473         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
1474         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
1475         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
1476
1477         Tests for module 'remainderl-ieee'.
1478         * modules/remainderl-ieee-tests: New file.
1479         * tests/test-remainderl-ieee.c: New file.
1480
1481         New module 'remainderl-ieee'.
1482         * modules/remainderl-ieee: New file.
1483
1484         Tests for module 'remainder-ieee'.
1485         * modules/remainder-ieee-tests: New file.
1486         * tests/test-remainder-ieee.c: New file.
1487
1488         New module 'remainder-ieee'.
1489         * modules/remainder-ieee: New file.
1490
1491         Tests for module 'remainderf-ieee'.
1492         * modules/remainderf-ieee-tests: New file.
1493         * tests/test-remainderf-ieee.c: New file.
1494         * tests/test-remainder-ieee.h: New file.
1495
1496         New module 'remainderf-ieee'.
1497         * modules/remainderf-ieee: New file.
1498
1499 2012-02-27  Bruno Haible  <bruno@clisp.org>
1500
1501         modff, modfl: Fix configure syntax error.
1502         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
1503         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1504
1505 2012-02-27  Bruno Haible  <bruno@clisp.org>
1506
1507         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
1508         * m4/fmodl-ieee.m4: New file.
1509         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
1510         whether fmodl works with zero arguments. Replace it if not.
1511         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
1512         (Depends-on): Add fmod-ieee.
1513         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
1514         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
1515
1516         fmodf-ieee: Work around test failure on OSF/1.
1517         * m4/fmodf-ieee.m4: New file.
1518         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
1519         whether fmodf works with zero arguments. Replace it if not.
1520         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
1521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
1522         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
1523         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
1524         (Depends-on): Update dependencies.
1525         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
1526         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
1527         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
1528
1529         fmodf-ieee: Work around test failure on MSVC 9.
1530         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
1531         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
1532
1533         fmod-ieee: Work around test failures on OSF/1, mingw.
1534         * m4/fmod-ieee.m4: New file.
1535         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
1536         whether fmod works with zero arguments. Replace it if not.
1537         * lib/math.in.h (fmod): New declaration.
1538         * lib/fmod.c: New file.
1539         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
1540         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
1541         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
1542         * modules/fmod (Files): Add lib/fmod.c.
1543         (Depends-on): Add math, isinf, trunc, fma.
1544         (configure.ac): Arrange to compile lib/fmod.c if needed.
1545         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
1546         m4/signbit.m4.
1547         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
1548         * tests/test-math-c++.cc: Check the declaration of fmod.
1549         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
1550
1551         fmodl-ieee: Fix test failures.
1552         * lib/fmodl.c (fmodl): Treat Inf specially.
1553         * modules/fmodl (Depends-on): Add isinf.
1554
1555         Tests for module 'fmodl-ieee'.
1556         * modules/fmodl-ieee-tests: New file.
1557         * tests/test-fmodl-ieee.c: New file.
1558
1559         New module 'fmodl-ieee'.
1560         * modules/fmodl-ieee: New file.
1561
1562         Tests for module 'fmod-ieee'.
1563         * modules/fmod-ieee-tests: New file.
1564         * tests/test-fmod-ieee.c: New file.
1565
1566         New module 'fmod-ieee'.
1567         * modules/fmod-ieee: New file.
1568
1569         Tests for module 'fmodf-ieee'.
1570         * modules/fmodf-ieee-tests: New file.
1571         * tests/test-fmodf-ieee.c: New file.
1572         * tests/test-fmod-ieee.h: New file.
1573
1574         New module 'fmodf-ieee'.
1575         * modules/fmodf-ieee: New file.
1576
1577 2012-02-27  Bruno Haible  <bruno@clisp.org>
1578
1579         Tests for module 'rintl-ieee'.
1580         * modules/rintl-ieee-tests: New file.
1581         * tests/test-rintl-ieee.c: New file.
1582
1583         New module 'rintl-ieee'.
1584         * modules/rintl-ieee: New file.
1585
1586         Tests for module 'rint-ieee'.
1587         * modules/rint-ieee-tests: New file.
1588         * tests/test-rint-ieee.c: New file.
1589
1590         New module 'rint-ieee'.
1591         * modules/rint-ieee: New file.
1592
1593         Tests for module 'rintf-ieee'.
1594         * modules/rintf-ieee-tests: New file.
1595         * tests/test-rintf-ieee.c: New file.
1596         * tests/test-rint-ieee.h: New file.
1597
1598         New module 'rintf-ieee'.
1599         * modules/rintf-ieee: New file.
1600
1601 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
1602
1603         regex: re_search etc. should return -2 when memory exhausted
1604         This bug was uncovered when testing 'grep'.  Without the fix,
1605         re_search and friends return -1 when memory is exhausted, but -1
1606         means no match, and this causes grep to falsely report no-match
1607         instead of memory-exhaustion.  See
1608         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
1609         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
1610         trouble; this can occur if re_search_internal ran out of memory.
1611
1612 2012-02-26  Bruno Haible  <bruno@clisp.org>
1613
1614         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
1615         * m4/modfl-ieee.m4: New file.
1616         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
1617         whether modfl works with Inf. Replace it if not.
1618         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
1619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
1620         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
1621         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
1622         (Depends-on): Update dependencies.
1623         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
1624         m4/signbit.m4.
1625         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
1626         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
1627
1628         modfl-ieee: Fix dependencies.
1629         * modules/modfl-ieee (Depends-on): Add modf-ieee.
1630
1631         modfl-ieee: Fix test failures.
1632         * lib/modfl.c (modfl): Treat NaN and Inf specially.
1633         * modules/modfl (Depends-on): Add isfinite, isinf.
1634
1635         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
1636         * m4/modff-ieee.m4: New file.
1637         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
1638         whether modff works with NaN and Inf. Replace it if not.
1639         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
1640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
1641         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
1642         * modules/modff (configure.ac): Consider REPLACE_MODFF.
1643         (Depends-on): Update dependencies.
1644         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
1645         m4/signbit.m4.
1646         (Depends-on): Add modf-ieee.
1647         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
1648         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
1649
1650         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
1651         * m4/modf-ieee.m4: New file.
1652         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
1653         whether modf works with NaN and Inf. Replace it if not.
1654         * lib/math.in.h (modf): New declaration.
1655         * lib/modf.c: New file.
1656         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
1657         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
1658         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
1659         * modules/modf (Files): Add lib/modf.c.
1660         (Depends-on): Add math, isfinite, trunc, isinf.
1661         (configure.ac): Addrange to compile lib/modf.c if needed.
1662         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
1663         m4/signbit.m4.
1664         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
1665         * tests/test-math-c++.cc: Check the declaration of modf.
1666         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
1667
1668         Tests for module 'modfl-ieee'.
1669         * modules/modfl-ieee-tests: New file.
1670         * tests/test-modfl-ieee.c: New file.
1671
1672         New module 'modfl-ieee'.
1673         * modules/modfl-ieee: New file.
1674
1675         Tests for module 'modf-ieee'.
1676         * modules/modf-ieee-tests: New file.
1677         * tests/test-modf-ieee.c: New file.
1678
1679         New module 'modf-ieee'.
1680         * modules/modf-ieee: New file.
1681
1682         Tests for module 'modff-ieee'.
1683         * modules/modff-ieee-tests: New file.
1684         * tests/test-modff-ieee.c: New file.
1685         * tests/test-modf-ieee.h: New file.
1686
1687         New module 'modff-ieee'.
1688         * modules/modff-ieee: New file.
1689
1690 2012-02-26  Bruno Haible  <bruno@clisp.org>
1691
1692         Tests for module 'fabsl-ieee'.
1693         * modules/fabsl-ieee-tests: New file.
1694         * tests/test-fabsl-ieee.c: New file.
1695
1696         New module 'fabsl-ieee'.
1697         * modules/fabsl-ieee: New file.
1698
1699         Tests for module 'fabs-ieee'.
1700         * modules/fabs-ieee-tests: New file.
1701         * tests/test-fabs-ieee.c: New file.
1702
1703         New module 'fabs-ieee'.
1704         * modules/fabs-ieee: New file.
1705
1706         Tests for module 'fabsf-ieee'.
1707         * modules/fabsf-ieee-tests: New file.
1708         * tests/test-fabsf-ieee.c: New file.
1709         * tests/test-fabs-ieee.h: New file.
1710
1711         New module 'fabsf-ieee'.
1712         * modules/fabsf-ieee: New file.
1713
1714 2012-02-26  Bruno Haible  <bruno@clisp.org>
1715
1716         Tests for module 'fmal-ieee'.
1717         * modules/fmal-ieee-tests: New file.
1718         * tests/test-fmal-ieee.c: New file.
1719
1720         New module 'fmal-ieee'.
1721         * modules/fmal-ieee: New file.
1722
1723         Tests for module 'fma-ieee'.
1724         * modules/fma-ieee-tests: New file.
1725         * tests/test-fma-ieee.c: New file.
1726
1727         New module 'fma-ieee'.
1728         * modules/fma-ieee: New file.
1729
1730         Tests for module 'fmaf-ieee'.
1731         * modules/fmaf-ieee-tests: New file.
1732         * tests/test-fmaf-ieee.c: New file.
1733         * tests/test-fma-ieee.h: New file.
1734
1735         New module 'fmaf-ieee'.
1736         * modules/fmaf-ieee: New file.
1737
1738 2012-02-26  Bruno Haible  <bruno@clisp.org>
1739
1740         Tests for module 'ldexpl-ieee'.
1741         * modules/ldexpl-ieee-tests: New file.
1742         * tests/test-ldexpl-ieee.c: New file.
1743
1744         New module 'ldexpl-ieee'.
1745         * modules/ldexpl-ieee: New file.
1746
1747         Tests for module 'ldexp-ieee'.
1748         * modules/ldexp-ieee-tests: New file.
1749         * tests/test-ldexp-ieee.c: New file.
1750
1751         New module 'ldexp-ieee'.
1752         * modules/ldexp-ieee: New file.
1753
1754         Tests for module 'ldexpf-ieee'.
1755         * modules/ldexpf-ieee-tests: New file.
1756         * tests/test-ldexpf-ieee.c: New file.
1757         * tests/test-ldexp-ieee.h: New file.
1758
1759         New module 'ldexpf-ieee'.
1760         * modules/ldexpf-ieee: New file.
1761
1762 2012-02-26  Bruno Haible  <bruno@clisp.org>
1763
1764         Refactor frexp*-ieee tests.
1765         * tests/test-frexp-ieee.h: New file.
1766         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
1767         (main): Just call test_function.
1768         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
1769         (main): Just call test_function.
1770         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
1771         (main): Just call test_function.
1772         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
1773         * modules/frexp-ieee-tests (Files): Likewise.
1774         * modules/frexpl-ieee-tests (Files): Likewise.
1775
1776         Tests for module 'frexpl-ieee'.
1777         * modules/frexpl-ieee-tests: New file.
1778         * tests/test-frexpl-ieee.c: New file.
1779
1780         New module 'frexpl-ieee'.
1781         * modules/frexpl-ieee: New file.
1782
1783         Tests for module 'frexp-ieee'.
1784         * modules/frexp-ieee-tests: New file.
1785         * tests/test-frexp-ieee.c: New file.
1786
1787         New module 'frexp-ieee'.
1788         * modules/frexp-ieee: New file.
1789
1790         Tests for module 'frexpf-ieee'.
1791         * modules/frexpf-ieee-tests: New file.
1792         * tests/test-frexpf-ieee.c: New file.
1793
1794         New module 'frexpf-ieee'.
1795         * modules/frexpf-ieee: New file.
1796
1797 2012-02-26  Bruno Haible  <bruno@clisp.org>
1798
1799         roundl-ieee tests: More tests.
1800         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1801         (main): Add tests for [MX] shaded specification in POSIX.
1802         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1803         (Depends-on): Add isnanl-nolibm.
1804
1805         round-ieee tests: More tests.
1806         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1807         (main): Add tests for [MX] shaded specification in POSIX.
1808         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1809         (Depends-on): Add isnand-nolibm.
1810
1811         roundf-ieee tests: More tests.
1812         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1813         (main): Add tests for [MX] shaded specification in POSIX.
1814         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1815         (Depends-on): Add isnanf-nolibm.
1816
1817         truncl-ieee tests: More tests.
1818         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1819         (main): Add tests for [MX] shaded specification in POSIX.
1820         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1821         (Depends-on): Add isnanl-nolibm.
1822
1823         trunc-ieee tests: More tests.
1824         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1825         (main): Add tests for [MX] shaded specification in POSIX.
1826         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1827         (Depends-on): Add isnand-nolibm.
1828
1829         truncf-ieee tests: More tests.
1830         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1831         (main): Add tests for [MX] shaded specification in POSIX.
1832         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1833         (Depends-on): Add isnanf-nolibm.
1834
1835         ceill-ieee tests: More tests.
1836         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1837         (main): Add tests for [MX] shaded specification in POSIX.
1838         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1839         (Depends-on): Add isnanl-nolibm.
1840
1841         ceil-ieee tests: More tests.
1842         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1843         (main): Add tests for [MX] shaded specification in POSIX.
1844         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1845         (Depends-on): Add isnand-nolibm.
1846
1847         ceilf-ieee tests: More tests.
1848         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1849         (main): Add tests for [MX] shaded specification in POSIX.
1850         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1851         (Depends-on): Add isnanf-nolibm.
1852
1853         floorl-ieee tests: More tests.
1854         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1855         (main): Add tests for [MX] shaded specification in POSIX.
1856         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1857         (Depends-on): Add isnanl-nolibm.
1858
1859         floor-ieee tests: More tests.
1860         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1861         (main): Add tests for [MX] shaded specification in POSIX.
1862         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1863         (Depends-on): Add isnand-nolibm.
1864
1865         floorf-ieee tests: More tests.
1866         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1867         (main): Add tests for [MX] shaded specification in POSIX.
1868         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1869         (Depends-on): Add isnanf-nolibm.
1870
1871 2012-02-26  Bruno Haible  <bruno@clisp.org>
1872
1873         fpieee: More comments.
1874         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
1875
1876 2012-02-25  Bruno Haible  <bruno@clisp.org>
1877
1878         Tests for module 'log10l'.
1879         * modules/log10l-tests: New file.
1880         * tests/test-log10l.c: New file.
1881         * tests/test-math-c++.cc: Check the declaration of log10l.
1882
1883         New module 'log10l'.
1884         * lib/math.in.h (log10l): New declaration.
1885         * lib/log10l.c: New file.
1886         * m4/log10l.m4: New file.
1887         * modules/log10l: New file.
1888         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
1889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
1890         HAVE_DECL_LOG10L.
1891         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
1892         HAVE_DECL_LOG10L.
1893         * doc/posix-functions/log10l.texi: Mention the new module.
1894
1895 2012-02-25  Bruno Haible  <bruno@clisp.org>
1896
1897         fmodl, remainder*: Avoid wrong results due to rounding errors.
1898         * lib/fmodl.c (fmodl): Correct the result if it is not within the
1899         expected bounds.
1900         * lib/remainderf.c (remainderf): Likewise.
1901         * lib/remainder.c (remainder): Likewise.
1902         * lib/remainderl.c (remainderl): Likewise.
1903
1904 2012-02-25  Bruno Haible  <bruno@clisp.org>
1905
1906         Tests for module 'remainderl'.
1907         * modules/remainderl-tests: New file.
1908         * tests/test-remainderl.c: New file.
1909         * tests/test-math-c++.cc: Check the declaration of remainderl.
1910
1911         New module 'remainderl'.
1912         * lib/math.in.h (remainderl): New declaration.
1913         * lib/remainderl.c: New file.
1914         * m4/remainderl.m4: New file.
1915         * modules/remainderl: New file.
1916         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
1917         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
1918         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
1919         HAVE_REMAINDERL.
1920         * doc/posix-functions/remainderl.texi: Mention the new module.
1921
1922 2012-02-25  Bruno Haible  <bruno@clisp.org>
1923
1924         Tests for module 'remainderf'.
1925         * modules/remainderf-tests: New file.
1926         * tests/test-remainderf.c: New file.
1927         * tests/test-math-c++.cc: Check the declaration of remainderf.
1928
1929         New module 'remainderf'.
1930         * lib/math.in.h (remainderf): New declaration.
1931         * lib/remainderf.c: New file.
1932         * m4/remainderf.m4: New file.
1933         * modules/remainderf: New file.
1934         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
1935         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
1936         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
1937         HAVE_REMAINDERF.
1938         * doc/posix-functions/remainderf.texi: Mention the new module.
1939
1940 2012-02-25  Bruno Haible  <bruno@clisp.org>
1941
1942         remainder: Support for MSVC.
1943         * lib/math.in.h (remainder): New declaration.
1944         * lib/remainder.c: New file.
1945         * m4/remainder.m4: New file.
1946         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
1947         (Depends-on): Add math, round, fma.
1948         (configure.ac): Use results of gl_FUNC_REMAINDER.
1949         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
1950         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
1951         HAVE_DECL_REMAINDER.
1952         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
1953         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
1954         * tests/test-math-c++.cc: Check the declaration of remainder.
1955         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
1956         problems are fixed.
1957
1958 2012-02-25  Bruno Haible  <bruno@clisp.org>
1959
1960         Tests for module 'fmodl'.
1961         * modules/fmodl-tests: New file.
1962         * tests/test-fmodl.c: New file.
1963         * tests/test-math-c++.cc: Check the declaration of fmodl.
1964
1965         New module 'fmodl'.
1966         * lib/math.in.h (fmodl): New declaration.
1967         * lib/fmodl.c: New file.
1968         * m4/fmodl.m4: New file.
1969         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
1970         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
1971         REPLACE_FMODL.
1972         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
1973         REPLACE_FMODL.
1974         * modules/fmodl: New file.
1975         * doc/posix-functions/fmodl.texi: Mention the new module.
1976
1977 2012-02-25  Bruno Haible  <bruno@clisp.org>
1978
1979         Tests for module 'modfl'.
1980         * modules/modfl-tests: New file.
1981         * tests/test-modfl.c: New file.
1982         * tests/test-math-c++.cc: Check the declaration of modfl.
1983
1984         New module 'modfl'.
1985         * lib/math.in.h (modfl): New declaration.
1986         * lib/modfl.c: New file.
1987         * m4/modfl.m4: New file.
1988         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
1989         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
1990         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
1991         * modules/modfl: New file.
1992         * doc/posix-functions/modfl.texi: Mention the new module.
1993
1994 2012-02-25  Bruno Haible  <bruno@clisp.org>
1995
1996         Tests for module 'fabsl'.
1997         * modules/fabsl-tests: New file.
1998         * tests/test-fabsl.c: New file.
1999         * tests/test-math-c++.cc: Check the declaration of fabsl.
2000
2001         New module 'fabsl'.
2002         * lib/math.in.h (fabsl): New declaration.
2003         * lib/fabsl.c: New file.
2004         * m4/fabsl.m4: New file.
2005         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2006         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2007         REPLACE_FABSL.
2008         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2009         REPLACE_FABSL.
2010         * modules/fabsl: New file.
2011         * doc/posix-functions/fabsl.texi: Mention the new module.
2012
2013 2012-02-25  Bruno Haible  <bruno@clisp.org>
2014
2015         fabs tests: More tests.
2016         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
2017         (zero): New variable.
2018         (main): Add tests for signed zero.
2019         * modules/fabs-tests (Files): Add tests/minus-zero.h.
2020
2021         fabsf tests: More tests.
2022         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
2023         (zero): New variable.
2024         (main): Add tests for signed zero.
2025         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
2026
2027 2012-02-24  Bruno Haible  <bruno@clisp.org>
2028
2029         atanl: Provide function definition on MSVC.
2030         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
2031         function pointer.
2032         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
2033
2034 2012-02-24  Bruno Haible  <bruno@clisp.org>
2035
2036         acosl: Provide function definition on MSVC.
2037         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
2038         function pointer.
2039         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
2040
2041 2012-02-24  Bruno Haible  <bruno@clisp.org>
2042
2043         asinl: Provide function definition on MSVC.
2044         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
2045         function pointer.
2046         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
2047
2048 2012-02-24  Bruno Haible  <bruno@clisp.org>
2049
2050         tanl: Provide function definition on MSVC.
2051         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
2052         function pointer.
2053         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
2054
2055 2012-02-24  Bruno Haible  <bruno@clisp.org>
2056
2057         cosl: Provide function definition on MSVC.
2058         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
2059         function pointer.
2060         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
2061
2062 2012-02-24  Bruno Haible  <bruno@clisp.org>
2063
2064         sinl: Provide function definition on MSVC.
2065         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
2066         function pointer.
2067         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
2068
2069 2012-02-24  Bruno Haible  <bruno@clisp.org>
2070
2071         logl: Provide function definition on MSVC.
2072         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
2073         function pointer.
2074         * lib/math.in.h (logl): Undefine if it does not exist as a function.
2075
2076 2012-02-24  Bruno Haible  <bruno@clisp.org>
2077
2078         expl: Provide function definition on MSVC.
2079         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
2080         function pointer.
2081         * lib/math.in.h (expl): Undefine if it does not exist as a function.
2082
2083 2012-02-24  Bruno Haible  <bruno@clisp.org>
2084
2085         sqrtl: Provide function definition on MSVC.
2086         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
2087         a function pointer.
2088         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
2089
2090 2012-02-24  Bruno Haible  <bruno@clisp.org>
2091
2092         ceill: Provide function definition on MSVC.
2093         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
2094         used as a function pointer.
2095         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
2096
2097 2012-02-24  Bruno Haible  <bruno@clisp.org>
2098
2099         floorl: Provide function definition on MSVC.
2100         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
2101         used as a function pointer.
2102         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
2103
2104 2012-02-24  Bruno Haible  <bruno@clisp.org>
2105
2106         ceilf: Provide function definition on MSVC.
2107         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
2108         used as a function pointer.
2109         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
2110
2111 2012-02-24  Bruno Haible  <bruno@clisp.org>
2112
2113         floorf: Provide function definition on MSVC.
2114         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
2115         used as a function pointer.
2116         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
2117
2118 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2119
2120         stdnoreturn: new module
2121         This implements a replacement for C11's <stdnoreturn.h>.
2122         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
2123         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
2124         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2125         * tests/test-stdnoreturn.c: New files.
2126
2127 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
2128
2129         regex: fix false multibyte matches in some regular expressions
2130         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
2131         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
2132         * lib/regex_internal.c (re_string_skip_chars):
2133         Fix miscomputation of remain_len that may cause incomplete
2134         multi-byte character and false match.
2135
2136 2012-02-24  Jim Meyering  <meyering@redhat.com>
2137
2138         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
2139         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
2140         uses with "==" *before* the call, e.g., 0 == strcmp (...)
2141         Remove now-unnecessary str''cmp obfuscation.
2142         Suggested by Akim Demaille.
2143
2144 2012-02-24  Bruno Haible  <bruno@clisp.org>
2145
2146         streq: Rename macro.
2147         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
2148         * NEWS: Mention the change.
2149         * lib/mbrtowc.c (mbrtowc): Update.
2150         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
2151         * lib/wcwidth.c (wcwidth): Update.
2152         Suggested by Akim Demaille and Jim Meyering.
2153
2154 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
2155
2156         regex: fix typo in definition of MIN
2157         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
2158         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
2159
2160 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2161             Bruno Haible  <bruno@clisp.org>
2162
2163         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
2164         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
2165         entries into a stack-allocated buffer directly.
2166         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
2167
2168 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2169             Bruno Haible  <bruno@clisp.org>
2170
2171         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
2172
2173          - There were several instances of this pattern:
2174
2175              for (;;) {
2176                n = acl (f, GETACLCNT, 0, NULL);
2177                [ allocate an array A of size N ]
2178                if (acl (f, GETACL, n, a) == n)
2179                  break;
2180              }
2181
2182            This loop might never terminate if some other process is constantly
2183            manipulating the file's ACL.  The loop should be rewritten to
2184            terminate.
2185
2186          - The acl (... GETACLNT ...) call is merely an optimization; its value
2187            is merely a hint as to how big to make the array.  A better
2188            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
2189            and just guess a reasonably-big size, growing the size and trying
2190            again if it's not large enough.  This guarantees termination, and
2191            saves a system call.
2192
2193         * lib/acl-internal.h: Include <limits.h>.
2194         (MIN, SIZE_MAX): New macros.
2195         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
2196         a stack-allocated buffer, and use malloc if it does not fit. Don't
2197         use GETACLCNT.
2198         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2199
2200 2012-02-19  Bruno Haible  <bruno@clisp.org>
2201
2202         acl: Fix endless loop on Solaris with vxfs.
2203         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
2204         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
2205         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2206         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
2207         * tests/test-sameacls.c (main)[Solaris]: Likewise.
2208         Reported by Bill Jones in
2209         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
2210
2211 2012-02-19  Bruno Haible  <bruno@clisp.org>
2212
2213         acl: Fix copy-acl test failure on Solaris 11 2011-11.
2214         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
2215         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
2216         that this function returns 0 in some more cases.
2217
2218 2012-02-19  Bruno Haible  <bruno@clisp.org>
2219
2220         acl: Update doc references.
2221         * doc/acl-resources.txt: Update links to Solaris documentation.
2222
2223 2012-02-19  Bruno Haible  <bruno@clisp.org>
2224
2225         Fix test failure in many locales on Solaris 11.
2226         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
2227         'tr' arguments.
2228         * tests/test-pipe-filter-ii1.c (main): Likewise.
2229         * build-aux/bootstrap (check_versions): Run 'tr' command with range
2230         expressions in the C locale.
2231         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2232         * m4/host-os.m4 (gl_HOST_OS): Likewise.
2233
2234 2012-02-19  Bruno Haible  <bruno@clisp.org>
2235
2236         gnulib-tool: Improve usage message.
2237         * gnulib-tool (func_usage): Move doc of --help and --version to the
2238         section "Operation modes".
2239
2240 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
2241
2242         README-release: make it easier to execute commands
2243         * top/README-release: break commands out on to separate lines.
2244
2245 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
2246
2247         GNUmakefile: simplify detection of unconfigured trees
2248         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
2249         whether the tree make is being run from is already configured or
2250         not.  Related simplifications.
2251
2252 2012-02-13  Simon Josefsson  <simon@josefsson.org>
2253
2254         * gnulib-tool (func_usage): Document --help and --version.
2255
2256 2012-02-11  Jim Meyering  <meyering@redhat.com>
2257
2258         bootstrap: don't exit 0 upon gnulib-tool failure
2259         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
2260         its exit status, not 0.
2261
2262 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
2263
2264         README-release: various improvements
2265         * top/README-release: Give a command to push changes for the
2266         release.  Add "distcheck" to list of other pre-release checks.
2267         Fix instance of "make stable" which should be "make TYPE".
2268
2269 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2270
2271         maint: replace FSF snail-mail addresses with URLs
2272         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
2273         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
2274         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
2275         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
2276         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
2277         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
2278         * lib/check-version.c, lib/check-version.h, lib/config.charset:
2279         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
2280         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
2281         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
2282         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
2283         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
2284         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
2285         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
2286         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
2287         * lib/glthread/thread.c, lib/glthread/thread.h:
2288         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
2289         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
2290         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
2291         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
2292         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
2293         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
2294         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
2295         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
2296         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
2297         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
2298         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
2299         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
2300         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
2301         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
2302         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
2303         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
2304         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
2305         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
2306         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
2307         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
2308         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
2309         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
2310         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
2311         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
2312         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
2313         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
2314         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
2315         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
2316         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
2317         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
2318         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
2319         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
2320         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
2321         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
2322         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
2323         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
2324         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
2325         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
2326         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
2327         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
2328         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
2329         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
2330         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
2331         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
2332         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
2333         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
2334         * tests/test-poll.c, tests/test-quotearg-simple.c:
2335         * tests/test-quotearg.c, tests/test-quotearg.h:
2336         * tests/test-round-ieee.c, tests/test-round1.c:
2337         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
2338         * tests/test-roundl-ieee.c, tests/test-roundl.c:
2339         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
2340         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
2341         * tests/test-strerror.c, tests/test-strerror_r.c:
2342         * tests/test-strsignal.c, tests/test-strverscmp.c:
2343         * tests/test-xmemdup0.c:
2344         Replace FSF snail mail addresses with URLs, as per GNU coding
2345         standards.  See glibc bug
2346         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
2347
2348 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2349
2350         README-release: capitalize a word and split a line
2351         * top/README-release: Fix punctuation and spacing.
2352
2353 2012-02-08  Akim Demaille  <demaille@gostai.com>
2354
2355         fatal-signal: use C prototypes (with explicit void).
2356         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
2357         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
2358
2359 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2360
2361         regex: spelling fix
2362         * lib/regexec.c: spelling fix
2363
2364         regex: rely on stdint.h for SIZE_MAX
2365         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
2366
2367 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2368
2369         regex: merge glibc changes
2370
2371         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
2372         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
2373         (init_word_char): Work even if bitset words are not exactly 32 or
2374         64 bits wide.  Don't assume there are no padding bits.
2375         * lib/regex.c [_LIBC]: Do not include <config.h>.
2376         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
2377         and -Wtype-limits.
2378         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
2379         needless disagreement with glibc.  All uses changed.  Define it to
2380         1 only if _GNU_SOURCE, to match glibc.
2381         (_REG_RM_NAME): Remove; no longer needed, since the names in
2382         question are now all protected by __USE_GNU.
2383         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
2384         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
2385         * lib/regex_internal.h (MIN): New macro.
2386
2387         2012-01-03 Ulrich Drepper <drepper@gmail.com>
2388         * lib/regcomp.c (init_word_char): Optimize regex a bit.
2389
2390         2011-12-30 Jakub Jelinek <jakub@redhat.com>
2391         * lib/regex_internal.c (re_string_fetch_byte_case):
2392         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
2393         is miscompiled, and it turns out it is because of an incorrect
2394         attribute on re_string_fetch_byte_case.  Unlike
2395         re_string_peek_byte_case, this one is really not pure, it modifies
2396         memory (increments pstr->cur_idx), and with the pure attribute GCC
2397         assumed it doesn't and it cached the presumed value of
2398         regexp->cur_idx in a variable across the
2399          for (;; ++i)
2400            {
2401              if (i >= BRACKET_NAME_BUF_SIZE)
2402                return REG_EBRACK;
2403              if (token->type == OP_OPEN_CHAR_CLASS)
2404                ch = re_string_fetch_byte_case (regexp);
2405              else
2406                ch = re_string_fetch_byte (regexp);
2407              if (re_string_eoi(regexp))
2408                return REG_EBRACK;
2409              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
2410                break;
2411              elem->opr.name[i] = ch;
2412            }
2413
2414         2011-11-29 Andreas Schwab <schwab@redhat.com>
2415         * lib/regcomp.c (build_equiv_class):
2416         Fix access after end of search string in regex matcher.
2417
2418         2011-11-12 Ulrich Drepper <drepper@redhat.com>
2419         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
2420
2421         2011-10-12 Ulrich Drepper <drepper@redhat.com>
2422         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
2423
2424         2011-10-11 Ulrich Drepper <drepper@redhat.com>
2425         * lib/regcomp.c (parse_branch, parse_sub_exp):
2426         More regex memory leak fixes and tests.
2427         (parse_sub_exp, parse_bracket_exp):
2428         Fix memory leak for some invalid regular expressions.
2429
2430         2011-05-28 Ulrich Drepper <drepper@gmail.com>
2431         * lib/regex_internal.c, lib/regexec.c:
2432         Fix unnecessary overallocation due to incomplete character.  When
2433         incomplete characters are found at the end of a string the code
2434         ran amok and allocated lots of memory.  Stricter limits are now in
2435         place.
2436
2437         2011-05-20 Reuben Thomas <rrt@sc3d.org>
2438         * lib/regex.h: Update documentation.
2439
2440         2011-05-16 Aharon Robbins <arnold@skeeve.com>
2441         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
2442
2443         2010-05-05 Andreas Schwab <schwab@redhat.com>
2444         * lib/regexec.c (find_collation_sequence_value):
2445         Fix lookup of collation sequence value during regexp matching.
2446
2447         2010-01-22 Ulrich Drepper <drepper@redhat.com>
2448         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
2449
2450         2008-01-16 Ulrich Drepper <drepper@redhat.com>
2451         * lib/regex.h: Cleanup namespace.
2452
2453         2007-11-26 Ulrich Drepper <drepper@redhat.com>
2454         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
2455
2456         2007-08-26 Ulrich Drepper <drepper@redhat.com>
2457         * lib/regex_internal.h: Prevent some declarations and definitions
2458         to be seen when used in tests.
2459
2460         2005-05-06 Ulrich Drepper <drepper@redhat.com>
2461         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
2462         __libc_lock_* macros if not _LIBC.
2463         (struct re_dfa_t): Add lock.
2464
2465 2012-02-07  Eric Blake  <eblake@redhat.com>
2466
2467         maint.mk: also prohibit lower-case @var@
2468         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
2469         lower case, like @top_srcdir@.
2470
2471 2012-02-04  Eric Blake  <eblake@redhat.com>
2472
2473         canonicalize: avoid uninitialized memory use
2474         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
2475         random '/' left in dest.
2476         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
2477
2478 2012-02-04  Bruno Haible  <bruno@clisp.org>
2479
2480         isatty: Fix test failure of ptsname_r on native Windows.
2481         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
2482         and don't set errno.
2483         (isatty): Test first whether fd is valid. Set errno when returning 0.
2484
2485 2012-02-04  Bruno Haible  <bruno@clisp.org>
2486
2487         spawn-pipe tests: Fix a NULL program name in a diagnostic.
2488         * tests/test-spawn-pipe-main.c: Include progname.h.
2489         (main): Invoke set_program_name.
2490         * modules/spawn-pipe-tests (Depends-on): Add progname.
2491
2492         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
2493         * tests/test-nonblocking-socket-main.c: Include progname.h.
2494         (main): Invoke set_program_name.
2495         * modules/nonblocking-socket-tests (Depends-on): Add progname.
2496
2497         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
2498         * tests/test-nonblocking-pipe-main.c: Include progname.h.
2499         (main): Invoke set_program_name.
2500         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
2501
2502 2012-02-04  Eric Blake  <eblake@redhat.com>
2503
2504         canonicalize-lgpl: fix // handling
2505         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
2506
2507         canonicalize: fix // handling
2508         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
2509         /// to //, since only // is special.
2510
2511 2012-02-04  Bruno Haible  <bruno@clisp.org>
2512
2513         ioctl: Fix test failure on native Windows.
2514         * lib/ioctl.c: Include msvc-nothrow.h.
2515         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
2516
2517 2012-02-04  Bruno Haible  <bruno@clisp.org>
2518
2519         fsync: Avoid test failure on native Windows.
2520         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
2521         read-only.
2522
2523 2012-02-04  Bruno Haible  <bruno@clisp.org>
2524
2525         sys_select: Avoid syntax error on OpenBSD 5.0.
2526         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
2527         currently being included, just include the system's <sys/select.h>.
2528
2529 2012-02-04  Bruno Haible  <bruno@clisp.org>
2530
2531         sys_select: Avoid syntax error on OpenBSD 5.0.
2532         * lib/sys_select.in.h: Include <signal.h> only after the include_next
2533         <sys/select.h>, not before.
2534         Reported by Jiri B <jirib@devio.us>.
2535
2536 2012-02-04  Bruno Haible  <bruno@clisp.org>
2537
2538         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
2539         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
2540         global variables.
2541         * tests/test-get-rusage-data.c (main): Likewise.
2542         Reported by Jim Meyering.
2543
2544 2012-02-04  Bruno Haible  <bruno@clisp.org>
2545
2546         stdioext: Fix last commit.
2547         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
2548
2549 2012-02-03  Bruno Haible  <bruno@clisp.org>
2550
2551         stdioext: Add tentative support for Plan9.
2552         * lib/stdio-impl.h: Include <errno.h>.
2553         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
2554         * lib/freadable.c (freadable): Likewise.
2555         * lib/fwritable.c (fwritable): Likewise.
2556         * lib/fbufmode.c (fbufmode): Likewise.
2557         * lib/freading.c (freading): Likewise.
2558         * lib/fwriting.c (fwriting): Likewise.
2559         * lib/freadptr.c (freadptr): Likewise.
2560         * lib/freadseek.c (freadptrinc): Likewise.
2561         * lib/freadahead.c (freadahead): Likewise.
2562         * lib/fpurge.c (fpurge): Likewise.
2563         * lib/fseeko.c (rpl_fseeko): Likewise.
2564         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
2565         Reported by Jens Staal <staal1978@gmail.com>.
2566
2567 2012-02-02  Jim Meyering  <meyering@redhat.com>
2568
2569         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
2570         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
2571         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
2572         not even to try to add the attribute.  Instead, add a pragma to suppress
2573         the suggestion/warning.
2574
2575 2012-01-31  Karl Berry  <karl@gnu.org>
2576
2577         setstate doc: typo.
2578         * doc/posix-functions/setstate.texi (setstate): { not (.
2579
2580 2012-01-31  Bruno Haible  <bruno@clisp.org>
2581
2582         popen: Make more robust on Windows.
2583         * lib/popen.c: On native Windows, use the _popen based code even if
2584         HAVE_POPEN is set.
2585         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
2586         environment variable on native Windows.
2587
2588 2012-01-30  Bruno Haible  <bruno@clisp.org>
2589
2590         pclose: Fix typo.
2591         * lib/stdio.in.h (pclose): Fix typo in warning message.
2592
2593 2012-01-30  Bruno Haible  <bruno@clisp.org>
2594
2595         doc about getlogin_r, setstate.
2596         * doc/posix-functions/getlogin_r.texi: List the incompatible
2597         declaration problem under "not fixed by gnulib".
2598         * doc/posix-functions/setstate.texi: Mention incompatible declaration
2599         problem on Solaris 11 and other platforms.
2600
2601 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
2602             Bruno Haible  <bruno@clisp.org>
2603
2604         poll tests: Make test more robust.
2605         * tests/test-poll.c: Include macros.h.
2606         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
2607         return value of various I/O operations.
2608         * modules/poll-tests (Files): Add tests/macros.h.
2609
2610 2012-01-30  Bruno Haible  <bruno@clisp.org>
2611
2612         sys_stat: Fix support for mingw64 and MSVC.
2613         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
2614         header files already do it.
2615         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
2616         stat itself.
2617         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
2618
2619 2012-01-30  Bruno Haible  <bruno@clisp.org>
2620
2621         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
2622         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
2623         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
2624
2625 2012-01-29  Bruno Haible  <bruno@clisp.org>
2626
2627         quotearg: Fix test failure on MacOS X 10.5.
2628         * tests/test-quotearg-simple.c: Include localcharset.h.
2629         (main): If the locale encoding is not ASCII, bypass the tests of
2630         locale_quoting_style and clocale_quoting_style.
2631         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
2632
2633 2012-01-29  Jim Meyering  <meyering@redhat.com>
2634
2635         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
2636         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
2637         detect uses of canonicalize_file_name.
2638
2639 2012-01-28  Bruno Haible  <bruno@clisp.org>
2640
2641         test-framework-sh: Fix test failure with AIX 7.1 diff.
2642         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
2643         in column 1, like 'diff -c' does.
2644         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
2645         whether 'diff -u' is used. Instead, test whether the output contains
2646         some '@' character.
2647
2648 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
2649
2650         strtoimax: eliminate need for stdint.h, inttypes.h checks
2651         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
2652         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
2653         the prerequisites for a recently-introduced strtoimax test.
2654         I guess this might cause strtoimax to be replaced when not
2655         strictly necessary on older hosts, but this shouldn't introduce
2656         any bugs and it should make Emacs 'configure' faster on typical
2657         modern hosts.  Problem discovered when importing the latest gnulib
2658         to an Emacs test version.
2659         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
2660
2661 2012-01-28  Bruno Haible  <bruno@clisp.org>
2662
2663         sys_time: Override 'struct timeval' on some native Windows platforms.
2664         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
2665         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
2666         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
2667         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
2668         needs to be overridden.
2669         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
2670         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
2671         * tests/test-sys_select.c: Check that the tv_sec member has the same
2672         size as a 'time_t'.
2673         * tests/test-sys_time.c: Likewise.
2674         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
2675         is set, set also REPLACE_GETTIMEOFDAY.
2676         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
2677         convert the resulting 'struct timeval' before returning.
2678         * lib/select.c: Include <sys/time.h>.
2679         (select, timeval): Undefine at the right place.
2680         * modules/select (Depends-on): Add sys_time.
2681         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
2682         some Windows platforms.
2683         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
2684
2685 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
2686
2687         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
2688         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
2689         an integer.
2690         * lib/fcntl.c (dupfd): Likewise.
2691         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
2692
2693 2012-01-28  Bruno Haible  <bruno@clisp.org>
2694
2695         fcntl: Avoid compilation error on native Windows.
2696         * modules/fcntl (Depends-on): Add 'close'.
2697
2698 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
2699
2700         select, poll, isatty: Avoid warnings on x86_64 mingw64.
2701         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
2702         pointer to an integer.
2703         * lib/poll.c (IsConsoleHandle): Likewise.
2704         * lib/isatty.c (IsConsoleHandle): Likewise.
2705
2706 2012-01-28  Jim Meyering  <meyering@redhat.com>
2707
2708         doc: clarify README-release
2709         * top/README-release: Clarify: you should make a point to have
2710         the latest stable versions of build tools in your PATH, and the
2711         reference to buildreq is solely for its list of tool names, not
2712         for its minimal-functional version numbers.
2713         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
2714
2715         maint.mk: use more readable (yet functionally equivalent) quoting
2716         It is common to quote a single quote in a single quoted string like
2717         this:  '...'\''...'.  Unless you know the idiom, that looks like
2718         gibberish, so prefer to double-quote the string when possible.
2719         Then you can use a more readable, lone single quote: "...'..."
2720         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
2721         "don't" is more readable than the equivalent 'don'\''t'.
2722         (sc_cast_of_x_alloc_return_value): Likewise.
2723         (sc_cast_of_alloca_return_value): Likewise.
2724         (sc_makefile_path_separator_check): Similar: use ":" in '...',
2725         rather than '\'':'\''.
2726
2727 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2728
2729         stdalign: relax _Alignof and tighten _Alignas test
2730         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
2731         as it was too strict: alignof must divide offsetof, but it need
2732         not equal offsetof.  Inspired by Joseph S. Myers's comment
2733         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
2734         Conversely, tighten the _Alignas test a bit, as the resulting
2735         alignment must be exactly 8.
2736
2737 2012-01-27  Bruno Haible  <bruno@clisp.org>
2738
2739         stdalign: Document the last change.
2740         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
2741
2742 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2743
2744         stdalign: check that alignof and offsetof are consistent
2745         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
2746         Problem reported for gnulib by Richard W.M. Jones in
2747         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
2748
2749 2012-01-27  Jim Meyering  <meyering@redhat.com>
2750
2751         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
2752         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
2753         convert a sequence with gaps to the minimal containing range.
2754         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
2755         * tests/test-update-copyright.sh: Test for this.
2756         The FSF confirmed it is ok to do this, assuming there is at
2757         least one significant change per year in the affected range:
2758         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
2759
2760 2012-01-26  Bruno Haible  <bruno@clisp.org>
2761
2762         pipe2: refine doc about thread-safety
2763         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
2764         multithread-safety problem.
2765         * doc/glibc-functions/accept4.texi: Likewise.
2766
2767 2012-01-26  Bruno Haible  <bruno@clisp.org>
2768
2769         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
2770         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
2771         In the test program, include <fcntl.h>, for O_RDONLY.
2772
2773 2012-01-26  Eric Blake  <eblake@redhat.com>
2774
2775         pipe2: document lack of thread-safety in replacement
2776         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
2777         issue in replacement.
2778         * doc/glibc-functions/accept4.texi (accept4): Likewise.
2779         Based on a report by Eric Wong.
2780
2781 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
2782             Bruno Haible  <bruno@clisp.org>
2783
2784         malloca: Avoid warnings on x86_64 mingw64.
2785         * lib/malloca.c: Include <stdint.h>.
2786         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
2787         * modules/malloca (Depends-on): Add stdint.
2788         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
2789
2790 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
2791
2792         obstack: remove __STDC__ conditionals
2793         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
2794         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
2795         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
2796         m4/include_next.m4 as the only gnulib-maintained places that still
2797         refer to __STDC__.
2798
2799 2012-01-24  Bruno Haible  <bruno@clisp.org>
2800
2801         havelib: Modern quoting.
2802         * build-aux/config.rpath: Quote 'like this', not `like this', as per
2803         the recent change to the GNU coding standards.
2804
2805 2012-01-24  Bruno Haible  <bruno@clisp.org>
2806
2807         stdint: Improve support for Android.
2808         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
2809         Reported by Simon Josefsson <simon@josefsson.org>.
2810
2811 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2812
2813         doc: omit trailing empty lines from INSTALL etc.
2814         * doc/Makefile (INSTALL): Omit trailing empty lines.
2815         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
2816         omit trailing empty lines.  This simplifies the build procedure.
2817
2818 2012-01-23  Jim Meyering  <meyering@redhat.com>
2819
2820         tests: avoid spurious warnings about gl_sockets_startup
2821         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
2822         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
2823         reporting a "statement with no effect".
2824         * tests/test-accept.c (main): Mark as "(void)".
2825         * tests/test-accept4.c (main): Likewise.
2826         * tests/test-bind.c (main): Likewise.
2827         * tests/test-connect.c (main): Likewise.
2828         * tests/test-getpeername.c (main): Likewise.
2829         * tests/test-getsockname.c (main): Likewise.
2830         * tests/test-getsockopt.c (main): Likewise.
2831         * tests/test-listen.c (main): Likewise.
2832         * tests/test-recv.c (main): Likewise.
2833         * tests/test-recvfrom.c (main): Likewise.
2834         * tests/test-send.c (main): Likewise.
2835         * tests/test-sendto.c (main): Likewise.
2836         * tests/test-setsockopt.c (main): Likewise.
2837         * tests/test-shutdown.c (main): Likewise.
2838
2839 2012-01-21  Bruno Haible  <bruno@clisp.org>
2840
2841         locale-fr.m4: Fix for Android.
2842         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
2843         failure of the test program on Bionic libc.
2844
2845 2012-01-21  Jim Meyering  <meyering@redhat.com>
2846
2847         bootstrap: fail when bootstrap_post_import_hook fails
2848         Otherwise, it's far too easy to miss diagnostics emitted
2849         between gnulib-tool's output and that of running configure.
2850         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
2851
2852 2012-01-17  Jim Meyering  <meyering@redhat.com>
2853
2854         maint: enable sc_trailing_blank
2855         * build-aux/pmccabe.css: Remove trailing blanks.
2856         * doc/acl-cygwin.txt: Likewise.
2857         * doc/gnu-oids.texi: Likewise
2858         * cfg.mk: Enable sc_trailing_blank.
2859         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
2860
2861 2012-01-17  Jim Meyering  <meyering@redhat.com>
2862
2863         maint: enable sc_prohibit_openat_without_use
2864         * cfg.mk: Enable sc_prohibit_openat_without_use.
2865         Exempt lib/selinux-at.c.
2866
2867 2012-01-17  Jim Meyering  <meyering@redhat.com>
2868
2869         maint: enable sc_prohibit_cloexec_without_use
2870         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
2871         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
2872
2873 2012-01-17  Jim Meyering  <meyering@redhat.com>
2874
2875         maint: enable sc_prohibit_intprops_without_use
2876         * cfg.mk: Enable sc_prohibit_intprops_without_use
2877         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
2878
2879 2012-01-17  Jim Meyering  <meyering@redhat.com>
2880
2881         maint: enable sc_prohibit_hash_pjw_without_use
2882         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
2883         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
2884         to match any use of \<hash_pjw\>, i.e., not necessarily with a
2885         following " (".
2886
2887 2012-01-17  Jim Meyering  <meyering@redhat.com>
2888
2889         maint: enable double-word-prohibiting rule
2890         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
2891         Exempt three files.
2892
2893 2012-01-17  Jim Meyering  <meyering@redhat.com>
2894
2895         maint: remove empty lines at EOF, but excluding modules/*
2896         Apply syntax rules at home as well as abroad.  Most changes
2897         were induced by running this:
2898           make srcdir=. _build-aux=build-aux -f top/maint.mk \
2899             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
2900             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
2901         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
2902         Exempt modules/* and two binary files.
2903         Also exempt doc/INSTALL*, per request from Bruno Haible.
2904         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
2905         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
2906         * doc/Copyright/request-assign.future: Likewise.
2907         * doc/Copyright/request-disclaim.changes: Likewise.
2908         * doc/INSTALL: Likewise.
2909         * doc/INSTALL.ISO: Likewise.
2910         * doc/INSTALL.UTF-8: Likewise.
2911         * doc/acl-cygwin.txt: Likewise.
2912         * doc/acl-resources.txt: Likewise.
2913         * doc/fdl-1.2.texi: Likewise.
2914         * doc/fdl-1.3.texi: Likewise.
2915         * doc/fdl.texi: Likewise.
2916         * lib/argp-pin.c: Likewise.
2917         * lib/round.c: Likewise.
2918         * lib/unicase/u16-totitle.c: Likewise.
2919         * lib/unictype/block_test.c: Likewise.
2920         * lib/uninorm/canonical-decomposition.c: Likewise.
2921         * m4/README: Likewise.
2922         * m4/relocatable-lib.m4: Likewise.
2923         * tests/test-isnand-nolibm.c: Likewise.
2924         * tests/test-isnand.c: Likewise.
2925         * tests/uninorm/NormalizationTest.txt: Likewise.
2926
2927 2012-01-17  Jim Meyering  <meyering@redhat.com>
2928
2929         maint: add framework to run syntax-check rules against gnulib sources
2930         * cfg.mk: New file, to disable all currently-failing tests.
2931         We'll enable them one by one, as they are made to pass.
2932         * Makefile (sc_maint): New rule.
2933
2934 2012-01-21  Bruno Haible  <bruno@clisp.org>
2935
2936         stdint: Add support for Android.
2937         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
2938         include the system's <stdint.h>.
2939         Reported by Simon Josefsson <simon@josefsson.org>.
2940
2941 2012-01-19  Jim Meyering  <meyering@redhat.com>
2942
2943         bootstrap: add bootstrap_post_import_hook
2944         Bison does still need something like the gnulib_mk_hook whose
2945         invocation I had to remove along with slurp in commit 767ccd40.
2946         Technically, we could get along without it, but doing so would
2947         have required living with a warning and a mandatory post-bootstrap
2948         automake rerun.
2949         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
2950         (bootstrap_post_import_hook): New function.
2951         Invoke it after gnulib-tool --import and before autoreconf.
2952
2953 2012-01-18  Jim Meyering  <meyering@redhat.com>
2954
2955         gitlog-to-changelog: don't use "no_"-prefixed variable name
2956         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
2957         to enable both --cluster and --no-cluster.  Change variable name,
2958         s/\$no_cluster/$cluster/, and reverse usage to match.
2959
2960         gitlog-to-changelog: use "||", not "or" in expressions
2961         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
2962         expressions.
2963
2964 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
2965
2966         gitlog-to-changelog: new option --no-cluster
2967         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
2968         clustering of adjacent commit messages.
2969
2970 2012-01-17  Jim Meyering  <meyering@redhat.com>
2971
2972         maint: spell file systems with two words, not one
2973         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
2974         two words, not one.
2975
2976 2012-01-16  Jim Meyering  <meyering@redhat.com>
2977
2978         bootstrap: add a FIXME comment to ensure we eventually remove the hack
2979         * build-aux/bootstrap (gnulib_tool_options): Add comment.
2980
2981 2012-01-16  Eric Blake  <eblake@redhat.com>
2982
2983         bootstrap: cater to autoconf 2.59
2984         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
2985         is not available.
2986
2987         bootstrap: properly check for libtool
2988         * build-aux/bootstrap (libtoolize): Also run libtool when older
2989         usage is detected.
2990
2991 2012-01-15  Bruno Haible  <bruno@clisp.org>
2992
2993         Improve support for MSVC 9.
2994         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
2995         clashes on MSVC.
2996         * lib/fcntl.in.h: Likewise.
2997         * lib/stdlib.in.h: Likewise.
2998         * lib/sys_stat.in.h: Likewise.
2999
3000 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3001
3002         gnupload: we hold the master copy of this script now
3003         For motivation and more information, see:
3004         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3005         * build-aux/gnupload: Make it clear in the heading comments that the
3006         master copy of this file is maintained by gnulib.  Since we are at
3007         it, bump its copyright year and ...
3008         ($scriptversion): ... the date in its version.
3009         ($usage): Patches and bug reports should be sent to the gnulib list,
3010         not the automake one.
3011         * config/srclist.txt: Don't try to sync 'gnupload' from automake
3012         anymore.
3013
3014 2012-01-15  Bruno Haible  <bruno@clisp.org>
3015
3016         Fix module 'random'.
3017         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
3018         initstate, setstate are declared.
3019
3020 2012-01-14  Bruno Haible  <bruno@clisp.org>
3021
3022         Tests for module 'random'.
3023         * modules/random-tests: New file.
3024         * tests/test-random.c: New file, based on tests/test-random_r.c.
3025
3026         New module 'random'.
3027         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
3028         declarations.
3029         * lib/random.c: New file, based on glibc/stdlib/random.c.
3030         * m4/random.m4: New file.
3031         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
3032         HAVE_RANDOM.
3033         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
3034         * modules/random: New file.
3035         * config/srclist.txt: Add an entry for random.c.
3036         * doc/posix-functions/random.texi: Mention the 'random' module.
3037         * doc/posix-functions/initstate.texi: Likewise.
3038         * doc/posix-functions/setstate.texi: Likewise.
3039         * doc/posix-functions/srandom.texi: Likewise.
3040
3041 2012-01-12  Bruno Haible  <bruno@clisp.org>
3042
3043         random_r: Use common idioms.
3044         * lib/random_r.c: Include <stdlib.h> first.
3045
3046         random_r: Override incompatible API on AIX, OSF/1.
3047         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
3048         Override the system function if REPLACE_RANDOM_R is 1.
3049         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
3050         and OSF/1, set REPLACE_RANDOM_R.
3051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
3052         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
3053         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
3054         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
3055         * doc/glibc-functions/random_r.texi: Likewise.
3056         * doc/glibc-functions/setstate_r.texi: Likewise.
3057
3058         random_r: Support for MSVC 9.
3059         * lib/random_r.c: Include stdint.h, not inttypes.h.
3060
3061 2012-01-12  Eric Blake  <eblake@redhat.com>
3062
3063         inet_ntop: guard extra work by IF_LINT
3064         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
3065         better code generation when not checking for warnings.
3066         Suggested by Paul Eggert and Jim Meyering.
3067
3068         strptime: fix regression on mingw
3069         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
3070         Fix regression.  Reported by Bruno Haible.
3071
3072 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
3073             Bruno Haible  <bruno@clisp.org>
3074
3075         copy-file: add error-code-returning variant.
3076         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
3077         (qcopy_file_preserving): New declaration.
3078         * lib/copy-file.c (qcopy_file_preserving): Renamed from
3079         copy_file_preserving. Change return type to 'int'. Don't emit an error
3080         message here.
3081         (copy_file_preserving): New function.
3082         * tests/test-copy-file.c: Include <stdlib.h>.
3083         (main): Test qcopy_file_preserving if the environment variable
3084         NO_STDERR_OUTPUT is set.
3085         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
3086         with NO_STDERR_OUTPUT
3087         * tests/test-copy-file-2.sh: Likewise.
3088
3089 2012-01-10  Bruno Haible  <bruno@clisp.org>
3090
3091         copy-file: Use 'quote' module consistently.
3092         * lib/copy-file.c (copy_file_preserving): Use quote().
3093
3094         copy-file: Refactor.
3095         * lib/copy-file.c: Include quote.h.
3096         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
3097         message here.
3098         * modules/copy-file (Depends-on): Add quote.
3099
3100         acl: Export qcopy_acl.
3101         * lib/acl.h (qcopy_acl): New declaration.
3102         * lib/copy-acl.c (qcopy_acl): Make non-static.
3103
3104         acl: Rename a local variable.
3105         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
3106
3107         acl: Align return values of copy_acl and qcopy_acl.
3108         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
3109         maybe < -1.
3110
3111 2012-01-11  Eric Blake  <eblake@redhat.com>
3112
3113         strptime: silence gcc warnings
3114         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
3115         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
3116         Reported by Daniel P. Berrange.
3117
3118         inet_ntop: silence gcc warning
3119         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
3120         Reported by Daniel P. Berrange.
3121
3122 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
3123
3124         getloadavg test: skip the test on GNU/Linux without /proc mounted
3125         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
3126         file.  When /proc is not mounted, it always fails with ENOENT.
3127         * tests/test-getloadavg.c (main): Treat ENOENT return code from
3128         getloadavg(3) the same way as ENOSYS and ENOTSUP.
3129
3130 2012-01-10  Bruno Haible  <bruno@clisp.org>
3131
3132         regex: Avoid link error on MSVC 9.
3133         * modules/regex (Depends-on): Add wctype.
3134
3135 2012-01-10  Bruno Haible  <bruno@clisp.org>
3136
3137         doc: Mention --with-tests option.
3138         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
3139         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
3140         --with-tests.
3141         Reported by Reuben Thomas.
3142
3143 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
3144
3145         users.txt: order package names lexicographically.
3146         * users.txt: Order package names lexicographically.
3147
3148 2012-01-10  Jim Meyering  <meyering@redhat.com>
3149
3150         maint.mk: fix description in comment
3151         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
3152
3153         ignore-value: remove deprecated ignore_ptr function
3154         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
3155         * NEWS: Note this.
3156
3157 2012-01-09  Jim Meyering  <meyering@redhat.com>
3158
3159         test-init.sh: avoid a subshell
3160         * tests/test-init.sh: Remove protective subshell.
3161         Suggested by Bernhard Voelker.  While a subshell is normally
3162         required to protect against older shells (Solaris, FreeBSD) that
3163         warn about a missing program before performing redirection, the
3164         shell-selection tests performed by init.sh probably exclude any
3165         offending shell.
3166
3167 2012-01-08  Bruno Haible  <bruno@clisp.org>
3168
3169         setlocale tests: Avoid test failure on Solaris 11 2011-11.
3170         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
3171         variable.
3172
3173 2012-01-08  Bruno Haible  <bruno@clisp.org>
3174
3175         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
3176         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3177         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3178         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
3179         macro.
3180         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
3181         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3182         * lib/spawn_faction_addopen.c: Add workaround implementation if
3183         HAVE_WORKING_POSIX_SPAWN.
3184         * modules/spawn (Makefile): Substitute
3185         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3186         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
3187         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
3188         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3189         (Depends-on): Update conditions.
3190         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
3191         the Solaris 11 bug.
3192
3193 2012-01-08  Bruno Haible  <bruno@clisp.org>
3194
3195         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
3196         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3197         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3198         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
3199         macro.
3200         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
3201         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3202         * lib/spawn_faction_adddup2.c: Add workaround implementation if
3203         HAVE_WORKING_POSIX_SPAWN.
3204         * modules/spawn (Makefile): Substitute
3205         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3206         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
3207         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
3208         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3209         (Depends-on): Update conditions.
3210         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
3211         the Solaris 11 bug.
3212
3213 2012-01-08  Bruno Haible  <bruno@clisp.org>
3214
3215         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
3216         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3217         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3218         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
3219         HAVE_WORKING_POSIX_SPAWN.
3220         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
3221         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
3222         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3223         * lib/spawn_faction_addclose.c: Add workaround implementation if
3224         HAVE_WORKING_POSIX_SPAWN.
3225         * modules/spawn (Makefile): Substitute
3226         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3227         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
3228         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
3229         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3230         (Depends-on): Update conditions.
3231         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
3232         the Solaris 11 bug.
3233
3234 2012-01-08  Bruno Haible  <bruno@clisp.org>
3235
3236         doc: Update for Solaris 11 2011-11.
3237         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
3238         * m4/printf.m4: Update comments.
3239
3240 2012-01-08  Bruno Haible  <bruno@clisp.org>
3241
3242         mktime: Avoid compilation error on Solaris 11.
3243         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
3244
3245 2012-01-08  Bruno Haible  <bruno@clisp.org>
3246
3247         doc: Small fix.
3248         * doc/posix-headers/nl_types.texi: Correct platforms list.
3249
3250 2012-01-08  Simon Josefsson  <simon@josefsson.org>
3251
3252         Add lgpl-3.0 module.
3253         * MODULES.html.sh (Support for building documentation): Add
3254         lgpl-3.0.
3255         * modules/lgpl-3.0: New file.
3256
3257 2012-01-08  Jim Meyering  <meyering@redhat.com>
3258
3259         select.c: indent with spaces, not TABs
3260         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
3261
3262 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3263
3264         quotearg: do not use grave accent for left quote
3265         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
3266         locale_quoting_style.
3267         (quotearg_buffer_restyled): Fix example.
3268         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
3269
3270 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3271
3272         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
3273         Most programs do not have translation catalogs for English and much
3274         less separate catalogs for British and American English.  Drop the
3275         suggestion to translators about these two, and provide it
3276         automatically for Unicode locales.  Like most programs, even those
3277         using American English, we use single quotation marks.  This conflicts
3278         with the American typographic convention, but works better when you
3279         cite the entire error message within double quotes.  It also tries not
3280         to clash with established practice and with what non-gnulib programs
3281         will usually do.
3282         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
3283         using an UTF-8 or GB-18030 locale.  The list of other locales with
3284         quotes was provided by Bruno Haible.
3285         (quotearg_buffer_restyled): Adjust instructions to translators.
3286         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
3287         text, since this would be wrong when using Unicode.
3288         * modules/quotearg: Depend on c-strcaseeq.
3289
3290 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3291
3292         quotearg: fix Wikipedia link
3293         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
3294
3295 2012-01-07  Simon Josefsson  <simon@josefsson.org>
3296
3297         Fix for mingw with MSVC9.
3298         * m4/ld-version-script.m4: Check that compiler rejects version
3299         scripts with syntax errors.  Reported by Bruno Haible
3300         <bruno@clisp.org>.
3301
3302 2012-01-06  Bruno Haible  <bruno@clisp.org>
3303
3304         Talk about "native Windows API", not "Woe32".
3305         * lib/accept4.c: Update comments to mention native Windows.
3306         * lib/execute.c: Likewise.
3307         * lib/fatal-signal.c: Likewise.
3308         * lib/localcharset.c: Likewise.
3309         * lib/nanosleep.c: Likewise.
3310         * lib/nl_langinfo.c: Likewise.
3311         * lib/pclose.c: Likewise.
3312         * lib/pipe-filter-gi.c: Likewise.
3313         * lib/pipe-filter-ii.c: Likewise.
3314         * lib/pipe.c: Likewise.
3315         * lib/pipe2.c: Likewise.
3316         * lib/popen.c: Likewise.
3317         * lib/progreloc.c: Likewise.
3318         * lib/relocatable.c: Likewise.
3319         * lib/sigaction.c: Likewise.
3320         * lib/sigprocmask.c: Likewise.
3321         * lib/spawn-pipe.h: Likewise.
3322         * lib/spawn-pipe.c: Likewise.
3323         * lib/spawni.c: Likewise.
3324         * lib/stat-time.h: Likewise.
3325         * lib/w32spawn.h: Likewise.
3326         * tests/test-isatty.c: Likewise.
3327         * lib/config.charset: More comments.
3328         * doc/gnulib-intro.texi: Mention native Windows.
3329         * doc/posix-functions/_Exit_C99.texi: Likewise.
3330         * doc/posix-headers/fcntl.texi: Likewise.
3331
3332 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
3333
3334         argp: Avoid crash if translator uses % characters in a translation.
3335         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
3336         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
3337
3338 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
3339
3340         doc: C11 and C++11 are now official
3341         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
3342         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
3343         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
3344         * modules/stdalign:
3345         Replace references to draft C1X to C11, and to draft C++0X to C++11.
3346
3347 2012-01-06  Bruno Haible  <bruno@clisp.org>
3348
3349         uc-is-grapheme-break tests: Tweak.
3350         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
3351         message.
3352
3353 2012-01-06  Bruno Haible  <bruno@clisp.org>
3354
3355         test-init.sh: correct the test for diff -u
3356         * tests/test-init.sh: Also redirect stdout to /dev/null.
3357
3358 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
3359
3360         Use ', not `, for quoting output.
3361         * build-aux/announce-gen (usage, sizes, print_news_deltas)
3362         (print_changelog_deltas, get_tool_versions, main program):
3363         * build-aux/git-version-gen:
3364         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
3365         * build-aux/move-if-change (help):
3366         * build-aux/useless-if-before-free (usage, main program):
3367         * check-module (parse_module_file, usage)
3368         (find_included_lib_files, check_module):
3369         * lib/argmatch.c (main) [TEST]:
3370         * lib/argp-help.c (_help):
3371         * lib/getopt1.c (main) [TEST]:
3372         * lib/git-merge-changelog.c (usage):
3373         * lib/xstrtol-error.c (xstrtol_error):
3374         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
3375         * m4/argz.m4 (gl_FUNC_ARGZ):
3376         * m4/bison.m4 (gl_BISON):
3377         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
3378         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
3379         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
3380         * m4/fpending.m4 (gl_PREREQ_FPENDING):
3381         * m4/gc-random.m4 (gl_GC_RANDOM):
3382         * m4/intl.m4 (gt_CHECK_DECL):
3383         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
3384         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
3385         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
3386         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
3387         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
3388         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
3389         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
3390         * tests/test-dirname.c (main):
3391         * tests/test-getpass.c (main):
3392         * tests/test-iconvme.c (main):
3393         * tests/test-parse-datetime.c (LOG):
3394         * tests/test-xstrtoimax.sh:
3395         * tests/test-xstrtol.sh:
3396         * tests/test-xstrtoll.sh:
3397         * tests/test-xstrtoumax.sh:
3398         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
3399         * top/GNUmakefile (abort-due-to-no-makefile):
3400         Quote 'like this', not `like this', as per the recent change to
3401         the GNU coding standards.
3402
3403 2012-01-05  Bruno Haible  <bruno@clisp.org>
3404
3405         strtoimax: Don't force a replacement on systems where intmax_t is int.
3406         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
3407         'intmax_t' is not larger than 'int'.
3408         Reported by Pádraig Brady <P@draigBrady.com>.
3409
3410 2012-01-05  Bruno Haible  <bruno@clisp.org>
3411
3412         doc: Mention NetBSD bugs.
3413         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
3414         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
3415
3416 2012-01-05  Bruno Haible  <bruno@clisp.org>
3417
3418         strtoumax tests: Enhance tests.
3419         * tests/test-strtoumax.c (main): Add tests for large values.
3420
3421 2012-01-05  Bruno Haible  <bruno@clisp.org>
3422
3423         strtoimax: Work around AIX 5.1 bug.
3424         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
3425         definition.
3426         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
3427         Set HAVE_STRTOIMAX.
3428         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
3429         REPLACE_STRTOIMAX.
3430         * modules/inttypes-incomplete (Makefile.am): Substitute
3431         REPLACE_STRTOIMAX.
3432         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
3433         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
3434         (Depends-on): Update conditions.
3435         * tests/test-strtoimax.c (main): Add tests for large values.
3436         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
3437
3438 2012-01-05  Bruno Haible  <bruno@clisp.org>
3439
3440         inttypes: Modernize.
3441         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
3442         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
3443         (Makefile.am): Update inttypes.h rule.
3444
3445 2012-01-05  Jim Meyering  <meyering@redhat.com>
3446
3447         init.sh: don't waste a subshell just to redirect stderr
3448         * tests/init.sh: In testing for diff -u and diff -c, use a
3449         stderr-redirecting exec inside `...` rather than a subshell.
3450
3451         test-init.sh: avoid failure on HP-UX 11.00
3452         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
3453         resolves to diff -c or cmp.  Reported by Bruno Haible.
3454
3455 2012-01-05  Bruno Haible  <bruno@clisp.org>
3456
3457         Tests for module 'strtoull'.
3458         * modules/strtoull-tests: New file.
3459         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
3460
3461 2012-01-05  Bruno Haible  <bruno@clisp.org>
3462
3463         Tests for module 'strtoll'.
3464         * modules/strtoll-tests: New file.
3465         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
3466
3467 2012-01-05  Bruno Haible  <bruno@clisp.org>
3468
3469         Tests for module 'strtoul'.
3470         * modules/strtoul-tests: New file.
3471         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
3472
3473 2012-01-05  Bruno Haible  <bruno@clisp.org>
3474
3475         Tests for module 'strtol'.
3476         * modules/strtol-tests: New file.
3477         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
3478
3479 2012-01-04  Jim Meyering  <meyering@redhat.com>
3480
3481         test-init.sh: accommodate Solaris 5.10's different diff -u output
3482         * tests/test-init.sh: Also exempt @@ lines from the comparison
3483         of diff output, since Solaris 5.10 and GNU diff formats differ.
3484         Reported by Stefano Lattarini.
3485
3486 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
3487
3488         test-posixtm: don't assume signed integer wraparound
3489         * tests/test-posixtm.c (main): Don't assume wraparound semantics
3490         after signed integer overflow.  Inspired by (though it may not
3491         fix) Bruno Haible's bug report in
3492         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
3493
3494         Spell out "Windows 9x" and "Windows XP".
3495         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
3496         "Windows 9x" and "WinXP" with "Windows XP".
3497
3498 2012-01-04  Jim Meyering  <meyering@redhat.com>
3499
3500         test-vc-list-files-cvs.sh: remove obsolete comment
3501         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
3502         double exit.  Now that's all encapsulated via skip_ and Exit.
3503
3504 2012-01-04  Bruno Haible  <bruno@clisp.org>
3505
3506         Talk about "native Windows API", not "Win32".
3507         * lib/classpath.c: Update comments to mention native Windows.
3508         * lib/csharpexec.c: Likewise.
3509         * lib/dup2.c: Likewise.
3510         * lib/error.c: Likewise.
3511         * lib/fcntl.c: Likewise.
3512         * lib/filename.h: Likewise.
3513         * lib/findprog.c: Likewise.
3514         * lib/get-rusage-as.c: Likewise.
3515         * lib/get-rusage-data.c: Likewise.
3516         * lib/getpagesize.c: Likewise.
3517         * lib/javaexec.c: Likewise.
3518         * lib/msvc-inval.c: Likewise.
3519         * lib/msvc-nothrow.c: Likewise.
3520         * lib/nanosleep.c: Likewise.
3521         * lib/nonblocking.c: Likewise.
3522         * lib/printf-parse.c: Likewise.
3523         * lib/setlocale.c: Likewise.
3524         * lib/sigaction.c: Likewise.
3525         * lib/strerror_r.c: Likewise.
3526         * lib/tmpdir.c: Likewise.
3527         * lib/vasnprintf.c: Likewise.
3528         * lib/w32spawn.h: Likewise.
3529         * lib/waitpid.c: Likewise.
3530         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
3531         * m4/locale-ar.m4: Likewise.
3532         * m4/locale-fr.m4: Likewise.
3533         * m4/locale-ja.m4: Likewise.
3534         * m4/locale-tr.m4: Likewise.
3535         * m4/locale-zh.m4: Likewise.
3536         * m4/printf.m4: Likewise.
3537         * tests/test-cloexec.c: Likewise.
3538         * tests/test-copy-acl.sh: Likewise.
3539         * tests/test-copy-file.sh: Likewise.
3540         * tests/test-file-has-acl.sh: Likewise.
3541         * tests/test-set-mode-acl.sh: Likewise.
3542         * tests/test-dup-safer.c: Likewise.
3543         * tests/test-dup2.c: Likewise.
3544         * tests/test-dup3.c: Likewise.
3545         * tests/test-fcntl.c: Likewise.
3546         * tests/test-nonblocking-pipe.h: Likewise.
3547         * tests/test-nonblocking-socket.h: Likewise.
3548         * tests/test-pipe.c: Likewise.
3549         * tests/test-pipe2.c: Likewise.
3550         * tests/test-spawn-pipe-child.c: Likewise.
3551         * doc/acl-resources.txt: Likewise.
3552         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
3553         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
3554         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
3555         * lib/localcharset.c: Update comments to mention native Windows.
3556         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
3557         * lib/localename.c: Likewise.
3558         * lib/progreloc.c: Likewise.
3559         * lib/relocatable.c: Likewise.
3560         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
3561         (windows_compute_revents): Renamed from win32_compute_revents.
3562         (windows_compute_revents_socket): Renamed from
3563         win32_compute_revents_socket.
3564         * lib/select.c: Update comments to mention native Windows.
3565         (windows_poll_handle): Renamed from win32_poll_handle.
3566         * m4/threadlib.m4: Update comments to mention native Windows.
3567         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
3568         --enable-threads=windows instead of --enable-threads=win32. Set
3569         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
3570         * lib/glthread/lock.h: Update comments to mention native Windows.
3571         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
3572         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
3573         USE_WIN32_THREADS.
3574         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
3575         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
3576         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
3577         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
3578         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
3579         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
3580         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
3581         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
3582         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
3583         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
3584         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
3585         * tests/test-tls.c: Likewise.
3586         Rationale:
3587         Microsoft renamed the "Win32 API" to "Windows API", as it is available
3588         on both 32-bit and 64-bit Windows systems.
3589         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
3590         line of distinction is between "native Windows" on one side and Unix/
3591         POSIX systems on the other side. More details in
3592         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
3593         Suggested by Paul Eggert.
3594
3595 2012-01-03  Bruno Haible  <bruno@clisp.org>
3596
3597         isatty: Support for MSVC 9.
3598         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
3599         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
3600         (_isatty_nothrow): New function.
3601         (isatty): Use it instead of _isatty.
3602         (IsConsoleHandle): Add comment, from Paolo Bonzini.
3603         * lib/poll.c (IsConsoleHandle): Likewise.
3604         * lib/select.c (IsConsoleHandle): Likewise.
3605         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
3606         (gl_PREREQ_ISATTY): New macro.
3607         * modules/isatty (Depends-on): Add msvc-inval.
3608         (configure.ac): Invoke gl_PREREQ_ISATTY.
3609
3610 2012-01-03  Jim Meyering  <meyering@redhat.com>
3611
3612         maint.mk: remove temporary transition aid from over 1.5 years ago
3613         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
3614         purpose was to aid in the transition (avoiding silent malfunction)
3615         from that old name to the new _sc_search_regexp.  This shim was
3616         added by commit 219c504b.
3617
3618         init.sh: do not try to accommodate compare arguments starting with "-"
3619         * tests/init.sh (compare_dev_null_): Do not try to accommodate
3620         compare arguments that start with "-".  Besides, we do not worry
3621         about this when invoking diff or cmp; why start now with sed?
3622         Using "--" to separate options from argument would trigger sed
3623         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
3624         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
3625
3626 2012-01-02  Bruno Haible  <bruno@clisp.org>
3627
3628         Enhance tests for module 'isatty'.
3629         * modules/isatty-tests (Depends-on): Add pipe-posix.
3630         * tests/test-isatty.c: Include <fcntl.h>.
3631         (DEV_NULL): New macro.
3632         (main): Test the resut of isatty() also on regular files, pipes, and
3633         /dev/null.
3634
3635         New module 'isatty'.
3636         * lib/unistd.in.h (isatty): New declaration.
3637         * lib/isatty.c: New file, based on an idea of
3638         Bastien Roucariès <roucaries.bastien@gmail.com>.
3639         * m4/isatty.m4: New file.
3640         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
3641         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
3642         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
3643         REPLACE_ISATTY.
3644         * modules/isatty: New file.
3645         * doc/posix-functions/isatty.texi: Mention the new module.
3646         Suggested by Paolo Bonzini.
3647
3648 2012-01-02  Bruno Haible  <bruno@clisp.org>
3649
3650         canonicalize: Tweak 2011-12-29 commit.
3651         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
3652         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
3653
3654 2012-01-02  Jim Meyering  <meyering@redhat.com>
3655
3656         gitlog-to-changelog: describe input syntax in --help output
3657         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
3658
3659         gitlog-to-changelog: fix typo in --help: show backslash before email @
3660         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
3661         in sources, but not in actual output.
3662
3663 2011-12-30  Jim Meyering  <meyering@redhat.com>
3664
3665         gitlog-to-changelog: don't malfunction when name contains %-directive
3666         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
3667         in a name string cause trouble.  E.g., with a user name of "%s",
3668         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
3669
3670 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
3671
3672         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
3673         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
3674         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
3675         the "  (tiny change)" notation that is appended to the standard
3676         ChangeLog "date  name  email" header line.
3677
3678 2012-01-01  Jim Meyering  <meyering@redhat.com>
3679
3680         test-framework-sh: init.sh: fix "make dist" failure
3681         When using gnulib-tool's --with-tests option and any module that
3682         depends on test-framework-sh, "make dist" would fail due to the
3683         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
3684         in the gltests directory, and not in the gllib/ directory.
3685         One way to work around that is to move the EXTRA_DIST += init.sh
3686         from the primary module to the -tests one:
3687         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
3688         * modules/test-framework-sh (Makefile.am): ...not here.
3689         Reported by Tom G. Christensen in
3690         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
3691
3692         version-etc: update copyright year reported by --version
3693         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
3694
3695 2011-12-31  Pádraig Brady  <P@draigBrady.com>
3696
3697         canonicalize: only stat() if required
3698         * lib/canonicalize.c (canonicalize_filename_mode):
3699         Avoid calling l?stat() when both CAN_MISSING,
3700         and CAN_NOLINKS are set, as we neither need
3701         to resolve symlinks or test component existence.
3702
3703 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
3704
3705         doc: cover st_ino issues once; add OpenVMS etc.
3706         * doc/posix-functions/stat.texi (stat):
3707         * doc/posix-functions/lstat.texi (lstat):
3708         * doc/posix-functions/fstatat.texi (fstatat):
3709         * doc/posix-functions/fstat.texi (fstat):
3710         Move general 'struct stat' stuff to sys_stat.texi,
3711         leaving behind a pointer.
3712         * doc/posix-headers/sys_stat.texi (sys/stat.h):
3713         Merge duplicate info about 'struct stat' problems into here.
3714         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
3715         and suggest partial workarounds.
3716
3717         same-inode: port to OpenVMS
3718         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
3719         three st_ino values.
3720
3721 2011-12-30  Pádraig Brady  <P@draigBrady.com>
3722
3723         canonicalize: fix references to stat() and lstat()
3724         * lib/canonicalize.c (canonicalize_filename_mode):
3725         Ensure references always resolve to a replacement
3726         function if required (even via a macro).
3727
3728 2011-12-30  Jim Meyering  <meyering@redhat.com>
3729
3730         gitlog-to-changelog: remove a little duplication
3731         * build-aux/gitlog-to-changelog (main): Grep @lines once,
3732         rather than twice.
3733
3734 2011-12-29  Pádraig Brady  <P@draigBrady.com>
3735
3736         canonicalize: add support for not resolving symlinks
3737         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
3738         indicate we don't want to follow symlinks.  Also
3739         provide CAN_MODE_MASK to aid setting these existing
3740         mutually exclusive values.
3741         * lib/canonicalize.c (canonicalize_filename_mode):
3742         Extract the flags from can_mode parameter, which
3743         are currently just used to select between stat()
3744         and lstat().  Also ensure that mutually exclusive
3745         values are flagged immediately as invalid.
3746         * tests/test-canonicalize.c: Verify symlinks are
3747         not followed, and that invalid flag combinations
3748         are diagnosed.
3749
3750 2011-12-25  Jim Meyering  <meyering@redhat.com>
3751
3752         gitlog-to-changelog: do not clump multi-paragraph entries
3753         Identical header lines (date,name,email+coauthors) are suppressed,
3754         thus putting all entries with those same characteristics under
3755         a single header.  However, when a log entry consists of two or
3756         more paragraphs, it may not be clear where it starts and ends.
3757         This change makes it so that such an entry is always separated
3758         from others by a header line, even when that header would
3759         otherwise be suppressed.
3760         * build-aux/gitlog-to-changelog: Implement the above.
3761         Inspired by a related request from Stefano Lattarini in
3762         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
3763
3764 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
3765
3766         announce-gen: fix `cmd' typo in diagnostic
3767         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
3768         diagnostic: a missing '$' meant that the command was not output.
3769
3770 2011-12-23  Jim Meyering  <meyering@redhat.com>
3771
3772         test-framework-sh: distribute init.sh
3773         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
3774         Otherwise, "make -C gnulib-tests check" (at least in grep) would
3775         fail due to the lack of init.sh.
3776
3777         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
3778         * modules/atexit-tests: Rather than listing tests/init.sh,
3779         now that there's a module for it, simply depend on that new module.
3780         * modules/closein-tests: Likewise.
3781         * modules/exclude-tests: Likewise.
3782         * modules/getcwd-tests: Likewise.
3783         * modules/perror-tests: Likewise.
3784         * modules/pread-tests: Likewise.
3785         * modules/pwrite-tests: Likewise.
3786         * modules/vc-list-files-tests: Likewise.
3787         * modules/verify-tests: Likewise.
3788         * modules/xalloc-die-tests: Likewise.
3789         * modules/xstrtoimax-tests: Likewise.
3790         * modules/xstrtol-tests: Likewise.
3791         * modules/xstrtoll-tests: Likewise.
3792         * modules/xstrtoumax-tests: Likewise.
3793         * modules/yesno-tests: Likewise.
3794
3795 2011-12-22  Jim Meyering  <meyering@redhat.com>
3796
3797         test-framework-sh: add minimal tests of init.sh's compare function
3798         * modules/test-framework-sh-tests: New file.
3799         * tests/test-init.sh: New file.
3800
3801         test-framework-sh: new module
3802         * modules/test-framework-sh: New file.
3803         * MODULES.html.sh (Support for maintaining and releasing projects):
3804         List it.
3805
3806         init.sh: do not emit simulated diff output to stderr
3807         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
3808
3809 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3810
3811         .gitignore: ignore gnulib.dvi and regex.info
3812         * doc/.gitignore:add gnulib.dvi and regex.info
3813
3814 2011-12-22  Jim Meyering  <meyering@redhat.com>
3815
3816         init.sh: correct previous change
3817         * tests/init.sh (compare): My previous change was wrong.
3818         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
3819
3820         init.sh: avoid unwarranted test failure when using "set -e"
3821         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
3822         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
3823         a use like "compare exp out" would get evoke an unconditional failure.
3824
3825 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
3826
3827         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
3828         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
3829         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
3830         autoreconf that did not.
3831         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
3832         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
3833
3834 2011-12-17  Jim Meyering  <meyering@redhat.com>
3835
3836         bootstrap: remove some now-unneeded code
3837         This script arose back when gnulib-tool was young.
3838         Since then, it has seen improvements that render much of this
3839         script unnecessary.  In particular, it can now make symlinks
3840         to the files it uses.  Also, I no longer see as much value in
3841         marking files as read-only via comments.
3842         If you relied on the symlink-creation feature of the preceding
3843         version of this script, you can get most of that functionality
3844         by adding the --symlink option to the definition of
3845         gnulib_tool_option_extras in your bootstrap.conf file.
3846         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
3847         Run autopoint and libtoolize *before* gnulib-tool.
3848         After it, run an abbreviated autoreconf, rather than a loop around
3849         all tools.
3850         (slirp, bt_mark_as_generated): Remove functions.
3851
3852 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
3853
3854         ftoastr: fix typo
3855         * lib/ftoastr.h: Fix misspelling in comment.
3856
3857 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
3858
3859         * top/README-release: fix punctuation.
3860
3861 2011-12-17  Jim Meyering  <meyering@redhat.com>
3862
3863         bootstrap: correct the recent buildreq change
3864         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
3865         had no effect.
3866         * build-aux/bootstrap (buildreq): Bracket each search term with
3867         "*...*", so that the shell "case" statement works as intended.
3868         Add comments.
3869
3870 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
3871
3872         build: let bootstrap resort to wget when downloading .po files
3873         * build-aux/bootstrap (download_po_files): Fallback to wget when
3874         downloading the .po files via rsync fails.  This is necessary to
3875         bootstrap from behind a strict firewall.
3876
3877 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
3878
3879         stdint: don't assume C++11 when compiling with g++
3880         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
3881         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
3882         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
3883         work also in C++ before C++11, as that improperly inhibits
3884         generating a substitute stdint.h for that case.
3885
3886 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
3887
3888         alloca: protect comment from gnulib-tool
3889         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
3890         that gnulib-tool doesn't think it's a license, and munge it to
3891         say "GCC version 3".
3892
3893 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
3894
3895         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
3896         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
3897         $(abs_top_builddir) instead of $(top_builddir).
3898
3899 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
3900
3901         strftime-tests: also test nanoseconds
3902         * tests/test-strftime.c (T): Add a test of %N.
3903
3904 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
3905
3906         inttypes, stdint: add C++11 support
3907         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
3908         when including inttypes.h and stdint.h.  Support this change to
3909         the standard.
3910         * doc/posix-headers/inttypes.texi (inttypes.h):
3911         * doc/posix-headers/stdint.texi (stdint.h): Document this.
3912         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
3913         Define if not defined already, for the benefit of pre-C++11 hosts.
3914         Define the standard format macros (e.g., PRId8) always.
3915         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
3916         Likewise, if __cpluspus.  Define the standard constant and limit
3917         macros (e.g., INT8_C, INT8_MAX) always.
3918         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
3919         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
3920         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
3921         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
3922         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
3923         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
3924         Likewise.
3925
3926 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
3927
3928         nonblocking tests: Fix test failure on Linux/PPC.
3929         Suggested by Prerna Saxena in
3930         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
3931         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
3932         Set to 1100000.
3933
3934 2011-12-12  Jim Meyering  <meyering@redhat.com>
3935
3936         argmatch: don't hard-code `' when listing valid option arguments
3937         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
3938         use the quote function to add quotes.  Use fputs rather than
3939         fprintf for the format string with no format directive.
3940
3941 2011-12-07  Eric Blake  <eblake@redhat.com>
3942
3943         bootstrap: detect tools required by gnulib-tool
3944         * build-aux/bootstrap (buildreq): Provide minimum implicit
3945         dependencies.
3946         * DEPENDENCIES: Mention patch as a prereq.
3947
3948 2011-12-04  Bruno Haible  <bruno@clisp.org>
3949
3950         sethostname: Port to Windows platforms.
3951         * lib/sethostname.c: Provide an alternate implementation for Windows
3952         platforms.
3953         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
3954         (main): Skip the test if sethostname() fails with EPERM. On Windows
3955         platforms, don't check the result of gethostname().
3956
3957 2011-12-04  Bruno Haible  <bruno@clisp.org>
3958             Jim Meyering  <meyering@redhat.com>
3959
3960         tests: Avoid spurious error message on platforms without mktemp program.
3961         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
3962
3963 2011-12-04  Bruno Haible  <bruno@clisp.org>
3964
3965         sethostname: Fix documentation.
3966         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
3967         "not fixed" section.
3968
3969 2011-12-03  Bruno Haible  <bruno@clisp.org>
3970
3971         gnulib-tool: Verify that the License field is present and non-empty.
3972         * gnulib-tool (func_get_license_raw): New function, extracted from
3973         func_get_license.
3974         (func_get_license): Use it. Warn if the module is not a test module and
3975         has no license.
3976         Suggested by Jim Meyering.
3977
3978 2011-12-03  Bruno Haible  <bruno@clisp.org>
3979
3980         sethostname tests: Fix link error on mingw.
3981         * tests/test-sethostname1.c: New file, extracted from
3982         tests/test-sethostname.c.
3983         * tests/test-sethostname2.c: New file, extracted from
3984         tests/test-sethostname.c.
3985         * tests/test-sethostname.c: Remove file.
3986         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
3987         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
3988         (Depends-on): Add gethostname.
3989         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
3990         Link the latter with $(GETHOSTNAME_LIB).
3991
3992         sethostname tests: Fix compilation error on mingw.
3993         * tests/test-sethostname.c: Don't include <sys/types.h>.
3994         (geteuid): Use a dummy value without uid_t.
3995         * modules/sethostname-tests (Depends-on): Remove sys_types.
3996
3997         sethostname tests: Avoid a gcc warning.
3998         * tests/test-sethostname.c (main): Remove an unused variable.
3999
4000         Tweak last commit.
4001         * modules/sethostname-tests (Files): Sort by decreasing importance.
4002         (configure.ac): Check for geteuid.
4003         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4004         the test when there's nothing to test. Drop an unnecessary cast.
4005         Improve an error message. Verify that the final sethostname() call
4006         succeeds.
4007
4008 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4009
4010         Add a test suite for the sethostname module.
4011         * modules/sethostname-tests: New file.  A test program
4012         for the sethostname module.
4013         * tests/test-sethostname.c: Likewise.
4014
4015 2011-12-03  Bruno Haible  <bruno@clisp.org>
4016
4017         Tweak last commit.
4018         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
4019         Fix preprocessor directives indentation. Fix typos.
4020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
4021         * modules/unistd (Makefile): Likewise.
4022
4023 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4024
4025         Integrate the sethostname module into unistd.
4026         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
4027         into the unistd.h header.
4028         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
4029         preprocessor directives.
4030         * modules/unistd: Setup the Makefile substitutions of the
4031         SETHOSTNAME preprocessor directives.
4032
4033 2011-12-03  Bruno Haible  <bruno@clisp.org>
4034
4035         Tweak last commit.
4036         * lib/sethostname.c: Don't include <string.h>.
4037         (sethostname): No need to copy the argument string to the stack. Don't
4038         call clearerr. Preserve errno when fprintf failed.
4039         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
4040         Don't invoke AC_REPLACE_FUNCS.
4041         * modules/sethostname (Link): Remove empty section.
4042         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
4043         failure problem.
4044
4045 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4046
4047         New module 'sethostname'.
4048         * lib/sethostname.c (sethostname): New file.  Provide sethostname
4049         for systems that lack it.
4050         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
4051         sethostname declaration and function.
4052         * modules/sethostname: New file.  Define the sethostname module.
4053
4054 2011-12-03  Bruno Haible  <bruno@clisp.org>
4055
4056         Tweak last commit.
4057         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
4058
4059 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4060
4061         Split the HOST_NAME_MAX detection into a separate m4 macro.
4062         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
4063         macro so it can be used by the pending sethostname module.
4064
4065 2011-12-03  Bruno Haible  <bruno@clisp.org>
4066
4067         Fix module descriptions syntax.
4068         * modules/argv-iter (License): Fix syntax.
4069         * modules/di-set (License): Likewise.
4070         * modules/ino-map (License): Likewise.
4071         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
4072
4073 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4074
4075         stdalign: port to Clang 3.0
4076         Problem reported by Simon Josefsson in
4077         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
4078         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
4079         which has <stdalign.h> but which does not define alignof.
4080         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
4081
4082 2011-12-01  Eric Blake  <eblake@redhat.com>
4083
4084         mktempd: silence dd usage
4085         * build-aux/mktempd (rand_bytes): Silence dd.
4086
4087 2011-11-30  Simon Josefsson  <simon@josefsson.org>
4088
4089         manywarnings: Don't mention gcc version in docstring.
4090         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
4091         Jim Meyering <meyering@redhat.com>.
4092
4093 2011-11-30  Jim Meyering  <meyering@redhat.com>
4094
4095         hash: mark a few floating point constants with "f" suffix
4096         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
4097         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
4098         floating point constants with "f", since they're destined to be
4099         saved/used as "float"s.
4100
4101 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
4102
4103         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
4104         * tests/test-float.c (test_long_double): Correct and re-enable the
4105         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
4106
4107 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
4108
4109         Avoid subtracting two pointers that don't point into the same block.
4110         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
4111         only pointers into the same memory block are subtracted. We cannot
4112         assume that sizeof (ptrdiff_t) == sizeof (void *).
4113
4114 2011-11-29  Eric Blake  <eblake@redhat.com>
4115
4116         maint.mk: add syntax check for use of compare from init.sh
4117         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
4118         moved here from coreutils.
4119
4120         manywarnings: drop -Wunsuffixed-float-constants
4121         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
4122         '1.0D', which is the only way to silence this warning for 'double'.
4123
4124 2011-11-29  Jim Meyering  <meyering@redhat.com>
4125
4126         hash: mark compute_bucket_size with the pure attribute
4127         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
4128
4129         quotearg, propername: correct pragma guard expression
4130         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
4131         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
4132
4133 2011-11-28  Jim Meyering  <meyering@redhat.com>
4134
4135         propername: do not mark proper_name with the const attribute
4136         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
4137         since it examines data pointed to by its parameter.
4138         * lib/propername.c (proper_name): Instead, add a pragma to suppress
4139         the suggestion from -Wsuggest-attribute=const.
4140
4141         propername: mark one more function as const
4142         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
4143
4144 2011-11-27  Jim Meyering  <meyering@redhat.com>
4145
4146         mark functions with const and pure attributes
4147
4148         Mark functions per suggestions from gcc-4.6 when using these options:
4149         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
4150         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
4151         Follow these guidelines: when possible, apply the attribute to
4152         an extern declaration, not to its definition.  Apply it to the
4153         definition only when the definition is static.
4154         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
4155         * lib/argv-iter.h (argv_iter_n_args): Likewise.
4156         * lib/base64.h (isbase64): Likewise.
4157         * lib/basename-lgpl.c (last_component, base_len): Likewise.
4158         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
4159         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
4160         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
4161         (c_tolower, c_toupper): Likewise.
4162         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
4163         * lib/chdir-long.c (find_non_slash): Likewise.
4164         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
4165         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
4166         * lib/file-type.h (file_type): Likewise.
4167         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
4168         * lib/filevercmp.c (verrevcmp): Likewise.
4169         * lib/freadahead.h (freadahead): Likewise.
4170         * lib/fts.c (fts_maxarglen): Likewise.
4171         * lib/hash-pjw.h (hash_pjw): Likewise.
4172         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
4173         * lib/hash.c (is_prime, next_prime): Likewise.
4174         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
4175         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
4176         (hash_table_ok, hash_get_first, hash_string): Likewise.
4177         (compute_bucket_size): Likewise.
4178         * lib/i-ring.h (i_ring_empty): Likewise.
4179         * lib/isnan.c (isnanl): Likewise.
4180         * lib/math.h (isnanl, rpl_isnanl): Likewise.
4181         * lib/memcasecmp.h (memcasecmp): Likewise.
4182         * lib/memchr2.h (memchr2): Likewise.
4183         * lib/memcmp2.h (memcmp2): Likewise.
4184         * lib/parse-datetime.y (lookup_zone): Likewise.
4185         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
4186         [!WINDOWS_SOCKETS]: Likewise.
4187         * lib/strnlen1.h (strnlen1): Likewise.
4188         * lib/uniwidth.in.h (uc_width): Likewise.
4189         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
4190         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
4191         (quoting_options_from_style): Add a comment.
4192         * lib/propername.h (proper_name): Add a comment.
4193
4194 2011-11-27  Bruno Haible  <bruno@clisp.org>
4195
4196         Remove unused macros from !_LIBC code in glibc-borrowed files.
4197         * lib/fnmatch.c (STRCOLL): Remove macro.
4198         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
4199         * lib/glob.c (__stat, __readdir64): Remove macros.
4200         * lib/tempname.c (__open64, __xstat64): Remove macros.
4201         Suggested by Paul Eggert.
4202
4203 2011-11-27  Bruno Haible  <bruno@clisp.org>
4204
4205         getcwd: Fix link error on MSVC 9.
4206         * modules/getcwd (Depends-on): Add readdir, rewinddir.
4207
4208 2011-11-27  Bruno Haible  <bruno@clisp.org>
4209
4210         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
4211         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
4212         HAVE_OPENDIR is 0.
4213         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
4214         HAVE_CLOSEDIR is 0.
4215         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
4216         is 0.
4217         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
4218
4219 2011-11-27  Bruno Haible  <bruno@clisp.org>
4220
4221         getcwd: Fix bug from 2011-08-17.
4222         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
4223         platforms that need it.
4224         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
4225         code of 4 to be a failure, not a success. This ensures that
4226         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
4227
4228 2011-11-27  Bruno Haible  <bruno@clisp.org>
4229
4230         binary-io tests: Avoid test failure on mingw when libtool is used.
4231         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
4232         Don't verify the size of t-bin-out1.tmp here.
4233         * tests/test-binary-io.sh: Verify it here.
4234         Reported by Simon Josefsson.
4235
4236 2011-11-26  Bruno Haible  <bruno@clisp.org>
4237
4238         Fix conflict between two instantiations of module 'unistd'.
4239         * gnulib-tool (func_emit_autoconf_snippet): Substitute
4240         ${include_guard_prefix} also in the autoconf snippet.
4241         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
4242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
4243         GNULIB_UNISTD_H_GETOPT.
4244         * modules/getopt-posix (configure.ac): Set the
4245         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
4246         * modules/getopt-gnu (configure.ac): Likewise.
4247         * modules/unistd (Makefile.am): Change the substitution value of
4248         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
4249         Reported by Simon Josefsson.
4250
4251 2011-11-25  Bruno Haible  <bruno@clisp.org>
4252
4253         pagealign_alloc: Doc and comments.
4254         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
4255         module.
4256         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
4257
4258 2011-11-25  Jim Meyering  <meyering@redhat.com>
4259
4260         test-update-copyright.sh: avoid false-positive failure
4261         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
4262         around false positive failure on Cygwin/Windows.  The latter was
4263         matching erroneously-created files with names like
4264         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
4265
4266 2011-11-25  Simon Josefsson  <simon@josefsson.org>
4267
4268         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
4269         * m4/valgrind-tests.m4: Check that the parameters that will be
4270         used works, not just a subset of them.  Reported by Bruno Haible
4271         <bruno@clisp.org>.
4272
4273 2011-11-24  Jim Meyering  <meyering@redhat.com>
4274
4275         test-stdalign.c: comment out long double tests
4276         * tests/test-stdalign.c: Don't try to reduce alignment of long double
4277         variables.  That provokes errors like this from gcc-4.7.0 20111124:
4278         error: '_Alignas' specifiers cannot reduce alignment of \
4279         'static_longdouble_alignas'.
4280
4281 2011-11-22  Jim Meyering  <meyering@redhat.com>
4282
4283         init.sh: make "compare /dev/null FILE" output more readable
4284         * tests/init.sh (compare_): Document the preferred order of arguments.
4285         (emit_diff_u_header_): New function.
4286         (compare_dev_null_): Emit a simulated diff, rather than just the
4287         contents of the unexpected file.  Suggestion from Bruno Haible.
4288
4289 2011-11-21  Jim Meyering  <meyering@redhat.com>
4290             Eric Blake  <eblake@redhat.com>
4291
4292         init.sh: work around OSF/1 5.1's mishandling of /dev/null
4293         * tests/init.sh: Make our compare function slightly more portable.
4294         Reported by Bruno Haible in
4295         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
4296
4297 2011-11-21  Simon Josefsson  <simon@josefsson.org>
4298
4299         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
4300         before using it, in code that ends up in config.h.
4301
4302 2011-11-20  Bruno Haible  <bruno@clisp.org>
4303
4304         getcwd: Work around getcwd bug on AIX 5..7.
4305         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
4306         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
4307         Use a different value for gl_cv_func_getcwd_path_max. Move the
4308         definition of HAVE_PARTLY_WORKING_GETCWD from here...
4309         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
4310         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
4311         Define HAVE_MINIMALLY_WORKING_GETCWD.
4312         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
4313         where it is not even minimally working, that is, on AIX.
4314         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
4315         m4/getcwd-path-max.m4.
4316         (main): Update exit code computation.
4317         * doc/posix-functions/getcwd.texi: Mention list of platforms where
4318         getcwd does not handle long file names.
4319
4320 2011-11-20  Bruno Haible  <bruno@clisp.org>
4321
4322         getcwd: Fix bug from 2009-09-10.
4323         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
4324         like "no".
4325
4326 2011-11-20  Simon Josefsson  <simon@josefsson.org>
4327
4328         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
4329
4330 2011-11-20  Bruno Haible  <bruno@clisp.org>
4331
4332         fma tests: Avoid shadowing local variables.
4333         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
4334         expected.
4335
4336 2011-11-20  Bruno Haible  <bruno@clisp.org>
4337
4338         copysignf tests: Fix.
4339         * tests/test-copysignf.c: Fix signature check.
4340
4341 2011-11-20  Bruno Haible  <bruno@clisp.org>
4342
4343         fma: Remove unused code.
4344         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
4345         unused macros.
4346
4347 2011-11-20  Bruno Haible  <bruno@clisp.org>
4348
4349         sethostname: Fix doc about AIX.
4350         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
4351         sethostname; it has it.
4352
4353         sethostname: Mention more portability problems.
4354         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
4355         problem.
4356         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
4357
4358 2011-11-19  Bruno Haible  <bruno@clisp.org>
4359
4360         Depend on module fcntl-h when AT_FDCWD is used.
4361         * modules/utimens (Depends-on): Add fcntl-h.
4362         * modules/areadlinkat (Depends-on): Likewise.
4363         * modules/areadlinkat-with-size (Depends-on): Likewise.
4364         * modules/faccessat (Depends-on): Likewise.
4365         * modules/fchmodat (Depends-on): Likewise.
4366         * modules/fchownat (Depends-on): Likewise.
4367         * modules/getcwd (Depends-on): Likewise.
4368         * modules/mkdirat (Depends-on): Likewise.
4369         * modules/mkfifoat (Depends-on): Likewise.
4370         * modules/readlinkat (Depends-on): Likewise.
4371         * modules/symlinkat (Depends-on): Likewise.
4372         * modules/dup2-tests (Depends-on): Likewise.
4373         * modules/fdutimensat-tests (Depends-on): Likewise.
4374         * modules/futimens-tests (Depends-on): Likewise.
4375
4376 2011-11-19  Bruno Haible  <bruno@clisp.org>
4377
4378         euidaccess: Update a comment.
4379         * lib/euidaccess.c: Update comment about platforms with faccessat.
4380
4381 2011-11-19  Bruno Haible  <bruno@clisp.org>
4382
4383         openat: Fix file list.
4384         * modules/openat (Files): Remove lib/at-func.c.
4385
4386 2011-11-19  Bruno Haible  <bruno@clisp.org>
4387
4388         fstatat: Simplify.
4389         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
4390         gnulib should define rpl_fstatat, there is a
4391         "#define fstatat rpl_fstatat" in <sys/stat.h>.
4392
4393 2011-11-19  Bruno Haible  <bruno@clisp.org>
4394
4395         Ensure 'inline' can be used in tests/test-utimens-common.h.
4396         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
4397         * modules/futimens-tests (configure.ac): Likewise.
4398         * modules/utimens-tests (configure.ac): Likewise.
4399         * modules/utimensat-tests (configure.ac): Likewise.
4400
4401 2011-11-19  Simon Josefsson  <simon@josefsson.org>
4402
4403         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
4404         not hash_insert0.
4405         (hash_insert_if_absent): Doc fix.
4406
4407 2011-11-19  Simon Josefsson  <simon@josefsson.org>
4408
4409         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
4410
4411 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
4412
4413         test-getcwd: disambiguate exit status
4414         * tests/test-getcwd.c (test_long_name): Return 0..7.
4415         (main): Exit with an unambiguous exit status.  The old
4416         code yielded a mysterious mixture of two failure codes.
4417
4418         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
4419         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
4420         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
4421         rpl_fstatat or fstatat.  This should fix the other problem
4422         reported by Kai Habel in
4423         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
4424         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
4425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
4426         and I reproduced it on a Solaris 8 host we still have in production.
4427
4428 2011-11-18  Jim Meyering  <meyering@redhat.com>
4429
4430         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
4431         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
4432         Add a sentence to the comment.
4433         (hash_insert0): New function that simply calls hash_insert_if_absent.
4434         * lib/hash.h (hash_insert_if_absent): Declare it.
4435         (hash_insert0): Add deprecation attribute.
4436         (_GL_ATTRIBUTE_DEPRECATED): Define.
4437         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
4438         not hash_insert0.
4439         * NEWS: Mention it, even though it's not really an incompatible change.
4440
4441 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
4442
4443         openat: avoid compilation failure due to lack of <errno.h> inclusion
4444         * lib/openat.c: Include <errno.h>.
4445
4446 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
4447
4448         * modules/getcwd (Depends-on): Add fdopendir.
4449         This fixes one of the two problems reported by Kai Habel in
4450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
4451
4452         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
4453         stdalign problem reported by Ian Beckwith in
4454         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
4455         * modules/crypto/gc-arcfour (Depends-on):
4456         Depend conditionally on crypto/arcfour.
4457         * modules/crypto/gc-arctwo (Depends-on):
4458         Depend conditionally on crypto/arctwo.
4459         * modules/crypto/gc-des (Depends-on):
4460         Depend conditionally on crypto/des.
4461         * modules/crypto/gc-hmac-md5 (Depends-on):
4462         Depend conditionally on crypto/hmac-md5.
4463         * modules/crypto/gc-hmac-sha1 (Depends-on):
4464         Depend conditionally on crypto/hmac-sha1.
4465         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
4466         * modules/crypto/gc-md4 (Depends-on):
4467         Depend conditionally on crypto/md4.
4468         * modules/crypto/gc-md5 (Depends-on):
4469         Depend conditionally on crypto/md5.
4470         * modules/crypto/gc-rijndael (Depends-on):
4471         Depend conditionally on crypto/rijndael.
4472         * modules/crypto/gc-sha1 (Depends-on):
4473         Depend conditionally on crypto/sha1.
4474         * modules/crypto/gc-arcfour:
4475         * modules/crypto/gc-arctwo:
4476         * modules/crypto/gc-des:
4477         * modules/crypto/gc-hmac-md5:
4478         * modules/crypto/gc-hmac-sha1:
4479         * modules/crypto/gc-md2:
4480         * modules/crypto/gc-md4:
4481         * modules/crypto/gc-md5:
4482         * modules/crypto/gc-rijndael:
4483         * modules/crypto/gc-sha1:
4484         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
4485         now that the conditional dependencies do the work for us.
4486
4487 2011-11-17  Jim Meyering  <meyering@redhat.com>
4488
4489         tests: factor st_ctime-comparison out of two headers
4490         * tests/test-utimens-common.h (ctime_compare): Define.
4491         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
4492         * tests/test-lutimens.h (test_lutimens): Likewise.
4493         * tests/test-utimens.h (test_utimens): Likewise.
4494
4495         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
4496         Invoke the test program via an init.sh-using wrapper.
4497         * tests/test-getcwd.sh: New file.
4498         * modules/getcwd-tests (Files): Add it.
4499         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
4500
4501 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
4502
4503         gitlog-to-changelog: support multi-author commits.
4504         The FSF cares about keeping track of all authors of patches to its
4505         projects, but Git doesn't provide obvious support for multi-author
4506         changesets. Consensus seems to be forming around the use of extra
4507         Signed-off-by inspired lines in the log message formatted as
4508         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
4509         multi-author commits between version control systems.
4510         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
4511         log message and output in standard ChangeLog multi-author format.
4512         Reported by Peter Rosin <peda@lysator.liu.se>
4513
4514 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
4515             Bruno Haible  <bruno@clisp.org>
4516
4517         Fix some modules' file list.
4518         * modules/fstatat (Files): Add m4/lstat.m4.
4519         * modules/openat (Files): Likewise.
4520         * modules/unlinkat (Files): Likewise.
4521
4522 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
4523
4524         maint.mk: fix tight-scope.mk generation in VPATH builds.
4525         * top/maint.mk (tight-scope.mk): Make sure to prefix file
4526         reference with $(srcdir) so that the file is found correctly even
4527         when running `make syntax-check' in a VPATH build.
4528
4529 2011-11-13  Bruno Haible  <bruno@clisp.org>
4530             Jim Meyering  <meyering@redhat.com>
4531
4532         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
4533         * tests/init.sh (compare): Remove "No differences encountered" or
4534         synonymous output from the 'diff' program.
4535
4536 2011-11-13  Bruno Haible  <bruno@clisp.org>
4537
4538         Makefile: Tweak indentation.
4539         * Makefile: Use tab as first character in every line that contains rule
4540         commands.
4541
4542 2011-11-13  Bruno Haible  <bruno@clisp.org>
4543
4544         Syntax check for copyright statements.
4545         * check-copyright: New file.
4546         * Makefile (sc_check_copyright): New rule.
4547
4548 2011-11-13  Simon Josefsson  <simon@josefsson.org>
4549
4550         * build-aux/git-version-gen: Add --prefix to configure the tag
4551         match string.
4552
4553 2011-11-13  Simon Josefsson  <simon@josefsson.org>
4554
4555         * build-aux/git-version-gen: Add --help and --version.
4556
4557 2011-11-12  Jim Meyering  <meyering@redhat.com>
4558
4559         revamp the other test-exclude?.sh scripts to use init.sh, too
4560         * tests/test-exclude1.sh: Use init.sh.
4561         * tests/test-exclude2.sh: Likewise.
4562         * tests/test-exclude3.sh: Likewise.
4563         * tests/test-exclude4.sh: Likewise.
4564         * tests/test-exclude5.sh: Likewise.
4565         * tests/test-exclude6.sh: Likewise.
4566         * tests/test-exclude7.sh: Likewise.
4567         * tests/test-exclude8.sh: Likewise.
4568         * modules/exclude-tests (Files): List init.sh.
4569
4570         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
4571         These shell scripts ignored failure of the binary test-exclude,
4572         so making the latter return 77 didn't cause them to be skipped.
4573         * tests/test-exclude5.sh: Exit with test-exclude's error status
4574         when that program fails.  Revamp to use init.sh.
4575         * tests/test-exclude2.sh: Likewise.
4576
4577         test-exclude: fix a typo
4578         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
4579
4580 2011-11-11  Bruno Haible  <bruno@clisp.org>
4581
4582         obstack: Fix compilation error on MSVC 9.
4583         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
4584
4585 2011-11-11  Jim Meyering  <meyering@redhat.com>
4586
4587         test-exclude: skip tests rather than failing on deficient systems
4588         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
4589         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
4590         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
4591         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
4592
4593 2011-11-10  Bruno Haible  <bruno@clisp.org>
4594
4595         ptsname_r test: Avoid gcc warning on glibc systems.
4596         * tests/test-ptsname_r.c (null_ptr): New function.
4597         (test_errors): Use it.
4598
4599 2011-11-10  Bruno Haible  <bruno@clisp.org>
4600
4601         ptsname_r: Avoid compilation error on OSF/1 5.1.
4602         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
4603         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
4604         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
4605         function is not declared or incompatibly declared.
4606         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
4607         * modules/ptsname_r (Depends-on, configure.ac): Update.
4608         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
4609
4610 2011-11-10  Bruno Haible  <bruno@clisp.org>
4611
4612         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
4613         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
4614         When cross-compiling, guess yes on all platforms except AIX.
4615         Reported by Ludovic Courtès <ludo@gnu.org>.
4616
4617 2011-11-09  Bruno Haible  <bruno@clisp.org>
4618
4619         ptsname_r tests: Fix bugs.
4620         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
4621         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
4622
4623 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
4624
4625         fstatat: work with cross-compilation
4626         Problem reported by Ludovic Courtès in
4627         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
4628         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
4629         "cross-compiling" and assume the bug is present.  Replace
4630         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
4631         an inverted sense, to be more conservative about our assumptions.
4632         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
4633
4634 2011-11-09  Bruno Haible  <bruno@clisp.org>
4635
4636         Improve MODULES.html output.
4637         * modules/mkfifoat (Description): Use the word "function".
4638         * modules/readlinkat (Description): Likewise.
4639         * modules/symlinkat (Description): Likewise.
4640
4641 2011-11-09  Eric Blake  <eblake@redhat.com>
4642
4643         ptsname_r-tests: new test module
4644         * modules/ptsname_r-tests: New module.
4645         * tests/test-ptsname_r.c: New file.
4646
4647         ptsname_r: new module
4648         * modules/ptsname_r: New module.
4649         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
4650         * lib/ptsname.c (__ptsname_r): Split...
4651         * lib/ptsname_r.c: ...into new file.
4652         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
4653         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
4654         * modules/stdlib (Makefile.am): Substitute witnesses.
4655         * lib/stdlib.in.h (ptsname_r): Declare it.
4656         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
4657         * MODULES.html.sh (Misc): Likewise.
4658         * modules/ptsname (Depends-on): Alter dependency.
4659         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
4660
4661 2011-11-09  Jim Meyering  <meyering@redhat.com>
4662
4663         announce-gen: be more concise when there's only one URL+tarball
4664         * build-aux/announce-gen (get_tool_versions): When you distribute
4665         only one type of tarball, combine the first two "Here are..."
4666         sections and make the key-checking grammar independent of
4667         how many tarballs there are.
4668
4669 2011-11-09  Eric Blake  <eblake@redhat.com>
4670
4671         openpty: provide a stub on mingw
4672         * lib/pty.in.h (includes): Provide forward declarations.
4673         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
4674
4675         raise: fix mingw handling of SIGPIPE
4676         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
4677
4678 2011-11-08  Bruno Haible  <bruno@clisp.org>
4679
4680         More conditional dependencies.
4681         * modules/faccessat (Depends-on): Add conditions.
4682         * modules/fchmodat (Depends-on): Likewise.
4683         * modules/fchownat (Depends-on): Likewise.
4684         * modules/fstatat (Depends-on): Likewise.
4685         * modules/mkfifoat (Depends-on): Likewise.
4686         * modules/readlinkat (Depends-on): Likewise.
4687         * modules/symlinkat (Depends-on): Likewise.
4688         * modules/unlinkat (Depends-on): Likewise.
4689         * modules/utimensat (Depends-on): Likewise.
4690         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
4691         * modules/linkat (Depends-on): Refine the conditions.
4692         * modules/renameat (Depends-on): Likewise.
4693
4694 2011-11-08  Bruno Haible  <bruno@clisp.org>
4695
4696         faccessat: Move AC_LIBOBJ invocation to module description.
4697         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
4698         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
4699         invocation from here...
4700         * modules/faccessat (configure.ac): ... to here. Invoke
4701         gl_PREREQ_FACCESSAT.
4702
4703 2011-11-08  Bruno Haible  <bruno@clisp.org>
4704
4705         faccessat: Simplify autoconf macro.
4706         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
4707         gl_FUNC_EUIDACCESS.
4708
4709 2011-11-08  Bruno Haible  <bruno@clisp.org>
4710
4711         renameat: Fix dependencies.
4712         * modules/renameat (Depends-on): Add stdbool.
4713
4714 2011-11-08  Bruno Haible  <bruno@clisp.org>
4715
4716         mkfifoat: Fix module description.
4717         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
4718         not gl_UNISTD_MODULE_INDICATOR.
4719
4720 2011-11-08  Bruno Haible  <bruno@clisp.org>
4721
4722         fstatat: Remove unused dependency.
4723         * modules/fstatat (Depends-on): Remove fstat.
4724
4725 2011-11-08  Simon Josefsson  <simon@josefsson.org>
4726
4727         GNUmakefile: behave when Makefile is missing.
4728         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
4729
4730 2011-11-08  Bruno Haible  <bruno@clisp.org>
4731
4732         openat: Conditionalize dependencies.
4733         * lib/openat.c: Reduce the scope of some #includes.
4734         * modules/openat (Depends-on): Add conditions.
4735
4736 2011-11-07  Jim Meyering  <meyering@redhat.com>
4737
4738         maint.mk: extract GPG key ID without using a temporary file
4739         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
4740         without using a temporary file.  Based on a suggestion from Werner Koch
4741         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
4742
4743 2011-11-07  Eric Blake  <eblake@redhat.com>
4744
4745         grantpt: fix typo
4746         * lib/stdlib.in.h (grantpt): Check correct function.
4747
4748         maint.mk: silence new syntax check
4749         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
4750
4751 2011-11-06  Bruno Haible  <bruno@clisp.org>
4752
4753         Doc about floating-point and math API.
4754         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
4755         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
4756
4757 2011-11-06  Bruno Haible  <bruno@clisp.org>
4758
4759         stdalign tests: Skip the test when compiled by Sun C.
4760         * tests/test-stdalign.c (main): Skip the test on Sun C.
4761
4762 2011-11-06  Bruno Haible  <bruno@clisp.org>
4763
4764         ansi-c++-opt: Complete the 2011-06-05 change.
4765         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
4766         does not support namespaces, set the variable to "no", not to ":".
4767
4768 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
4769
4770         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
4771
4772 2011-11-06  Bruno Haible  <bruno@clisp.org>
4773
4774         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
4775         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
4776         (minus_zerol) [HP-UX]: New macro.
4777         (unary_minus) [HP-UX]: New function.
4778         (copysignl) [HP-UX]: Use unary_minus function.
4779
4780 2011-11-06  Bruno Haible  <bruno@clisp.org>
4781
4782         ldexp, ldexpf, ldexpl: Enhance tests.
4783         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
4784         and tests/test-ldexpl.c.
4785         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
4786         LDEXP, MIN_EXP, MAX_EXP): New macros.
4787         Include test-ldexp.h.
4788         (main): Just call test_function.
4789         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
4790         infinity.h, nan.h.
4791         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
4792         MAX_EXP): New macros.
4793         Include test-ldexp.h.
4794         (x, y): Remove variables.
4795         (main): Just call test_function.
4796         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
4797         infinity.h, nan.h.
4798         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
4799         MAX_EXP): New macros.
4800         Include test-ldexp.h.
4801         (x, y): Remove variables.
4802         (main): Just call test_function.
4803         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
4804         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
4805         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
4806         (Depends-on): Add isnand-nolibm, signbit, float.
4807         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
4808         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
4809         (Depends-on): Add isnanf-nolibm, signbit, float.
4810
4811 2011-11-06  Bruno Haible  <bruno@clisp.org>
4812
4813         math tests: Cosmetics.
4814         * tests/test-math-c++.cc: Reorder declarations.
4815
4816 2011-11-05  Bruno Haible  <bruno@clisp.org>
4817
4818         fma*: Simplify test.
4819         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
4820         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
4821
4822         Tests for module 'fmal'.
4823         * modules/fmal-tests: New file.
4824         * tests/test-fmal1.c: New file.
4825         * tests/test-fmal2.c: New file.
4826
4827         New module 'fmal'.
4828         * lib/math.in.h (fmal): New declaration.
4829         * lib/fmal.c: New file.
4830         * m4/fmal.m4: New file.
4831         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
4832         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
4833         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
4834         REPLACE_FMAL.
4835         * modules/fmal: New file.
4836         * doc/posix-functions/fmal.texi: Mention the new module and the various
4837         bugs.
4838
4839         Tests for module 'fmaf'.
4840         * modules/fmaf-tests: New file.
4841         * tests/test-fmaf1.c: New file.
4842         * tests/test-fmaf2.c: New file.
4843
4844         New module 'fmaf'.
4845         * lib/math.in.h (fmaf): New declaration.
4846         * lib/fmaf.c: New file.
4847         * m4/fmaf.m4: New file.
4848         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
4849         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
4850         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
4851         REPLACE_FMAF.
4852         * modules/fmaf: New file.
4853         * doc/posix-functions/fmaf.texi: Mention the new module and the various
4854         bugs.
4855
4856         Tests for module 'fma'.
4857         * modules/fma-tests: New file.
4858         * tests/test-fma1.c: New file.
4859         * tests/test-fma1.h: New file.
4860         * tests/test-fma2.c: New file.
4861         * tests/test-fma2.h: New file.
4862
4863         New module 'fma'.
4864         * lib/math.in.h (fma): New declaration.
4865         * lib/fma.c: New file.
4866         * m4/fma.m4: New file.
4867         * m4/fegetround.m4: New file.
4868         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
4869         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
4870         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
4871         REPLACE_FMA.
4872         * modules/fma: New file.
4873         * doc/posix-functions/fma.texi: Mention the new module and the various
4874         bugs.
4875
4876         Extend gl_MATHFUNC.
4877         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
4878         Support 'void' as argument type.
4879         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
4880
4881 2011-11-05  Jim Meyering  <meyering@redhat.com>
4882
4883         maint.mk: also prohibit inclusion of dirent.h without use
4884         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
4885
4886 2011-11-05  Bruno Haible  <bruno@clisp.org>
4887
4888         ldexpl tests: Avoid test failure on MSVC 9.
4889         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
4890         value. Needed in order to enforce the conversion from a value greater
4891         than LDBL_MAX to Infinity.
4892
4893 2011-11-05  Bruno Haible  <bruno@clisp.org>
4894
4895         New modules 'at-internal', 'openat-h', split off from module 'openat'.
4896         * modules/at-internal: New file, extracted from modules/openat.
4897         * modules/openat-h: New file.
4898         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
4899         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
4900         * modules/openat (Description): Add reference to POSIX function.
4901         (Files): Remove lib/openat.h, lib/openat-proc.c.
4902         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
4903         intprops, unistd.
4904         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
4905         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
4906         gl_FCNTL_MODULE_INDICATOR.
4907         (Include): Remove unistd.h, openat.h.
4908         * modules/areadlinkat (Files): Add lib/at-func.c.
4909         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4910         openat-die, openat-h, save-cwd.
4911         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
4912         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4913         openat-die, openat-h, save-cwd, unistd.
4914         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
4915         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4916         openat-h, save-cwd. Remove fcntl-h, openat.
4917         * modules/fchmodat (Files): Remove lib/openat.h.
4918         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4919         openat, stdbool, unistd.
4920         * modules/fchownat (Files): Remove lib/openat.h.
4921         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4922         openat, stdbool, sys_stat.
4923         * modules/fdopendir (Files): Remove lib/openat-priv.h,
4924         lib/openat-proc.c.
4925         (Depends-on): Add at-internal.
4926         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
4927         * modules/fstatat (Files): Remove lib/openat.h.
4928         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
4929         stdbool, unistd.
4930         * modules/fts (Depends-on): Add openat-h.
4931         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
4932         openat.
4933         * modules/mkdirat (Files): Remove lib/openat.h.
4934         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4935         openat, stdbool, sys_stat.
4936         * modules/mkfifoat (Files): Add lib/at-func.c.
4937         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4938         openat-h, save-cwd. Remove fcntl-h, openat.
4939         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
4940         * modules/readlinkat (Files): Add lib/at-func.c.
4941         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4942         openat-h, save-cwd. Remove fcntl-h, openat.
4943         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
4944         openat.
4945         * modules/selinux-at (Files): Add lib/at-func.c.
4946         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4947         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
4948         * modules/symlinkat (Files): Add lib/at-func.c.
4949         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4950         openat-h, save-cwd. Remove fcntl-h, openat.
4951         * modules/unlinkat (Files): Remove lib/openat.h.
4952         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
4953         stdbool.
4954         * modules/utimensat (Files): Add lib/at-func.c.
4955         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
4956         openat-die, openat-h, save-cwd.
4957         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
4958         * modules/fdutimensat-tests (Depends-on): Add openat.
4959         * modules/fstatat-tests (Depends-on): Add openat-h.
4960         * modules/readlinkat-tests (Depends-on): Add openat.
4961         * modules/symlinkat-tests (Depends-on): Add openat.
4962
4963 2011-11-05  Bruno Haible  <bruno@clisp.org>
4964
4965         openat: Include <stdbool.h>.
4966         * lib/openat.c: Include <stdbool.h>.
4967
4968 2011-11-04  Bruno Haible  <bruno@clisp.org>
4969
4970         fchownat, renameat, unlinkat: Fix dependencies.
4971         * modules/fchownat (Depends-on): Add fstatat.
4972         * modules/renameat (Depends-on): Likewise.
4973         * modules/unlinkat (Depends-on): Likewise.
4974
4975 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
4976
4977         openat: remove direct dependency on dirent
4978         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
4979         and hasn't been needed ever since fdopendir was split into its own
4980         module on 2009-08-31.
4981         * modules/openat (Depends-on): Remove dirent.
4982
4983 2011-11-04  Bruno Haible  <bruno@clisp.org>
4984
4985         renameat: Optimize code size.
4986         * modules/renameat (configure.ac): Don't compile at-func2.c if
4987         REPLACE_RENAMEAT is 1.
4988
4989 2011-11-04  Bruno Haible  <bruno@clisp.org>
4990
4991         openat tests: Fix file list.
4992         * modules/openat-tests (Files): Add tests/test-open.h.
4993
4994 2011-11-04  Bruno Haible  <bruno@clisp.org>
4995
4996         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
4997         * modules/fchmodat (Depends-on): Add openat-die.
4998         * modules/fchownat (Depends-on): Likewise.
4999         * modules/linkat (Depends-on): Likewise.
5000         * modules/renameat (Depends-on): Likewise.
5001         * modules/openat (Depends-on): Add dirent.
5002
5003 2011-11-04  Jim Meyering  <meyering@redhat.com>
5004
5005         at-func*.c: fix comments
5006         * lib/at-func2.c: Correct/improve first-line comment.
5007         * lib/at-func.c: Correct grammar in first-line comment.
5008
5009 2011-11-04  Bruno Haible  <bruno@clisp.org>
5010
5011         New module 'mkdirat', split off from module 'openat'.
5012         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
5013         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
5014         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
5015         * modules/mkdirat: New file, extracted from modules/openat.
5016         * modules/openat (Files): Remove lib/mkdirat.c.
5017         (Depends-on): Remove mkdir.
5018         (configure.ac): Remove AC_LIBOBJ of mkdirat.
5019         (Include): Remove <sys/stat.h>.
5020         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
5021         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
5022         tests/test-mkdir.h.
5023         (Depends-on): Remove ignore-value.
5024         (Makefile.am): Remove rules for test-mkdirat.
5025         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
5026         of module 'openat'.
5027         * NEWS: Mention the change.
5028
5029 2011-11-04  Bruno Haible  <bruno@clisp.org>
5030
5031         closedir: Avoid warning on mingw.
5032         * lib/closedir.c: Include <unistd.h>.
5033
5034 2011-11-04  Bruno Haible  <bruno@clisp.org>
5035
5036         New module 'fstatat', split off from module 'openat'.
5037         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
5038         defined.
5039         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
5040         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
5041         gl_FUNC_FSTATAT.
5042         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
5043         * modules/fstatat: New file, extracted from modules/openat.
5044         * modules/openat (Files): Remove lib/fstatat.c.
5045         (Depends-on): Remove lstat.
5046         (configure.ac): Remove AC_LIBOBJ of fstatat.
5047         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
5048         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
5049         tests/test-lstat.h, tests/test-stat.h.
5050         (Depends-on): Remove getcwd-lgpl.
5051         (Makefile.am): Remove rules for test-fstatat.
5052         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
5053         of module 'openat'.
5054         * NEWS: Mention the change.
5055         * modules/getcwd (Depends-on): Add fstatat.
5056         * modules/linkat (Depends-on): Likewise.
5057         * modules/mkfifoat-tests (Depends-on): Likewise.
5058         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
5059
5060 2011-11-03  Bruno Haible  <bruno@clisp.org>
5061
5062         New module 'unlinkat', split off from module 'openat'.
5063         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
5064         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
5065         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
5066         * modules/unlinkat: New file, extracted from modules/openat. Correct
5067         the dependency conditions.
5068         * modules/openat (Files): Remove lib/unlinkat.c.
5069         (Depends-on): Remove rmdir, unlink.
5070         (configure.ac): Remove AC_LIBOBJ of unlinkat.
5071         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
5072         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
5073         tests/test-rmdir.h, tests/test-unlink.h.
5074         (Depends-on): Remove unlinkdir.
5075         (Makefile.am): Remove rules for test-unlinkat.
5076         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
5077         of module 'openat'.
5078         * NEWS: Mention the change.
5079         * modules/linkat-tests (Depends-on): Add unlinkat.
5080         * modules/mkfifoat-tests (Depends-on): Likewise.
5081         * modules/readlinkat-tests (Depends-on): Likewise.
5082
5083 2011-11-02  Bruno Haible  <bruno@clisp.org>
5084
5085         New module 'fchmodat', split off from module 'openat'.
5086         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
5087         defined.
5088         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
5089         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
5090         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
5091         * modules/fchmodat: New file, extracted from modules/openat.
5092         * modules/openat (Files): Remove lib/fchmodat.c.
5093         (configure.ac): Remove AC_LIBOBJ of fchmodat.
5094         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
5095         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
5096         (Makefile.am): Remove rules for test-fchmodat.
5097         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
5098         of module 'openat'.
5099         * NEWS: Mention the change.
5100
5101 2011-11-02  Jim Meyering  <meyering@redhat.com>
5102
5103         putenv: indent #definition of "environ" to placate cppi
5104         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
5105
5106         gitlog-to-changelog: provide a ChangeLog-repair mechanism
5107         Git logs are often treated as immutable, because editing them
5108         changes the SHA1 checksums of all descendants.  Thus, errors in
5109         git logs tend to stay there forever.  However, when we generate
5110         a ChangeLog file -- typically for distribution -- from that git log,
5111         we can actually make corrections in the generated file.  The key
5112         lies in recording in machine-readable/applicable form the desired
5113         corrections.  See --help for description and an example.
5114         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
5115         (usage): Describe it; alphabetize option descriptions.
5116         (main): Honor the new option, carefully.
5117
5118 2011-11-01  Jim Meyering  <meyering@redhat.com>
5119
5120         gitlog-to-changelog: avoid an infloop
5121         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
5122         that ends up being empty.
5123
5124 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5125
5126         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
5127         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
5128         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
5129         contains (possibly-quoted) backslashes.  This should avoid
5130         all-too-common shell bugs if COMPLICATED contains backslashes in
5131         the "wrong" places.  Reported by David Evans in
5132         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
5133         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
5134         because we want ASCII ranges.  Is there some reason we don't use
5135         the C locale everywhere in this script?
5136         (func_module, top level): Avoid unwanted pathname expansion when
5137         $repo_url_prefix or $repo_url_suffix_repl contain shell
5138         metacharacters like '?' and '*'.
5139
5140 2011-11-01  Bruno Haible  <bruno@clisp.org>
5141
5142         fchownat: Improve description.
5143         * modules/fchownat (Description): Add link to function.
5144
5145 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5146
5147         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
5148         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
5149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
5150         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
5151
5152 2011-11-01  Bruno Haible  <bruno@clisp.org>
5153
5154         alignof: Avoid collision with stdalign module.
5155         * lib/alignof.h (alignof): Remove macro.
5156         * NEWS: Mention the change.
5157         Reported by Paul Eggert.
5158
5159 2011-11-01  Bruno Haible  <bruno@clisp.org>
5160
5161         New module 'fchownat', split off from module 'openat'.
5162         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
5163         defined.
5164         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
5165         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
5166         invoke gl_FUNC_FCHOWNAT.
5167         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
5168         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
5169         * modules/fchownat: New file, extracted from modules/openat.
5170         * modules/openat (Files): Remove lib/fchownat.c.
5171         (Depends-on): Remove lchown.
5172         (configure.ac): Remove AC_LIBOBJ of fchownat.
5173         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
5174         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
5175         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
5176         (Depends-on): Remove mgetgroups, usleep, stat-time.
5177         (configure.ac): Remove test for getegid.
5178         (Makefile.am): Remove rules for test-fchownat.
5179         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
5180         of module 'openat'.
5181         * NEWS: Mention the change.
5182
5183 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
5184
5185         stdalign: port better to MSVC and to Sun C 5.11
5186         This fixes some of the problems reported by Bruno Haible in
5187         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
5188         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
5189         shortcomings of MSVC and of Sun C 5.11.
5190         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
5191         around __declspec arg.
5192         * modules/stdalign-tests (Files): Add tests/macros.h.
5193         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
5194         Include macros.h, for ASSERT.
5195         (DECLARE_ALIGNED): Remove.
5196         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
5197         to catch bug), and to 1 if not (simplifies the rest of the code).
5198         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
5199         (CHECK_AUTO): Remove.
5200         (CHECK_ALIGNED): Check only the alignment of the static vars,
5201         since auto var alignment isn't supported by Sun C 5.11.
5202         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
5203         ASSERT failures are easier to diagnose.
5204
5205 2011-10-31  Bruno Haible  <bruno@clisp.org>
5206
5207         doc about some IRIX 5.3 problems.
5208         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
5209         on IRIX 5.3.
5210         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
5211         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
5212         5.3.
5213         * doc/posix-functions/grantpt.texi: Likewise.
5214         * doc/posix-functions/unlockpt.texi: Likewise.
5215         * doc/posix-functions/lgamma.texi: Likewise.
5216         * doc/posix-functions/nextafter.texi: Likewise.
5217         * doc/posix-functions/remainder.texi: Likewise.
5218         * doc/posix-functions/select.texi: Mention misplaced declaration on
5219         IRIX 5.3.
5220         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5221
5222 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
5223
5224         gitlog-to-changelog: fix git-log invocation.
5225         git-log mishandles date strings before 1970-01-01 UTC, and there is
5226         no use to specify --since=1970-01-01 by default anyway.
5227         * build-aux/gitlog-to-changelog: By default, when no --since option
5228         was given, do not specify explicit --since option to git-log.
5229
5230 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
5231
5232         gitlog-to-changelog: new option --append-dot.
5233         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
5234         first non-blank line of each commit message terminated with a dot.
5235
5236 2011-10-30  Bruno Haible  <bruno@clisp.org>
5237
5238         ffsl, ffsll: Avoid compilation error due to 'restrict'.
5239         * lib/ffsl.h: Include <config.h>.
5240         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
5241
5242 2011-10-30  Jim Meyering  <meyering@redhat.com>
5243
5244         GNUmakefile: reenable "make syntax-check" for most projects
5245         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
5246         build-aux variable", "syntax-check" would do nothing but succeed with
5247         the "No version control files detected..." diagnostic (unless you
5248         happened to override _build-aux via cfg.mk).
5249         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
5250         to precede inclusion of maint.mk.  Otherwise, these variables would
5251         be used undefined in any project that does not override the default.
5252
5253 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
5254
5255         gitlog-to-changelog: treat a message with only blank lines as empty.
5256         * build-aux/gitlog-to-changelog: Move the code that removes leading and
5257         trailing blank lines before the code that issues a warning about an
5258         empty commit message.
5259
5260 2011-10-30  Jim Meyering  <meyering@redhat.com>
5261
5262         test-parse-datetime.c: avoid new DST-related false positive test failure
5263         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
5264         based on the time/date we'll convert, not the current time.
5265         Otherwise, the moment we cross a DST boundary like today's in
5266         Europe, (CEST to CET), that offset ends up being one hour off.
5267
5268 2011-10-27  Bruno Haible  <bruno@clisp.org>
5269
5270         fstat: Tweak documentation.
5271         * modules/fstat (Description): More precise description.
5272
5273 2011-10-27  Bruno Haible  <bruno@clisp.org>
5274
5275         Update documentation regarding 'largefile' module.
5276         * doc/posix-functions/fstat.texi: Tweak wording.
5277         * doc/posix-functions/opendir.texi: Mention that the module fixes the
5278         problems with huge directories and/or small ino_t types.
5279         * doc/posix-functions/readdir.texi: Likewise.
5280         * doc/posix-functions/rewinddir.texi: Likewise.
5281
5282 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
5283
5284         maint.mk: don't maintain a second build-aux variable.
5285         * maint.mk (build_aux): Removed.  The maintainer-makefile module
5286         depends on GNUmakefile, which already maintains a cfg.mk
5287         overridable $(_build-aux) for projects with a non-standard
5288         build-aux directory location, although without the $(srcdir)
5289         prefix.  Use that variable consistently instead of introducing a
5290         second one.  Adjust all call sites.
5291
5292 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
5293
5294         Add stdalign module and use it in other modules.
5295         This is based on a previous proposal by Bruno Haible
5296         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
5297
5298         stdalign: new module
5299         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
5300         * modules/stdalign: New files.
5301         * MODULES.html.sh (c1x_core_properties): Add stdalign.
5302         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
5303
5304         stdalign-tests: new module
5305         * modules/stdalign-tests, tests/test-stdalign.c: New files.
5306
5307         argp: use stdalign
5308         * lib/argp-parse.c: Include <stdalign.h>.
5309         (alignof): Remove.
5310         * modules/argp (Depends-on): Add stdalign.
5311
5312         crypto libraries: use stdalign
5313         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
5314         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
5315         Do not include <stdlib.h> twice, in md4.c.
5316         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
5317         because we are accessing a pointer's bit-pattern, not a size.
5318         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
5319         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
5320         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
5321         * modules/crypto/sha512: Likewise.
5322
5323         sys_socket: use stdalign, not alignof
5324         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
5325         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
5326
5327 2011-10-27  Bruno Haible  <bruno@clisp.org>
5328
5329         raise test: Avoid a test failure on Linux/MIPS.
5330         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
5331         because 99 is a valid signal on Linux/MIPS.
5332
5333 2011-10-27  Bruno Haible  <bruno@clisp.org>
5334
5335         nonblocking tests: Fix test failure on Linux/MIPS.
5336         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
5337         Set to 270000.
5338
5339 2011-10-27  Bruno Haible  <bruno@clisp.org>
5340
5341         utimensat: Work around problem on Linux/hppa.
5342         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
5343         values.
5344         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
5345
5346 2011-10-25  Jim Meyering  <meyering@redhat.com>
5347
5348         maint.mk: fix a bug in sc_prohibit_stddef_without_use
5349         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
5350         after symbols like NULL, size_t, etc.
5351         Reported by Alfred M. Szmidt.
5352
5353         maint.mk: exempt ENODATA from a syntax-check rule
5354         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
5355         from the sc_prohibit_always-defined_macros syntax-check rule.
5356         Add a comment.  See this for more details:
5357         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
5358
5359 2011-10-23  Jim Meyering  <meyering@redhat.com>
5360
5361         fts: close parent dir FD before returning from post-traversal fts_read
5362         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
5363         unlink A, even though an FD open on A remained.  This is suboptimal
5364         (holding a file descriptor open longer than needed), but otherwise not
5365         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
5366         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
5367         that represents a real problem: it causes the removal of A to fail
5368         with e.g., "rm: cannot remove `A': Device or resource busy"
5369
5370         fts visits each directory twice and keeps a cache (fts_fd_ring) of
5371         directory file descriptors.  After completing the final, FTS_DP,
5372         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
5373         cache, but then proceeded to add a new FD to it via the subsequent
5374         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
5375         final file descriptor would be closed only via fts_close's call to
5376         fd_ring_clear.  Now, it is usually closed earlier, via the final
5377         FTS_DP-returning fts_read call.
5378         * lib/fts.c (restore_initial_cwd): New function, converted from
5379         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
5380         Update callers.
5381         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
5382         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
5383
5384 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
5385             Bruno Haible  <bruno@clisp.org>
5386             Jim Meyering  <jim@meyering.net>
5387
5388         readme-release: improve safety of release prep instructions.
5389         * README-release: Don't git pull all branches when only master
5390         is needed for the release process.
5391         Run make maintainer-clean before changing trees and merging.
5392         Don't try to run ./configure right after git pull in case files
5393         that influence the bootstrap process have changed, move the
5394         ./configure step to after running ./bootstrap.
5395         Don't bootstrap "one last time"... it's the first time!
5396
5397 2011-10-22  Bruno Haible  <bruno@clisp.org>
5398
5399         errno, strerror-override: Support for MSVC 10.
5400         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
5401         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
5402         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
5403         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
5404         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
5405         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
5406         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
5407         Assign values compatible with MSVC 10.
5408         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
5409         New macros.
5410         (GNULIB_defined_EWINSOCK): New macro.
5411         * lib/strerror-override.c (strerror_override): Update accordingly.
5412         * lib/strerror-override.h: Likewise.
5413         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
5414         longer equal to the corresponding errno value.
5415         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5416
5417 2011-10-22  Bruno Haible  <bruno@clisp.org>
5418
5419         perror: Recognize when test program crashes.
5420         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
5421         strerror, set gl_cv_func_perror_works to no.
5422         Reported by Daniel Richard G. <skunk@iskunk.org>.
5423
5424         perror: Fix indentation.
5425         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
5426
5427 2011-10-22  Bruno Haible  <bruno@clisp.org>
5428
5429         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
5430         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
5431         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
5432         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
5433         functions, not as a macro.
5434         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
5435         macros.
5436         (isfinite, isinf, isnan, signbit): Check overloaded functions and
5437         absence of macro.
5438         Suggested by Eric Blake.
5439         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5440
5441 2011-10-21  Bruno Haible  <bruno@clisp.org>
5442
5443         relocatable-prog-wrapper: Don't leave object files behind.
5444         * build-aux/install-reloc: Re-synchronize list of .o files to be
5445         removed with list of compilation units.
5446
5447 2011-10-20  Bruno Haible  <bruno@clisp.org>
5448
5449         openpty, posix_openpt: Remove code duplication.
5450         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
5451         * lib/openpty.c: Include <stdlib.h>.
5452         (openpty): Use posix_openpt on all platforms except IRIX.
5453         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
5454
5455 2011-10-20  Bruno Haible  <bruno@clisp.org>
5456
5457         unlockpt: Detect invalid argument.
5458         * lib/unlockpt.c: Include <fcntl.h>.
5459         (unlockpt): Check whether fd is valid, using fcntl().
5460         * modules/unlockpt (Depends-on): Add fcntl-h.
5461
5462 2011-10-20  Bruno Haible  <bruno@clisp.org>
5463
5464         openpty: Avoid compilation error on AIX 6.1.
5465         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
5466
5467 2011-10-20  Bruno Haible  <bruno@clisp.org>
5468
5469         posix_openpt: Support for OpenBSD.
5470         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
5471         (posix_openpt) [OpenBSD]: New code.
5472         * lib/grantpt.c: Include <fcntl.h>.
5473         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
5474         * modules/grantpt (Depends-on): Add fcntl-h.
5475
5476 2011-10-20  Bruno Haible  <bruno@clisp.org>
5477
5478         posix_openpt test: Coding style.
5479         * tests/test-posix_openpt.c: Use GNU coding style.
5480
5481 2011-10-20  Bruno Haible  <bruno@clisp.org>
5482
5483         grantpt: Support --avoid=pt_chown.
5484         * modules/grantpt (Files): Add lib/pty-private.h.
5485
5486 2011-10-20  Bruno Haible  <bruno@clisp.org>
5487
5488         posix_openpt: Fix autoconf macro.
5489         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
5490         unneeded check for _getpty.
5491
5492 2011-10-20  Bruno Haible  <bruno@clisp.org>
5493
5494         openpty: Update comments.
5495         * lib/openpty.c: Add comments about Minix.
5496
5497 2011-10-19  Eric Blake  <eblake@redhat.com>
5498
5499         openpty: relax license
5500         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
5501
5502         pt_chown: use configmake to simplify build
5503         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
5504
5505         ptsname and others: relax license
5506         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
5507         * modules/unlockpt (License): Likewise.
5508         * modules/pt_chown (License): Likewise.
5509         * modules/ptsname (License): Likewise.
5510         * modules/ttyname_r (License): Likewise.
5511
5512 2011-10-19  Jim Meyering  <meyering@redhat.com>
5513
5514         posix_openpt: remove spurious #endif
5515         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
5516
5517 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
5518
5519         maint.mk: Respect $(build_aux) in web-manual rule.
5520         * top/maint.mk (web-manual): Find gen-announce script in user's
5521         $(build_aux) directory instead of hard-coding 'build-aux'.
5522
5523 2011-10-19  Bruno Haible  <bruno@clisp.org>
5524
5525         posix_openpt: Fix compilation error.
5526         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
5527         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
5528         Mention the openpty module as an alternative.
5529
5530 2011-10-19  Bruno Haible  <bruno@clisp.org>
5531
5532         Support for old NeXTstep 3.3 frexp().
5533         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
5534         execution time of the test to 5 seconds.
5535         Reported by Daniel Richard G. <skunk@iskunk.org>.
5536
5537 2011-10-19  Bruno Haible  <bruno@clisp.org>
5538
5539         Support for old NeXTstep 3.3 sed.
5540         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
5541         part, use /.../, not \|...|. Escape periods in the header file name.
5542         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5543         Reported by Daniel Richard G. <skunk@iskunk.org>.
5544
5545 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
5546
5547         Support for old NeXTstep 3.3 gcc.
5548         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
5549         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
5550         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
5551         * lib/spawn.in.h (_Restrict_arr_): Likewise.
5552         * lib/regex.h (_Restrict_arr_): Likewise.
5553         * lib/regex_internal.h (re_token_t): Likewise.
5554         * lib/regexec.c (check_node_accept_bytes): Likewise.
5555         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
5556
5557 2011-10-18  Eric Blake  <eblake@redhat.com>
5558
5559         posix_openpt: new module
5560         * modules/posix_openpt: New module.
5561         * m4/posix_openpt.m4: New file.
5562         * lib/posix_openpt.c: Likewise.
5563         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5564         (gl_STDLIB_H_DEFAULTS): Set defaults.
5565         * modules/stdlib (Makefile.am): Substitute macros.
5566         * lib/stdlib.in.h (posix_openpt): Declare.
5567         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
5568         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
5569         * modules/posix_openpt-tests: New test module.
5570         * tests/test-posix_openpt.c: New test.
5571
5572 2011-10-15  Bruno Haible  <bruno@clisp.org>
5573
5574         xstrtoll: Fix compilation failure.
5575         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
5576         from lib/strtol.c.
5577         * doc/posix-headers/limits.texi: Mention missing numerical limits on
5578         some platforms.
5579         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5580
5581 2011-10-15  Bruno Haible  <bruno@clisp.org>
5582
5583         vasnprintf: Optimize bit search operation.
5584         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
5585         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
5586         gl_DOUBLE_EXPONENT_LOCATION.
5587         * modules/vasnprintf (Files): Add m4/exponentd.m4.
5588         * modules/unistdio/u8-vasnprintf (Files): Likewise.
5589         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
5590         * modules/unistdio/u16-vasnprintf (Files): Likewise.
5591         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
5592         * modules/unistdio/u32-vasnprintf (Files): Likewise.
5593         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
5594         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
5595         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
5596
5597 2011-10-15  Bruno Haible  <bruno@clisp.org>
5598
5599         vasnprintf: Fix comments.
5600         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
5601
5602 2011-10-14  Bruno Haible  <bruno@clisp.org>
5603
5604         Tests for module 'integer_length_ll'.
5605         * modules/integer_length_ll-tests: New file.
5606         * tests/test-integer_length_ll.c: New file.
5607
5608         New module 'integer_length_ll'.
5609         * lib/integer_length_ll.c: New file.
5610         * modules/integer_length_ll: New file.
5611
5612 2011-10-14  Bruno Haible  <bruno@clisp.org>
5613
5614         Tests for module 'integer_length_l'.
5615         * modules/integer_length_l-tests: New file.
5616         * tests/test-integer_length_l.c: New file.
5617
5618         New module 'integer_length_l'.
5619         * lib/integer_length_l.c: New file.
5620         * modules/integer_length_l: New file.
5621
5622 2011-10-14  Bruno Haible  <bruno@clisp.org>
5623
5624         Tests for module 'integer_length'.
5625         * modules/integer_length-tests: New file.
5626         * tests/test-integer_length.c: New file.
5627
5628         New module 'integer_length'.
5629         * lib/integer_length.h: New file.
5630         * lib/integer_length.c: New file.
5631         * modules/integer_length: New file.
5632
5633 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
5634
5635         popen: Fix dependency conditions.
5636         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
5637
5638 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
5639
5640         perror: Fix autoconf test.
5641         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
5642         <stdlib.h> and <string.h>.
5643
5644 2011-10-14  Bruno Haible  <bruno@clisp.org>
5645
5646         ffsl: Optimize on 64-bit platforms.
5647         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
5648         unrolling.
5649
5650 2011-10-13  Bruno Haible  <bruno@clisp.org>
5651
5652         ffsl: Optimize on 32-bit platforms.
5653         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
5654         use ffs() without a loop.
5655
5656         ffsl, ffsll: Optimize for GCC.
5657         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
5658         * lib/ffsl.c (GCC_BUILTIN): New macro.
5659         * lib/ffsll.c (GCC_BUILTIN): Likewise.
5660
5661 2011-10-13  Bruno Haible  <bruno@clisp.org>
5662
5663         ffs, bcopy, memset: Support symbol renaming via config.h.
5664         * lib/ffs.c: Include <config.h>.
5665         * lib/bcopy.c: Likewise.
5666         * lib/memset.c: Likewise.
5667
5668 2011-10-10  Bruno Haible  <bruno@clisp.org>
5669
5670         atanl: Simplify for platforms where 'long double' == 'double'.
5671         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5672         alternative implementation.
5673         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5674         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5675         * modules/atanl (Depends-on): Add atan. Update conditions.
5676
5677 2011-10-10  Bruno Haible  <bruno@clisp.org>
5678
5679         acosl: Simplify for platforms where 'long double' == 'double'.
5680         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5681         alternative implementation.
5682         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5683         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5684         * modules/acosl (Depends-on): Add acos. Update conditions.
5685
5686 2011-10-10  Bruno Haible  <bruno@clisp.org>
5687
5688         asinl: Simplify for platforms where 'long double' == 'double'.
5689         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5690         alternative implementation.
5691         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5692         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5693         * modules/asinl (Depends-on): Add asin. Update conditions.
5694
5695 2011-10-10  Bruno Haible  <bruno@clisp.org>
5696
5697         tanl: Simplify for platforms where 'long double' == 'double'.
5698         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5699         implementation.
5700         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5701         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5702         * modules/tanl (Depends-on): Add tan. Update conditions.
5703         (configure.ac): Don't compile trigl.c if
5704         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5705
5706 2011-10-10  Bruno Haible  <bruno@clisp.org>
5707
5708         cosl: Simplify for platforms where 'long double' == 'double'.
5709         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5710         implementation.
5711         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5712         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5713         * modules/cosl (Depends-on): Add cos. Update conditions.
5714         (configure.ac): Don't compile sincosl.c and trigl.c if
5715         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5716
5717 2011-10-10  Bruno Haible  <bruno@clisp.org>
5718
5719         sinl: Simplify for platforms where 'long double' == 'double'.
5720         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5721         implementation.
5722         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5723         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5724         * modules/sinl (Depends-on): Add sin. Update conditions.
5725         (configure.ac): Don't compile sincosl.c and trigl.c if
5726         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5727
5728 2011-10-10  Bruno Haible  <bruno@clisp.org>
5729
5730         logl: Simplify for platforms where 'long double' == 'double'.
5731         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5732         implementation.
5733         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5734         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5735         * modules/logl (Depends-on): Add log. Update conditions.
5736
5737 2011-10-10  Bruno Haible  <bruno@clisp.org>
5738
5739         expl: Simplify for platforms where 'long double' == 'double'.
5740         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5741         implementation.
5742         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5743         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5744         * modules/expl (Depends-on): Add exp. Update conditions.
5745
5746 2011-10-10  Bruno Haible  <bruno@clisp.org>
5747
5748         sqrtl: Simplify for platforms where 'long double' == 'double'.
5749         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5750         alternative implementation.
5751         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5752         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5753         * modules/sqrtl (Depends-on): Update conditions.
5754
5755 2011-10-10  Bruno Haible  <bruno@clisp.org>
5756
5757         ldexpl: Simplify for platforms where 'long double' == 'double'.
5758         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5759         alternative implementation.
5760         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5761         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5762         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
5763
5764 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
5765
5766         ffsll: set correct witness
5767         * modules/ffsll (configure.ac): Fix typo.
5768
5769 2011-10-10  Bruno Haible  <bruno@clisp.org>
5770
5771         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
5772         * lib/printf-frexpl.c: Include <config.h>.
5773         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5774         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
5775         second time.
5776         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
5777         gl_LONG_DOUBLE_VS_DOUBLE.
5778         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
5779         conditions.
5780
5781 2011-10-10  Bruno Haible  <bruno@clisp.org>
5782
5783         frexpl: Simplify for platforms where 'long double' == 'double'.
5784         * lib/frexpl.c: Include <config.h>.
5785         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5786         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5787         time.
5788         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5789         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5790         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
5791         * modules/frexpl (Depends-on): Add frexp. Update conditions.
5792         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
5793         conditions.
5794
5795 2011-10-10  Jim Meyering  <meyering@redhat.com>
5796
5797         test-renameat: don't leave behind a temporary file
5798         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
5799           ERROR: files left in build directory after distclean:
5800           ./gltests/test-renameat.too
5801           make[1]: *** [distcleancheck] Error 1
5802         Reported by Tom G. Christensen.
5803
5804 2011-10-09  Bruno Haible  <bruno@clisp.org>
5805
5806         rint: Determine RINT_LIBM correctly on AIX 7.
5807         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
5808         directly, not only through a function pointer. Also accept an optional
5809         4th argument with extra code.
5810         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
5811         rintf() call by gcc when optimizing.
5812
5813         mathfunc.m4: Refactor.
5814         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
5815         m4 variable.
5816
5817 2011-10-09  Bruno Haible  <bruno@clisp.org>
5818
5819         rintl: Simplify for platforms where 'long double' == 'double'.
5820         * lib/rintl.c: Include <config.h>.
5821         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5822         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5823         time.
5824         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5825         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5826         * modules/rintl (Depends-on): Add rint. Update conditions.
5827
5828 2011-10-09  Bruno Haible  <bruno@clisp.org>
5829
5830         roundl: Simplify for platforms where 'long double' == 'double'.
5831         * lib/roundl.c: Include <config.h>.
5832         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5833         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5834         time.
5835         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5836         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5837         * modules/roundl (Depends-on): Add round. Update conditions.
5838
5839 2011-10-09  Bruno Haible  <bruno@clisp.org>
5840
5841         truncl: Simplify for platforms where 'long double' == 'double'.
5842         * lib/truncl.c: Include <config.h>.
5843         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5844         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5845         time.
5846         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5847         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5848         * modules/truncl (Depends-on): Add trunc. Update conditions.
5849
5850 2011-10-09  Bruno Haible  <bruno@clisp.org>
5851
5852         ceill: Simplify for platforms where 'long double' == 'double'.
5853         * lib/ceill.c: Include <config.h>.
5854         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5855         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5856         time.
5857         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5858         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5859         * modules/ceill (Depends-on): Add ceil. Update conditions.
5860
5861 2011-10-09  Bruno Haible  <bruno@clisp.org>
5862
5863         floorl: Simplify for platforms where 'long double' == 'double'.
5864         * lib/floorl.c: Include <config.h>.
5865         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5866         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5867         time.
5868         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5869         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5870         * modules/floorl (Depends-on): Add floor. Update conditions.
5871
5872 2011-10-09  Bruno Haible  <bruno@clisp.org>
5873
5874         rint: Fix ordering constraints.
5875         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
5876         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5877         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5878
5879 2011-10-09  Bruno Haible  <bruno@clisp.org>
5880
5881         copysignl: Simplify for platforms where 'long double' == 'double'.
5882         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5883         alternative.
5884         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5885         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5886         * modules/copysignl (Depends-on): Add copysign. Update conditions.
5887
5888 2011-10-09  Bruno Haible  <bruno@clisp.org>
5889
5890         Tests for module 'rintl'.
5891         * modules/rintl-tests: New file.
5892         * tests/test-rintl.c: New file.
5893
5894         New module 'rintl'.
5895         * lib/math.in.h (rintl): New declaration.
5896         * lib/rintl.c: New file.
5897         * m4/rintl.m4: New file.
5898         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
5899         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
5900         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
5901         * modules/rintl: New file.
5902         * tests/test-math-c++.cc: Check the declaration of rintl.
5903         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5904         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
5905         * doc/posix-functions/rintl.texi: Mention the new module.
5906
5907 2011-10-09  Bruno Haible  <bruno@clisp.org>
5908
5909         Tests for module 'rintf'.
5910         * modules/rintf-tests: New file.
5911         * tests/test-rintf.c: New file.
5912
5913         New module 'rintf'.
5914         * lib/math.in.h (rintf): New declaration.
5915         * lib/rintf.c: New file.
5916         * m4/rintf.m4: New file.
5917         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
5918         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
5919         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
5920         * modules/rintf: New file.
5921         * tests/test-math-c++.cc: Check the declaration of rintf.
5922         * doc/posix-functions/rintf.texi: Mention the new module.
5923
5924 2011-10-09  Bruno Haible  <bruno@clisp.org>
5925
5926         rint: Support for MSVC.
5927         * lib/math.in.h (rint): New declaration.
5928         * lib/rint.c: New file.
5929         * m4/rint.m4: New file.
5930         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
5931         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
5932         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
5933         * modules/rint (Description): Fix.
5934         (Files): Add lib/rint.c, m4/rint.m4.
5935         (Depends-on): Add math.
5936         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
5937         gl_MATH_MODULE_INDICATOR.
5938         * tests/test-math-c++.cc: Check the declaration of rint.
5939         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5940         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
5941         * doc/posix-functions/rint.texi: Mention the replacement provided by
5942         the module.
5943
5944         rint tests: More tests.
5945         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
5946         minus-zero.h, infinity.h, nan.h.
5947         (main): Skip the test if the current rounding mode is not standard. Add
5948         tests for negative numbers, minus zero, infinity, NaN.
5949         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
5950         tests/nan.h.
5951         (Depends-on): Add isnand-nolibm.
5952
5953 2011-10-09  Bruno Haible  <bruno@clisp.org>
5954
5955         Tests for module 'copysignl'.
5956         * modules/copysignl-tests: New file.
5957         * tests/test-copysignl.c: New file.
5958
5959         New module 'copysignl'.
5960         * lib/math.in.h (copysignl): New declaration.
5961         * lib/copysignl.c: New file.
5962         * m4/copysignl.m4: New file.
5963         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
5964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
5965         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
5966         HAVE_COPYSIGNL.
5967         * modules/copysignl: New file.
5968         * tests/test-math-c++.cc: Check the declaration of copysignl.
5969         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5970         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
5971         * doc/posix-functions/copysignl.texi: Mention the new module.
5972
5973 2011-10-09  Bruno Haible  <bruno@clisp.org>
5974
5975         Tests for module 'copysignf'.
5976         * modules/copysignf-tests: New file.
5977         * tests/test-copysignf.c: New file.
5978
5979         New module 'copysignf'.
5980         * lib/math.in.h (copysignf): New declaration.
5981         * lib/copysignf.c: New file.
5982         * m4/copysignf.m4: New file.
5983         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
5984         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
5985         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
5986         HAVE_COPYSIGNF.
5987         * modules/copysignf: New file.
5988         * tests/test-math-c++.cc: Check the declaration of copysignf.
5989         * doc/posix-functions/copysignf.texi: Mention the new module.
5990
5991 2011-10-09  Bruno Haible  <bruno@clisp.org>
5992
5993         Ensure that HAVE_* variables are set to 1 before they are set to 0.
5994         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
5995         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
5996         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5997         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
5998         gl_SIGNAL_H_DEFAULTS.
5999
6000 2011-10-09  Bruno Haible  <bruno@clisp.org>
6001
6002         poll: Make macro safer.
6003         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6004         ac_cv_header_poll_h is not set.
6005
6006 2011-10-09  Bruno Haible  <bruno@clisp.org>
6007
6008         copysign: Provide replacement.
6009         * lib/math.in.h (copysign): New declaration.
6010         * lib/copysign.c: New file.
6011         * m4/copysign.m4: New file.
6012         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
6013         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
6014         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
6015         HAVE_COPYSIGN.
6016         * modules/copysign (Description): Clarify.
6017         (Files): Add lib/copysign.c, m4/copysign.m4.
6018         (Depends-on): Add math, signbit.
6019         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
6020         gl_MATH_MODULE_INDICATOR.
6021         * tests/test-math-c++.cc: Check the declaration of copysign.
6022         * doc/posix-functions/copysign.texi: Mention the effects of the module
6023         on Minix and MSVC.
6024
6025 2011-10-09  Bruno Haible  <bruno@clisp.org>
6026
6027         isinf: Ensure macro on AIX 5.1.
6028         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
6029         macro.
6030         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
6031
6032 2011-10-09  Bruno Haible  <bruno@clisp.org>
6033
6034         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
6035         * modules/snprintf-posix-tests (configure.ac): Require
6036         gl_LONG_DOUBLE_VS_DOUBLE.
6037         * modules/sprintf-posix-tests (configure.ac): Likewise.
6038         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
6039         * modules/vasprintf-posix-tests (configure.ac): Likewise.
6040         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
6041         * modules/vsprintf-posix-tests (configure.ac): Likewise.
6042         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
6043         tests on platforms where 'long double' is the same as 'double'.
6044         * tests/test-sprintf-posix.h (test_function): Likewise.
6045         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6046         * tests/test-vasprintf-posix.c (test_function): Likewise.
6047
6048         *printf: Fix for platforms where 'long double' == 'double'.
6049         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
6050         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
6051         * modules/dprintf-posix (Files): Add m4/math_h.m4.
6052         * modules/fprintf-posix (Files): Likewise.
6053         * modules/obstack-printf-posix (Files): Likewise.
6054         * modules/snprintf-posix (Files): Likewise.
6055         * modules/sprintf-posix (Files): Likewise.
6056         * modules/vasnprintf (Files): Likewise.
6057         * modules/vasnprintf-posix (Files): Likewise.
6058         * modules/vasprintf-posix (Files): Likewise.
6059         * modules/vdprintf-posix (Files): Likewise.
6060         * modules/vfprintf-posix (Files): Likewise.
6061         * modules/vsnprintf-posix (Files): Likewise.
6062         * modules/vsprintf-posix (Files): Likewise.
6063         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6064         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6065         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6066         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6067         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6068         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6069         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6070
6071         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
6072         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
6073         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6074         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
6075         'long double'.
6076         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
6077
6078         isinf: Fix for platforms where 'long double' == 'double'.
6079         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6080         Don't blindly assume 80-bit 'long double'.
6081
6082         isfinite: Fix for platforms where 'long double' == 'double'.
6083         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6084         Don't blindly assume 80-bit 'long double'.
6085
6086         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
6087         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
6088         * modules/isfinite-tests (configure.ac): Require
6089         gl_LONG_DOUBLE_VS_DOUBLE.
6090         * modules/isinf-tests (configure.ac): Likewise.
6091         * modules/isnan-tests (configure.ac): Likewise.
6092         * modules/isnanl-tests (configure.ac): Likewise.
6093         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
6094         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
6095         tests on platforms where 'long double' is the same as 'double'.
6096         * tests/test-isinf.c (test_isinfl): Likewise.
6097         * tests/test-isnan.c (test_long_double): Likewise.
6098         * tests/test-isnanl.h (main): Likewise.
6099
6100 2011-10-08  Bruno Haible  <bruno@clisp.org>
6101
6102         Tests for module 'tanhf'.
6103         * modules/tanhf-tests: New file.
6104         * tests/test-tanhf.c: New file.
6105
6106         New module 'tanhf'.
6107         * lib/math.in.h (tanhf): New declaration.
6108         * lib/tanhf.c: New file.
6109         * m4/tanhf.m4: New file.
6110         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
6111         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
6112         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
6113         * modules/tanhf: New file.
6114         * tests/test-math-c++.cc: Check the declaration of tanhf.
6115         * doc/posix-functions/tanhf.texi: Mention the new module.
6116
6117         tanh: Use a .m4 file.
6118         * m4/tanh.m4: New file.
6119         * modules/tanh (Files): Add it.
6120         (configure.ac): Just invoke gl_FUNC_TANH.
6121
6122 2011-10-08  Bruno Haible  <bruno@clisp.org>
6123
6124         Tests for module 'coshf'.
6125         * modules/coshf-tests: New file.
6126         * tests/test-coshf.c: New file.
6127
6128         New module 'coshf'.
6129         * lib/math.in.h (coshf): New declaration.
6130         * lib/coshf.c: New file.
6131         * m4/coshf.m4: New file.
6132         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
6133         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
6134         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
6135         * modules/coshf: New file.
6136         * tests/test-math-c++.cc: Check the declaration of coshf.
6137         * doc/posix-functions/coshf.texi: Mention the new module.
6138
6139         cosh: Use a .m4 file.
6140         * m4/cosh.m4: New file.
6141         * modules/cosh (Files): Add it.
6142         (configure.ac): Just invoke gl_FUNC_COSH.
6143
6144 2011-10-08  Bruno Haible  <bruno@clisp.org>
6145
6146         Tests for module 'sinhf'.
6147         * modules/sinhf-tests: New file.
6148         * tests/test-sinhf.c: New file.
6149
6150         New module 'sinhf'.
6151         * lib/math.in.h (sinhf): New declaration.
6152         * lib/sinhf.c: New file.
6153         * m4/sinhf.m4: New file.
6154         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
6155         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
6156         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
6157         * modules/sinhf: New file.
6158         * tests/test-math-c++.cc: Check the declaration of sinhf.
6159         * doc/posix-functions/sinhf.texi: Mention the new module.
6160
6161         sinh: Use a .m4 file.
6162         * m4/sinh.m4: New file.
6163         * modules/sinh (Files): Add it.
6164         (configure.ac): Just invoke gl_FUNC_SINH.
6165
6166 2011-10-08  Bruno Haible  <bruno@clisp.org>
6167
6168         Tests for module 'atan2f'.
6169         * modules/atan2f-tests: New file.
6170         * tests/test-atan2f.c: New file.
6171
6172         New module 'atan2f'.
6173         * lib/math.in.h (atan2f): New declaration.
6174         * lib/atan2f.c: New file.
6175         * m4/atan2f.m4: New file.
6176         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
6177         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
6178         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
6179         * modules/atan2f: New file.
6180         * tests/test-math-c++.cc: Check the declaration of atan2f.
6181         * doc/posix-functions/atan2f.texi: Mention the new module.
6182
6183         atan2: Use a .m4 file.
6184         * m4/atan2.m4: New file.
6185         * modules/atan2 (Files): Add it.
6186         (configure.ac): Just invoke gl_FUNC_ATAN2.
6187
6188 2011-10-08  Bruno Haible  <bruno@clisp.org>
6189
6190         Tests for module 'atanf'.
6191         * modules/atanf-tests: New file.
6192         * tests/test-atanf.c: New file.
6193
6194         New module 'atanf'.
6195         * lib/math.in.h (atanf): New declaration.
6196         * lib/atanf.c: New file.
6197         * m4/atanf.m4: New file.
6198         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
6199         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
6200         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
6201         * modules/atanf: New file.
6202         * tests/test-math-c++.cc: Check the declaration of atanf.
6203         * doc/posix-functions/atanf.texi: Mention the new module.
6204
6205         atan: Use a .m4 file.
6206         * m4/atan.m4: New file.
6207         * modules/atan (Files): Add it.
6208         (configure.ac): Just invoke gl_FUNC_ATAN.
6209
6210 2011-10-08  Bruno Haible  <bruno@clisp.org>
6211
6212         Tests for module 'acosf'.
6213         * modules/acosf-tests: New file.
6214         * tests/test-acosf.c: New file.
6215
6216         New module 'acosf'.
6217         * lib/math.in.h (acosf): New declaration.
6218         * lib/acosf.c: New file.
6219         * m4/acosf.m4: New file.
6220         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
6221         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
6222         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
6223         * modules/acosf: New file.
6224         * tests/test-math-c++.cc: Check the declaration of acosf.
6225         * doc/posix-functions/acosf.texi: Mention the new module.
6226
6227         acos: Use a .m4 file.
6228         * m4/acos.m4: New file.
6229         * modules/acos (Files): Add it.
6230         (configure.ac): Just invoke gl_FUNC_ACOS.
6231
6232 2011-10-08  Bruno Haible  <bruno@clisp.org>
6233
6234         Tests for module 'asinf'.
6235         * modules/asinf-tests: New file.
6236         * tests/test-asinf.c: New file.
6237
6238         New module 'asinf'.
6239         * lib/math.in.h (asinf): New declaration.
6240         * lib/asinf.c: New file.
6241         * m4/asinf.m4: New file.
6242         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
6243         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
6244         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
6245         * modules/asinf: New file.
6246         * tests/test-math-c++.cc: Check the declaration of asinf.
6247         * doc/posix-functions/asinf.texi: Mention the new module.
6248
6249         asin: Use a .m4 file.
6250         * m4/asin.m4: New file.
6251         * modules/asin (Files): Add it.
6252         (configure.ac): Just invoke gl_FUNC_ASIN.
6253
6254 2011-10-08  Bruno Haible  <bruno@clisp.org>
6255
6256         Tests for module 'tanf'.
6257         * modules/tanf-tests: New file.
6258         * tests/test-tanf.c: New file.
6259
6260         New module 'tanf'.
6261         * lib/math.in.h (tanf): New declaration.
6262         * lib/tanf.c: New file.
6263         * m4/tanf.m4: New file.
6264         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
6265         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
6266         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
6267         * modules/tanf: New file.
6268         * tests/test-math-c++.cc: Check the declaration of tanf.
6269         * doc/posix-functions/tanf.texi: Mention the new module.
6270
6271         tan: Use a .m4 file.
6272         * m4/tan.m4: New file.
6273         * modules/tan (Files): Add it.
6274         (configure.ac): Just invoke gl_FUNC_TAN.
6275
6276 2011-10-08  Bruno Haible  <bruno@clisp.org>
6277
6278         Tests for module 'cosf'.
6279         * modules/cosf-tests: New file.
6280         * tests/test-cosf.c: New file.
6281
6282         New module 'cosf'.
6283         * lib/math.in.h (cosf): New declaration.
6284         * lib/cosf.c: New file.
6285         * m4/cosf.m4: New file.
6286         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
6287         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
6288         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
6289         * modules/cosf: New file.
6290         * tests/test-math-c++.cc: Check the declaration of cosf.
6291         * doc/posix-functions/cosf.texi: Mention the new module.
6292
6293         cos: Use a .m4 file.
6294         * m4/cos.m4: New file.
6295         * modules/cos (Files): Add it.
6296         (configure.ac): Just invoke gl_FUNC_COS.
6297
6298 2011-10-08  Bruno Haible  <bruno@clisp.org>
6299
6300         Tests for module 'sinf'.
6301         * modules/sinf-tests: New file.
6302         * tests/test-sinf.c: New file.
6303
6304         New module 'sinf'.
6305         * lib/math.in.h (sinf): New declaration.
6306         * lib/sinf.c: New file.
6307         * m4/sinf.m4: New file.
6308         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
6309         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
6310         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
6311         * modules/sinf: New file.
6312         * tests/test-math-c++.cc: Check the declaration of sinf.
6313         * doc/posix-functions/sinf.texi: Mention the new module.
6314
6315         sin: Use a .m4 file.
6316         * m4/sin.m4: New file.
6317         * modules/sin (Files): Add it.
6318         (configure.ac): Just invoke gl_FUNC_SIN.
6319
6320 2011-10-08  Bruno Haible  <bruno@clisp.org>
6321
6322         Tests for module 'powf'.
6323         * modules/powf-tests: New file.
6324         * tests/test-powf.c: New file.
6325
6326         New module 'powf'.
6327         * lib/math.in.h (powf): New declaration.
6328         * lib/powf.c: New file.
6329         * m4/powf.m4: New file.
6330         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
6331         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
6332         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
6333         * modules/powf: New file.
6334         * tests/test-math-c++.cc: Check the declaration of powf.
6335         * doc/posix-functions/powf.texi: Mention the new module.
6336
6337         pow: Use a .m4 file.
6338         * m4/pow.m4: New file.
6339         * modules/pow (Files): Add it.
6340         (configure.ac): Just invoke gl_FUNC_POW.
6341
6342 2011-10-08  Bruno Haible  <bruno@clisp.org>
6343
6344         Tests for module 'log10f'.
6345         * modules/log10f-tests: New file.
6346         * tests/test-log10f.c: New file.
6347
6348         New module 'log10f'.
6349         * lib/math.in.h (log10f): New declaration.
6350         * lib/log10f.c: New file.
6351         * m4/log10f.m4: New file.
6352         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
6353         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
6354         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
6355         * modules/log10f: New file.
6356         * tests/test-math-c++.cc: Check the declaration of log10f.
6357         * doc/posix-functions/log10f.texi: Mention the new module.
6358
6359         log10: Use a .m4 file.
6360         * m4/log10.m4: New file.
6361         * modules/log10 (Files): Add it.
6362         (configure.ac): Just invoke gl_FUNC_LOG10.
6363
6364 2011-10-08  Bruno Haible  <bruno@clisp.org>
6365
6366         Tests for module 'logf'.
6367         * modules/logf-tests: New file.
6368         * tests/test-logf.c: New file.
6369
6370         New module 'logf'.
6371         * lib/math.in.h (logf): New declaration.
6372         * lib/logf.c: New file.
6373         * m4/logf.m4: New file.
6374         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
6375         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
6376         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
6377         * modules/logf: New file.
6378         * tests/test-math-c++.cc: Check the declaration of logf.
6379         * doc/posix-functions/logf.texi: Mention the new module.
6380
6381         log: Use a .m4 file.
6382         * m4/log.m4: New file.
6383         * modules/log (Files): Add it.
6384         (configure.ac): Just invoke gl_FUNC_LOG.
6385
6386 2011-10-08  Bruno Haible  <bruno@clisp.org>
6387
6388         Tests for module 'expf'.
6389         * modules/expf-tests: New file.
6390         * tests/test-expf.c: New file.
6391
6392         New module 'expf'.
6393         * lib/math.in.h (expf): New declaration.
6394         * lib/expf.c: New file.
6395         * m4/expf.m4: New file.
6396         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
6397         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
6398         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
6399         * modules/expf: New file.
6400         * tests/test-math-c++.cc: Check the declaration of expf.
6401         * doc/posix-functions/expf.texi: Mention the new module.
6402
6403         exp: Use a .m4 file.
6404         * m4/exp.m4: New file.
6405         * modules/exp (Files): Add it.
6406         (configure.ac): Just invoke gl_FUNC_EXP.
6407
6408 2011-10-08  Bruno Haible  <bruno@clisp.org>
6409
6410         Tests for module 'sqrtf'.
6411         * modules/sqrtf-tests: New file.
6412         * tests/test-sqrtf.c: New file.
6413
6414         New module 'sqrtf'.
6415         * lib/math.in.h (sqrtf): New declaration.
6416         * lib/sqrtf.c: New file.
6417         * m4/sqrtf.m4: New file.
6418         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
6419         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
6420         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
6421         * modules/sqrtf: New file.
6422         * tests/test-math-c++.cc: Check the declaration of sqrtf.
6423         * doc/posix-functions/sqrtf.texi: Mention the new module.
6424
6425 2011-10-08  Bruno Haible  <bruno@clisp.org>
6426
6427         Tests: Avoid link failures w.r.t. libintl.
6428         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
6429         $(LIBINTL).
6430         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
6431         $(LIBINTL).
6432         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
6433         against $(LIBINTL).
6434         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
6435         $(LIBINTL).
6436         * modules/openat-tests (Makefile.am): Link test-fchmodat against
6437         $(LIBINTL).
6438         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
6439
6440 2011-10-08  Bruno Haible  <bruno@clisp.org>
6441
6442         pow tests: Defeat compiler optimizations.
6443         * tests/test-pow.c (main): Assign arguments to x and y before use.
6444
6445 2011-10-08  Bruno Haible  <bruno@clisp.org>
6446
6447         gnulib-tool: Improve last commit.
6448         * gnulib-tool (func_modules_transitive_closure): Simplify code.
6449         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
6450         ignore dependencies that are not among the modules list.
6451
6452 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
6453
6454         gnulib-tool: don't follow dependencies to avoided modules
6455         This fixes a bug that is related to the previous one.
6456         * gnulib-tool (func_modules_transitive_closure)
6457         (func_emit_autoconf_snippets):
6458         Check whether a dependency is acceptable before using it.
6459         (--extract-dependencies): Report an error if --avoid is also used,
6460         since this combination of options is not yet supported.
6461
6462         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
6463         Problem reported by Peter Dyballa in
6464         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
6465         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
6466         when echoing "$condition".
6467
6468 2011-10-07  Bruno Haible  <bruno@clisp.org>
6469
6470         Fix documentation about math functions on MacOS X.
6471         * doc/posix-functions/exp2.texi: Don't say the function is missing on
6472         MacOS X 10.5.
6473         * doc/posix-functions/fdim.texi: Likewise.
6474         * doc/posix-functions/feclearexcept.texi: Likewise.
6475         * doc/posix-functions/fegetenv.texi: Likewise.
6476         * doc/posix-functions/fegetround.texi: Likewise.
6477         * doc/posix-functions/feholdexcept.texi: Likewise.
6478         * doc/posix-functions/feraiseexcept.texi: Likewise.
6479         * doc/posix-functions/fesetenv.texi: Likewise.
6480         * doc/posix-functions/fesetround.texi: Likewise.
6481         * doc/posix-functions/fetestexcept.texi: Likewise.
6482         * doc/posix-functions/feupdateenv.texi: Likewise.
6483         * doc/posix-functions/fmax.texi: Likewise.
6484         * doc/posix-functions/fmin.texi: Likewise.
6485         * doc/posix-functions/log2.texi: Likewise.
6486         * doc/posix-functions/modff.texi: Likewise.
6487         * doc/posix-functions/nan.texi: Likewise.
6488         * doc/posix-functions/nanf.texi: Likewise.
6489         * doc/posix-functions/nextafterf.texi: Likewise.
6490         * doc/posix-functions/remquo.texi: Likewise.
6491
6492 2011-10-07  Bruno Haible  <bruno@clisp.org>
6493
6494         modff: Drop assumption about library that defines modff.
6495         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
6496         AC_CHECK_FUNCS.
6497         * modules/modff (Files): Add m4/mathfunc.m4.
6498
6499 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
6500
6501         raise tests: Avoid a GCC warning.
6502         * tests/test-raise.c (handler): Use _Noreturn.
6503
6504 2011-10-07  Bruno Haible  <bruno@clisp.org>
6505
6506         Tests for module 'ldexpf'.
6507         * modules/ldexpf-tests: New file.
6508         * tests/test-ldexpf.c: New file.
6509
6510         New module 'ldexpf'.
6511         * lib/math.in.h (ldexpf): New declaration.
6512         * lib/ldexpf.c: New file.
6513         * m4/ldexpf.m4: New file.
6514         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
6515         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
6516         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
6517         * modules/ldexpf: New file.
6518         * tests/test-math-c++.cc: Check the declaration of ldexpf.
6519         * doc/posix-functions/ldexpf.texi: Mention the new module.
6520
6521 2011-10-06  Bruno Haible  <bruno@clisp.org>
6522
6523         frexpf: Work around problems on IRIX and mingw.
6524         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
6525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
6526         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
6527         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
6528         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
6529         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
6530         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
6531
6532 2011-10-06  Bruno Haible  <bruno@clisp.org>
6533
6534         fabsf: Drop assumption about library that defines fabsf.
6535         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
6536         AC_CHECK_FUNCS.
6537         * modules/fabsf (Files): Add m4/mathfunc.m4.
6538
6539 2011-10-06  Bruno Haible  <bruno@clisp.org>
6540
6541         frexpf: Drop assumption about library that defines frexpf.
6542         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
6543         'int *', 'float *', 'long double *', 'float', 'long double'.
6544         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
6545         AC_CHECK_FUNCS.
6546         * modules/frexpf (Files): Add m4/mathfunc.m4.
6547
6548         Tests for module 'frexpf'.
6549         * modules/frexpf-tests: New file.
6550         * tests/test-frexpf.c: New file.
6551
6552         New module 'frexpf'.
6553         * lib/math.in.h (frexpf): New declaration.
6554         * lib/frexpf.c: New file.
6555         * m4/frexpf.m4: New file.
6556         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
6557         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
6558         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
6559         * modules/frexpf: New file.
6560         * tests/test-math-c++.cc: Check the declaration of frexpf.
6561         * doc/posix-functions/frexpf.texi: Mention the new module.
6562
6563 2011-10-06  Bruno Haible  <bruno@clisp.org>
6564
6565         math: Sort function declarations of math.in.h.
6566         * lib/math.in.h (frexp, logb): Move declarations.
6567
6568 2011-10-05  Bruno Haible  <bruno@clisp.org>
6569
6570         Tests for module 'modff'.
6571         * modules/modff-tests: New file.
6572         * tests/test-modff.c: New file.
6573
6574         New module 'modff'.
6575         * lib/math.in.h (modff): New declaration.
6576         * lib/modff.c: New file.
6577         * m4/modff.m4: New file.
6578         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
6579         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
6580         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
6581         * modules/modff: New file.
6582         * tests/test-math-c++.cc: Check the declaration of modff.
6583         * doc/posix-functions/modff.texi: Mention the new module.
6584
6585         modf tests: Make test sharper.
6586         * tests/test-modf.c (main): Strengthen upper bound.
6587
6588         modf: Use a .m4 file.
6589         * m4/modf.m4: New file.
6590         * modules/modf (Files): Add it.
6591         (configure.ac): Just invoke gl_FUNC_MODF.
6592
6593 2011-10-05  Bruno Haible  <bruno@clisp.org>
6594
6595         Tests for module 'fmodf'.
6596         * modules/fmodf-tests: New file.
6597         * tests/test-fmodf.c: New file.
6598
6599         New module 'fmodf'.
6600         * lib/math.in.h (fmodf): New declaration.
6601         * lib/fmodf.c: New file.
6602         * m4/fmodf.m4: New file.
6603         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
6604         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
6605         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
6606         * modules/fmodf: New file.
6607         * tests/test-math-c++.cc: Check the declaration of fmodf.
6608         * doc/posix-functions/fmodf.texi: Mention the new module.
6609
6610         fmod: Use a .m4 file.
6611         * m4/fmod.m4: New file.
6612         * modules/fmod (Files): Add it.
6613         (configure.ac): Just invoke gl_FUNC_FMOD.
6614
6615 2011-10-05  Bruno Haible  <bruno@clisp.org>
6616
6617         Tests for module 'fabsf'.
6618         * modules/fabsf-tests: New file.
6619         * tests/test-fabsf.c: New file.
6620
6621         New module 'fabsf'.
6622         * lib/math.in.h (fabsf): New declaration.
6623         * lib/fabsf.c: New file.
6624         * m4/fabsf.m4: New file.
6625         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
6626         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
6627         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
6628         * modules/fabsf: New file.
6629         * tests/test-math-c++.cc: Check the declaration of fabsf.
6630         * doc/posix-functions/fabsf.texi: Mention the new module.
6631
6632         fabs: Use a .m4 file.
6633         * m4/fabs.m4: New file.
6634         * modules/fabs (Files): Add it.
6635         (configure.ac): Just invoke gl_FUNC_FABS.
6636
6637 2011-10-05  Jim Meyering  <meyering@redhat.com>
6638
6639         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
6640         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
6641         ls -lL regression introduced in coreutils-8.12, it does so at the
6642         cost of an additional stat call in the common case.  Besides, now
6643         that the kernel change that prompted commit 95f7c57f has been reverted
6644         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
6645         we have no use for commit 95f7c57f, "file-has-acl: use
6646         acl_extended_file_nofollow if available".
6647
6648 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
6649
6650         file-has-acl: revert unintended change in behavior of ls -L
6651         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
6652         derived from...
6653         (file_has_acl): ...code here.  Call it.
6654         This problem was introduced with 2011-07-22 commit 95f7c57f,
6655         "file-has-acl: use acl_extended_file_nofollow if available".
6656         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
6657
6658 2011-10-03  Bruno Haible  <bruno@clisp.org>
6659
6660         poll: Avoid link errors on MSVC.
6661         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
6662         * modules/poll (Depends-on): Add sockets.
6663         (Link): New section.
6664         * NEWS: Mention the change.
6665         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
6666         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
6667         $(LIB_POLL) instead of $(LIBSOCKET).
6668
6669 2011-10-03  Bruno Haible  <bruno@clisp.org>
6670
6671         sys_select tests: Fix link error on MSVC 9.
6672         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
6673         with $(LIB_SELECT) instead of $(LIBSOCKET).
6674
6675 2011-10-03  Bruno Haible  <bruno@clisp.org>
6676
6677         sys_select: Fix compilation error on mingw.
6678         * lib/sys_select.in.h: On native Windows, include <io.h>.
6679
6680 2011-10-03  Bruno Haible  <bruno@clisp.org>
6681
6682         wmemset: Support for MSVC.
6683         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
6684         whether wmemset() exists.
6685
6686 2011-10-03  Bruno Haible  <bruno@clisp.org>
6687
6688         wmemmove: Support for MSVC.
6689         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
6690         whether wmemmove() exists.
6691
6692 2011-10-03  Bruno Haible  <bruno@clisp.org>
6693
6694         wmemcpy: Support for MSVC.
6695         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
6696         whether wmemcpy() exists.
6697
6698 2011-10-03  Bruno Haible  <bruno@clisp.org>
6699
6700         wmemcmp: Support for MSVC.
6701         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
6702         whether wmemcmp() exists.
6703
6704 2011-10-03  Bruno Haible  <bruno@clisp.org>
6705
6706         wmemchr: Support for MSVC.
6707         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
6708         whether wmemchr() exists.
6709
6710 2011-10-03  Bruno Haible  <bruno@clisp.org>
6711
6712         glthread/*, strsignal: Support for MSVC.
6713         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
6714         including <winsock.h> on MSVC 9.
6715         * lib/glthread/lock.h: Likewise.
6716         * lib/glthread/thread.h: Likewise.
6717         * lib/glthread/tls.h: Likewise.
6718         * lib/glthread/yield.h: Likewise.
6719         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
6720         if HAVE_UNISTD_H is false.
6721         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
6722
6723 2011-10-03  Bruno Haible  <bruno@clisp.org>
6724
6725         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
6726         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
6727         Set to 100000.
6728
6729 2011-10-03  Bruno Haible  <bruno@clisp.org>
6730
6731         acl: Fix specification.
6732         * lib/file-has-acl.c (file_has_acl): Fix specification.
6733
6734 2011-10-03  Bruno Haible  <bruno@clisp.org>
6735
6736         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
6737         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
6738         (compute_curr_prefix, shared_library_fullname,
6739         find_shared_library_fullname, get_shared_library_fullname, relocate):
6740         Use it together with PIC && INSTALLDIR.
6741         Reported by <jojelino@gmail.com>
6742         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
6743
6744 2011-10-01  Jim Meyering  <meyering@redhat.com>
6745
6746         maint.mk: adjust a release-related rule not to require use of gzip
6747         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
6748         Instead, check each file in $(DIST_ARCHIVES).  This is better for
6749         projects that build only .tar.xz files.  Also fix an erroneous test.
6750
6751         test-linkat: don't leave behind a temporary file
6752         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
6753         Otherwise, coreutils' "make distcheck" would fail with this:
6754           Only in /c/cu/tests/torture/coreutils/test/\
6755             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
6756           make[2]: *** [my-distcheck] Error 1
6757
6758         float, math: add omitted file
6759         * lib/itold.c: Add file, required for yesterday's float change.
6760
6761 2011-10-01  Bruno Haible  <bruno@clisp.org>
6762
6763         isinf: Fix for OpenBSD/x86.
6764         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
6765         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
6766         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
6767
6768 2011-10-01  Bruno Haible  <bruno@clisp.org>
6769
6770         isfinite: Fix syntax error in configure test.
6771         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
6772
6773         isfinite: Fix typo.
6774         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
6775         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
6776
6777 2011-10-01  Bruno Haible  <bruno@clisp.org>
6778
6779         nonblocking tests: Fix test failure on Linux/IA-64.
6780         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
6781         Set to 270000.
6782
6783 2011-10-01  Bruno Haible  <bruno@clisp.org>
6784
6785         mkfifoat tests: Fix a test failure on mingw.
6786         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
6787         with error ENOSYS.
6788
6789 2011-09-30  Bruno Haible  <bruno@clisp.org>
6790
6791         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
6792         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
6793         'long double'. Set REPLACE_ITOLD.
6794         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
6795         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
6796         * lib/itold.c: New file.
6797         * modules/float (Files): Add lib/itold.c.
6798         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
6799         (Makefile.am): Substitute REPLACE_ITOLD.
6800         * modules/math (Depends-on): Add float.
6801         (Makefile.am): Substitute REPLACE_ITOLD.
6802         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
6803         * doc/posix-headers/math.texi: Likewise.
6804         * doc/posix-functions/logl.texi: Likewise.
6805
6806 2011-09-30  Bruno Haible  <bruno@clisp.org>
6807
6808         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
6809         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
6810         Set to 140000.
6811
6812 2011-09-30  Bruno Haible  <bruno@clisp.org>
6813
6814         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
6815         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
6816         invocation, say "right after AC_PROG_CC_STDC", not "right after
6817         AC_PROG_CC".
6818         Reported by Gary V. Vaughan <gary@gnu.org>.
6819
6820 2011-09-30  Bruno Haible  <bruno@clisp.org>
6821
6822         Centralize C99 requirement.
6823         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
6824         * modules/stdarg (configure.ac-early): Invoke it instead of
6825         AC_PROG_CC_STDC.
6826         Reported by Gary V. Vaughan and Paul Eggert.
6827
6828 2011-09-29  Bruno Haible  <bruno@clisp.org>
6829
6830         float: Fix LDBL_MAX value on Linux/PowerPC.
6831         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
6832         on Linux/PowerPC.
6833         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
6834         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
6835         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
6836         platform.
6837         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
6838
6839 2011-09-29  Bruno Haible  <bruno@clisp.org>
6840
6841         doc: Improve doc about gl_EARLY.
6842         * doc/gnulib-tool.texi (Initial import): Mention where to place an
6843         AC_PROG_CC_STDC invocation.
6844         Reported by Gary V. Vaughan <gary@gnu.org>.
6845
6846 2011-09-28  Bruno Haible  <bruno@clisp.org>
6847
6848         fgetc, fputc, fread, fwrite tests: Fix link error.
6849         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
6850         on non-MSVC platforms.
6851         * tests/test-fputc.c (main): Likewise.
6852         * tests/test-fread.c (main): Likewise.
6853         * tests/test-fwrite.c (main): Likewise.
6854         Reported by Jim Meyering.
6855
6856 2011-09-27  Bruno Haible  <bruno@clisp.org>
6857
6858         fputc, fwrite tests: Avoid test failure on MSVC.
6859         * tests/test-fgetc.c: Include msvc-inval.h.
6860         (main): Invoke gl_msvc_inval_ensure_handler.
6861         * tests/test-fputc.c: Include msvc-inval.h.
6862         (main): Invoke gl_msvc_inval_ensure_handler.
6863         * tests/test-fread.c: Include msvc-inval.h.
6864         (main): Invoke gl_msvc_inval_ensure_handler.
6865         * tests/test-fwrite.c: Include msvc-inval.h.
6866         (main): Invoke gl_msvc_inval_ensure_handler.
6867         * modules/fgetc-tests (Depends-on): Add msvc-inval.
6868         * modules/fputc-tests (Depends-on): Likewise.
6869         * modules/fread-tests (Depends-on): Likewise.
6870         * modules/fwrite-tests (Depends-on): Likewise.
6871
6872 2011-09-27  Bruno Haible  <bruno@clisp.org>
6873
6874         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
6875         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
6876         (raise): Remove older, duplicated declaration.
6877         (_gl_raise_SIGPIPE): New declaration.
6878         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
6879         (rpl_raise): Remove function.
6880         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
6881         a gnulib-defined SIGPIPE here.
6882         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
6883         'sigprocmask' has detected missing signal-blocking and the module
6884         'sigpipe' is enabled.
6885         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
6886
6887 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
6888
6889         base64-tests: avoid memory leak
6890         * tests/test-base64.c (main): Plug memory leak.
6891
6892         base32: new module
6893         * modules/base32: New module.
6894         * lib/base32.c: New file.
6895         * lib/base32.h: Likewise.
6896         * m4/base32.m4: Likewise.
6897         * modules/base32-tests: New test.
6898         * tests/test-base32.c: Likewise.
6899         * MODULES.html.sh (Misc): Mention it.
6900
6901 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
6902
6903         gnulib: use more-standard license notice wording
6904         * gnulib-tool (func_emit_copyright_notice): When emitting a
6905         license notice into a file, use the standard wording as suggested
6906         by the current information for GNU maintainers, except say "file"
6907         rather than "program".  The new wording gives a license version
6908         number, which addresses an issue raised by Glenn Morris in
6909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
6910         * m4/onceonly.m4: Use that same wording here, too.
6911
6912         dup2: minor simplification
6913         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
6914         as lib/dup2.c no longer uses 'inline'.
6915
6916 2011-09-25  Bruno Haible  <bruno@clisp.org>
6917
6918         strings: Fix compilation error on MSVC.
6919         * lib/strings.in.h: Include <stddef.h> for size_t.
6920
6921 2011-09-25  Bruno Haible  <bruno@clisp.org>
6922
6923         fflush et al.: Document limitation on MSVC.
6924         * doc/posix-functions/fflush.texi: Document possible crash in handling
6925         mode other than DEFAULT_HANDLING.
6926         * doc/posix-functions/fgetc.texi: Likewise.
6927         * doc/posix-functions/fputc.texi: Likewise.
6928         * doc/posix-functions/fread.texi: Likewise.
6929         * doc/posix-functions/fwrite.texi: Likewise.
6930
6931 2011-09-25  Bruno Haible  <bruno@clisp.org>
6932
6933         msvc-inval: Allow three invalid parameter handling modes.
6934         * lib/msvc-inval.h: Don't include <stdlib.h> here.
6935         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
6936         macros.
6937         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
6938         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
6939         SANE_LIBRARY_HANDLING as a no-op.
6940         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
6941         <stdlib.h>.
6942         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
6943
6944 2011-09-25  Bruno Haible  <bruno@clisp.org>
6945
6946         msvc-inval: Make handler multithread-safe.
6947         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
6948         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
6949         declarations.
6950         (gl_msvc_inval_current): New declaration.
6951         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
6952         Operate on the structure returned by gl_msvc_inval_current().
6953         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
6954         Remove varaiables.
6955         (tls_index, tls_initialized): New variables.
6956         (not_per_thread): New variable.
6957         (gl_msvc_inval_current): New function.
6958         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
6959         returned by gl_msvc_inval_current().
6960
6961 2011-09-25  Bruno Haible  <bruno@clisp.org>
6962
6963         msvc-inval: Install handler globally.
6964         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
6965         !_MSC_VER.
6966         (gl_msvc_invalid_parameter_handler): Remove declaration.
6967         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
6968         declarations.
6969         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
6970         Install the handler globally, don't uninstall it.
6971         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
6972         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
6973         currently valid, call RaiseException instead.
6974         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
6975         for !_MSC_VER.
6976
6977 2011-09-25  Bruno Haible  <bruno@clisp.org>
6978
6979         strerror_r-posix: Fix for MSVC 9.
6980         * lib/strerror_r.c (local_snprintf): New function.
6981         (snprintf): Define to local_snprintf, not to _snprintf.
6982
6983 2011-09-25  Bruno Haible  <bruno@clisp.org>
6984
6985         ftruncate: Support for MSVC 9.
6986         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
6987         (chsize_nothrow): New function.
6988         (chsize): Redefine as a macro.
6989         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
6990         * modules/ftruncate (Depends-on): Add msvc-inval.
6991
6992 2011-09-25  Bruno Haible  <bruno@clisp.org>
6993
6994         New module 'fstat'.
6995         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
6996         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
6997         * lib/fchdir.c (rpl_fstat): Remove function.
6998         * m4/fstat.m4: New file.
6999         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7000         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7001         declared.
7002         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7003         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7004         * modules/fstat: New file.
7005         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7006         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7007         is set.
7008         * doc/posix-functions/fstat.texi: Mention the new module and the
7009         problem on MSVC.
7010         * NEWS: Mention the change.
7011         * modules/acl (Depends-on): Add fstat.
7012         * modules/chdir-safer (Depends-on): Likewise.
7013         * modules/chown (Depends-on): Likewise.
7014         * modules/copy-file (Depends-on): Likewise.
7015         * modules/fchdir (Depends-on): Likewise.
7016         * modules/fdopendir (Depends-on): Likewise.
7017         * modules/fopen (Depends-on): Likewise.
7018         * modules/fts (Depends-on): Likewise.
7019         * modules/getcwd (Depends-on): Likewise.
7020         * modules/isapipe (Depends-on): Likewise.
7021         * modules/linkat (Depends-on): Likewise.
7022         * modules/lseek (Depends-on): Likewise.
7023         * modules/mkdir-p (Depends-on): Likewise.
7024         * modules/open (Depends-on): Likewise.
7025         * modules/openat (Depends-on): Likewise.
7026         * modules/read-file (Depends-on): Likewise.
7027         * modules/renameat (Depends-on): Likewise.
7028         * modules/utimens (Depends-on): Likewise.
7029
7030 2011-09-25  Bruno Haible  <bruno@clisp.org>
7031
7032         linkat: Fix compilation on MSVC 9.
7033         * lib/linkat.c: Don't include <stdint.h>.
7034
7035 2011-09-25  Bruno Haible  <bruno@clisp.org>
7036
7037         fclose: Support for MSVC 9.
7038         * lib/fclose.c: Include msvc-inval.h.
7039         (fclose_nothrow): New function.
7040         (rpl_fclose): Use it.
7041         * modules/fclose (Depends-on): Add msvc-inval.
7042         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
7043
7044 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7045
7046         dup2: minor simplifications
7047         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
7048         that it's a performance win.
7049         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
7050         ! defined __CYGWIN__)" to "ifdef F_GETFL".
7051
7052 2011-09-24  Jim Meyering  <meyering@redhat.com>
7053
7054         test-futimens: avoid a warning from gcc -Wshadow
7055         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
7056         to avoid a shadowing warning.
7057
7058 2011-09-24  Bruno Haible  <bruno@clisp.org>
7059
7060         fdopen: Support for MSVC 9.
7061         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
7062         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
7063         * lib/fdopen.c: Include msvc-inval.h.
7064         (fdopen_nothrow): New function.
7065         (rpl_fdopen): Use it.
7066         * modules/fdopen (Depends-on): Add msvc-inval.
7067         * modules/fclose-tests (Depends-on): Add fdopen.
7068         * modules/fflush-tests (Depends-on): Likewise.
7069         * modules/fgetc-tests (Depends-on): Likewise.
7070         * modules/fputc-tests (Depends-on): Likewise.
7071         * modules/fread-tests (Depends-on): Likewise.
7072         * modules/freopen-tests (Depends-on): Likewise.
7073         * modules/fseeko-tests (Depends-on): Likewise.
7074         * modules/ftello-tests (Depends-on): Likewise.
7075         * modules/fwrite-tests  (Depends-on): Likewise.
7076         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
7077
7078 2011-09-24  Bruno Haible  <bruno@clisp.org>
7079
7080         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
7081         * modules/fgetc-tests (Depends-on): Add unistd.
7082         * modules/fputc-tests (Depends-on): Likewise.
7083         * modules/fread-tests (Depends-on): Likewise.
7084         * modules/fwrite-tests (Depends-on): Likewise.
7085
7086 2011-09-24  Bruno Haible  <bruno@clisp.org>
7087
7088         dup: Simplify autoconf test.
7089         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
7090         on gl_MSVC_INVAL's result.
7091
7092 2011-09-24  Bruno Haible  <bruno@clisp.org>
7093
7094         Tests for function fwrite().
7095         * modules/fwrite-tests: New file.
7096         * tests/test-fwrite.c: New file.
7097         * modules/stdio-tests (Depends-on): Add fwrite-tests.
7098
7099         Tests for function fread().
7100         * modules/fread-tests: New file.
7101         * tests/test-fread.c: New file.
7102         * modules/stdio-tests (Depends-on): Add fread-tests.
7103
7104         Activate fputc tests.
7105         * modules/stdio-tests (Depends-on): Add fputc-tests.
7106
7107         Enhance fgetc, fputc tests.
7108         * tests/test-fgetc.c (main): Also test the stream's error indicator.
7109         * tests/test-fputc.c (main): Likewise.
7110
7111 2011-09-24  Bruno Haible  <bruno@clisp.org>
7112
7113         write: Support for MSVC 9.
7114         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7115         is not 1.
7116         * lib/write.c (write_nothrow): New function.
7117         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
7118         not 1. Use write_nothrow.
7119         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
7120         invalid parameter handler.
7121         (gl_PREREQ_WRITE): New macro.
7122         * modules/write (Depends-on): Add msvc-inval.
7123         (configure.ac): Invoke gl_PREREQ_WRITE.
7124         * doc/posix-functions/write.texi: Mention the problem on MSVC.
7125
7126 2011-09-24  Bruno Haible  <bruno@clisp.org>
7127
7128         read: Fix last commit.
7129         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
7130
7131 2011-09-24  Bruno Haible  <bruno@clisp.org>
7132
7133         dup2: Fix last commit.
7134         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
7135         (rpl_dup2): Disable fcntl workaround on native Windows.
7136
7137         sigprocmask: Make code safer.
7138         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
7139         section that changes macro definitions for this compilation unit.
7140
7141 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7142
7143         dup2: clarify by coalescing Windows-specific material
7144         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
7145         "msvc-nothrow.h"' to the Windows-specific section, so that the
7146         Emacs source need not contain these include files.
7147         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
7148         Windows-specific fixes into this function rather than just the
7149         nothrow fix, as this shortens and clarifies the code.  Always
7150         define as a function, as that's a bit cleaner than having it be
7151         sometimes a function and sometimes a macro.
7152         (rpl_dup2): Move the Windows-specific stuff out of here and into
7153         ms_windows_dup2.  Don't protect the Haiku-related fix with
7154         "#if !defined __linux__", as the same code also works around
7155         a Linux kernel bug, and it doesn't add any system calls on any
7156         platform.  Add comment about FreeBSD 6.1.
7157
7158         sigprocmask: move #include directive
7159         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
7160         Windows-specific section, so that the Emacs source need not
7161         contain msvc-inval.h.
7162
7163 2011-09-23  Bruno Haible  <bruno@clisp.org>
7164
7165         read: Support for MSVC 9.
7166         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7167         is not 1.
7168         * lib/read.c (read_nothrow): New function.
7169         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
7170         read_nothrow.
7171         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
7172         invalid parameter handler.
7173         (gl_PREREQ_READ): New macro.
7174         * modules/read (Depends-on): Add msvc-inval.
7175         (configure.ac): Invoke gl_PREREQ_READ.
7176         * doc/posix-functions/read.texi: Mention the problem on MSVC.
7177
7178 2011-09-23  Bruno Haible  <bruno@clisp.org>
7179
7180         close: Support for MSVC 9.
7181         * lib/close.c: Include <errno.h>, msvc-inval.h.
7182         (close_nothrow): New function.
7183         (rpl_close): Use it.
7184         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
7185         invalid parameter handler.
7186         * modules/close (Depends-on): Add msvc-inval.
7187         * modules/dup2-tests (Depends-on): Add close.
7188         * modules/dup3-tests (Depends-on): Likewise.
7189         * modules/fcntl-tests (Depends-on): Likewise.
7190         * modules/spawn-pipe-tests (Depends-on): Likewise.
7191         * modules/unistd-safer-tests (Depends-on): Likewise.
7192         * doc/posix-functions/close.texi: Mention the problem on MSVC.
7193
7194 2011-09-23  Bruno Haible  <bruno@clisp.org>
7195
7196         New module 'dup'.
7197         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
7198         Allow replacement.
7199         * lib/dup.c: New file.
7200         * lib/fchdir.c (rpl_dup): Remove function.
7201         * m4/dup.m4: New file.
7202         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
7203         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
7204         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
7205         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
7206         * modules/dup: New file.
7207         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
7208         'dup' module is in use.
7209         * modules/fdopendir (Depends-on): Add dup.
7210         * modules/fdutimensat-tests (Depends-on): Likewise.
7211         * modules/fts (Depends-on): Likewise.
7212         * modules/futimens-tests (Depends-on): Likewise.
7213         * modules/posix_spawnp-tests (Depends-on): Likewise.
7214         * modules/unistd-safer-tests (Depends-on): Likewise.
7215         * modules/utimens-tests (Depends-on): Likewise.
7216         * doc/posix-functions/dup.texi: Mention the new module and the problem
7217         on MSVC.
7218
7219 2011-09-23  Bruno Haible  <bruno@clisp.org>
7220
7221         getdtablesize: Support for MSVC 9.
7222         * lib/getdtablesize.c: Include msvc-inval.h.
7223         (_setmaxstdio_nothrow): New function.
7224         (_setmaxstdio): Redefine it.
7225         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
7226         * modules/getdtablesize (Depends-on): Add msvc-inval.
7227         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
7228
7229 2011-09-23  Bruno Haible  <bruno@clisp.org>
7230
7231         signal-h: Rename from signal.
7232         * modules/signal-h: Renamed from modules/signal.
7233         * modules/pthread_sigmask (Depends-on): Update.
7234         * modules/raise (Depends-on): Likewise.
7235         * modules/sigaction (Depends-on): Likewise.
7236         * modules/sigpipe (Depends-on): Likewise.
7237         * modules/sigprocmask (Depends-on): Likewise.
7238         * modules/sys_select (Depends-on): Likewise.
7239         * modules/signal-h-tests: Renamed from modules/signal-tests.
7240         (Files, Depends-on, Makefile.am): Update.
7241         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
7242         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
7243         (Files, Makefile.am): Update.
7244         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
7245         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
7246         * modules/signal: New placeholder file.
7247         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
7248         * doc/posix-headers/signal.texi: Update.
7249         * NEWS: Mention the change.
7250
7251 2011-09-23  Bruno Haible  <bruno@clisp.org>
7252
7253         sigprocmask: Avoid crashes through signal() on MSVC 9.
7254         * lib/sigprocmask.c: Include msvc-inval.h.
7255         (signal_nothrow): New function.
7256         (signal): Redefine it.
7257         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
7258         * modules/sigprocmask (Depends-on): Add msvc-inval.
7259         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
7260
7261 2011-09-23  Bruno Haible  <bruno@clisp.org>
7262
7263         Tests for module 'raise'.
7264         * modules/raise-tests: New file.
7265         * tests/test-raise.c: New file.
7266
7267         raise: Support for MSVC.
7268         * lib/signal.in.h (raise): New declaration.
7269         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
7270         for native Windows platforms.
7271         * m4/raise.m4: New file.
7272         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
7273         HAVE_RAISE, REPLACE_RAISE.
7274         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
7275         REPLACE_RAISE.
7276         * modules/raise (Status, Notice): Remove fields.
7277         (Files): Add m4/raise.m4.
7278         (Depends-on): Add signal, msvc-inval.
7279         (configure.ac): Use the common idioms.
7280         (Maintainer): Add me.
7281         * tests/test-signal-c++.cc: Check the signature of raise.
7282         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
7283
7284 2011-09-23  Bruno Haible  <bruno@clisp.org>
7285
7286         pipe2: Fix compilation on pre-C99 compilers.
7287         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
7288
7289 2011-09-23  Bruno Haible  <bruno@clisp.org>
7290
7291         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
7292         * lib/msvc-nothrow.h: New file.
7293         * lib/msvc-nothrow.c: New file.
7294         * m4/msvc-nothrow.m4: New file.
7295         * modules/msvc-nothrow: New file.
7296         * lib/dup2.c: Include msvc-nothrow.h.
7297         (rpl_dup2): No need to protect _get_osfhandle call here.
7298         * lib/accept4.c: Include msvc-nothrow.h.
7299         * lib/error.c: Likewise.
7300         * lib/fcntl.c: Likewise.
7301         * lib/lseek.c: Likewise.
7302         * lib/nonblocking.c: Likewise.
7303         * lib/poll.c: Likewise.
7304         * lib/read.c: Likewise.
7305         * lib/select.c: Likewise.
7306         * lib/sockets.h: Likewise.
7307         * lib/sockets.c: Likewise.
7308         * lib/stdio-read.c: Likewise.
7309         * lib/stdio-write.c: Likewise.
7310         * lib/write.c: Likewise.
7311         * lib/w32sock.h: Likewise.
7312         * lib/w32spawn.h: Likewise.
7313         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
7314         * lib/fsync.c: Likewise.
7315         * lib/isapipe.c: Likewise.
7316         * modules/dup2 (Depends-on): Add msvc-nothrow.
7317         * modules/accept4 (Depends-on): Likewise.
7318         * modules/error (Depends-on): Likewise.
7319         * modules/fcntl (Depends-on): Likewise.
7320         * modules/lseek (Depends-on): Likewise.
7321         * modules/nonblocking (Depends-on): Likewise.
7322         * modules/poll (Depends-on): Likewise.
7323         * modules/read (Depends-on): Likewise.
7324         * modules/select (Depends-on): Likewise.
7325         * modules/sockets (Depends-on): Likewise.
7326         * modules/sigpipe (Depends-on): Likewise.
7327         * modules/write (Depends-on): Likewise.
7328         * modules/accept (Depends-on): Likewise.
7329         * modules/bind (Depends-on): Likewise.
7330         * modules/connect (Depends-on): Likewise.
7331         * modules/gethostname (Depends-on): Likewise.
7332         * modules/getpeername (Depends-on): Likewise.
7333         * modules/getsockname (Depends-on): Likewise.
7334         * modules/getsockopt (Depends-on): Likewise.
7335         * modules/ioctl (Depends-on): Likewise.
7336         * modules/listen (Depends-on): Likewise.
7337         * modules/recv (Depends-on): Likewise.
7338         * modules/recvfrom (Depends-on): Likewise.
7339         * modules/send (Depends-on): Likewise.
7340         * modules/sendto (Depends-on): Likewise.
7341         * modules/setsockopt (Depends-on): Likewise.
7342         * modules/shutdown (Depends-on): Likewise.
7343         * modules/socket (Depends-on): Likewise.
7344         * modules/execute (Depends-on): Likewise.
7345         * modules/spawn-pipe (Depends-on): Likewise.
7346         * modules/flock (Depends-on): Likewise.
7347         * modules/fsync (Depends-on): Likewise.
7348         * modules/isapipe (Depends-on): Likewise.
7349         * tests/test-cloexec.c: Include msvc-nothrow.h.
7350         * tests/test-dup-safer.c: Likewise.
7351         * tests/test-dup2.c: Likewise.
7352         * tests/test-dup3.c: Likewise.
7353         * tests/test-fcntl.c: Likewise.
7354         * tests/test-pipe.c: Likewise.
7355         * tests/test-pipe2.c: Likewise.
7356         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
7357         * modules/unistd-safer-tests (Depends-on): Likewise.
7358         * modules/dup2-tests (Depends-on): Likewise.
7359         * modules/dup3-tests (Depends-on): Likewise.
7360         * modules/fcntl-tests (Depends-on): Likewise.
7361         * modules/pipe-posix-tests (Depends-on): Likewise.
7362         * modules/pipe2-tests (Depends-on): Likewise.
7363
7364 2011-09-23  Bruno Haible  <bruno@clisp.org>
7365
7366         dup2: Make code more maintainable.
7367         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
7368         (rpl_dup2): Use it.
7369         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
7370         * modules/dup2 (configure.ac): Invoke it.
7371         Reported by Paul Eggert.
7372
7373 2011-09-23  Bruno Haible  <bruno@clisp.org>
7374
7375         msvc-inval: Fix compilation error.
7376         * lib/msvc-inval.h: Include <excpt.h>.
7377
7378 2011-09-23  Bruno Haible  <bruno@clisp.org>
7379
7380         mkdir: Tweak for MSVC 9.
7381         * lib/sys_stat.in.h: Update comments.
7382         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
7383
7384         Tests for module 'chdir'.
7385         * modules/chdir-tests: New file.
7386         * tests/test-chdir.c: New file.
7387
7388         New module 'chdir'.
7389         * modules/chdir: New file.
7390         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
7391         (chdir): New declaration.
7392         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
7393         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
7394         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
7395         * tests/test-unistd-c++.cc: Check signature of chdir.
7396         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
7397         * modules/chdir-long (Depends-on): Add chdir.
7398         * modules/fchdir (Depends-on): Likewise.
7399         * modules/rename (Depends-on): Likewise.
7400         * modules/savewd (Depends-on): Likewise.
7401
7402         rmdir: Support for mingw, MSVC 9.
7403         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
7404         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
7405
7406         getcwd: Tweak for MSVC 9.
7407         * lib/unistd.in.h: Update comments.
7408         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
7409
7410 2011-09-22  Bruno Haible  <bruno@clisp.org>
7411
7412         strerror_r-posix: Avoid a link error on MSVC.
7413         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
7414         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
7415
7416 2011-09-22  Bruno Haible  <bruno@clisp.org>
7417
7418         select: Avoid link errors on MSVC.
7419         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
7420         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
7421         * modules/pselect (Link): Likewise.
7422         * NEWS: Mention the change.
7423         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
7424         test-select-stdin against $(LIB_SELECT).
7425         * modules/pselect-tests (Makefile.am): Link test-pselect against
7426         $(LIB_SELECT).
7427
7428 2011-09-22  Bruno Haible  <bruno@clisp.org>
7429
7430         select: Avoid compilation error on MSVC.
7431         * lib/select.c: Don't include <stdbool.h>.
7432
7433 2011-09-21  Bruno Haible  <bruno@clisp.org>
7434
7435         Consolidate all uses of PATH_MAX in *.m4 files.
7436         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
7437         macros.
7438         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
7439         and gl_PATHMAX_SNIPPET.
7440         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
7441         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7442         * modules/chdir-long (Files): Add m4/pathmax.m4.
7443         * modules/getcwd (Files): Likewise.
7444
7445 2011-09-21  Bruno Haible  <bruno@clisp.org>
7446
7447         ftruncate: Un-deprecate, concentrate on Win32 support.
7448         * modules/ftruncate (Status, Notice): Remove sections.
7449         (Depends-on): Add largefile.
7450         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
7451         non-mingw platforms.
7452         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
7453         include <io.h>.
7454         * modules/perror-tests (Depends-on): Add ftruncate.
7455         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
7456         'ftruncate' module.
7457
7458 2011-09-21  Bruno Haible  <bruno@clisp.org>
7459
7460         Add dependencies to new dirent related modules.
7461         * modules/opendir (Depends-on): Add closedir.
7462         * modules/getcwd (Depends-on): Add opendir, closedir.
7463         * modules/dirent-safer-tests (Depends-on): Likewise.
7464         * modules/fdopendir-tests (Depends-on): Likewise.
7465         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
7466         * modules/renameat-tests (Depends-on): Likewise.
7467
7468 2011-09-21  Bruno Haible  <bruno@clisp.org>
7469
7470         opendir: Avoid compilation error on mingw.
7471         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
7472         * modules/opendir (Depends-on): Add unistd.
7473
7474 2011-09-21  Bruno Haible  <bruno@clisp.org>
7475
7476         ftruncate tests: Avoid a test failure on mingw.
7477         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
7478
7479 2011-09-21  Bruno Haible  <bruno@clisp.org>
7480
7481         select tests: Avoid test failures on OSF/1 5.1 and mingw.
7482         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
7483         native Windows.
7484
7485 2011-09-21  Bruno Haible  <bruno@clisp.org>
7486
7487         New module 'fdopen'.
7488         * lib/stdio.in.h (fdopen): New declaration.
7489         * lib/fdopen.c: New file.
7490         * m4/fdopen.m4: New file.
7491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
7492         REPLACE_FDOPEN.
7493         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
7494         REPLACE_FDOPEN.
7495         * modules/fdopen: New file.
7496         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
7497         * tests/test-stdio-c++.cc: Check signature of fdopen.
7498         * doc/posix-functions/fdopen.texi: Mention the new module.
7499
7500 2011-09-21  Bruno Haible  <bruno@clisp.org>
7501
7502         unlockpt tests: Avoid test failure on NetBSD 5.1.
7503         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
7504         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
7505
7506 2011-09-21  Bruno Haible  <bruno@clisp.org>
7507
7508         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
7509         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
7510         * tests/test-getlogin_r.c (main): Likewise.
7511
7512 2011-09-20  Bruno Haible  <bruno@clisp.org>
7513
7514         time tests: Don't require pid_t.
7515         * doc/posix-headers/time.texi: Revert last change.
7516         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
7517         * tests/test-time.c: Comment out the check for pid_t.
7518
7519 2011-09-20  Bruno Haible  <bruno@clisp.org>
7520
7521         fsync tests: Avoid a test failure on mingw.
7522         * tests/test-fsync.c (main): Allow a failure with EIO.
7523
7524 2011-09-20  Bruno Haible  <bruno@clisp.org>
7525
7526         euidaccess: Update comments.
7527         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
7528
7529 2011-09-20  Bruno Haible  <bruno@clisp.org>
7530
7531         Ensure EBADF returns for socket functions on mingw.
7532         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
7533         descriptor is invalid.
7534         * lib/bind.c (rpl_bind): Likewise.
7535         * lib/connect.c (rpl_connect): Likewise.
7536         * lib/getpeername.c (rpl_getpeername): Likewise.
7537         * lib/getsockname.c (rpl_getsockname): Likewise.
7538         * lib/getsockopt.c (rpl_getsockopt): Likewise.
7539         * lib/listen.c (rpl_listen): Likewise.
7540         * lib/recv.c (rpl_recv): Likewise.
7541         * lib/recvfrom.c (rpl_recvfrom): Likewise.
7542         * lib/send.c (rpl_send): Likewise.
7543         * lib/sendto.c (rpl_sendto): Likewise.
7544         * lib/setsockopt.c (rpl_setsockopt): Likewise.
7545         * lib/shutdown.c (rpl_shutdown): Likewise.
7546
7547 2011-09-20  Bruno Haible  <bruno@clisp.org>
7548
7549         select tests: EBADF tests.
7550         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
7551         test_bad_fd): New functions.
7552         (test_function): Invoke also test_bad_fd.
7553
7554 2011-09-20  Bruno Haible  <bruno@clisp.org>
7555
7556         Tests for module 'posix_spawn_file_actions_addopen.
7557         * modules/posix_spawn_file_actions_addopen-tests: New file.
7558         * tests/test-posix_spawn_file_actions_addopen.c: New file.
7559
7560         Tests for module 'posix_spawn_file_actions_adddup2'.
7561         * modules/posix_spawn_file_actions_adddup2-tests: New file.
7562         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
7563
7564         Tests for module 'posix_spawn_file_actions_addclose'.
7565         * modules/posix_spawn_file_actions_addclose-tests: New file.
7566         * tests/test-posix_spawn_file_actions_addclose.c: New file.
7567
7568 2011-09-20  Bruno Haible  <bruno@clisp.org>
7569
7570         Tests for module 'unlockpt'.
7571         * modules/unlockpt-tests: New file.
7572         * tests/test-unlockpt.c: New file.
7573         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
7574
7575         Tests for module 'grantpt'.
7576         * modules/grantpt-tests: New file.
7577         * tests/test-grantpt.c: New file.
7578         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
7579
7580 2011-09-20  Bruno Haible  <bruno@clisp.org>
7581
7582         freopen tests: EBADF tests.
7583         * tests/test-freopen.c: Include errno.h, unistd.h.
7584         (main): Add tests for EBADF, commented out for the moment.
7585
7586         fclose tests: EBADF tests.
7587         * tests/test-fclose.c (main): Add tests for EBADF.
7588
7589         fflush tests: EBADF tests.
7590         * tests/test-fflush.c: Include errno.h, macros.h.
7591         (main): Add tests for EBADF.
7592
7593         ftello tests: EBADF tests.
7594         * tests/test-ftello4.sh: New file.
7595         * tests/test-ftello4.c: New file.
7596         * modules/ftello-tests (Files): Add them.
7597         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
7598
7599         fseeko tests: EBADF tests.
7600         * tests/test-fseeko4.sh: New file.
7601         * tests/test-fseeko4.c: New file.
7602         * modules/fseeko-tests (Files): Add them.
7603         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
7604
7605         Tests for function fputc().
7606         * modules/fputc-tests: New file.
7607         * tests/test-fputc.c: New file.
7608         * modules/stdio-tests (Depends-on): Add fputc-tests.
7609
7610         Tests for function fgetc().
7611         * modules/fgetc-tests: New file.
7612         * tests/test-fgetc.c: New file.
7613         * modules/stdio-tests (Depends-on): Add fgetc-tests.
7614
7615         Tests for function fdopen().
7616         * modules/fdopen-tests: New file.
7617         * tests/test-fdopen.c: New file.
7618         * modules/stdio-tests (Depends-on): Add fdopen-tests.
7619
7620         Tests for module 'vdprintf'.
7621         * modules/vdprintf-tests: New file.
7622         * tests/test-vdprintf.c: New file.
7623
7624         Tests for module 'dprintf'.
7625         * modules/dprintf-tests: New file.
7626         * tests/test-dprintf.c: New file.
7627
7628 2011-09-20  Bruno Haible  <bruno@clisp.org>
7629
7630         Tests for module 'ioctl'.
7631         * modules/ioctl-tests: New file.
7632         * tests/test-ioctl.c: New file.
7633
7634 2011-09-20  Bruno Haible  <bruno@clisp.org>
7635
7636         fcntl tests: EBADF tests.
7637         * tests/test-fcntl.c (main): Add more tests for EBADF.
7638
7639 2011-09-20  Bruno Haible  <bruno@clisp.org>
7640
7641         utimensat tests: EBADF tests.
7642         * tests/test-utimensat.c (main): Add tests for EBADF.
7643
7644         renameat tests: EBADF tests.
7645         * tests/test-renameat.c (main): Add tests for EBADF.
7646
7647         mkfifoat tests: EBADF tests.
7648         * tests/test-mkfifoat.c (main): Add tests for EBADF.
7649
7650         readlinkat tests: EBADF tests.
7651         * tests/test-readlinkat.c (main): Add tests for EBADF.
7652
7653         symlinkat tests: EBADF tests.
7654         * tests/test-symlinkat.c (main): Add tests for EBADF.
7655
7656         linkat tests: EBADF tests.
7657         * tests/test-linkat.c (main): Add tests for EBADF.
7658
7659         Tests for module 'faccessat'.
7660         * modules/faccessat-tests: New file.
7661         * tests/test-faccessat.c: New file.
7662
7663         fdopendir tests: EBADF tests.
7664         * tests/test-fdopendir.c (main): Add more tests for EBADF.
7665
7666         openat tests: EBADF tests.
7667         * tests/test-fchownat.c (main): Add tests for EBADF.
7668         * tests/test-fstatat.c (main): Likewise.
7669         * tests/test-mkdirat.c (main): Likewise.
7670         * tests/test-openat.c (main): Likewise.
7671         * tests/test-unlinkat.c (main): Likewise.
7672         * tests/test-fchmodat.c: New file.
7673         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
7674         (Makefile.am): Also run 'test-fchmodat'.
7675
7676 2011-09-20  Bruno Haible  <bruno@clisp.org>
7677
7678         utimens, futimens, fdutimensat tests: EBADF tests.
7679         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
7680
7681         Tests for function fstat().
7682         * modules/fstat-tests: New file.
7683         * tests/test-fstat.c: New file.
7684         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
7685
7686 2011-09-20  Bruno Haible  <bruno@clisp.org>
7687
7688         test-ttyname_r tests: EBADF tests.
7689         * tests/test-ttyname_r.c (main): Add tests for EBADF.
7690
7691         Tests for module 'isatty'.
7692         * modules/isatty-tests: New file.
7693         * tests/test-isatty.c: New file.
7694
7695         Tests for module 'write'.
7696         * modules/write-tests: New file.
7697         * tests/test-write.c: New file.
7698
7699         Tests for module 'read'.
7700         * modules/read-tests: New file.
7701         * tests/test-read.c: New file.
7702
7703         pwrite tests: EBADF tests.
7704         * tests/test-pwrite.c (main): Add tests for EBADF.
7705
7706         pread tests: EBADF tests.
7707         * tests/test-pread.c (main): Add tests for EBADF.
7708
7709         lseek tests: EBADF tests.
7710         * tests/test-lseek.c (main): Add more tests for EBADF.
7711
7712         Tests for module 'ftruncate'.
7713         * modules/ftruncate-tests: New file.
7714         * tests/test-ftruncate.sh: New file.
7715         * tests/test-ftruncate.c: New file.
7716
7717         fsync tests: EBADF tests.
7718         * tests/test-fsync.c (main): Add more tests for EBADF.
7719
7720         fdatasync tests: EBADF tests.
7721         * tests/test-fdatasync.c (main): Add more tests for EBADF.
7722
7723         Tests for module 'fchown'.
7724         * modules/fchown-tests: New file.
7725         * tests/test-fchown.c: New file.
7726
7727         Tests for module 'fchmod'.
7728         * modules/fchmod-tests: New file.
7729         * tests/test-fchmod.c: New file.
7730
7731         fchdir tests: EBADF tests.
7732         * tests/test-fchdir.c (main): Add more tests for EBADF.
7733
7734         dup2 tests: EBADF tests.
7735         * tests/test-dup2.c (main): Add more tests for EBADF.
7736
7737         Tests for module 'dup'.
7738         * modules/dup-tests: New file.
7739         * tests/test-dup.c: New file.
7740
7741         Tests for module 'close'.
7742         * modules/close-tests: New file.
7743         * tests/test-close.c: New file.
7744
7745 2011-09-20  Bruno Haible  <bruno@clisp.org>
7746
7747         Tests for module 'shutdown'.
7748         * modules/shutdown-tests: New file.
7749         * tests/test-shutdown.c: New file.
7750
7751         Tests for module 'setsockopt'.
7752         * modules/setsockopt-tests: New file.
7753         * tests/test-setsockopt.c: New file.
7754
7755         Tests for module 'sendto'.
7756         * modules/sendto-tests: New file.
7757         * tests/test-sendto.c: New file.
7758
7759         Tests for module 'send'.
7760         * modules/send-tests: New file.
7761         * tests/test-send.c: New file.
7762
7763         Tests for module 'recvfrom'.
7764         * modules/recvfrom-tests: New file.
7765         * tests/test-recvfrom.c: New file.
7766
7767         Tests for module 'recv'.
7768         * modules/recv-tests: New file.
7769         * tests/test-recv.c: New file.
7770
7771         Tests for module 'listen'.
7772         * modules/listen-tests: New file.
7773         * tests/test-listen.c: New file.
7774
7775         Tests for module 'getsockopt'.
7776         * modules/getsockopt-tests: New file.
7777         * tests/test-getsockopt.c: New file.
7778
7779         Tests for module 'getsockname'.
7780         * modules/getsockname-tests: New file.
7781         * tests/test-getsockname.c: New file.
7782
7783         Tests for module 'getpeername'.
7784         * modules/getpeername-tests: New file.
7785         * tests/test-getpeername.c: New file.
7786
7787         Tests for module 'connect'.
7788         * modules/connect-tests: New file.
7789         * tests/test-connect.c: New file.
7790
7791         Tests for module 'bind'.
7792         * modules/bind-tests: New file.
7793         * tests/test-bind.c: New file.
7794
7795         accept4 tests: Fix for native Windows.
7796         * tests/test-accept4.c: Include sockets.h.
7797         (main): Invoke gl_sockets_startup.
7798         * modules/accept4-tests (Depends-on): Add sockets.
7799
7800         accept tests: Fix for native Windows.
7801         * tests/test-accept.c: Include sockets.h.
7802         (main): Invoke gl_sockets_startup.
7803         * modules/accept-tests (Depends-on): Add sockets.
7804
7805 2011-09-19  Bruno Haible  <bruno@clisp.org>
7806
7807         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
7808         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
7809         do...while(0).
7810         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
7811         Suggested by Paul Eggert.
7812
7813 2011-09-19  Bruno Haible  <bruno@clisp.org>
7814
7815         sched: Ensure pid_t is defined.
7816         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
7817         not define pid_t.
7818         * lib/sched.in.h: Include <sys/types.h>.
7819         * doc/posix-headers/sched.texi: Mention the pid_t problem.
7820         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7821
7822 2011-09-19  Bruno Haible  <bruno@clisp.org>
7823
7824         msvc-inval: Ensure the entire expansion is a single statement.
7825         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
7826         of braces.
7827
7828 2011-09-19  Jim Meyering  <meyering@redhat.com>
7829
7830         tests: use printf, not echo in init.sh's warn_ function
7831         * tests/init.sh (warn_): Use printf, not echo.  The latter would
7832         misbehave when given strings containing a backslash or starting
7833         with e.g., -n.  James Youngman suggested setting IFS.
7834
7835 2011-09-19  Eric Blake  <eblake@redhat.com>
7836
7837         futimens: enhance test
7838         * tests/test-futimens.h (test_futimens): Also check for EBADF on
7839         closed non-negative fd.
7840
7841         date: accept 'hence' as opposite of 'ago'
7842         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
7843         * tests/test-parse-datetime.c (main): Enhance test.
7844         Suggested by Jesse Wilson.
7845
7846 2011-09-19  Jim Meyering  <meyering@redhat.com>
7847
7848         getcwd: don't fail in a deep directory on a system without openat
7849         Before this change, getcwd would fail when called from a directory
7850         of depth PATH_MAX / 3 or greater.  That was due to the fact that
7851         the non-openat implementation used "..", "../..", "../../..", etc.
7852         to access ancestor directories.  With too many, that string would
7853         be longer than PATH_MAX.
7854         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
7855         using gnulib's openat replacement.
7856         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
7857         we're using the replacement function.
7858
7859 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
7860
7861         maint.mk: avoid warnings from perl about missing files
7862         * top/maint.mk (def_sym_regex): Ignore files listed in
7863         $(gl_other_headers_) that do not exist, say because a project
7864         does not use a corresponding module.
7865
7866 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
7867
7868         stat: use pathmax.h only if needed
7869         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
7870         This is better for Emacs, which does not have a mingw port and
7871         therefore can avoid the pathmax module.
7872
7873         utimens: remove dependency on dup2
7874         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
7875         to work around the Linux kernel bug.
7876         * modules/utimens (Depends-on): Remove dup2.
7877
7878 2011-09-18  Bruno Haible  <bruno@clisp.org>
7879
7880         inet_ntop, inet_pton: Look for it also in libresolv.
7881         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
7882         libnsl, search for it in libresolv.
7883         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7884         Needed on Solaris 7.
7885
7886 2011-09-18  Bruno Haible  <bruno@clisp.org>
7887
7888         accept, accept4 tests: Avoid link error on Solaris.
7889         * modules/accept-tests (Makefile.am): Link test-accept against
7890         $(LIBSOCKET).
7891         * modules/accept4-tests (Makefile.am): Link test-accept4 against
7892         $(LIBSOCKET).
7893
7894         accept4: Avoid link error on Solaris.
7895         * modules/accept4 (Link): New section.
7896
7897         socket functions: Avoid link errors on Solaris.
7898         * modules/accept (Depends-on): Add socketlib.
7899         (Link): New section.
7900         * modules/bind (Depends-on): Add socketlib.
7901         (Link): New section.
7902         * modules/connect (Depends-on): Add socketlib.
7903         (Link): New section.
7904         * modules/getpeername (Depends-on): Add socketlib.
7905         (Link): New section.
7906         * modules/getsockname (Depends-on): Add socketlib.
7907         (Link): New section.
7908         * modules/getsockopt (Depends-on): Add socketlib.
7909         (Link): New section.
7910         * modules/listen (Depends-on): Add socketlib.
7911         (Link): New section.
7912         * modules/recv (Depends-on): Add socketlib.
7913         (Link): New section.
7914         * modules/recvfrom (Depends-on): Add socketlib.
7915         (Link): New section.
7916         * modules/send (Depends-on): Add socketlib.
7917         (Link): New section.
7918         * modules/sendto (Depends-on): Add socketlib.
7919         (Link): New section.
7920         * modules/setsockopt (Depends-on): Add socketlib.
7921         (Link): New section.
7922         * modules/shutdown (Depends-on): Add socketlib.
7923         (Link): New section.
7924         * modules/socket (Depends-on): Add socketlib.
7925         (Link): New section.
7926
7927 2011-09-18  Bruno Haible  <bruno@clisp.org>
7928
7929         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
7930         * tests/test-ptsname.c (main): Terminate the test if it takes longer
7931         than 5 seconds.
7932         * modules/ptsname-tests (configure.ac): Test for alarm.
7933
7934 2011-09-18  Bruno Haible  <bruno@clisp.org>
7935
7936         posix_spawn_file_actions_add*: Fix module dependencies.
7937         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
7938         posix_spawn_file_actions_init.
7939         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
7940         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
7941
7942 2011-09-18  Bruno Haible  <bruno@clisp.org>
7943
7944         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
7945         * tests/test-rename.h (test_rename): Allow error code EEXIST.
7946         * tests/test-renameat.c (main): Likewise.
7947
7948 2011-09-18  Bruno Haible  <bruno@clisp.org>
7949
7950         Tests for module 'accept4'.
7951         * modules/accept4-tests: New file.
7952         * tests/test-accept4.c: New file.
7953
7954 2011-09-18  Bruno Haible  <bruno@clisp.org>
7955
7956         Tests for module 'accept'.
7957         * modules/accept-tests: New file.
7958         * tests/test-accept.c: New file.
7959
7960 2011-09-18  Bruno Haible  <bruno@clisp.org>
7961
7962         dup2: Support for MSVC.
7963         * lib/dup2.c: Include msvc-inval.h.
7964         (rpl_dup2): Handle invalid parameter notifications during dup2 and
7965         _get_osfhandle calls.
7966         * modules/dup2 (Depends-on): Add msvc-inval.
7967         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
7968
7969         New module 'msvc-inval'.
7970         * lib/msvc-inval.h: New file.
7971         * lib/msvc-inval.c: New file.
7972         * m4/msvc-inval.m4: New file.
7973         * modules/msvc-inval: New file.
7974
7975 2011-09-17  Bruno Haible  <bruno@clisp.org>
7976
7977         Tests for module 'pclose'.
7978         * modules/pclose-tests: New file.
7979
7980         New module 'pclose'.
7981         * lib/stdio.in.h (pclose): New declaration.
7982         * lib/pclose.c: New file.
7983         * m4/pclose.m4: New file.
7984         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
7985         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
7986         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
7987         * modules/pclose: New file.
7988         * modules/popen-tests (Depends-on): Add pclose.
7989         * modules/popen-safer-tests (Depends-on): Likewise.
7990         * doc/posix-functions/pclose.texi: Mention the new module.
7991
7992 2011-09-17  Bruno Haible  <bruno@clisp.org>
7993
7994         popen: Support for MSVC.
7995         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
7996         * lib/popen.c (popen): Provide alternate definition for native Windows.
7997         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
7998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
7999         * modules/popen (Depends-on, configure.ac): Update condition.
8000         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8001         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8002         fixed.
8003
8004 2011-09-17  Bruno Haible  <bruno@clisp.org>
8005
8006         isnanl, isnand, isnanf: Work around MSVC bug.
8007         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8008
8009 2011-09-17  Bruno Haible  <bruno@clisp.org>
8010
8011         sys_socket tests: Fix recent mistake.
8012         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
8013
8014 2011-09-17  Bruno Haible  <bruno@clisp.org>
8015
8016         putenv: Support for MSVC.
8017         * modules/putenv (Depends-on): Add environ.
8018         * lib/putenv.c (environ): Disable declaration.
8019         * lib/unistd.in.h: Update comment.
8020
8021 2011-09-17  Bruno Haible  <bruno@clisp.org>
8022
8023         math: Avoid macro redefinition warnings on MSVC.
8024         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
8025         Undefine before redefining.
8026
8027 2011-09-17  Bruno Haible  <bruno@clisp.org>
8028
8029         doc: Mention functions which are declared as macros.
8030         * doc/posix-functions/*[fl].texi: Mention that some functions are
8031         defined as macros with arguments only.
8032
8033 2011-09-17  Bruno Haible  <bruno@clisp.org>
8034
8035         Add dependencies to new dirent related modules.
8036         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
8037         * modules/fts (Depends-on): Likewise.
8038         * modules/glob (Depends-on): Likewise.
8039         * modules/savedir (Depends-on): Likewise.
8040         * modules/scandir (Depends-on): Likewise.
8041         * modules/dirent-safer (Depends-on): Add opendir, closedir.
8042         * modules/fdopendir (Depends-on): Add opendir.
8043
8044 2011-09-17  Bruno Haible  <bruno@clisp.org>
8045
8046         inet_pton: Support for MSVC on Windows Vista or newer.
8047         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
8048         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
8049         HAVE_DECL_INET_PTON is defined.
8050         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8051         On platforms with <winsock2.h>, test whether inet_pton is declared in
8052         <ws2tcpip.h>. If so, arrange to replace it.
8053         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8054         REPLACE_INET_PTON.
8055         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
8056         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
8057         (Depends-on, configure.ac): Update condition.
8058         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
8059
8060 2011-09-17  Bruno Haible  <bruno@clisp.org>
8061
8062         inet_ntop: Support for MSVC on Windows Vista or newer.
8063         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
8064         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
8065         HAVE_DECL_INET_NTOP is defined.
8066         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8067         On platforms with <winsock2.h>, test whether inet_ntop is declared in
8068         <ws2tcpip.h>. If so, arrange to replace it.
8069         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8070         REPLACE_INET_NTOP.
8071         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
8072         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
8073         (Depends-on, configure.ac): Update condition.
8074         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
8075
8076 2011-09-16  Eric Blake  <eblake@redhat.com>
8077
8078         test-fsync: yet another enhancement
8079         * tests/test-fsync.c (main): Also test behavior on read-only text
8080         file.
8081
8082 2011-09-16  Bruno Haible  <bruno@clisp.org>
8083
8084         Enhance fsync, fdatasync tests.
8085         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
8086         * tests/test-fdatasync.c (main): Likewise.
8087
8088 2011-09-16  Bruno Haible  <bruno@clisp.org>
8089
8090         Support for MSVC compiler: Ensure mode_t gets defined.
8091         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
8092         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8093         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8094         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
8095         * tests/test-fcntl-h.c: Check that mode_t is defined.
8096         * tests/test-sys_stat.c: Likewise.
8097         * tests/test-sys_types.c: Likewise.
8098         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
8099         * doc/posix-headers/sys_stat.texi: Likewise.
8100         * doc/posix-headers/sys_types.texi: Likewise.
8101
8102 2011-09-16  Bruno Haible  <bruno@clisp.org>
8103
8104         sys_stat: Support for MSVC.
8105         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
8106         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
8107         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
8108         MSVC.
8109
8110 2011-09-16  Bruno Haible  <bruno@clisp.org>
8111
8112         Support for MSVC compiler: Ensure off_t gets defined.
8113         * lib/unistd.in.h: Include <sys/types.h>.
8114         * tests/test-fcntl-h.c: Check that off_t is defined.
8115         * tests/test-sys_stat.c: Likewise.
8116         * tests/test-sys_types.c: Likewise.
8117
8118 2011-09-16  Eric Blake  <eblake@redhat.com>
8119
8120         fdatasync: port to Solaris
8121         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
8122         * modules/fdatasync (Link): Document it.
8123         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
8124
8125         fdatasync: port to MacOS X 10.7
8126         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
8127         declared.
8128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
8129         * modules/unistd (Makefile.am): Substitute it.
8130         * lib/unistd.in.h (fdatasync): Declare on MacOS.
8131         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
8132
8133         fdatasync: minor improvements
8134         * modules/fdatasync (Depends-on): Add condition for fsync.
8135         * lib/fdatasync.c (fdatasync): Add comment.
8136         * tests/test-unistd-c++.cc: Test fdatasync.
8137
8138         unistd: update refs to newer POSIX
8139         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
8140         Suggested by Bruno Haible.
8141
8142         fdatasync: new module
8143         * modules/fsync (Description): Document difference to fdatasync.
8144         * modules/fdatasync: New module.
8145         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
8146         * lib/fdatasync.c (fdatasync): Likewise.
8147         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
8148         defaults.
8149         * modules/unistd (Makefile.am): Set witnesses.
8150         * lib/unistd.in.h (fdatasync): Declare.
8151         * MODULES.html.sh: Document it.
8152         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
8153         * modules/fdatasync-tests: New test.
8154         * tests/test-fdatasync.c: Likewise.
8155
8156 2011-09-16  Eric Blake  <eblake@redhat.com>
8157
8158         test-fsync: enhance tests
8159         * modules/fsync-tests (Depends-on): Add errno, for mingw.
8160         * tests/test-fsync.c (main): Enhance test.
8161
8162 2011-09-15  Bruno Haible  <bruno@clisp.org>
8163
8164         Support for MSVC compiler: Ensure ssize_t gets defined.
8165         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
8166         * doc/posix-headers/stdio.texi: Likewise.
8167         * modules/stdio (Depends-on): Add ssize_t.
8168         * modules/sys_socket (Depends-on): Likewise.
8169         * modules/sys_types (Depends-on): Likewise.
8170         * modules/sys_uio (Depends-on): Likewise.
8171         * modules/unistd (Depends-on): Likewise.
8172         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
8173         * tests/test-sys_types.c: Check that ssize_t is defined.
8174
8175 2011-09-14  Bruno Haible  <bruno@clisp.org>
8176
8177         Avoid using #, the m4 comment starter character, near brackets.
8178         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
8179         delimiter character in sed expressions.
8180         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8181         Suggested by Eric Blake.
8182
8183         Properly quote AC_CHECK_DECLS' 4th argument.
8184         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
8185         argument.
8186         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8187         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8188         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8189         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
8190         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8191         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
8192         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
8193         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
8194         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
8195         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8196         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
8197         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8198         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
8199         * m4/isinf.m4 (gl_ISINF): Likewise.
8200         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
8201         * m4/readutmp.m4 (gl_READUTMP): Likewise.
8202         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8203         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8204         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8205         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8206         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
8207         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8208         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
8209         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8210         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8211         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8212         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
8213         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8214         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8215         Reported by Eric Blake.
8216
8217         Properly quote AC_CHECK_DECL's 4th argument.
8218         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
8219         argument.
8220         * m4/argp.m4 (gl_ARGP): Likewise.
8221         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8222         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8223         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8224         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8225         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
8226         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
8227         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
8228         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
8229         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8230         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8231         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8232         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8233         Reported by Eric Blake.
8234
8235 2011-09-14  Eric Blake  <eblake@redhat.com>
8236
8237         opendir: avoid compile warning
8238         * lib/opendir.c (includes): Always include errno.h.
8239         Reported by Tatsuro MATSUOKA.
8240
8241 2011-09-14  Jim Meyering  <meyering@redhat.com>
8242
8243         maint.mk: sc_tight_scope: propagate failure from sub-make
8244         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
8245         Reported by Martin von Gagern.
8246
8247 2011-09-13  Bruno Haible  <bruno@clisp.org>
8248
8249         tempname: Support for MSVC.
8250         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
8251         MSVC.
8252         * modules/tempname (Depends-on): Add fcntl-h.
8253
8254 2011-09-13  Bruno Haible  <bruno@clisp.org>
8255
8256         sys_time: Support for MSVC.
8257         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
8258         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
8259         include <winsock2.h>.
8260         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
8261         function declarations that collide with POSIX.
8262         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
8263         (Makefile.am): Substitute HAVE_WINSOCK2_H.
8264
8265 2011-09-13  Bruno Haible  <bruno@clisp.org>
8266
8267         stat: Support for MSVC.
8268         * lib/stat.c: Include pathmax.h.
8269         * modules/stat (Depends-on): Add pathmax.
8270
8271         pathmax: Support for native Windows.
8272         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
8273
8274 2011-09-12  Bruno Haible  <bruno@clisp.org>
8275
8276         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
8277         * lib/dirent.in.h (struct dirent): New type.
8278         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
8279         DT_WHT): New macros.
8280         (DIR): New type.
8281         (opendir, closedir): Declare only if the module 'opendir' is enabled.
8282         (readdir, rewinddir): New declarations.
8283         * lib/dirent-private.h: New file.
8284         * lib/opendir.c: New file.
8285         * lib/readdir.c: New file.
8286         * lib/rewinddir.c: New file.
8287         * lib/closedir.c: New file.
8288         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
8289         * m4/opendir.m4: New file.
8290         * m4/readdir.m4: New file.
8291         * m4/rewinddir.m4: New file.
8292         * m4/closedir.m4: New file.
8293         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
8294         REPLACE_CLOSEDIR here.
8295         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
8296         readdir, rewinddir are declared.
8297         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
8298         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
8299         HAVE_REWINDDIR, HAVE_CLOSEDIR.
8300         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
8301         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
8302         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
8303         * modules/opendir: New file.
8304         * modules/readdir: New file.
8305         * modules/rewinddir: New file.
8306         * modules/closedir: New file.
8307         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
8308         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
8309         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
8310         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
8311         * NEWS: Mention the 'fchdir' change.
8312
8313 2011-09-11  Bruno Haible  <bruno@clisp.org>
8314
8315         asm-underscore.m4: Support for MSVC.
8316         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
8317         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
8318
8319 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
8320
8321         Doc about crypt functions.
8322         * doc/posix-functions/crypt.texi: Expand range of glibc versions
8323         needing for _GNU_SOURCE to get crypt.
8324         * doc/posix-functions/encrypt.texi: Likewise.
8325         * doc/posix-functions/setkey.texi: Likewise.
8326
8327 2011-09-11  Bruno Haible  <bruno@clisp.org>
8328
8329         doc: Update regarding MSVC 9.
8330         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
8331         tested".
8332         * doc/posix-functions/*.texi: Update with info about MSVC 9.
8333         * doc/posix-headers/*.texi: Likewise.
8334         * doc/pastposix-functions/*.texi: Likewise.
8335         * doc/glibc-functions/*.texi: Likewise.
8336         * doc/glibc-headers/*.texi: Likewise.
8337
8338 2011-09-11  Bruno Haible  <bruno@clisp.org>
8339
8340         unistd et al.: Don't assume <unistd.h> exists.
8341         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
8342         does not exist.
8343         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
8344         exist. But include <stdlib.h>.
8345         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
8346         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
8347         symlink() does not exist.
8348         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
8349         include <io.h> instead.
8350         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
8351         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
8352         include <direct.h> instead.
8353         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8354         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8355         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
8356         <io.h> instead.
8357         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
8358         correctly if the system does not have hard links.
8359         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
8360         <direct.h> instead.
8361         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
8362         it when looking for function declarations.
8363         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
8364         <direct.h> and <io.h> instead.
8365         * doc/posix-headers/unistd.texi: More details about MSVC problem.
8366
8367 2011-09-11  Bruno Haible  <bruno@clisp.org>
8368
8369         strcase: Support for MSVC.
8370         * modules/strcase (Status, Notice): Remove obsoletion mark.
8371         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
8372         * doc/posix-functions/strncasecmp.texi: Likewise.
8373
8374         strings: Don't assume <strings.h> exists.
8375         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
8376         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
8377         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
8378         * doc/posix-headers/strings.texi: Mention the MSVC problem.
8379
8380 2011-09-11  Bruno Haible  <bruno@clisp.org>
8381
8382         dirent: Don't assume <dirent.h> exists.
8383         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
8384         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
8385         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
8386         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
8387
8388 2011-09-11  Bruno Haible  <bruno@clisp.org>
8389
8390         Fix wint_t on MSVC.
8391         * lib/wchar.in.h (wint_t): On MSVC, override it.
8392         * lib/wctype.in.h (wint_t): Likewise.
8393         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
8394         MSVC.
8395         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
8396         * doc/posix-headers/wctype.texi: Likewise.
8397
8398 2011-09-11  Bruno Haible  <bruno@clisp.org>
8399
8400         sys_types: Fix typo.
8401         * lib/sys_types.in.h: Fix typo in comment.
8402         Reported by Paul Eggert.
8403
8404         Support for MSVC compiler: Ensure size_t gets defined.
8405         * modules/strings (Depends-on): Add 'sys_types'.
8406         * modules/sys_uio (Depends-on): Likewise.
8407         * lib/sys_uio.in.h: Update comment.
8408
8409         C++ tests for module 'sys_types'.
8410         * modules/sys_types-c++-tests: New file.
8411         * tests/test-sys_types-c++.cc: New file.
8412
8413         Tests for module 'sys_types'.
8414         * modules/sys_types-tests: New file.
8415         * tests/test-sys_types.c: New file.
8416
8417         New module 'sys_types'.
8418         * lib/sys_types.in.h: New file.
8419         * m4/sys_types_h.m4: New file.
8420         * modules/sys_types: New file.
8421         * doc/posix-headers/sys_types.texi: Mention the new module and the
8422         size_t problem on MSVC 9.
8423
8424 2011-09-11  Bruno Haible  <bruno@clisp.org>
8425
8426         Support for MSVC compiler: Avoid division by a literal 0.
8427         * lib/math.in.h (NAN): Define through a function call also on MSVC.
8428         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
8429         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
8430         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
8431         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
8432         * tests/infinity.h: New file.
8433         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
8434         on MSVC.
8435         * tests/test-ceilf1.c: Include infinity.h.
8436         (main): Use Infinityf.
8437         * tests/test-ceil1.c: Include infinity.h.
8438         (main): Use Infinityd.
8439         * tests/test-ceill.c: Include infinity.h.
8440         (main): Use Infinityl.
8441         * tests/test-dprintf-posix.c: Include infinity.h.
8442         (test_function): Use Infinityd.
8443         * tests/test-floorf1.c: Include infinity.h.
8444         (main): Use Infinityf.
8445         * tests/test-floor1.c: Include infinity.h.
8446         (main): Use Infinityd.
8447         * tests/test-floorl.c: Include infinity.h.
8448         (main): Use Infinityl.
8449         * tests/test-fprintf-posix.c: Include infinity.h.
8450         (test_function): Use Infinityd.
8451         * tests/test-frexp.c: Include infinity.h.
8452         (main): Use Infinityd.
8453         * tests/test-frexpl.c: Include infinity.h.
8454         (main): Use Infinityl.
8455         * tests/test-isfinite.c: Include infinity.h.
8456         (test_isfinitef): Use Infinityf.
8457         (test_isfinited): Use Infinityd.
8458         (test_isfinitel): Use Infinityl.
8459         * tests/test-isinf.c: Include infinity.h.
8460         (test_isinff): Use Infinityf.
8461         (test_isinfd): Use Infinityd.
8462         (test_isinfl): Use Infinityl.
8463         * tests/test-isnan.c: Include infinity.h.
8464         (test_float): Use Infinityf.
8465         (test_double): Use Infinityd.
8466         (test_long_double): Use Infinityl.
8467         * tests/test-isnanf.h: Include infinity.h.
8468         (main): Use Infinityf.
8469         * tests/test-isnand.h: Include infinity.h.
8470         (main): Use Infinityd.
8471         * tests/test-isnanl.h: Include infinity.h.
8472         (main): Use Infinityl.
8473         * tests/test-ldexpl.c: Include infinity.h.
8474         (main): Use Infinityl.
8475         * tests/test-printf-posix.h: Include infinity.h.
8476         (test_function): Use Infinityd.
8477         * tests/test-roundf1.c: Include infinity.h.
8478         (main): Use Infinityf.
8479         * tests/test-round1.c: Include infinity.h.
8480         (main): Use Infinityd.
8481         * tests/test-roundl.c: Include infinity.h.
8482         (main): Use Infinityl.
8483         * tests/test-signbit.c: Include infinity.h.
8484         (test_signbitf): Use Infinityf.
8485         (test_signbitd): Use Infinityd.
8486         (test_signbitl): Use Infinityl.
8487         * tests/test-snprintf-posix.h: Include infinity.h.
8488         (test_function): Use Infinityd, Infinityl.
8489         * tests/test-sprintf-posix.h: Include infinity.h.
8490         (test_function): Use Infinityd, Infinityl.
8491         * tests/test-truncf1.c: Include infinity.h.
8492         (main): Use Infinityf.
8493         * tests/test-trunc1.c: Include infinity.h.
8494         (main): Use Infinityd.
8495         * tests/test-truncl.c: Include infinity.h.
8496         (main): Use Infinityl.
8497         * tests/test-vasnprintf-posix.c: Include infinity.h.
8498         (test_function): Use Infinityd, Infinityl.
8499         * tests/test-vasprintf-posix.c: Include infinity.h.
8500         (test_function): Use Infinityd, Infinityl.
8501         * modules/ceilf-tests (Files): Add tests/infinity.h.
8502         * modules/ceil-tests (Files): Likewise.
8503         * modules/ceill-tests (Files): Likewise.
8504         * modules/dprintf-posix-tests (Files): Likewise.
8505         * modules/floorf-tests (Files): Likewise.
8506         * modules/floor-tests (Files): Likewise.
8507         * modules/floorl-tests (Files): Likewise.
8508         * modules/fprintf-posix-tests (Files): Likewise.
8509         * modules/frexp-tests (Files): Likewise.
8510         * modules/frexp-nolibm-tests (Files): Likewise.
8511         * modules/frexpl-tests (Files): Likewise.
8512         * modules/frexpl-nolibm-tests (Files): Likewise.
8513         * modules/isfinite-tests (Files): Likewise.
8514         * modules/isinf-tests (Files): Likewise.
8515         * modules/isnan-tests (Files): Likewise.
8516         * modules/isnanf-tests (Files): Likewise.
8517         * modules/isnanf-nolibm-tests (Files): Likewise.
8518         * modules/isnand-tests (Files): Likewise.
8519         * modules/isnand-nolibm-tests (Files): Likewise.
8520         * modules/isnanl-tests (Files): Likewise.
8521         * modules/isnanl-nolibm-tests (Files): Likewise.
8522         * modules/ldexpl-tests (Files): Likewise.
8523         * modules/printf-posix-tests (Files): Likewise.
8524         * modules/roundf-tests (Files): Likewise.
8525         * modules/round-tests (Files): Likewise.
8526         * modules/roundl-tests (Files): Likewise.
8527         * modules/signbit-tests (Files): Likewise.
8528         * modules/snprintf-posix-tests (Files): Likewise.
8529         * modules/sprintf-posix-tests (Files): Likewise.
8530         * modules/truncf-tests (Files): Likewise.
8531         * modules/trunc-tests (Files): Likewise.
8532         * modules/truncl-tests (Files): Likewise.
8533         * modules/vasnprintf-posix-tests (Files): Likewise.
8534         * modules/vasprintf-posix-tests (Files): Likewise.
8535         * modules/vdprintf-posix-tests (Files): Likewise.
8536         * modules/vfprintf-posix-tests (Files): Likewise.
8537         * modules/vprintf-posix-tests (Files): Likewise.
8538         * modules/vsnprintf-posix-tests (Files): Likewise.
8539         * modules/vsprintf-posix-tests (Files): Likewise.
8540         * modules/xprintf-posix-tests (Files): Likewise.
8541
8542 2011-09-11  Bruno Haible  <bruno@clisp.org>
8543
8544         Ensure pid_t gets defined.
8545         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
8546         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
8547         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8548         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8549         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
8550         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
8551         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
8552         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8553         * tests/test-fcntl-h.c: Check that pid_t is defined.
8554         * tests/test-sched.c: Likewise.
8555         * tests/test-termios.c: Likewise.
8556         * tests/test-time.c: Likewise.
8557         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
8558         * doc/posix-headers/signal.texi: Likewise.
8559         * doc/posix-headers/sys_types.texi: Likewise.
8560         * doc/posix-headers/time.texi: Likewise.
8561
8562 2011-09-11  Bruno Haible  <bruno@clisp.org>
8563
8564         acl: Fix compilation on Solaris 10 (older version).
8565         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
8566         of ACE_EVERYONE.
8567         * lib/set-mode-acl.c (qset_acl): Likewise.
8568         Reported by Christian Jullien <eligis@orange.fr>.
8569
8570 2011-09-10  Bruno Haible  <bruno@clisp.org>
8571
8572         iconv, unsetenv: Add support for MSVC compiler.
8573         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
8574         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
8575
8576 2011-09-10  Bruno Haible  <bruno@clisp.org>
8577
8578         *printf: Add support for MSVC compiler.
8579         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
8580         handles the exception caused by the %n directive. When cross-compiling,
8581         guess no on native Windows.
8582         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
8583         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
8584         emulate it through vsnprintf.
8585         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
8586         * doc/posix-functions/dprintf.texi: Update documentation regarding
8587         MSVC 9.
8588         * doc/posix-functions/fprintf.texi: Likewise.
8589         * doc/posix-functions/printf.texi: Likewise.
8590         * doc/posix-functions/snprintf.texi: Likewise.
8591         * doc/posix-functions/sprintf.texi: Likewise.
8592         * doc/posix-functions/swprintf.texi: Likewise.
8593         * doc/posix-functions/vdprintf.texi: Likewise.
8594         * doc/posix-functions/vfprintf.texi: Likewise.
8595         * doc/posix-functions/vprintf.texi: Likewise.
8596         * doc/posix-functions/vsnprintf.texi: Likewise.
8597         * doc/posix-functions/vsprintf.texi: Likewise.
8598         * doc/glibc-functions/asprintf.texi: Likewise.
8599         * doc/glibc-functions/obstack_printf.texi: Likewise.
8600         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
8601         * doc/glibc-functions/vasprintf.texi: Likewise.
8602
8603 2011-09-10  Bruno Haible  <bruno@clisp.org>
8604
8605         nocrash: Add support for native Windows.
8606         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
8607
8608 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
8609             Bruno Haible  <bruno@clisp.org>
8610
8611         absolute-header, include-next: Add support for MSVC compiler.
8612         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
8613         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
8614         directory separator in #line directives.
8615         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
8616         recognize also backslash as directory separator in #line directives.
8617
8618 2011-09-08  Jim Meyering  <meyering@redhat.com>
8619
8620         maint.mk: mark the post-release commit log with "maint: " prefix
8621         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
8622         one-line commit-log summary.
8623
8624 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
8625             Bruno Haible  <bruno@clisp.org>
8626
8627         Doc about crypt functions.
8628         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
8629         systems.
8630         * doc/posix-functions/encrypt.texi: Likewise.
8631         * doc/posix-functions/setkey.texi: Likewise.
8632
8633 2011-09-08  Simon Josefsson  <simon@josefsson.org>
8634
8635         * lib/gc.h: Fix copyright header.
8636
8637 2011-09-07  Bruno Haible  <bruno@clisp.org>
8638
8639         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
8640         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
8641         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
8642
8643 2011-09-07  Bruno Haible  <bruno@clisp.org>
8644
8645         openat: Work around compilation error with OSF/1 5.1 DTK cc.
8646         * lib/fopen.c: Use different syntax for include of <stdio.h>.
8647         * lib/freopen.c: Likewise.
8648         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
8649         * lib/lstat.c: Likewise.
8650         * lib/stat.c: Likewise.
8651         * lib/open.c: Use different syntax for include of <fcntl.h>.
8652         * lib/openat.c: Include fcntl.h again, explicitly.
8653
8654 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
8655
8656         parse-datetime: document the newly accepted format
8657         * doc/parse-datetime.texi (Combined date and time of day items):
8658         New section.
8659
8660 2011-09-06  Bruno Haible  <bruno@clisp.org>
8661
8662         acl: Fix a test failure on newer Solaris 10 with ZFS.
8663         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
8664         ENOSYS as no ACL.
8665         Reported by Jim Meyering.
8666
8667 2011-09-06  Bruno Haible  <bruno@clisp.org>
8668
8669         acl: Update for AIX >= 5.3 with NFS.
8670         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
8671         ENOSYS as no ACL.
8672
8673         acl: Fix a test failure on AIX >= 5.3 with NFS.
8674         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
8675         as no ACL.
8676
8677 2011-09-06  Bruno Haible  <bruno@clisp.org>
8678
8679         acl: Fix a test failure on IRIX 6.5 with NFS.
8680         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
8681         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
8682         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
8683         * lib/copy-acl.c (qcopy_acl): Likewise.
8684
8685 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
8686
8687         openat: port to AIX 7.1 with large files
8688         AIX 7.1 does a "#define openat open64at" if large files are in use,
8689         so we can't simply #undef openat.  Use the orig_openat trick (similar
8690         to orig_open in lib/open.c) to work around the problem.  Problem
8691         reported by Kevin Brott for GNU tar, in the thread containing
8692         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
8693         * lib/openat.c (__need_system_fcntl_h): Define first.
8694         Include <fcntl.h> and <sys/types.h> before undefining.
8695         (orig_openat) [HAVE_OPENAT]: New inline function.
8696         (openat) [HAVE_OPENAT]: Do not undef.
8697         (rpl_openat): Use orig_openat, not openat.
8698
8699 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
8700             Bruno Haible  <bruno@clisp.org>
8701
8702         acl: Avoid errors on NonStop Kernel.
8703         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
8704         ENOTSUP errors.
8705
8706 2011-09-05  Bruno Haible  <bruno@clisp.org>
8707
8708         acl: Clean up Solaris code.
8709         * lib/acl-internal.h: Remove no-op #if.
8710         * lib/file-has-acl.c: Likewise.
8711         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
8712         * lib/copy-acl.c (qcopy_acl): Likewise.
8713
8714 2011-09-05  Bruno Haible  <bruno@clisp.org>
8715
8716         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
8717         binaries built on the original Solaris 10.
8718         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
8719         trivial.
8720
8721 2011-09-05  Bruno Haible  <bruno@clisp.org>
8722
8723         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
8724         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
8725         10.
8726         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
8727         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
8728         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
8729         instead of acl_get, facl_get, acl_set, facl_set.
8730
8731 2011-09-05  Bruno Haible  <bruno@clisp.org>
8732
8733         copy-file: Try unit tests on more file systems.
8734         * tests/test-copy-file-1.sh: New file.
8735         * tests/test-copy-file-2.sh: New file.
8736         * modules/copy-file-tests (Files): Add them.
8737         (Makefile.am): Add them to TESTS.
8738
8739         acl: Try unit tests on more file systems.
8740         * tests/test-file-has-acl-1.sh: New file.
8741         * tests/test-file-has-acl-2.sh: New file.
8742         * tests/test-set-mode-acl-1.sh: New file.
8743         * tests/test-set-mode-acl-2.sh: New file.
8744         * tests/test-copy-acl-1.sh: New file.
8745         * tests/test-copy-acl-2.sh: New file.
8746         * modules/acl-tests (Files): Add them.
8747         (Makefile.am): Add them to TESTS.
8748
8749 2011-09-04  Bruno Haible  <bruno@clisp.org>
8750
8751         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
8752         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
8753         10.
8754         (OLD_ALLOW, OLD_DENY): New macros.
8755         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
8756         ACE_ACCESS_ALLOWED_ACE_TYPE.
8757         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
8758         ACE_ACCESS_DENIED_ACE_TYPE.
8759         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
8760         (NEW_ACE_EXECUTE): Fix value.
8761         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
8762         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
8763         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
8764         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
8765         NEW_ACE_SYNCHRONIZE): New macros.
8766         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
8767         instead of acl_fromtext, acl_set, facl_set.
8768         Fixes a coreutils/tests/cp/perm failure.
8769
8770 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
8771
8772         openat: test for fstatat (..., 0) bug
8773         Further testing with tar suggests that fstatat (..., 0)
8774         does not work in general, on AIX 7.1; see
8775         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
8776         So, give up entirely on AIX 7.1's fstatat, and fall back on our
8777         replacement fstatat (which is what older AIX releases were using
8778         anyway).
8779         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
8780         use is now changed to orig_fstatat.  This was probably the right
8781         thing to do anyway.
8782         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
8783         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
8784         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
8785         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
8786         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
8787         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
8788         if the bug is found.
8789
8790         openat: test for fstatat (AT_FDCWD, ..., 0) bug
8791         This tests for another fstatat bug on AIX 7.1:
8792         fstatat (AT_FDCWD, ..., 0) does not work.  See
8793         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
8794         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
8795         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
8796         (rpl_fstatat): Adjust so that it works around either (or both)
8797         bugs if present.
8798         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
8799
8800 2011-09-03  Karl Berry  <karl@gnu.org>
8801
8802         * doc/regex.texi (Character Class Operators): Avoid literal ":"
8803         in index entries.
8804
8805 2011-09-02  Bruno Haible  <bruno@clisp.org>
8806
8807         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
8808         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
8809         values of AR, ARFLAGS, RANLIB.
8810         Reported by John W. Eaton <jwe@gnu.org> for Octave.
8811
8812 2011-09-02  Bruno Haible  <bruno@clisp.org>
8813
8814         Find 'ar' program that fits with --host argument.
8815         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
8816
8817 2011-09-02  Bruno Haible  <bruno@clisp.org>
8818
8819         tests: init.sh: Support any non-GNU diff.
8820         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
8821         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
8822         Solaris 8.
8823
8824 2011-09-02  Bruno Haible  <bruno@clisp.org>
8825
8826         tests: init.sh: work also with any non-GNU diff that supports -u
8827         * tests/init.sh: Relax check for diff -u support.
8828         Rather than checking for GNU diff via --version, simply check
8829         for support for -u itself.  Useful at least on OpenBSD 4.9,
8830         AIX 7.1, IRIX 6.5, and Solaris 10.
8831
8832 2011-09-01  Bruno Haible  <bruno@clisp.org>
8833
8834         strtoimax, strtoumax: Document problem on HP-UX 11.
8835         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
8836         * doc/posix-functions/strtoumax.texi: Likewise.
8837
8838 2011-09-01  Bruno Haible  <bruno@clisp.org>
8839
8840         strtoumax: Avoid link error on OSF/1 with DTK cc.
8841         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
8842         defined as a function.
8843         * modules/strtoumax (Depends-on, configure.ac): Test only whether
8844         strtoumax is defined, not whether it is declared.
8845
8846 2011-09-01  Bruno Haible  <bruno@clisp.org>
8847
8848         strtoimax: Avoid link error on OSF/1 with DTK cc.
8849         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
8850         defined as a function.
8851         * modules/strtoimax (Depends-on, configure.ac): Test only whether
8852         strtoimax is defined, not whether it is declared.
8853
8854 2011-09-01  Bruno Haible  <bruno@clisp.org>
8855
8856         imaxdiv: Avoid link error on OSF/1 with DTK cc.
8857         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
8858         as a function.
8859         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
8860         whether it is declared.
8861
8862 2011-09-01  Bruno Haible  <bruno@clisp.org>
8863
8864         imaxabs: Avoid link error on OSF/1 with DTK cc.
8865         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
8866         as a function.
8867         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
8868         whether it is declared.
8869
8870 2011-09-01  Bruno Haible  <bruno@clisp.org>
8871
8872         Tests for module 'strtoumax'.
8873         * modules/strtoumax-tests: New file.
8874         * tests/test-strtoumax.c: New file.
8875
8876         Tests for module 'strtoimax'.
8877         * modules/strtoimax-tests: New file.
8878         * tests/test-strtoimax.c: New file.
8879
8880         Tests for module 'imaxdiv'.
8881         * modules/imaxdiv-tests: New file.
8882         * tests/test-imaxdiv.c: New file.
8883
8884         Tests for module 'imaxabs'.
8885         * modules/imaxabs-tests: New file.
8886         * tests/test-imaxabs.c: New file.
8887
8888 2011-09-01  Bruno Haible  <bruno@clisp.org>
8889
8890         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
8891         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
8892         pthread_create.
8893
8894 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8895
8896         openat: work around AIX 7.1 fstatat issue
8897         This should fix the problem that was not properly fixed
8898         in the previous change, dated 2011-08-30.
8899         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
8900         __need_system_stat_h defined.
8901         (orig_fstatat) [HAVE_FSTATAT]: New function.
8902         (rpl_fstatat): Go back to the old way of doing things,
8903         except call orig_fstatat instead of fstatat.
8904         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
8905         Remove unnecessary check whether fstatat fills in st_size etc.
8906
8907 2011-09-01  Bruno Haible  <bruno@clisp.org>
8908
8909         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
8910         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
8911         just include the system's header.
8912
8913 2011-08-31  Jim Meyering  <meyering@redhat.com>
8914
8915         tests: avoid spurious assertion failure in test-float.c on ppc64
8916         * tests/test-float.c (test_long_double): Comment out an assertion,
8917         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
8918         with gcc-4.4.4.
8919
8920         maint: indent with spaces, not TABs
8921         I need to get in the habit of running gnulib's "make check".
8922         Both of these would have been caught.
8923         * m4/largefile.m4: Indent with spaces, not TABs.
8924         * lib/parse-datetime.y (iso_8601_time): Likewise.
8925         Spotted by Pádraig Brady.
8926
8927         test-parse-datetime.c: accommodate a relatively strict gcc warning
8928         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
8929         to avoid a warning from gcc's -Werror=missing-declarations.
8930         Insert a few spaces-before-funcall-parenthesis.
8931
8932 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
8933
8934         parse-datetime: accept ISO 8601 date and time rep with "T" separator
8935         The parser now accepts ISO 8601 date-time strings with "T" as the
8936         separator.  It has long parsed dates like "2004-02-29 16:21:42"
8937         with a space between the date and time strings.  Now it also parses
8938         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
8939         variants like "2004-02-29T16:21:42.333-07:00"
8940         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
8941         of day representation using the 'T' separator character.
8942         * doc/parse-datetime.texi (General date syntax): replace use of
8943         deprecated --iso-8601 option with --rfc-3339 in example of date
8944         command output formats that can be parsed.
8945         * tests/test-parse-datetime.c (tm_diff): New function, taken from
8946         lib/parse-datetime.y.
8947         (gmt_offset): New function.
8948         (main): Add additional test cases to validate ISO8601 extended
8949         date and time of day parsing.
8950
8951 2011-08-31  Bruno Haible  <bruno@clisp.org>
8952
8953         freopen: Documentation.
8954         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
8955         name.
8956         Reported by Claudio Bley <claudio.bley@gmail.com>.
8957
8958 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
8959
8960         freopen: Don't crash if the filename argument is NULL.
8961         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
8962         NULL.
8963
8964 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
8965
8966         openat: work around AIX 7.1 fstatat bug
8967         Problem reported by Kevin Brott for GNU tar, in the thread containing
8968         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
8969         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
8970         FSTATAT_ST_SIZE_ETC_BROKEN.
8971         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
8972         rpl_fstatat.
8973         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
8974         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
8975         AC_CHECK_FUNCS_ONCE for fstatat.
8976         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
8977         fchmodat, mkdirat, openat and unlinkat.
8978
8979 2011-08-30  Bruno Haible  <bruno@clisp.org>
8980
8981         Avoid endless recursions if config.h includes some header files.
8982         * lib/fopen.c (__need_FILE): Define already before including config.h.
8983         * lib/freopen.c (__need_FILE): Likewise.
8984         * lib/open.c (__need_system_fcntl_h): Likewise.
8985         * lib/stat.c (__need_system_sys_stat_h): Likewise.
8986         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
8987         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8988
8989 2011-08-25  Karl Berry  <karl@gnu.org>
8990
8991         * config/srclist.txt (ylwrap): new try.
8992         * build-aux/ylwrap: new file.
8993
8994 2011-08-23  Bruno Haible  <bruno@clisp.org>
8995
8996         tmpdir: Use a good default directory on native Windows.
8997         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
8998         (P_tmpdir): Default to _P_tmpdir on native Windows.
8999         (path_search): On native Windows, try the value returned by GetTempPath
9000         before trying P_tmpdir.
9001         * modules/tmpdir (Depends-on): Add pathmax.
9002         Suggested by John Darrington <john@darrington.wattle.id.au>.
9003
9004 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9005
9006         doc: fix typo in README-release
9007         * top/README-release: Capitalize first word of a sentence.
9008
9009 2011-08-19  Jim Meyering  <meyering@redhat.com>
9010
9011         fts: do not exhaust memory when processing million-entry directories
9012         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
9013         directory would require about 256*N bytes of memory.  Thus, it was
9014         easy to construct a directory too large to be processed by any of
9015         those tools.  With this change, fts' maximum memory utilization is
9016         now limited to around 30MB.
9017         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
9018         (fts_read): When we've processed the final entry (i.e., when
9019         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
9020         using the parent entry to read any remaining entries.  Dispatch
9021         depending on what fts_build returns:
9022         - NULL+stop, aka failure: stop
9023         - NULL otherwise: move up in the dir hierarchy
9024         - non-NULL: handle this new entry
9025         (fts_build): Declare and use new local, continue_readdir.
9026         Prepare to be called from fts_read, when the entries
9027         from a partially-read directory have just been exhausted.
9028         In that case, we'll skip the opendir and instead use the parent's
9029         fts_dirp and derive dir_fd from that.
9030         Finally, in the readdir loop, if we read max_entries entries,
9031         exit the loop ensuring *not* to call closedir.  This is required
9032         so that fts_dirp can be reused on a subsequent call.
9033         Prompted by Ben England's report of memory exhaustion in find
9034         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
9035
9036         maint: fts: move decl of `dp' down into while loop; split a long line
9037         * lib/fts.c (fts_build): No semantic change.
9038
9039         fts: add/use new struct member, fts_dirp
9040         We are about to use this to manage any directory with
9041         too many entries to read all of them into memory at once.
9042         To do that, we'll need to save the DIR* pointer in each
9043         affected FTSENT struct.
9044         * lib/fts_.h: Include <dirent.h>.
9045         (struct FTSENT) [fts_dirp]: New member.
9046         * lib/fts.c (closedir_and_clear): Define.
9047         Use it in place of closedir so that we are sure to
9048         clear the new fts_dirp member when done with it.
9049         (fts_alloc): Initialize the new member.
9050         (fts_lfree): Free, if needed.
9051
9052         maint: fts: give __opendir2 a new parameter and rename
9053         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
9054         than surreptitiously using sole caller's "dir_fd".
9055         (fts_opendir): Rename from __opendir2.
9056
9057         maint: fts.c: remove __opendir2's now-unused parameter, oflag
9058         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
9059
9060         maint: fts.c: correct off-by-one indentation
9061         * lib/fts.c (fts_build): Correct indentation, change style
9062         of a couple of block comments, and bracing style.
9063
9064         maint: fts.c: move __opendir2 #define "up" out of function body
9065         * lib/fts.c (__opendir2): Move "up".  No semantic change.
9066
9067         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
9068         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
9069         out for a long time and besides was useful only on BSD systems.
9070
9071 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9072
9073         regex: port to Stratus OpenVOS
9074         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
9075         define to empty, rather than attempting nonportable optimizations.
9076         Problem reported by Paul Green in:
9077         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
9078         and fix suggested by Eric Blake in:
9079         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
9080
9081 2011-08-17  Eric Blake  <eblake@redhat.com>
9082
9083         getcwd: fix test failures on mingw
9084         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
9085         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
9086         test if long directory cannot be created, and allow mingw errno.
9087
9088         getcwd-lgpl: fix m4 to match relaxed test for BSD
9089         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
9090         (gl_FUNC_GETCWD_SIGNATURE): New macro.
9091         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
9092         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
9093         signature problem.
9094
9095         getcwd: fix compilation on mingw64
9096         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
9097         getcwd.
9098         Reported by Marc-André Lureau.
9099
9100         pipe2: silence compiler warning
9101         * lib/pipe2.c (pipe2): Hide label if it is not used.
9102
9103 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
9104
9105         relocatable-prog: fix link error
9106         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
9107         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
9108         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
9109         into modules/relocatable-lib without noticing that
9110         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
9111         also needs to build relocatable.c.
9112
9113 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9114
9115         getaddrinfo: fix sh typo in gai_strerrorA decl checking
9116         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
9117         shell code: it contained a 'break' that was not in a loop.
9118         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
9119         via a shell-language loop; this may have been true in old Autoconf
9120         versions, but it's not true in Autoconf 2.68.  I found this bug
9121         when testing coreutils git on Solaris 8, whose shell complains
9122         about the syntax error.
9123
9124 2011-08-12  Simon Josefsson  <simon@josefsson.org>
9125
9126         * lib/base64.c: Fix comment to reference RFC 4648.
9127         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
9128         <gvtulder@gmail.com>.
9129
9130 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
9131
9132         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
9133
9134         po/Makefile.in.in: fix make -q problem
9135         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
9136         rule, since there's no file named 'check-macro-version' and its
9137         use as a file breaks make -q.
9138         (all): Don't depend on check-macro-version.
9139         (CHECK_MACRO_VERSION): New macro.
9140         (stamp-po): Use it.
9141
9142         configmake: fix make -q problem
9143         * modules/configmake (configmake.h): Update configmake.h's time stamp
9144         even if the file does not change.  Otherwise, 'make -q' fails.
9145         Problem reported by Simon Josefsson in
9146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
9147
9148 2011-08-11  Jim Meyering  <meyering@redhat.com>
9149
9150         git-version-gen: correct the advice in a comment
9151         * build-aux/git-version-gen: Correct comment.
9152         Don't recommend to list .tarball-version in .gitignore.
9153
9154 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9155
9156         base64: fix off-by-one buffer size bug
9157         Problem and (trivial) fix reported by Gijs van Tulder in
9158         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
9159         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
9160         * tests/test-base64.c (main): Catch the bug.
9161
9162 2011-08-10  Eric Blake  <eblake@redhat.com>
9163
9164         closein: correct comments
9165         * lib/closein.c (close_stdin): Improve comments.
9166
9167 2011-08-09  Bruno Haible  <bruno@clisp.org>
9168
9169         More tests for 'fseeko'.
9170         * tests/test-fseeko3.c: New file, from Eric Blake.
9171         * tests/test-fseeko3.sh: New file.
9172         * modules/fseeko-tests (Files): Add them.
9173         (TESTS): Add test-fseeko3.sh.
9174         (check_PROGRAMS): Add test-fseeko3.
9175
9176 2011-08-09  Eric Blake  <eblake@redhat.com>
9177
9178         fseeko: remove unneeded hack
9179         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
9180
9181         fseeko: fix bug on glibc
9182         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
9183         Reported by John W. Eaton.
9184
9185 2011-08-08  Bruno Haible  <bruno@clisp.org>
9186
9187         unictype/base: Fix interoperability with preinstalled libunistring.
9188         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
9189         Reported by Simon Josefsson.
9190
9191 2011-08-08  Bruno Haible  <bruno@clisp.org>
9192
9193         iswblank: Detect declaration correctly.
9194         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
9195         AC_CHECK_DECLS invocation.
9196
9197 2011-08-08  Bruno Haible  <bruno@clisp.org>
9198
9199         tcgetsid: Detect declaration correctly.
9200         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
9201         AC_CHECK_DECLS invocation.
9202         Reported by Simon Josefsson.
9203
9204 2011-08-08  Eric Blake  <eblake@redhat.com>
9205
9206         largefile: fix typo that regressed large file support
9207         * modules/largefile (configure.ac-early): Fix section name.
9208
9209 2011-08-06  Karl Berry  <karl@gnu.org>
9210
9211         * MODULES.html.sh (func_all_files): _Noreturn is no longer
9212         a separate module.
9213
9214 2011-08-05  Simon Josefsson  <simon@josefsson.org>
9215
9216         openat: Fix warnings and commens when building unlinkat.c on Hurd.
9217         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
9218         get prototype for free.
9219
9220 2011-08-04  Bruno Haible  <bruno@clisp.org>
9221
9222         Tests for module 'pathmax'.
9223         * modules/pathmax-tests: New file.
9224         * tests/test-pathmax.c: New file.
9225
9226         canonicalize-lgpl: Support larger filenames on the Hurd.
9227         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
9228         Reported by Paul Eggert.
9229
9230         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
9231         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
9232         * lib/chdir-long.h: Include pathmax.h.
9233         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
9234         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
9235         (PATH_MAX): Remove code that is done by pathmax.h.
9236         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
9237         * lib/tmpfile.c: Add a comment.
9238         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
9239         * modules/chdir-long (Depends-on): Add pathmax.
9240         * modules/getcwd (Depends-on): Add pathmax.
9241         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
9242         is not defined.
9243         * doc/posix-headers/limits.texi: Mention the pathmax module.
9244         * NEWS: Mention the change.
9245
9246 2011-08-02  Bruno Haible  <bruno@clisp.org>
9247
9248         pthread_sigmask: Actually use results of gl_THREADLIB.
9249         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
9250         gl_THREADLIB, not gl_[]THREADLIB.
9251         Reported by Eric Blake.
9252
9253 2011-08-02  Jim Meyering  <meyering@redhat.com>
9254
9255         maint.mk: relax the default _gl_TS_function_match regexp
9256         * top/maint.mk (_gl_TS_function_match): Don't require at least one
9257         space between function name and "(" in an "extern" declaration.
9258         That would fail to match a decl with no space there: extern void foo();
9259
9260 2011-07-31  Iain Nicol  <iain@thenicols.net>
9261
9262         git-version-gen: document that EXTRA_DIST must include .version
9263         * build-aux/git-version-gen: In the how-to-use comment, document
9264         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
9265         will fail when run from an unpacked distribution tarball.
9266
9267 2011-08-01  Bruno Haible  <bruno@clisp.org>
9268
9269         wctype-h: Fix last change.
9270         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
9271         REPLACE_TOWLOWER to 0.
9272         Reported by Sam Steingold <sds@gnu.org>.
9273
9274 2011-07-31  Bruno Haible  <bruno@clisp.org>
9275
9276         frexpl: Update autoconf test.
9277         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
9278         according to changes of 2011-06-20.
9279
9280 2011-07-31  Bruno Haible  <bruno@clisp.org>
9281
9282         sys_utsname: Add support for Minix.
9283         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
9284         <sys/utsname.h>.
9285         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9286         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
9287
9288 2011-07-31  Bruno Haible  <bruno@clisp.org>
9289
9290         strings: Add support for Minix.
9291         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
9292         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9293         * doc/posix-headers/strings.texi: Document the Minix problem.
9294
9295 2011-07-31  Bruno Haible  <bruno@clisp.org>
9296
9297         wctype-h: Add support for Minix.
9298         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
9299         REPLACE_TOWLOWER.
9300         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
9301         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
9302         REPLACE_ISWCNTRL.
9303
9304 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
9305
9306         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
9307         This is a performance improvement for 64-bit hosts: it causes the
9308         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
9309
9310 2011-07-31  Bruno Haible  <bruno@clisp.org>
9311
9312         stdioext: Add support for Minix.
9313         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
9314         * lib/fpurge.c (fpurge): Likewise.
9315         * lib/freadahead.c (freadahead): Likewise.
9316         * lib/freadable.c (freadable): Likewise.
9317         * lib/freading.c (freading): Likewise.
9318         * lib/freadptr.c (freadptr): Likewise.
9319         * lib/freadseek.c (freadptrinc): Likewise.
9320         * lib/fseeko.c (rpl_fseeko): Likewise.
9321         * lib/fseterr.c (fseterr): Likewise.
9322         * lib/fwritable.c (fwritable): Likewise.
9323         * lib/fwriting.c (fwriting): Likewise.
9324         * lib/fflush.c (clear_ungetc_buffer): Update comment.
9325         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
9326
9327 2011-07-31  Bruno Haible  <bruno@clisp.org>
9328
9329         errno: Port to Minix.
9330         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
9331         ECONNABORTED are defined.
9332         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
9333         GNULIB_defined_ECONNABORTED): New macros.
9334         * lib/strerror-override.h (strerror_override): Test also
9335         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
9336         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
9337         ECONNABORTED.
9338         * doc/posix-headers/errno.texi: Mention the Minix problem.
9339
9340 2011-07-31  Bruno Haible  <bruno@clisp.org>
9341
9342         Work around declaration collisions on Minix.
9343         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
9344         defined, set REPLACE_MBSINIT.
9345         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
9346         defined, set REPLACE_MBRTOWC.
9347         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
9348         set REPLACE_MBRLEN.
9349         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
9350         defined, set REPLACE_MBSRTOWCS.
9351         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
9352         defined, set REPLACE_WCRTOMB.
9353         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
9354         defined, set REPLACE_WCSRTOMBS.
9355
9356 2011-07-31  Bruno Haible  <bruno@clisp.org>
9357
9358         Add support for Minix with ACK compiler.
9359         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
9360         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
9361         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
9362
9363 2011-07-31  Bruno Haible  <bruno@clisp.org>
9364
9365         Documentation about Minix.
9366         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
9367         * doc/glibc-headers/*.texi: Likewise.
9368         * doc/posix-functions/*.texi: Likewise.
9369         * doc/glibc-functions/*.texi: Likewise.
9370
9371 2011-07-31  Bruno Haible  <bruno@clisp.org>
9372
9373         snippet/warn-on-use: Fix indentation.
9374         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
9375
9376 2011-07-25  Jim Meyering  <meyering@redhat.com>
9377
9378         tests: test-update-copyright.sh: remove unnecessary "rm" commands
9379         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
9380         commands.
9381
9382 2011-07-27  Jim Meyering  <meyering@redhat.com>
9383
9384         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
9385         * top/maint.mk (gl_extract_significant_defines_): Now that
9386         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
9387         gnulib/lib/signal.in.h, and now that we recommend to
9388         define-if-undefined those two symbols in application code,
9389         we must filter them out of the "significant" list.
9390         This avoids a "make syntax-check" failure in coreutils.
9391
9392 2011-07-26  Eric Blake  <eblake@redhat.com>
9393
9394         warnings: add comments about previous patch
9395         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
9396         * m4/include_next.m4: Likewise.
9397         * m4/warn-on-use.m4: Likewise.
9398         * m4/warnings.m4: Likewise, and simplify use.
9399         Suggested by Stefano Lattarini.
9400
9401         include-next, warnings: support older autoconf
9402         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
9403         AS_VAR_PUSHDEF in a way that works with older autoconf.
9404         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
9405         Reported by Daniel P. Berrange.
9406
9407 2011-07-25  Bruno Haible  <bruno@clisp.org>
9408
9409         fseek, ftell: Fix doc.
9410         * doc/posix-functions/fseek.texi: Reword statement about
9411         AC_SYS_LARGEFILE.
9412         * doc/posix-functions/ftell.texi: Likewise.
9413
9414 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9415             Bruno Haible  <bruno@clisp.org>
9416
9417         Add dependencies to the 'largefile' module.
9418         * modules/fopen (Depends-on): Add 'largefile'.
9419         * modules/freopen (Depends-on): Likewise.
9420         * modules/fseeko (Depends-on): Likewise.
9421         * modules/ftello (Depends-on): Likewise.
9422         * modules/glob (Depends-on): Likewise.
9423         * modules/lseek (Depends-on): Likewise.
9424         * modules/lstat (Depends-on): Likewise.
9425         * modules/mkostemp (Depends-on): Likewise.
9426         * modules/mkostemps (Depends-on): Likewise.
9427         * modules/mkstemp (Depends-on): Likewise.
9428         * modules/mkstemps (Depends-on): Likewise.
9429         * modules/open (Depends-on): Likewise.
9430         * modules/openat (Depends-on): Likewise.
9431         * modules/pread (Depends-on): Likewise.
9432         * modules/pwrite (Depends-on): Likewise.
9433         * modules/scandir (Depends-on): Likewise.
9434         * modules/stat (Depends-on): Likewise.
9435         * modules/tmpfile (Depends-on): Likewise.
9436         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
9437         since the containing module now depends on the largefile module.
9438         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
9439         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
9440         off_t is fixed by gnulib.
9441         * doc/posix-functions/freopen.texi: Likewise.
9442         * doc/posix-functions/fseeko.texi: Likewise.
9443         * doc/posix-functions/fstatat.texi: Likewise.
9444         * doc/posix-functions/ftello.texi: Likewise.
9445         * doc/posix-functions/glob.texi: Likewise.
9446         * doc/posix-functions/lseek.texi: Likewise.
9447         * doc/posix-functions/lstat.texi: Likewise.
9448         * doc/posix-functions/mkstemp.texi: Likewise.
9449         * doc/posix-functions/open.texi: Likewise.
9450         * doc/posix-functions/openat.texi: Likewise.
9451         * doc/posix-functions/pread.texi: Likewise.
9452         * doc/posix-functions/pwrite.texi: Likewise.
9453         * doc/posix-functions/scandir.texi: Likewise.
9454         * doc/posix-functions/stat.texi: Likewise.
9455         * doc/posix-functions/tmpfile.texi: Likewise.
9456         * doc/glibc-functions/mkostemp.texi: Likewise.
9457         * doc/glibc-functions/mkostemps.texi: Likewise.
9458         * doc/glibc-functions/mkstemps.texi: Likewise.
9459
9460 2011-07-25  Bruno Haible  <bruno@clisp.org>
9461
9462         fcntl: Move AC_LIBOBJ invocation to module description.
9463         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
9464         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
9465
9466         fcntl: Remove call-in from fchdir.m4.
9467         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
9468         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
9469
9470         dup3: Remove potential call-in from fchdir.m4.
9471         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
9472         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
9473
9474         dup2: Move AC_LIBOBJ invocation to module description.
9475         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
9476         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
9477         Don't invoke AC_LIBOBJ.
9478         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
9479
9480         dup2: Remove call-in from fchdir.m4.
9481         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
9482         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
9483
9484         fclose: Move AC_LIBOBJ invocation to module description.
9485         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
9486         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
9487         to 1.
9488         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
9489
9490         fclose: Remove call-in from close.m4.
9491         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
9492         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
9493
9494         close: Move AC_LIBOBJ invocation to module description.
9495         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
9496         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
9497         1.
9498         * modules/close (configure.ac): Invoke AC_LIBOBJ.
9499
9500         close: Remove call-in from fchdir.m4.
9501         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
9502         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
9503
9504         open: Move AC_LIBOBJ invocation to module description.
9505         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
9506         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
9507         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
9508
9509         open: Remove call-in from fchdir.m4.
9510         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
9511         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
9512
9513         fchdir: Start to remove gl_REPLACE_* idiom.
9514         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
9515         (gl_FUNC_FCHDIR): Invoke it.
9516
9517 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9518
9519         * lib/ftell.c (ftell): Comment out cast.
9520
9521         close: use gl_REPLACE_FCLOSE only if defined
9522         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
9523         is defined.  The close module doesn't depend on the fclose module
9524         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
9525         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
9526         I reproduced the problem with "./gnulib-tool --test close sys_socket".
9527
9528 2011-07-24  Jim Meyering  <meyering@redhat.com>
9529
9530         test-select.h: avoid warning when using gcc's -Wmissing-declarations
9531         * tests/test-select.h (test_function): Declare as "static".
9532
9533 2011-07-24  Bruno Haible  <bruno@clisp.org>
9534
9535         doc: Mention the effects of AC_SYS_LARGEFILE.
9536         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
9537         on this function.
9538         * doc/posix-functions/aio_error.texi: Likewise.
9539         * doc/posix-functions/aio_fsync.texi: Likewise.
9540         * doc/posix-functions/aio_read.texi: Likewise.
9541         * doc/posix-functions/aio_return.texi: Likewise.
9542         * doc/posix-functions/aio_suspend.texi: Likewise.
9543         * doc/posix-functions/aio_write.texi: Likewise.
9544         * doc/posix-functions/fgetpos.texi: Likewise.
9545         * doc/posix-functions/fopen.texi: Likewise.
9546         * doc/posix-functions/freopen.texi: Likewise.
9547         * doc/posix-functions/fsetpos.texi: Likewise.
9548         * doc/posix-functions/fstatvfs.texi: Likewise.
9549         * doc/posix-functions/ftruncate.texi: Likewise.
9550         * doc/posix-functions/ftw.texi: Likewise.
9551         * doc/posix-functions/getrlimit.texi: Likewise.
9552         * doc/posix-functions/glob.texi: Likewise.
9553         * doc/posix-functions/lio_listio.texi: Likewise.
9554         * doc/posix-functions/lockf.texi: Likewise.
9555         * doc/posix-functions/mkstemp.texi: Likewise.
9556         * doc/posix-functions/mmap.texi: Likewise.
9557         * doc/posix-functions/nftw.texi: Likewise.
9558         * doc/posix-functions/openat.texi: Likewise.
9559         * doc/posix-functions/opendir.texi: Likewise.
9560         * doc/posix-functions/posix_fadvise.texi: Likewise.
9561         * doc/posix-functions/posix_fallocate.texi: Likewise.
9562         * doc/posix-functions/pread.texi: Likewise.
9563         * doc/posix-functions/pwrite.texi: Likewise.
9564         * doc/posix-functions/readdir.texi: Likewise.
9565         * doc/posix-functions/readdir_r.texi: Likewise.
9566         * doc/posix-functions/rewinddir.texi: Likewise.
9567         * doc/posix-functions/scandir.texi: Likewise.
9568         * doc/posix-functions/seekdir.texi: Likewise.
9569         * doc/posix-functions/setrlimit.texi: Likewise.
9570         * doc/posix-functions/statvfs.texi: Likewise.
9571         * doc/posix-functions/telldir.texi: Likewise.
9572         * doc/posix-functions/tmpfile.texi: Likewise.
9573         * doc/posix-functions/truncate.texi: Likewise.
9574         * doc/glibc-functions/fallocate.texi: Likewise.
9575         * doc/glibc-functions/fstatfs.texi: Likewise.
9576         * doc/glibc-functions/fts_children.texi: Likewise.
9577         * doc/glibc-functions/fts_read.texi: Likewise.
9578         * doc/glibc-functions/getdirentries.texi: Likewise.
9579         * doc/glibc-functions/mkostemp.texi: Likewise.
9580         * doc/glibc-functions/mkostemps.texi: Likewise.
9581         * doc/glibc-functions/mkstemps.texi: Likewise.
9582         * doc/glibc-functions/preadv.texi: Likewise.
9583         * doc/glibc-functions/pwritev.texi: Likewise.
9584         * doc/glibc-functions/sendfile.texi: Likewise.
9585         * doc/glibc-functions/statfs.texi: Likewise.
9586
9587 2011-07-24  Bruno Haible  <bruno@clisp.org>
9588
9589         doc: Fix typo.
9590         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
9591
9592 2011-07-24  Bruno Haible  <bruno@clisp.org>
9593
9594         doc: Mention fsusage.
9595         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
9596
9597 2011-07-24  Bruno Haible  <bruno@clisp.org>
9598
9599         doc: Mention new glibc headers and functions.
9600         * doc/glibc-headers/gshadow.texi: New file.
9601         * doc/glibc-functions/endsgent.texi: New file.
9602         * doc/glibc-functions/fgetsgent.texi: New file.
9603         * doc/glibc-functions/fgetsgent_r.texi: New file.
9604         * doc/glibc-functions/getsgent.texi: New file.
9605         * doc/glibc-functions/getsgent_r.texi: New file.
9606         * doc/glibc-functions/getsgnam.texi: New file.
9607         * doc/glibc-functions/getsgnam_r.texi: New file.
9608         * doc/glibc-functions/putsgent.texi: New file.
9609         * doc/glibc-functions/setsgent.texi: New file.
9610         * doc/glibc-functions/sgetsgent.texi: New file.
9611         * doc/glibc-functions/sgetsgent_r.texi: New file.
9612         * doc/glibc-functions/malloc_info.texi: New file.
9613         * doc/glibc-functions/preadv.texi: New file.
9614         * doc/glibc-functions/pwritev.texi: New file.
9615         * doc/glibc-functions/register_printf_modifier.texi: New file.
9616         * doc/glibc-functions/register_printf_specifier.texi: New file.
9617         * doc/glibc-functions/register_printf_type.texi: New file.
9618         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
9619         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
9620         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
9621         * doc/glibc-functions/pthread_getname_np.texi: New file.
9622         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
9623         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
9624         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
9625         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
9626         * doc/glibc-functions/pthread_setname_np.texi: New file.
9627         * doc/glibc-functions/pthread_sigqueue.texi: New file.
9628         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
9629         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
9630         * doc/glibc-functions/qsort_r.texi: New file.
9631         * doc/glibc-functions/quick_exit.texi: New file.
9632         * doc/glibc-functions/syncfs.texi: New file.
9633         * doc/gnulib.texi: Include them.
9634         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
9635         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
9636         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
9637         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
9638         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
9639         * doc/glibc-functions/execvpe.texi: Likewise.
9640
9641 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
9642
9643         ftell: don't include <unistd.h>
9644         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
9645         guaranteed to define off_t, and the ftell module depends on the
9646         stdio module.
9647
9648         ftell: do not assume wraparound signed arithmetic
9649         * lib/ftell.c: Include <limits.h>.
9650         (ftell): Don't assume wraparound signed arithmetic.
9651
9652 2011-07-24  Bruno Haible  <bruno@clisp.org>
9653
9654         close: No longer depend on module 'fclose'.
9655         * modules/close (Depends-on): Remove fclose.
9656         * NEWS: Mention the change.
9657         Suggested by Sam Steingold <sds@gnu.org>.
9658
9659 2011-07-24  Bruno Haible  <bruno@clisp.org>
9660
9661         fsusage: Enable large volume support on AIX >= 5.2.
9662         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
9663         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
9664         instead of STAT_STATVFS.
9665         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
9666
9667         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
9668         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
9669         f_blocks field only on MacOS X.
9670
9671         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
9672         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
9673         * modules/fsusage (Depends-on): Add largefile.
9674
9675 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
9676
9677         * README: Modernize discussion of signed integers.
9678         Assuming overflow wraparound is no longer safe.
9679         Mention ones' complement and signed magnitude.
9680
9681 2011-07-22  Bruno Haible  <bruno@clisp.org>
9682
9683         select tests, pselect tests: Refactor.
9684         * tests/test-select.h: New file, extracted from tests/test-select.c.
9685         (select_fn): New type.
9686         (test, do_select, do_select_nowait, do_select_wait, test_tty,
9687         test_connect_first, test_accept_first, test_pair, test_socket_pair,
9688         test_pipe): Add my_select argument.
9689         (test_function): Renamed from main. Add my_select argument.
9690         * tests/test-select.c: Move most code to tests/test-select.h. Include
9691         test-select.h.
9692         * modules/select-tests (Files): Add tests/test-select.h.
9693         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
9694         (my_select, main): New functions.
9695         * modules/pselect-tests (Files): Add tests/test-select.h,
9696         tests/macros.h, tests/signature.h.
9697         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
9698         (configure.ac): Check for <sys/wait.h>.
9699
9700 2011-07-22  Bruno Haible  <bruno@clisp.org>
9701
9702         sys_select tests: Check the signature of FD_*.
9703         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
9704         signature tests from here...
9705         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
9706         here.
9707         * modules/sys_select-tests (Files): Add tests/signature.h.
9708
9709 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
9710
9711         largefile: new module, replacing large-inode
9712         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
9713         * MODULES.html.sh: Add largefile, remove large-inode.
9714         * modules/largefile, m4/largefile.m4: New files.
9715         * modules/large-inode, m4/large-inode.m4: Remove.
9716
9717         fsusage: port to MacOS X 10.7 with 4 TiB file systems
9718         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
9719         implementations that use only 32 bits to count blocks.
9720         On typical hosts with 1024-byte blocks, this fails with file
9721         systems as small as 4 TiB.  Problem reported by Herb Wartens
9722         <http://debbugs.gnu.org/9140> and this should also fix a similar
9723         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
9724
9725         large-inode: New module
9726         * MODULES.html.sh: Add it.
9727         * modules/large-inode, m4/large-inode.m4: New files.
9728
9729         extensions: Enable extensions on MacOS X 10.5 and later.
9730         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
9731
9732 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
9733
9734         file-has-acl: use acl_extended_file_nofollow if available
9735         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
9736         (acl_extended_file): New macro.
9737         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
9738         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
9739
9740 2011-07-21  Bruno Haible  <bruno@clisp.org>
9741
9742         Declare system functions in a way that works with C++.
9743         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
9744         declare fdopendir as extern "C".
9745         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
9746         declare frexpl as extern "C".
9747         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
9748         declare gai_strerror as extern "C".
9749         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
9750         programs, declare gai_strerror as extern "C".
9751         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
9752         declare getlogin_r as extern "C".
9753         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
9754         as extern "C".
9755         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
9756         declare ldexpl as extern "C".
9757         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
9758         as extern "C".
9759         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
9760         program, declare getmntinfo as extern "C".
9761         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
9762         stpncpy as extern "C".
9763         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
9764         program, declare __xpg_strerror_r as extern "C".
9765         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
9766         strndup as extern "C".
9767         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
9768         declare memset and bzero as extern "C".
9769         Reported by Sam Steingold <sds@gnu.org>.
9770
9771 2011-07-12  Jim Meyering  <meyering@redhat.com>
9772
9773         maint.mk: prohibit inclusion of "verify.h" without use
9774         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
9775
9776 2011-07-19  Pádraig Brady  <P@draigBrady.com>
9777
9778         timer-time: A new module to check for timer_settime()
9779         * m4/timer_time.m4: Check for the posix function.
9780         * modules/timer-time: Add the new module.
9781         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
9782         Mention it.
9783
9784 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
9785             Bruno Haible  <bruno@clisp.org>
9786
9787         pthread_sigmask: assume POSIX threads if --avoid=threadlib
9788         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
9789         not defined, assume POSIX threads and look for pthread_sigmask in
9790         $LIBS, without changing $CPPFLAGS.
9791
9792 2011-07-19  Bruno Haible  <bruno@clisp.org>
9793
9794         strstr: Update cross-compilation guess.
9795         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
9796         CPUs, guess no, in view of glibc
9797         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
9798         Suggested by Eric Blake. Reported by Reuben Thomas.
9799
9800 2011-07-19  Pádraig Brady  <P@draigBrady.com>
9801
9802         getopt-gnu: suppress core dumps from detection code
9803         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
9804         to suppress core dumps that may well occur on glibc systems.
9805         * modules/getopt-gnu: Depend on nocrash.
9806
9807 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
9808
9809         pthread_sigmask: ensure usleep is declared
9810         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
9811         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
9812
9813 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
9814
9815         doc: Document NonStop portability issues.
9816         * doc/posix-functions/sigaction.texi (sigaction):
9817         * doc/posix-headers/signal.texi (signal.h):
9818         Document NonStop.  See Joachim Schmitz in
9819         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
9820
9821 2011-07-15  Bruno Haible  <bruno@clisp.org>
9822
9823         ffsl, ffsll: Avoid unportable behaviour.
9824         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
9825
9826 2011-07-15  Bruno Haible  <bruno@clisp.org>
9827
9828         ffs: More tests.
9829         * tests/test-ffs.c (NBITS): New macro.
9830         (main): Add more tests.
9831         * tests/test-ffsl.c (NBITS): New macro.
9832         (main): Add more tests.
9833         * tests/test-ffsll.c (NBITS): New macro.
9834         (main): Add more tests.
9835
9836 2011-07-15  Eric Blake  <eblake@redhat.com>
9837
9838         ffsl, ffsll: new modules
9839         * modules/ffsl: New file.
9840         * modules/ffsll: Likewise.
9841         * m4/ffsl.m4: Likewise.
9842         * m4/ffsll.m4: Likewise.
9843         * lib/ffsl.c: Likewise.
9844         * lib/ffsl.h: Likewise.
9845         * lib/ffsll.c: Likewise.
9846         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
9847         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
9848         * modules/string (Makefile.am): Substitute witnesses.
9849         * lib/strings.in.h (ffsl, ffsll): Declare.
9850         * modules/ffsl-tests: New test file.
9851         * modules/ffsll-tests: Likewise.
9852         * tests/test-ffsl.c: Likewise.
9853         * tests/test-ffsll.c: Likewise.
9854         * MODULES.html.sh (Integer arithmetic functions): Mention it.
9855         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
9856         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
9857
9858         ffs: fix m4 prerequisite
9859         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
9860
9861         ffs: avoid undefined behavior
9862         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
9863         * tests/test-ffs.c (naive, main): Avoid signed shifts.
9864         Reported by Bruno Haible.
9865
9866 2011-07-12  Bruno Haible  <bruno@clisp.org>
9867
9868         pthread_sigmask: Rely on module 'threadlib'.
9869         * modules/pthread_sigmask (Depends-on): Add threadlib.
9870         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
9871         is defined.
9872
9873 2011-07-12  Bruno Haible  <bruno@clisp.org>
9874
9875         regex: Depend on module 'strcase'.
9876         * modules/regex (Depends-on): Add strcase, for strcasecmp().
9877
9878 2011-07-12  Jim Meyering  <meyering@redhat.com>
9879
9880         warn-on-use: fix typo in file name
9881         * modules/snippet/warn-on-use (Files): Correct file name:
9882         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
9883
9884 2011-07-12  Bruno Haible  <bruno@clisp.org>
9885
9886         strings: Document module.
9887         * doc/posix-headers/strings.texi: Mention module 'strings'.
9888
9889 2011-07-12  Bruno Haible  <bruno@clisp.org>
9890
9891         Rename module '_Noreturn' to 'snippet/_Noreturn'.
9892         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
9893         (Files, Makefile.am): Update.
9894         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
9895         * modules/stdlib (Depends-on): Update.
9896
9897 2011-07-12  Bruno Haible  <bruno@clisp.org>
9898
9899         * NEWS: Mention the changes.
9900
9901         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
9902         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
9903         (Files, Makefile.am): Update.
9904         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
9905         * modules/arpa_inet (Depends-on): Update.
9906         * modules/ctype (Depends-on): Update.
9907         * modules/dirent (Depends-on): Update.
9908         * modules/fcntl-h (Depends-on): Update.
9909         * modules/glob (Depends-on): Update.
9910         * modules/iconv-h (Depends-on): Update.
9911         * modules/inttypes-incomplete (Depends-on): Update.
9912         * modules/langinfo (Depends-on): Update.
9913         * modules/locale (Depends-on): Update.
9914         * modules/math (Depends-on): Update.
9915         * modules/netdb (Depends-on): Update.
9916         * modules/poll-h (Depends-on): Update.
9917         * modules/pty (Depends-on): Update.
9918         * modules/search (Depends-on): Update.
9919         * modules/signal (Depends-on): Update.
9920         * modules/spawn (Depends-on): Update.
9921         * modules/stdio (Depends-on): Update.
9922         * modules/stdlib (Depends-on): Update.
9923         * modules/string (Depends-on): Update.
9924         * modules/strings (Depends-on): Update.
9925         * modules/sys_file (Depends-on): Update.
9926         * modules/sys_ioctl (Depends-on): Update.
9927         * modules/sys_select (Depends-on): Update.
9928         * modules/sys_socket (Depends-on): Update.
9929         * modules/sys_stat (Depends-on): Update.
9930         * modules/sys_time (Depends-on): Update.
9931         * modules/sys_times (Depends-on): Update.
9932         * modules/sys_utsname (Depends-on): Update.
9933         * modules/sys_wait (Depends-on): Update.
9934         * modules/termios (Depends-on): Update.
9935         * modules/time (Depends-on): Update.
9936         * modules/unistd (Depends-on): Update.
9937         * modules/wchar (Depends-on): Update.
9938         * modules/wctype-h (Depends-on): Update.
9939         * MODULES.html.sh (Support for building libraries and executables):
9940         Update.
9941
9942         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
9943         * modules/snippet/unused-parameter: Renamed from
9944         modules/unused-parameter.
9945         (Files, Makefile.am): Update.
9946         * build-aux/snippet/unused-parameter.h: Renamed from
9947         build-aux/unused-parameter.h.
9948         * modules/selinux-h (Depends-on): Update.
9949         * modules/unistr/base (Depends-on): Update.
9950         * MODULES.html.sh (Core language properties): Update.
9951
9952         Rename module 'link-warning' to 'snippet/link-warning'.
9953         * modules/snippet/link-warning: Renamed from modules/link-warning.
9954         (Files, Makefile.am): Update.
9955         * build-aux/snippet/link-warning.h: Renamed from
9956         build-aux/link-warning.h.
9957         * MODULES.html.sh (Support for building libraries and executables):
9958         Update.
9959
9960         Rename module 'c++defs' to 'snippet/c++defs'.
9961         * modules/snippet/c++defs: Renamed from modules/c++defs.
9962         (Files, Makefile.am): Update.
9963         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
9964         * modules/arpa_inet (Depends-on): Update.
9965         * modules/ctype (Depends-on): Update.
9966         * modules/dirent (Depends-on): Update.
9967         * modules/fcntl-h (Depends-on): Update.
9968         * modules/glob (Depends-on): Update.
9969         * modules/iconv-h (Depends-on): Update.
9970         * modules/langinfo (Depends-on): Update.
9971         * modules/locale (Depends-on): Update.
9972         * modules/math (Depends-on): Update.
9973         * modules/netdb (Depends-on): Update.
9974         * modules/poll-h (Depends-on): Update.
9975         * modules/pty (Depends-on): Update.
9976         * modules/search (Depends-on): Update.
9977         * modules/signal (Depends-on): Update.
9978         * modules/spawn (Depends-on): Update.
9979         * modules/stdio (Depends-on): Update.
9980         * modules/stdlib (Depends-on): Update.
9981         * modules/string (Depends-on): Update.
9982         * modules/strings (Depends-on): Update.
9983         * modules/sys_ioctl (Depends-on): Update.
9984         * modules/sys_select (Depends-on): Update.
9985         * modules/sys_socket (Depends-on): Update.
9986         * modules/sys_stat (Depends-on): Update.
9987         * modules/sys_time (Depends-on): Update.
9988         * modules/sys_wait (Depends-on): Update.
9989         * modules/termios (Depends-on): Update.
9990         * modules/time (Depends-on): Update.
9991         * modules/unistd (Depends-on): Update.
9992         * modules/wchar (Depends-on): Update.
9993         * modules/wctype-h (Depends-on): Update.
9994
9995         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
9996         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
9997         (Files, Makefile.am): Update.
9998         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
9999         * modules/argv-iter (Depends-on): Update.
10000         * modules/arpa_inet (Depends-on): Update.
10001         * modules/dirent (Depends-on): Update.
10002         * modules/fcntl-h (Depends-on): Update.
10003         * modules/fnmatch (Depends-on): Update.
10004         * modules/getopt-posix (Depends-on): Update.
10005         * modules/glob (Depends-on): Update.
10006         * modules/iconv-h (Depends-on): Update.
10007         * modules/inttypes-incomplete (Depends-on): Update.
10008         * modules/locale (Depends-on): Update.
10009         * modules/math (Depends-on): Update.
10010         * modules/netdb (Depends-on): Update.
10011         * modules/search (Depends-on): Update.
10012         * modules/signal (Depends-on): Update.
10013         * modules/spawn (Depends-on): Update.
10014         * modules/stdio (Depends-on): Update.
10015         * modules/stdlib (Depends-on): Update.
10016         * modules/string (Depends-on): Update.
10017         * modules/strings (Depends-on): Update.
10018         * modules/sys_socket (Depends-on): Update.
10019         * modules/sys_stat (Depends-on): Update.
10020         * modules/sys_time (Depends-on): Update.
10021         * modules/sys_times (Depends-on): Update.
10022         * modules/sys_utsname (Depends-on): Update.
10023         * modules/time (Depends-on): Update.
10024         * modules/unistd (Depends-on): Update.
10025         * modules/wchar (Depends-on): Update.
10026         * MODULES.html.sh (Support for building libraries and executables):
10027         Update.
10028
10029 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10030
10031         Improvements on _Noreturn and related modules.
10032
10033         modules/_Exit-tests: test _Noreturn too
10034         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
10035         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
10036         (main): Use them.
10037
10038         stdnoreturn, stdnoreturn-tests: remove modules
10039         They're not needed here and a bit premature for use elsewhere.  See
10040         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
10041         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
10042         * tests/test-stdnoreturn.c: Remove files.
10043         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
10044         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
10045         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
10046         and using noreturn.
10047         * modules/openat, modules/sigpipe-die, modules/xalloc:
10048         * modules/xmemdup0, modules/xstrtol:
10049         Remove dependency on stdnoreturn.
10050
10051         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
10052         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
10053         Reparenthesize to avoid GCC warning.
10054         Support Microsoft's syntax.
10055         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
10056
10057         _Noreturn-tests: remove module
10058         * modules/_Noreturn-tests: Remove.
10059         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
10060         * tests/test-_Noreturn.c: Remove.
10061         * tests/test-stdnoreturn.c: Merge from the old
10062         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
10063
10064 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10065
10066         _Noreturn, stdnoreturn, and related modules.
10067
10068         * top/maint.mk: Adjust to new noreturn support.
10069         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
10070         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
10071
10072         xalloc: use stdnoreturn.h
10073         * lib/xalloc.h: Include <stdnoreturn.h>.
10074         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10075         * modules/xalloc (Depends-on): Add stdnoreturn.
10076
10077         xstrtol: use stdnoreturn.h
10078         * lib/xstrtol.h: Include <stdnoreturn.h>.
10079         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10080         * modules/xstrtol (Depends-on): Add stdnoreturn.
10081
10082         xmemdup0: use stdnoreturn.h
10083         * lib/xmemdup0.h: Include <stdnoreturn.h>.
10084         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10085         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
10086
10087         sigpipe-die: use stdnoreturn.h
10088         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
10089         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10090         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
10091
10092         openat: use stdnoreturn.h
10093         * lib/openat.h: Include <stdnoreturn.h>.
10094         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10095         * modules/openat (Depends-on): Add stdnoreturn.
10096
10097         * lib/openat-die.c (openat_save_fail): Modernize comment.
10098
10099         * lib/xalloc-die.c (xalloc_die): Modernize comment.
10100
10101         * lib/glthread/thread.h: Modernize comment.
10102
10103         obstack: use _Noreturn
10104         * lib/obstack.c (__attribute__): Remove macro.
10105         (print_and_abort): Use _Noreturn.
10106
10107         c-stack: use _Noreturn
10108         * lib/c-stack.c (die, overflow_handler, segv_handler):
10109         Use _Noreturn rather than __attribute__((noreturn)).
10110
10111         argmatch-tests, exclude_tests: use _Noreturn
10112         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
10113         Remove.
10114         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
10115
10116         stdlib: use _Noreturn
10117         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
10118         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
10119         * modules/stdlib (Depends-on): Add _Noreturn.
10120         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
10121
10122         stdnoreturn-tests: new module
10123         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
10124
10125         stdnoreturn: new module
10126         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
10127         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
10128
10129         _Noreturn-tests: new module
10130         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
10131
10132         _Noreturn: new module
10133         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
10134         New section, mentioning it.
10135         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
10136
10137         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
10138
10139 2011-07-11  Eric Blake  <eblake@redhat.com>
10140
10141         ffs: new module
10142         * modules/ffs: New file.
10143         * m4/ffs.m4: Likewise.
10144         * lib/ffs.c: Likewise.
10145         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
10146         * modules/strings (Makefile.am): Substitute witness.
10147         (Depends-on): Add c++defs.
10148         * lib/strings.in.h (ffs): Declare.
10149         * modules/ffs-tests: New test file.
10150         * tests/test-ffs.c: Test new module.
10151         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10152         * doc/posix-functions/ffs.texi (ffs): Likewise.
10153
10154         regex: avoid compiler warning
10155         * lib/regex.c (includes): Include <strings.h>, for use of
10156         strcasecmp in regcomp.c.
10157         Reported by Joachim Schmitz.
10158
10159 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
10160
10161         stdint: respect system's intmax_t if INTMAX_MAX
10162         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
10163         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
10164         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
10165         long but int64_t is long long, and where we will clash with the
10166         system intmax_t if we override it.  See
10167         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
10168         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
10169         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
10170         similarly for UINTMAX_C.
10171
10172 2011-07-08  Bruno Haible  <bruno@clisp.org>
10173
10174         pthread_sigmask tests: Avoid a compiler warning.
10175         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
10176         non-zero.
10177
10178         sigprocmask tests: A better way to avoid a compiler warning.
10179         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
10180         (main): Complain if system() returns non-zero.
10181         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
10182
10183 2011-07-08  Bruno Haible  <bruno@clisp.org>
10184
10185         pthread_sigmask: Work around IRIX bug.
10186         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
10187         bug.
10188         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
10189         there may be unblocked pending signals.
10190         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
10191
10192 2011-07-08  Bruno Haible  <bruno@clisp.org>
10193
10194         pthread_sigmask: Work around Cygwin bug.
10195         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
10196         bug.
10197         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
10198         the system's pthread_sigmask function.
10199         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
10200
10201 2011-07-08  Bruno Haible  <bruno@clisp.org>
10202
10203         pthread_sigmask: Work around bug in single-threaded implementation.
10204         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
10205         FreeBSD, HP-UX, Solaris bug.
10206         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
10207         * lib/pthread_sigmask.c: Include <stddef.h>.
10208         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
10209         the system's pthread_sigmask function.
10210         * modules/pthread_sigmask (configure.ac): Invoke
10211         gl_PREREQ_PTHREAD_SIGMASK.
10212         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
10213         HP-UX, Solaris.
10214
10215 2011-07-08  Eric Blake  <eblake@redhat.com>
10216
10217         test-sigprocmask: avoid compiler warning
10218         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
10219         * tests/test-sigprocmask.c (main): Use it to silence warning.
10220         Reported by Jim Meyering.
10221
10222         test-snprintf: avoid compiler warning
10223         * tests/test-snprintf.c (main): Avoid shadowed declaration.
10224         * tests/test-vsnprintf.c (main): Likewise.
10225         Reported by Jim Meyering.
10226
10227 2011-07-08  Bruno Haible  <bruno@clisp.org>
10228
10229         Tests for module 'pthread_sigmask'.
10230         * modules/pthread_sigmask-tests: New file.
10231         * tests/test-pthread_sigmask1.c: New file, based on
10232         tests/test-sigprocmask.c.
10233         * tests/test-pthread_sigmask2.c: New file.
10234
10235 2011-07-08  Jim Meyering  <meyering@redhat.com>
10236
10237         test-getopt.h: avoid warning about an unused variable
10238         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
10239
10240 2011-07-07  Jim Meyering  <meyering@redhat.com>
10241
10242         maint: reduce list of files exempt from sc_prohibit_leading_TABs
10243         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
10244         now that it no longer contains leading TABs.
10245         Remove unused "url=FIXME" statement.
10246
10247 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10248
10249         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
10250         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10251         When gl_THREADLIB is not in use, assume that the POSIX sematics
10252         are desired.  This is better for Emacs, which uses POSIX semantics
10253         on GNUish and/or POSIXish platforms, and does not use threads at
10254         all otherwise.
10255
10256         pthread_sigmask: fix typo when testing for libraries
10257         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10258         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
10259
10260 2011-07-08  Eric Blake  <eblake@redhat.com>
10261
10262         fts: introduce FTS_NOATIME
10263         * lib/fts_.h (FTS_NOATIME): New bit flag.
10264         (FTS_OPTIONMASK): Adjust.
10265         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
10266         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
10267
10268 2011-07-08  Bruno Haible  <bruno@clisp.org>
10269
10270         Tests for module 'thread'.
10271         * modules/thread-tests: New file.
10272         * tests/test-thread_self.c: New file.
10273         * tests/test-thread_create.cc: New file.
10274
10275 2011-07-08  Bruno Haible  <bruno@clisp.org>
10276
10277         thread: Avoid gcc warnings when using gl_thread_self().
10278         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
10279         'void *'.
10280         (gl_thread_self_pointer): Update.
10281
10282 2011-07-07  Bruno Haible  <bruno@clisp.org>
10283
10284         signal-c++-tests: Check declaration of pthread_sigmask.
10285         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
10286         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
10287         $(LIB_PTHREAD_SIGMASK).
10288
10289 2011-07-07  Bruno Haible  <bruno@clisp.org>
10290
10291         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
10292         * lib/signal.in.h (pthread_sigmask): Override if
10293         REPLACE_PTHREAD_SIGMASK is 1.
10294         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10295         REPLACE_PTHREAD_SIGMASK.
10296         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
10297         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
10298         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
10299         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10300         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
10301
10302 2011-07-07  Bruno Haible  <bruno@clisp.org>
10303
10304         pthread_sigmask: Ensure declaration in <signal.h>.
10305         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
10306         include <pthread.h>.
10307         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
10308         problem.
10309
10310 2011-07-07  Bruno Haible  <bruno@clisp.org>
10311
10312         pthread_sigmask: Document the module.
10313         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
10314
10315 2011-07-07  Bruno Haible  <bruno@clisp.org>
10316
10317         pthread_sigmask: Follow gnulib conventions.
10318         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
10319         gl_PTHREAD_SIGMASK.
10320         * modules/pthread_sigmask (configure.ac): Update.
10321
10322 2011-07-07  Bruno Haible  <bruno@clisp.org>
10323
10324         pthread_sigmask: Make declaration C++ safe.
10325         * lib/signal.in.h: In two special conditions, just do an #include_next.
10326         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10327         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
10328         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10329         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10330         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
10331         not REPLACE_PTHREAD_MASK.
10332         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
10333         not REPLACE_PTHREAD_MASK.
10334         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10335
10336 2011-07-07  Bruno Haible  <bruno@clisp.org>
10337
10338         pthread_sigmask: Fix return value.
10339         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
10340         * lib/pthread_sigmask.c: New file.
10341         * modules/pthread_sigmask (Files): Add it.
10342         (configure.ac): Invoke AC_LIBOBJ.
10343
10344 2011-07-07  Eric Blake  <eblake@redhat.com>
10345
10346         getopt: more portable argv creation
10347         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
10348         const, use char arrays rather than strings.
10349         Suggested by Paul Eggert.
10350
10351 2011-07-07  Bruno Haible  <bruno@clisp.org>
10352
10353         Tests for module 'sigprocmask'.
10354         * modules/sigprocmask-tests: New file.
10355         * tests/test-sigprocmask.c: New file.
10356
10357 2011-07-07  Bruno Haible  <bruno@clisp.org>
10358
10359         float tests: Tweak.
10360         * tests/test-float.c (main): Tweak skip message.
10361
10362 2011-07-07  Eric Blake  <eblake@redhat.com>
10363
10364         getopt: avoid compiler warning during configure
10365         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
10366         assigning string literals to non-const pointer.
10367
10368         getopt-gnu: avoid crash in glibc getopt
10369         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
10370         * tests/test-getopt.h (test_getopt): Enhance test.
10371         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10372         * doc/posix-functions/getopt.texi (getopt): Document it.
10373         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10374         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10375         Likewise.
10376
10377 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
10378
10379         getopt: handle W; without long options in getopt [BZ #12922]
10380         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
10381         but no long options are defined, just return 'W'.
10382
10383 2011-07-07  Bruno Haible  <bruno@clisp.org>
10384
10385         Avoid literal tabs.
10386         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
10387         variable containing a tab instead of a literal tab.
10388         Reported by Jim Meyering.
10389
10390 2011-07-07  Bruno Haible  <bruno@clisp.org>
10391
10392         Comments.
10393         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
10394
10395 2011-07-06  Bruno Haible  <bruno@clisp.org>
10396
10397         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
10398         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
10399         <winsock2.h>.
10400         (rpl_fd_isset, FD_ISSET): New definitions, copied from
10401         lib/sys_socket.in.h.
10402         (close, gethostname): Hide declarations from <winsock2.h>.
10403         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
10404         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
10405         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
10406         (select): Don't override if gnulib's <sys/select.h> was already
10407         included.
10408         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
10409         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
10410         setsockopt, shutdown, select): Tweak indentation.
10411
10412 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10413
10414         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
10415         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
10416         in an application that does not use the sys_select module.
10417
10418 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
10419
10420         poll: do not return 0 on timeout=-1
10421         * lib/poll.c: Loop with yield if no events occured
10422
10423 2011-07-06  Eric Blake  <eblake@redhat.com>
10424
10425         pthread_sigmask: always replace when not using pthread
10426         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
10427         replacement when using some threading other than pthread.  Fix
10428         logic bug.
10429
10430 2011-07-06  Bruno Haible  <bruno@clisp.org>
10431
10432         Comments.
10433         * m4/printf.m4: Update comments about mingw.
10434
10435 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10436
10437         sys_select: define sigset_t more portably
10438         * lib/sys_select.in.h: Always include <sys/types.h>, since
10439         we now need sigset_t and mingw defines it there.
10440         Include <signal.h> before split inclusion guard, to avoid
10441         mishaps on Solaris, whose <signal.h> eventually includes us.
10442         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
10443         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
10444         which come from ...
10445         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
10446         gl_CHECK_TYPE_SIGSET_T.
10447         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
10448         does the real work.
10449         * modules/sys_select (Depends-on): Add 'signal'.
10450
10451         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
10452         Suggested by Bruno Haible.
10453
10454         pselect: Use pthread_sigmask, not sigprocmask.
10455         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
10456         multithreaded apps better than sigprocmask does.
10457         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
10458         sigprocmask directly.
10459
10460 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10461
10462         * lib/pselect.c (pselect): Use plain name, without "rpl_".
10463         Don't #undef,  since we don't need any underlying pselect.
10464         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
10465         (Depends-on): Add select.
10466         (Link): Add $(LIBSOCKET).
10467         These changes suggested by Bruno Haible.
10468
10469         pselect: document better
10470         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
10471         * doc/posix-functions/pselect.texi (pselect): Document new module.
10472
10473         pthread_sigmask: new module
10474         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
10475         * doc/posix-functions/pthread_sigmask.texi: Document new module.
10476         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
10477         This is done only as a macro; I don't know how well that'll
10478         work for C++.  Move <sys/types.h> include before the include_next,
10479         to avoid mishap on Solaris.
10480         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
10481         * modules/signal (Makefile.am): Substitute the check's results.
10482         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
10483
10484         test-pselect: new module
10485         * modules/pselect-tests, tests/test-pselect.c: New files.
10486         * tests/test-select.c, tests/test-sys_select-c++.cc:
10487         If TEST_PSELECT is defined, test pselect instead of testing select.
10488
10489         * tests/test-sys_select.c (sigset_t): Test for it, too.
10490         Suggested by Bruno Haible.
10491
10492 2011-07-05  Eric Blake  <eblake@redhat.com>
10493
10494         snprintf: guarantee %1$d, for libintl
10495         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
10496         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
10497         * doc/posix-functions/snprintf.texi (snprintf): Update.
10498         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10499         * tests/test-snprintf.c (main): Enhance test.
10500         * tests/test-vsnprintf.c (main): Likewise.
10501
10502 2011-07-05  Jim Meyering  <meyering@redhat.com>
10503
10504         maint: exempt stdio-read.c and stdio-write.c from the cppi check
10505         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
10506         per Bruno's request, to accommodate this idiom (no space after "#")
10507         even when the function is inside an #if block:
10508         char *
10509         gets (char *s)
10510         #undef gets
10511         {
10512           ...
10513         }
10514
10515 2011-07-04  Jim Meyering  <meyering@redhat.com>
10516
10517         maint: indent with spaces, not TABs, and add a rule to check this
10518         * tests/test-userspec.c: Indent with spaces, not TABs.
10519         * tests/test-argp.c: Likewise.
10520         * tests/test-c-stack2.sh: Likewise.
10521         * tests/test-parse-duration.sh: Likewise
10522         * m4/strtod.m4: Likewise.
10523         * m4/alloca.m4: Likewise.
10524         * m4/pselect.m4: Likewise.
10525         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
10526
10527 2011-07-03  Jim Meyering  <meyering@redhat.com>
10528
10529         maint.mk: correct omissions in prohibit_argmatch_without_use check
10530         This rule would mistakenly report that argmatch.h is included without
10531         use even when both the argmatch and invalid_arg macro were used.
10532         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
10533         of argmatch and invalid_arg.
10534
10535 2011-07-03  Bruno Haible  <bruno@clisp.org>
10536
10537         Comments about EINTR.
10538         * lib/safe-read.h: Explain the purpose of this module.
10539         * lib/safe-write.h: Likewise.
10540         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
10541         module.
10542         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
10543         module.
10544         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10545
10546 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
10547
10548         xnanosleep: Rewrite to use new dtotimespec module.
10549         It has the conversion code that used to be in xnanosleep.
10550         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
10551         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
10552         (TIME_T_MAX): Remove.
10553         (xnanosleep): Rewrite in terms of dtotimespec.
10554         * modules/xnanosleep (Depends-on): Add dtotimespec.
10555         Remove intprops, stdbool.
10556
10557         timespec-add, timespec-sub: new modules
10558         * lib/timespec.h (timespec_add, timespec_sub): New decls.
10559         * lib/timespec-add.c, lib/timespec-sub.c:
10560         * modules/timespec-add, modules/timespec-sub: New files.
10561
10562         dtotimespec: new module
10563         * lib/timespec.h (dtotimespec): New decl.
10564         * lib/dtotimespec.c, modules/dtotimespec: New files.
10565
10566         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
10567
10568         pselect: new module
10569         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
10570         (pselect): New decls.
10571         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
10572         since the standard pselect decl uses 'restrict'.
10573         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
10574         HAVE_PSELECT, REPLACE_PSELECT.
10575         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
10576         HAVE_PSELECT, REPLACE_PSELECT.
10577         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
10578
10579         sys_select: don't depend on sys_socket
10580         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
10581         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
10582         This fix works on GNU and GNU-like platforms, but has not been tested
10583         on native Windows.
10584         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
10585         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
10586         gl_HEADER_SYS_SOCKET.
10587         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
10588         gl_PREREQ_SYS_H_WINSOCK2.
10589
10590 2011-06-29  Eric Blake  <eblake@redhat.com>
10591
10592         pipe2: fix C89 compile problem
10593         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
10594         Reported by Bruno Haible.
10595
10596         pipe, pipe2: don't corrupt fd on error
10597         * lib/pipe.c (pipe): Leave fd unchanged on error.
10598         * lib/pipe2.c (pipe2): Likewise.
10599         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
10600         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
10601
10602 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
10603
10604         mmap-anon: do not use regular expressions inadvertently
10605         * m4/mmap-anon.m4: Remove trailing period from strings sought
10606         in the output.
10607
10608 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
10609
10610         nanosleep: fix integer overflow problem
10611         * lib/nanosleep.c (my_usleep): Don't assume signed integer
10612         arithmetic wraps around on overflow.
10613
10614         nanosleep: simplify carrying
10615         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
10616         first call to the underyling nanosleep, not for the last one.
10617         This doesn't fix any bugs, but it simplifies the computation of
10618         the remaining delay.  Found while auditing integer overflow issues.
10619
10620         dup2: remove test for existence of fcntl
10621         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
10622         "#if HAVE_FCNTL", in the configure-time test program.
10623         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
10624         and therefore speeds up "configure" a bit.  Found while
10625         adding the dup2 module to Emacs.
10626
10627 2011-06-24  Eric Blake  <eblake@redhat.com>
10628
10629         maint.mk: enhance useless header checks
10630         * top/maint.mk (_sc_header_without_use): Check both include
10631         styles.
10632         (sc_prohibit_assert_without_use)
10633         (sc_prohibit_close_stream_without_use)
10634         (sc_prohibit_getopt_without_use)
10635         (sc_prohibit_quotearg_without_use)
10636         (sc_prohibit_quote_without_use)
10637         (sc_prohibit_long_options_without_use)
10638         (sc_prohibit_inttostr_without_use)
10639         (sc_prohibit_ignore_value_without_use)
10640         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
10641         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
10642         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
10643         (sc_prohibit_hash_pjw_without_use)
10644         (sc_prohibit_safe_read_without_use)
10645         (sc_prohibit_argmatch_without_use)
10646         (sc_prohibit_canonicalize_without_use)
10647         (sc_prohibit_root_dev_ino_without_use)
10648         (sc_prohibit_openat_without_use)
10649         (sc_prohibit_c_ctype_without_use)
10650         (sc_prohibit_signal_without_use)
10651         (sc_prohibit_stdio--_without_use)
10652         (sc_prohibit_stdio-safer_without_use)
10653         (sc_prohibit_strings_without_use)
10654         (sc_prohibit_intprops_without_use)
10655         (sc_prohibit_stddef_without_use)
10656         (sc_prohibit_xfreopen_without_use): Update clients.
10657
10658 2011-06-24  Jim Meyering  <meyering@redhat.com>
10659
10660         syntax-check: keep one maint.mk rule in sync with its header
10661         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
10662         of the bug Eric has just fixed, with today's commit 25e4c2ec.
10663         I prefer to avoid temporary files here, so use <(...), but that
10664         is not supported by /bin/sh, so...
10665         (SHELL): Define to /bin/bash.
10666
10667 2011-06-24  Eric Blake  <eblake@redhat.com>
10668
10669         maint.mk: update sc_prohibit_intprops_without_use
10670         * top/maint.mk (_intprops_names): Match recent changes.
10671
10672 2011-06-24  Bruno Haible  <bruno@clisp.org>
10673
10674         strerror-override: No-op tweak.
10675         * lib/strerror-override.h (strerror_override): Reorder conditions,
10676         for consistency with lib/strerror-override.c.
10677
10678 2011-06-23  Eric Blake  <eblake@redhat.com>
10679
10680         maint.mk: test further PATH_MAX issues
10681         * top/maint.mk (sc_prohibit_path_max_array): Rename...
10682         (sc_prohibit_path_max_allocation): ...and also test alloca.
10683         Suggested by Jim Meyering.
10684
10685 2011-06-22  Eric Blake  <eblake@redhat.com>
10686
10687         maint.mk: add syntax-check to avoid char[PATH_MAX]
10688         * top/maint.mk (sc_prohibit_path_max_array): New rule.
10689
10690         stat: be robust to PATH_MAX definition
10691         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
10692         * modules/stat (Depends-on): Add verify.
10693
10694         link: work around IRIX bug
10695         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
10696         * lib/link.c (rpl_link): Work around it.
10697         * tests/test-link.h (test_link): Enhance test.
10698         * doc/posix-functions/link.texi (link): Document the bug.
10699
10700         getopt: silence clang warning
10701         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
10702         dereference.
10703         Reported by Gustavo Martin Domato.
10704
10705 2011-06-22  Jim Meyering  <meyering@redhat.com>
10706
10707         bootstrap: do not insert a blank line into each .gitignore file
10708         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
10709
10710 2011-06-21  Eric Blake  <eblake@redhat.com>
10711
10712         perror: test for output mismatch
10713         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
10714         perror on IRIX.
10715
10716         strerror_r: fix OpenBSD behavior on out-of-range
10717         * lib/strerror_r.c (strerror_r): Always use maximal string.
10718         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10719
10720         strerror_r: fix OpenBSD behavior on 0
10721         * lib/strerror-override.c (strerror_override): Also override 0
10722         when needed.
10723         * lib/strerror-override.h (strerror_override): Likewise.
10724         * lib/strerror.c (strerror): Simplify, now that 0 override is done
10725         earlier.
10726         * lib/strerror_r.c (strerror_r): Likewise.
10727         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
10728         behavior...
10729         (gl_FUNC_STRERROR_0): ...into new macro.
10730         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
10731         is overridden.
10732         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
10733         * modules/strerror-override (Files): Add strerror.m4.
10734         (configure.ac): Also provide override for 0 when needed.
10735         * doc/posix-functions/strerror.texi (strerror): Document this.
10736         * doc/posix-functions/perror.texi (perror): Likewise.
10737
10738         perror: adjust array size
10739         * modules/perror (Depends-on): Add strerror-override.
10740         * lib/perror.c (perror): Use it to avoid magic number.
10741
10742         strerror-override: reduce size
10743         * lib/strerror-override.c (strerror_override): Use fewer lines.
10744
10745 2011-06-20  Bruno Haible  <bruno@clisp.org>
10746
10747         pathmax: Ensure correct value for PATH_MAX on HP-UX.
10748         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
10749
10750 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
10751
10752         alloca: port to compilers that can optimize like GCC 4.6.0
10753         * lib/alloca.c (find_stack_direction): New signature, taken from
10754         Autoconf git.  This works with GCC 4.6.0.  This code should never
10755         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
10756         be used with other compilers that optimize as well as GCC 4.6.0 does.
10757         (alloca): Adjust to new signature.
10758         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
10759         New macro, which patches Autoconf in a similar way.
10760
10761         c-stack: stop worrying about stack direction
10762         * lib/c-stack.c (find_stack_direction): Remove.
10763         (segv_handler): Don't worry about stack direction growth, as it's
10764         too much of a pain to configure this correctly, given how compilers
10765         are optimizing-away our stack-growth detection code.  Instead, assume
10766         that any access to just before or just after the stack is OK.
10767         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
10768         Don't require AC_FUNC_ALLOCA; no longer needed.
10769
10770 2011-06-20  Eric Blake  <eblake@redhat.com>
10771
10772         test-stat: don't allocate PATH_MAX bytes
10773         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
10774         PATH_MAX-sized buffer.
10775         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
10776         * modules/stat-tests (Depends-on): Likewise.
10777         * tests/test-fstatat.c (includes): Drop pathmax.h.
10778         * tests/test-stat.c (includes): Likewise.
10779         Reported by Bruno Haible.
10780
10781 2011-06-20  Bruno Haible  <bruno@clisp.org>
10782
10783         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
10784         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
10785         * lib/float.c: New file.
10786         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
10787         REPLACE_FLOAT_LDBL.
10788         * modules/float (Files): Add lib/float.c.
10789         (configure.ac): Invoke AC_LIBOBJ.
10790         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
10791
10792 2011-06-20  Bruno Haible  <bruno@clisp.org>
10793
10794         Tests for module 'float'.
10795         * modules/float-tests: New file.
10796         * tests/test-float.c: New file.
10797
10798 2011-06-19  Bruno Haible  <bruno@clisp.org>
10799
10800         isinf: Coding style.
10801         * lib/isinf.c: Use GNU coding style.
10802
10803 2011-06-19  Bruno Haible  <bruno@clisp.org>
10804
10805         linkat test: Avoid test failure on AIX 7.1.
10806         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
10807         * tests/test-link.h (test_link): Likewise.
10808
10809 2011-06-19  Bruno Haible  <bruno@clisp.org>
10810
10811         pread test: Avoid test failure on OpenBSD 4.9.
10812         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
10813
10814 2011-06-19  Bruno Haible  <bruno@clisp.org>
10815
10816         sprintf-posix: Fix test failure on AIX 7.1.
10817         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
10818         * doc/posix-functions/dprintf.texi: Mention limited precision problem
10819         on AIX.
10820         * doc/posix-functions/fprintf.texi: Likewise.
10821         * doc/posix-functions/printf.texi: Likewise.
10822         * doc/posix-functions/snprintf.texi: Likewise.
10823         * doc/posix-functions/sprintf.texi: Likewise.
10824         * doc/posix-functions/vdprintf.texi: Likewise.
10825         * doc/posix-functions/vfprintf.texi: Likewise.
10826         * doc/posix-functions/vprintf.texi: Likewise.
10827         * doc/posix-functions/vsnprintf.texi: Likewise.
10828         * doc/posix-functions/vsprintf.texi: Likewise.
10829
10830 2011-06-19  Bruno Haible  <bruno@clisp.org>
10831
10832         roundl-ieee: Fix test failure on AIX 7.1.
10833         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
10834         * doc/posix-functions/roundl.texi: Mention problem with negative
10835         arguments.
10836
10837 2011-06-19  Bruno Haible  <bruno@clisp.org>
10838
10839         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
10840         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
10841         * doc/posix-functions/round.texi: Mention problem with negative
10842         arguments.
10843         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
10844
10845 2011-06-19  Bruno Haible  <bruno@clisp.org>
10846
10847         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
10848         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
10849         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
10850         * doc/posix-functions/roundf.texi: Mention problem with negative
10851         arguments.
10852         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
10853
10854 2011-06-19  Bruno Haible  <bruno@clisp.org>
10855
10856         ceilf-ieee: Work around bug on MacOS X 10.5.
10857         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
10858
10859         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
10860         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
10861         IEEE compliant, avoid compiler optimizations.
10862         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
10863         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10864         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
10865         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10866         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10867         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10868         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10869         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10870         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10871         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10872
10873 2011-06-19  Bruno Haible  <bruno@clisp.org>
10874
10875         ceilf-ieee: Work around bug on AIX 7.1.
10876         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
10877         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
10878
10879 2011-06-19  Bruno Haible  <bruno@clisp.org>
10880
10881         ceil-ieee: Work around bug on AIX 7.1.
10882         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
10883         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
10884
10885 2011-06-18  Bruno Haible  <bruno@clisp.org>
10886
10887         fsync test: Avoid test failure on MacOS X and AIX.
10888         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
10889         EINVAL.
10890
10891 2011-06-18  Bruno Haible  <bruno@clisp.org>
10892
10893         openat, fdopendir tests: Fix link errors.
10894         * modules/openat-tests (Depends-on): Add progname.
10895         * modules/fdopendir-tests (Depends-on): Likewise.
10896         * tests/test-fchownat.c: Include progname.h.
10897         (main): Call set_program_name.
10898         * tests/test-fstatat.c: Include progname.h.
10899         (main): Call set_program_name.
10900         * tests/test-mkdirat.c: Include progname.h.
10901         (main): Call set_program_name.
10902         * tests/test-openat.c: Include progname.h.
10903         (main): Call set_program_name.
10904         * tests/test-unlinkat.c: Include progname.h.
10905         (main): Call set_program_name.
10906         * tests/test-fdopendir.c: Include progname.h.
10907         (main): Call set_program_name.
10908
10909 2011-06-18  Bruno Haible  <bruno@clisp.org>
10910
10911         Doc update.
10912         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
10913         HP-UX.
10914         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
10915
10916 2011-06-18  Bruno Haible  <bruno@clisp.org>
10917
10918         getcwd tests: Avoid compilation error on HP-UX 11.31.
10919         * modules/getcwd-tests (Depends-on): Add pathmax.
10920         * tests/test-getcwd.c: Include pathmax.h.
10921
10922 2011-06-18  Bruno Haible  <bruno@clisp.org>
10923
10924         isfinite, isinf: Fix link error on AIX 6 and 7.
10925         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
10926         needed, also test the macro with a 'float' argument.
10927         * m4/isinf.m4 (gl_ISINF): Likewise.
10928
10929 2011-06-18  Bruno Haible  <bruno@clisp.org>
10930
10931         getloadavg: Don't clobber LIBS. Regression from previous commit.
10932         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
10933         AC_CHECK_LIB from here...
10934         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
10935         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
10936         gl_func_getloadavg_done.
10937         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10938
10939 2011-06-18  Bruno Haible  <bruno@clisp.org>
10940
10941         clean-temp: Improve documentation.
10942         * lib/clean-temp.h: Explain better how to use this module.
10943         Reported by John Darrington <john@darrington.wattle.id.au>.
10944
10945 2011-06-17  Bruno Haible  <bruno@clisp.org>
10946
10947         pread, pwrite: Avoid cc warning on AIX.
10948         * lib/unistd.in.h (pread): Undefine before defining as a macro.
10949         (pwrite): Likewise.
10950
10951 2011-06-17  Bruno Haible  <bruno@clisp.org>
10952
10953         spawn-pipe tests: Fix link error.
10954         * tests/test-spawn-pipe-child.c: Undefine fprintf.
10955         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10956
10957 2011-06-17  Bruno Haible  <bruno@clisp.org>
10958
10959         Tests: Remove unnecessary dependency.
10960         * modules/canonicalize-tests (Depends-on): Remove progname.
10961         * modules/chown-tests (Depends-on): Likewise.
10962         * modules/dirname-tests (Depends-on): Likewise.
10963         * modules/fdopendir-tests (Depends-on): Likewise.
10964         * modules/fdutimensat-tests (Depends-on): Likewise.
10965         * modules/hash-tests (Depends-on): Likewise.
10966         * modules/lchown-tests (Depends-on): Likewise.
10967         * modules/linkat-tests (Depends-on): Likewise.
10968         * modules/renameat-tests (Depends-on): Likewise.
10969         * modules/spawn-pipe-tests (Depends-on): Likewise.
10970         * modules/utimensat-tests (Depends-on): Likewise.
10971
10972 2011-06-17  Bruno Haible  <bruno@clisp.org>
10973
10974         spawn-pipe tests: Fix link error.
10975         * tests/test-spawn-pipe-child.c: Undefine fflush.
10976
10977 2011-06-17  Bruno Haible  <bruno@clisp.org>
10978
10979         Fix tests link errors.
10980         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
10981         * modules/chown-tests (Makefile.am): Don't link test-chown with
10982         LIBINTL.
10983         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
10984         LIBINTL.
10985         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
10986         LIBINTL.
10987         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
10988         LIBINTL.
10989
10990 2011-06-16  Bruno Haible  <bruno@clisp.org>
10991
10992         crypto/gc-sha1: Fix recent regression.
10993         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
10994         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
10995
10996         crypto/gc-md5: Fix recent regression.
10997         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
10998
10999         crypto/gc-md4: Fix recent regression.
11000         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11001         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11002
11003         crypto/gc-arctwo: Fix recent regression.
11004         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11005         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11006
11007         crypto/gc-rijndael: Fix recent regression.
11008         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11009         (configure.ac): Invoke AC_LIBOBJ here.
11010         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
11011         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11012
11013         crypto/gc-hmac-sha1: Fix recent regression.
11014         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
11015         (configure.ac): Invoke AC_LIBOBJ here.
11016         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
11017         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11018
11019         crypto/gc-hmac-md5: Fix recent regression.
11020         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
11021         (configure.ac): Invoke AC_LIBOBJ here.
11022         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
11023         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11024
11025         crypto/gc-des: Fix recent regression.
11026         * modules/crypto/gc-des (Files): Remove m4/des.m4.
11027         (configure.ac): Invoke AC_LIBOBJ here.
11028         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
11029         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11030
11031         crypto/gc-arcfour: Fix recent regression.
11032         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
11033         (configure.ac): Invoke AC_LIBOBJ here.
11034         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
11035         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11036
11037 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
11038
11039         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
11040         After the 2011-05-21 change, this macro requires
11041         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
11042         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11043
11044 2011-06-16  Bruno Haible  <bruno@clisp.org>
11045
11046         fprintftime: Move AC_LIBOBJ invocations to module description.
11047         * m4/fprintftime.m4: Remove file.
11048         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
11049         (configure.ac): Remove gl_FPRINTFTIME call.
11050         (Makefile.am): Augment lib_SOURCES.
11051         Reported by Jim Meyering.
11052
11053 2011-06-16  Bruno Haible  <bruno@clisp.org>
11054
11055         tmpfile-safer: Finish 2011-05-23 commit.
11056         * m4/stdio-safer.m4: Really remove file.
11057         Reported by Jim Meyering.
11058
11059 2011-06-16  Bruno Haible  <bruno@clisp.org>
11060
11061         syntax-check: Fix typo.
11062         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
11063         printf-posix.m4.
11064         Reported by Jim Meyering.
11065
11066 2011-06-13  Jim Meyering  <meyering@redhat.com>
11067
11068         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
11069         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
11070
11071 2011-05-23  Bruno Haible  <bruno@clisp.org>
11072
11073         yesno: Move AC_LIBOBJ invocations to module description.
11074         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
11075         * modules/yesno (Makefile.am): Augment lib_SOURCES.
11076
11077 2011-05-23  Bruno Haible  <bruno@clisp.org>
11078
11079         xstrtol: Move AC_LIBOBJ invocations to module description.
11080         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
11081         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
11082
11083 2011-05-23  Bruno Haible  <bruno@clisp.org>
11084
11085         xstrtold: Move AC_LIBOBJ invocations to module description.
11086         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
11087         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
11088
11089 2011-05-23  Bruno Haible  <bruno@clisp.org>
11090
11091         xstrtod: Move AC_LIBOBJ invocations to module description.
11092         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
11093         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
11094
11095 2011-05-23  Bruno Haible  <bruno@clisp.org>
11096
11097         xnanosleep: Move AC_LIBOBJ invocations to module description.
11098         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
11099         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
11100
11101 2011-05-23  Bruno Haible  <bruno@clisp.org>
11102
11103         xgetcwd: Move AC_LIBOBJ invocations to module description.
11104         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
11105         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
11106
11107 2011-05-23  Bruno Haible  <bruno@clisp.org>
11108
11109         xalloc: Move AC_LIBOBJ invocations to module description.
11110         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
11111         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
11112
11113 2011-05-23  Bruno Haible  <bruno@clisp.org>
11114
11115         write-any-file: Move AC_LIBOBJ invocations to module description.
11116         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
11117         invocation.
11118         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
11119
11120 2011-05-23  Bruno Haible  <bruno@clisp.org>
11121
11122         utimens: Move AC_LIBOBJ invocations to module description.
11123         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
11124         * modules/utimens (Makefile.am): Augment lib_SOURCES.
11125
11126 2011-05-23  Bruno Haible  <bruno@clisp.org>
11127
11128         utimecmp: Move AC_LIBOBJ invocations to module description.
11129         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
11130         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
11131
11132 2011-05-23  Bruno Haible  <bruno@clisp.org>
11133
11134         userspec: Move AC_LIBOBJ invocations to module description.
11135         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
11136         * modules/userspec (Makefile.am): Augment lib_SOURCES.
11137
11138 2011-05-23  Bruno Haible  <bruno@clisp.org>
11139
11140         unlinkdir: Move AC_LIBOBJ invocations to module description.
11141         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
11142         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
11143
11144 2011-05-23  Bruno Haible  <bruno@clisp.org>
11145
11146         unistd-safer: Move AC_LIBOBJ invocations to module description.
11147         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
11148         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
11149
11150 2011-05-23  Bruno Haible  <bruno@clisp.org>
11151
11152         tempname: Move AC_LIBOBJ invocations to module description.
11153         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
11154         * modules/tempname (Makefile.am): Augment lib_SOURCES.
11155
11156 2011-05-23  Bruno Haible  <bruno@clisp.org>
11157
11158         strftime: Move AC_LIBOBJ invocations to module description.
11159         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
11160         * modules/strftime (Makefile.am): Augment lib_SOURCES.
11161
11162 2011-05-23  Bruno Haible  <bruno@clisp.org>
11163
11164         stdlib-safer: Move AC_LIBOBJ invocations to module description.
11165         * m4/stdlib-safer.m4: Remove file.
11166         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
11167         (configure.ac): Remove gl_STDLIB_SAFER call.
11168         (Makefile.am): Augment lib_SOURCES.
11169
11170 2011-05-23  Bruno Haible  <bruno@clisp.org>
11171
11172         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
11173         * m4/stdio-safer.m4: Remove file.
11174         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
11175         (configure.ac): Remove gl_TMPFILE_SAFER call.
11176         (Makefile.am): Augment lib_SOURCES.
11177
11178 2011-05-23  Bruno Haible  <bruno@clisp.org>
11179
11180         popen-safer: Move AC_LIBOBJ invocations to module description.
11181         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
11182         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
11183         (configure.ac): Remove gl_POPEN_SAFER call.
11184         (Makefile.am): Augment lib_SOURCES.
11185
11186 2011-05-23  Bruno Haible  <bruno@clisp.org>
11187
11188         freopen-safer: Move AC_LIBOBJ invocations to module description.
11189         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
11190         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
11191         (configure.ac): Remove gl_FREOPEN_SAFER call.
11192         (Makefile.am): Augment lib_SOURCES.
11193
11194 2011-05-23  Bruno Haible  <bruno@clisp.org>
11195
11196         fopen-safer: Move AC_LIBOBJ invocations to module description.
11197         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
11198         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
11199         (configure.ac): Remove gl_FOPEN_SAFER call.
11200         (Makefile.am): Augment lib_SOURCES.
11201
11202 2011-05-23  Bruno Haible  <bruno@clisp.org>
11203
11204         crypto/sha512: Move AC_LIBOBJ invocations to module description.
11205         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
11206         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
11207
11208 2011-05-23  Bruno Haible  <bruno@clisp.org>
11209
11210         crypto/sha256: Move AC_LIBOBJ invocations to module description.
11211         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
11212         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
11213
11214 2011-05-23  Bruno Haible  <bruno@clisp.org>
11215
11216         crypto/sha1: Move AC_LIBOBJ invocations to module description.
11217         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
11218         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
11219
11220 2011-05-23  Bruno Haible  <bruno@clisp.org>
11221
11222         settime: Move AC_LIBOBJ invocations to module description.
11223         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
11224         * modules/settime (Makefile.am): Augment lib_SOURCES.
11225
11226 2011-05-23  Bruno Haible  <bruno@clisp.org>
11227
11228         savedir: Move AC_LIBOBJ invocations to module description.
11229         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
11230         * modules/savedir (Makefile.am): Augment lib_SOURCES.
11231
11232 2011-05-23  Bruno Haible  <bruno@clisp.org>
11233
11234         save-cwd: Move AC_LIBOBJ invocations to module description.
11235         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
11236         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
11237
11238 2011-05-23  Bruno Haible  <bruno@clisp.org>
11239
11240         same: Move AC_LIBOBJ invocations to module description.
11241         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
11242         * modules/same (Makefile.am): Augment lib_SOURCES.
11243
11244 2011-05-23  Bruno Haible  <bruno@clisp.org>
11245
11246         safe-write: Move AC_LIBOBJ invocations to module description.
11247         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
11248         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
11249         instead of gl_SAFE_WRITE.
11250         (Makefile.am): Augment lib_SOURCES.
11251
11252 2011-05-23  Bruno Haible  <bruno@clisp.org>
11253
11254         safe-read: Move AC_LIBOBJ invocations to module description.
11255         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
11256         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
11257         of gl_SAFE_READ.
11258         (Makefile.am): Augment lib_SOURCES.
11259
11260 2011-05-23  Bruno Haible  <bruno@clisp.org>
11261
11262         safe-alloc: Move AC_LIBOBJ invocations to module description.
11263         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
11264         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
11265
11266 2011-05-23  Bruno Haible  <bruno@clisp.org>
11267
11268         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
11269         * m4/rijndael.m4: Remove file.
11270         * modules/crypto/rijndael (Files): Remove it.
11271         (configure.ac): Remove gl_RIJNDAEL call.
11272         (Makefile.am): Augment lib_SOURCES.
11273
11274 2011-05-23  Bruno Haible  <bruno@clisp.org>
11275
11276         readtokens: Move AC_LIBOBJ invocations to module description.
11277         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
11278         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
11279
11280 2011-05-23  Bruno Haible  <bruno@clisp.org>
11281
11282         read-file: Move AC_LIBOBJ invocations to module description.
11283         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
11284         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
11285         of gl_FUNC_READ_FILE.
11286         (Makefile.am): Augment lib_SOURCES.
11287
11288 2011-05-23  Bruno Haible  <bruno@clisp.org>
11289
11290         quotearg: Move AC_LIBOBJ invocations to module description.
11291         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
11292         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
11293
11294 2011-05-23  Bruno Haible  <bruno@clisp.org>
11295
11296         quote: Move AC_LIBOBJ invocations to module description.
11297         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
11298         * modules/quote (Makefile.am): Augment lib_SOURCES.
11299
11300 2011-05-23  Bruno Haible  <bruno@clisp.org>
11301
11302         posixver: Move AC_LIBOBJ invocations to module description.
11303         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
11304         * modules/posixver (Makefile.am): Augment lib_SOURCES.
11305
11306 2011-05-23  Bruno Haible  <bruno@clisp.org>
11307
11308         posixtm: Move AC_LIBOBJ invocations to module description.
11309         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
11310         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
11311
11312 2011-05-23  Bruno Haible  <bruno@clisp.org>
11313
11314         physmem: Move AC_LIBOBJ invocations to module description.
11315         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
11316         * modules/physmem (Makefile.am): Augment lib_SOURCES.
11317
11318 2011-05-23  Bruno Haible  <bruno@clisp.org>
11319
11320         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
11321         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
11322         invocation.
11323         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
11324
11325 2011-05-23  Bruno Haible  <bruno@clisp.org>
11326
11327         mpsort: Move AC_LIBOBJ invocations to module description.
11328         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
11329         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
11330
11331 2011-05-23  Bruno Haible  <bruno@clisp.org>
11332
11333         modechange: Move AC_LIBOBJ invocations to module description.
11334         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
11335         * modules/modechange (Makefile.am): Augment lib_SOURCES.
11336
11337 2011-05-23  Bruno Haible  <bruno@clisp.org>
11338
11339         mkdir-p: Move AC_LIBOBJ invocations to module description.
11340         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
11341         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
11342
11343 2011-05-23  Bruno Haible  <bruno@clisp.org>
11344
11345         mkancesdirs: Move AC_LIBOBJ invocations to module description.
11346         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
11347         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
11348
11349 2011-05-23  Bruno Haible  <bruno@clisp.org>
11350
11351         mgetgroups: Move AC_LIBOBJ invocations to module description.
11352         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
11353         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
11354
11355 2011-05-23  Bruno Haible  <bruno@clisp.org>
11356
11357         memxor: Move AC_LIBOBJ invocations to module description.
11358         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
11359         * modules/memxor (Makefile.am): Augment lib_SOURCES.
11360
11361 2011-05-23  Bruno Haible  <bruno@clisp.org>
11362
11363         memcoll: Move AC_LIBOBJ invocations to module description.
11364         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
11365         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
11366
11367 2011-05-23  Bruno Haible  <bruno@clisp.org>
11368
11369         memcasecmp: Move AC_LIBOBJ invocations to module description.
11370         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
11371         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
11372
11373 2011-05-23  Bruno Haible  <bruno@clisp.org>
11374
11375         crypto/md5: Move AC_LIBOBJ invocations to module description.
11376         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
11377         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
11378
11379 2011-05-23  Bruno Haible  <bruno@clisp.org>
11380
11381         crypto/md4: Move AC_LIBOBJ invocations to module description.
11382         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
11383         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
11384
11385 2011-05-23  Bruno Haible  <bruno@clisp.org>
11386
11387         crypto/md2: Move AC_LIBOBJ invocations to module description.
11388         * m4/md2.m4: Remove file.
11389         * modules/crypto/md2 (Files): Remove it.
11390         (configure.ac): Remove gl_MD2 call.
11391         (Makefile.am): Augment lib_SOURCES.
11392
11393 2011-05-23  Bruno Haible  <bruno@clisp.org>
11394
11395         long-options: Move AC_LIBOBJ invocations to module description.
11396         * m4/long-options.m4: Remove file.
11397         * modules/long-options (Files): Remove it.
11398         (configure.ac): Remove gl_LONG_OPTIONS call.
11399         (Makefile.am): Augment lib_SOURCES.
11400
11401 2011-05-23  Bruno Haible  <bruno@clisp.org>
11402
11403         i-ring: Move AC_LIBOBJ invocations to module description.
11404         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
11405         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
11406
11407 2011-05-23  Bruno Haible  <bruno@clisp.org>
11408
11409         idcache: Move AC_LIBOBJ invocations to module description.
11410         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
11411         * modules/idcache (Makefile.am): Augment lib_SOURCES.
11412
11413 2011-05-23  Bruno Haible  <bruno@clisp.org>
11414
11415         human: Move AC_LIBOBJ invocations to module description.
11416         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
11417         * modules/human (Makefile.am): Augment lib_SOURCES.
11418
11419 2011-05-23  Bruno Haible  <bruno@clisp.org>
11420
11421         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
11422         * m4/hmac-sha1.m4: Remove file.
11423         * modules/crypto/hmac-sha1 (Files): Remove it.
11424         (configure.ac): Remove gl_HMAC_SHA1 call.
11425         (Makefile.am): Augment lib_SOURCES.
11426
11427 2011-05-23  Bruno Haible  <bruno@clisp.org>
11428
11429         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
11430         * m4/hmac-md5.m4: Remove file.
11431         * modules/crypto/hmac-md5 (Files): Remove it.
11432         (configure.ac): Remove gl_HMAC_MD5 call.
11433         (Makefile.am): Augment lib_SOURCES.
11434
11435 2011-05-23  Bruno Haible  <bruno@clisp.org>
11436
11437         hash: Move AC_LIBOBJ invocations to module description.
11438         * m4/hash.m4: Remove file.
11439         * modules/hash (Files): Remove it.
11440         (configure.ac): Remove gl_HASH call.
11441         (Makefile.am): Augment lib_SOURCES.
11442
11443 2011-05-23  Bruno Haible  <bruno@clisp.org>
11444
11445         hard-locale: Move AC_LIBOBJ invocations to module description.
11446         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
11447         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
11448
11449 2011-05-23  Bruno Haible  <bruno@clisp.org>
11450
11451         getugroups: Move AC_LIBOBJ invocations to module description.
11452         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
11453         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
11454
11455 2011-05-23  Bruno Haible  <bruno@clisp.org>
11456
11457         gettime: Move AC_LIBOBJ invocations to module description.
11458         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
11459         * modules/gettime (Makefile.am): Augment lib_SOURCES.
11460
11461 2011-05-23  Bruno Haible  <bruno@clisp.org>
11462
11463         getndelim2: Move AC_LIBOBJ invocations to module description.
11464         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
11465         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
11466
11467 2011-05-23  Bruno Haible  <bruno@clisp.org>
11468
11469         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
11470         * m4/gc-pbkdf2-sha1.m4: Remove file.
11471         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
11472         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
11473         (Makefile.am): Augment lib_SOURCES.
11474
11475 2011-05-23  Bruno Haible  <bruno@clisp.org>
11476
11477         fts: Move AC_LIBOBJ invocations to module description.
11478         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
11479         * modules/fts (configure.ac): ... to here.
11480
11481 2011-05-23  Bruno Haible  <bruno@clisp.org>
11482
11483         file-type: Move AC_LIBOBJ invocations to module description.
11484         * m4/file-type.m4: Remove file.
11485         * modules/file-type (Files): Remove it.
11486         (configure.ac): Remove gl_FILE_TYPE call.
11487         (Makefile.am): Augment lib_SOURCES.
11488
11489 2011-05-23  Bruno Haible  <bruno@clisp.org>
11490
11491         filenamecat*: Respect rules for use of AC_LIBOBJ.
11492         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
11493         Remove AC_LIBOBJ invocation.
11494         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
11495         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
11496
11497 2011-05-23  Bruno Haible  <bruno@clisp.org>
11498
11499         filemode: Move AC_LIBOBJ invocations to module description.
11500         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
11501         * modules/filemode (Makefile.am): Augment lib_SOURCES.
11502
11503 2011-05-23  Bruno Haible  <bruno@clisp.org>
11504
11505         openat-safer: Move AC_LIBOBJ invocations to module description.
11506         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
11507         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
11508
11509 2011-05-23  Bruno Haible  <bruno@clisp.org>
11510
11511         fcntl-safer: Move AC_LIBOBJ invocations to module description.
11512         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
11513         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
11514
11515 2011-05-23  Bruno Haible  <bruno@clisp.org>
11516
11517         exclude: Move AC_LIBOBJ invocations to module description.
11518         * m4/exclude.m4: Remove file.
11519         * modules/exclude (Files): Remove it.
11520         (configure.ac): Remove gl_EXCLUDE call.
11521         (Makefile.am): Augment lib_SOURCES.
11522
11523 2011-05-23  Bruno Haible  <bruno@clisp.org>
11524
11525         dirname*: Respect rules for use of AC_LIBOBJ.
11526         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
11527         invocations.
11528         * modules/dirname (Makefile.am): Augment lib_SOURCES.
11529         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
11530
11531 2011-05-23  Bruno Haible  <bruno@clisp.org>
11532
11533         dirent-safer: Move AC_LIBOBJ invocations to module description.
11534         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
11535         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
11536
11537 2011-05-23  Bruno Haible  <bruno@clisp.org>
11538
11539         crypto/des: Move AC_LIBOBJ invocations to module description.
11540         * m4/des.m4: Remove file.
11541         * modules/crypto/des (Files): Remove it.
11542         (configure.ac): Remove gl_DES call.
11543         (Makefile.am): Augment lib_SOURCES.
11544
11545 2011-05-23  Bruno Haible  <bruno@clisp.org>
11546
11547         cycle-check: Move AC_LIBOBJ invocations to module description.
11548         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
11549         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
11550
11551 2011-05-23  Bruno Haible  <bruno@clisp.org>
11552
11553         c-strtold: Move AC_LIBOBJ invocations to module description.
11554         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
11555         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
11556
11557 2011-05-23  Bruno Haible  <bruno@clisp.org>
11558
11559         c-strtod: Move AC_LIBOBJ invocations to module description.
11560         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
11561         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
11562
11563 2011-05-23  Bruno Haible  <bruno@clisp.org>
11564
11565         crc: Move AC_LIBOBJ invocations to module description.
11566         * m4/crc.m4: Remove file.
11567         * modules/crc (Files): Remove it.
11568         (configure.ac): Remove gl_CRC call.
11569         (Makefile.am): Augment lib_SOURCES.
11570
11571 2011-05-23  Bruno Haible  <bruno@clisp.org>
11572
11573         close-stream: Move AC_LIBOBJ invocations to module description.
11574         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
11575         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
11576
11577 2011-05-23  Bruno Haible  <bruno@clisp.org>
11578
11579         closeout: Move AC_LIBOBJ invocations to module description.
11580         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
11581         * modules/closeout (Makefile.am): Augment lib_SOURCES.
11582
11583 2011-05-23  Bruno Haible  <bruno@clisp.org>
11584
11585         closein: Move AC_LIBOBJ invocations to module description.
11586         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
11587         * modules/closein (Makefile.am): Augment lib_SOURCES.
11588
11589 2011-05-23  Bruno Haible  <bruno@clisp.org>
11590
11591         cloexec: Move AC_LIBOBJ invocations to module description.
11592         * m4/cloexec.m4: Remove file.
11593         * modules/cloexec (Files): Remove it.
11594         (configure.ac): Remove gl_CLOEXEC call.
11595         (Makefile.am): Augment lib_SOURCES.
11596
11597 2011-05-23  Bruno Haible  <bruno@clisp.org>
11598
11599         check-version: Move AC_LIBOBJ invocations to module description.
11600         * m4/check-version.m4: Remove file.
11601         * modules/check-version (Files): Remove it.
11602         (configure.ac): Remove gl_CHECK_VERSION call.
11603         (Makefile.am): Augment lib_SOURCES.
11604
11605 2011-05-23  Bruno Haible  <bruno@clisp.org>
11606
11607         chdir-safer: Move AC_LIBOBJ invocations to module description.
11608         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
11609         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
11610
11611 2011-05-23  Bruno Haible  <bruno@clisp.org>
11612
11613         canonicalize: Move AC_LIBOBJ invocations to module description.
11614         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
11615         AC_LIBOBJ invocation.
11616         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
11617
11618 2011-05-23  Bruno Haible  <bruno@clisp.org>
11619
11620         canon-host: Move AC_LIBOBJ invocations to module description.
11621         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
11622         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
11623         instead of gl_CANON_HOST.
11624         (Makefile.am): Augment lib_SOURCES.
11625
11626 2011-05-23  Bruno Haible  <bruno@clisp.org>
11627
11628         backupfile: Move AC_LIBOBJ invocations to module description.
11629         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
11630         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
11631
11632 2011-05-23  Bruno Haible  <bruno@clisp.org>
11633
11634         argmatch: Move AC_LIBOBJ invocations to module description.
11635         * m4/argmatch.m4: Remove file.
11636         * modules/argmatch (Files): Remove it.
11637         (configure.ac): Remove gl_ARGMATCH call.
11638         (Makefile.am): Augment lib_SOURCES.
11639
11640 2011-05-23  Bruno Haible  <bruno@clisp.org>
11641
11642         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
11643         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
11644         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
11645
11646 2011-05-23  Bruno Haible  <bruno@clisp.org>
11647
11648         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
11649         * m4/arcfour.m4: Remove file.
11650         * modules/crypto/arcfour (Files): Remove it.
11651         (configure.ac): Remove gl_ARCFOUR call.
11652         (Makefile.am): Augment lib_SOURCES.
11653
11654 2011-05-22  Bruno Haible  <bruno@clisp.org>
11655
11656         write: Move AC_LIBOBJ invocations to module description.
11657         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
11658         * modules/write (configure.ac): ... to here.
11659
11660 2011-05-22  Bruno Haible  <bruno@clisp.org>
11661
11662         wmemset: Move AC_LIBOBJ invocations to module description.
11663         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
11664         here...
11665         * modules/wmemset (configure.ac): ... to here.
11666
11667 2011-05-22  Bruno Haible  <bruno@clisp.org>
11668
11669         wmemmove: Move AC_LIBOBJ invocations to module description.
11670         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
11671         here...
11672         * modules/wmemmove (configure.ac): ... to here.
11673
11674 2011-05-22  Bruno Haible  <bruno@clisp.org>
11675
11676         wmemcpy: Move AC_LIBOBJ invocations to module description.
11677         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
11678         here...
11679         * modules/wmemcpy (configure.ac): ... to here.
11680
11681 2011-05-22  Bruno Haible  <bruno@clisp.org>
11682
11683         wmemcmp: Move AC_LIBOBJ invocations to module description.
11684         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
11685         here...
11686         * modules/wmemcmp (configure.ac): ... to here.
11687
11688 2011-05-22  Bruno Haible  <bruno@clisp.org>
11689
11690         wmemchr: Move AC_LIBOBJ invocations to module description.
11691         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
11692         here...
11693         * modules/wmemchr (configure.ac): ... to here.
11694
11695 2011-05-22  Bruno Haible  <bruno@clisp.org>
11696
11697         wcswidth: Move AC_LIBOBJ invocations to module description.
11698         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
11699         here...
11700         * modules/wcswidth (configure.ac): ... to here.
11701
11702 2011-05-22  Bruno Haible  <bruno@clisp.org>
11703
11704         wcwidth: Respect rules for use of AC_LIBOBJ.
11705         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
11706         invocation from here...
11707         * modules/wcwidth (configure.ac): ... to here.
11708         (Depends-on): Update conditions.
11709
11710 2011-05-22  Bruno Haible  <bruno@clisp.org>
11711
11712         wctype: Move AC_LIBOBJ invocations to module description.
11713         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
11714         invocation from here...
11715         * modules/wctype (configure.ac): ... to here.
11716         (Depends-on): Update conditions.
11717
11718 2011-05-22  Bruno Haible  <bruno@clisp.org>
11719
11720         wctrans: Move AC_LIBOBJ invocations to module description.
11721         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
11722         invocation from here...
11723         * modules/wctrans (configure.ac): ... to here.
11724
11725 2011-05-22  Bruno Haible  <bruno@clisp.org>
11726
11727         wctomb: Move AC_LIBOBJ invocations to module description.
11728         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
11729         invocations from here...
11730         * modules/wctomb (configure.ac): ... to here.
11731
11732 2011-05-22  Bruno Haible  <bruno@clisp.org>
11733
11734         wctob: Move AC_LIBOBJ invocations to module description.
11735         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
11736         gl_PREREQ_WCTOB invocations from here...
11737         * modules/wctob (configure.ac): ... to here.
11738         (Depends-on): Update conditions.
11739
11740 2011-05-22  Bruno Haible  <bruno@clisp.org>
11741
11742         wcsxfrm: Move AC_LIBOBJ invocations to module description.
11743         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
11744         here...
11745         * modules/wcsxfrm (configure.ac): ... to here.
11746
11747 2011-05-22  Bruno Haible  <bruno@clisp.org>
11748
11749         wcstok: Move AC_LIBOBJ invocations to module description.
11750         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
11751         * modules/wcstok (configure.ac): ... to here.
11752
11753 2011-05-22  Bruno Haible  <bruno@clisp.org>
11754
11755         wcsstr: Move AC_LIBOBJ invocations to module description.
11756         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
11757         * modules/wcsstr (configure.ac): ... to here.
11758
11759 2011-05-22  Bruno Haible  <bruno@clisp.org>
11760
11761         wcsspn: Move AC_LIBOBJ invocations to module description.
11762         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
11763         * modules/wcsspn (configure.ac): ... to here.
11764
11765 2011-05-22  Bruno Haible  <bruno@clisp.org>
11766
11767         wcsrtombs: Move AC_LIBOBJ invocations to module description.
11768         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
11769         gl_PREREQ_WCSRTOMBS invocations from here...
11770         * modules/wcsrtombs (configure.ac): ... to here.
11771
11772 2011-05-22  Bruno Haible  <bruno@clisp.org>
11773
11774         wcsrchr: Move AC_LIBOBJ invocations to module description.
11775         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
11776         here...
11777         * modules/wcsrchr (configure.ac): ... to here.
11778
11779 2011-05-22  Bruno Haible  <bruno@clisp.org>
11780
11781         wcspbrk: Move AC_LIBOBJ invocations to module description.
11782         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
11783         here...
11784         * modules/wcspbrk (configure.ac): ... to here.
11785
11786 2011-05-22  Bruno Haible  <bruno@clisp.org>
11787
11788         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
11789         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
11790         gl_PREREQ_WCSNRTOMBS invocations from here...
11791         * modules/wcsnrtombs (configure.ac): ... to here.
11792
11793 2011-05-22  Bruno Haible  <bruno@clisp.org>
11794
11795         wcsnlen: Move AC_LIBOBJ invocations to module description.
11796         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
11797         here...
11798         * modules/wcsnlen (configure.ac): ... to here.
11799
11800 2011-05-22  Bruno Haible  <bruno@clisp.org>
11801
11802         wcsncpy: Move AC_LIBOBJ invocations to module description.
11803         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
11804         here...
11805         * modules/wcsncpy (configure.ac): ... to here.
11806
11807 2011-05-22  Bruno Haible  <bruno@clisp.org>
11808
11809         wcsncmp: Move AC_LIBOBJ invocations to module description.
11810         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
11811         here...
11812         * modules/wcsncmp (configure.ac): ... to here.
11813
11814 2011-05-22  Bruno Haible  <bruno@clisp.org>
11815
11816         wcsncat: Move AC_LIBOBJ invocations to module description.
11817         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
11818         here...
11819         * modules/wcsncat (configure.ac): ... to here.
11820
11821 2011-05-22  Bruno Haible  <bruno@clisp.org>
11822
11823         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
11824         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
11825         from here...
11826         * modules/wcsncasecmp (configure.ac): ... to here.
11827
11828 2011-05-22  Bruno Haible  <bruno@clisp.org>
11829
11830         wcslen: Move AC_LIBOBJ invocations to module description.
11831         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
11832         * modules/wcslen (configure.ac): ... to here.
11833
11834 2011-05-22  Bruno Haible  <bruno@clisp.org>
11835
11836         wcsdup: Move AC_LIBOBJ invocations to module description.
11837         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
11838         * modules/wcsdup (configure.ac): ... to here.
11839
11840 2011-05-22  Bruno Haible  <bruno@clisp.org>
11841
11842         wcscspn: Move AC_LIBOBJ invocations to module description.
11843         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
11844         here...
11845         * modules/wcscspn (configure.ac): ... to here.
11846
11847 2011-05-22  Bruno Haible  <bruno@clisp.org>
11848
11849         wcscpy: Move AC_LIBOBJ invocations to module description.
11850         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
11851         * modules/wcscpy (configure.ac): ... to here.
11852
11853 2011-05-22  Bruno Haible  <bruno@clisp.org>
11854
11855         wcscoll: Move AC_LIBOBJ invocations to module description.
11856         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
11857         here...
11858         * modules/wcscoll (configure.ac): ... to here.
11859
11860 2011-05-22  Bruno Haible  <bruno@clisp.org>
11861
11862         wcscmp: Move AC_LIBOBJ invocations to module description.
11863         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
11864         * modules/wcscmp (configure.ac): ... to here.
11865
11866 2011-05-22  Bruno Haible  <bruno@clisp.org>
11867
11868         wcschr: Move AC_LIBOBJ invocations to module description.
11869         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
11870         * modules/wcschr (configure.ac): ... to here.
11871
11872 2011-05-22  Bruno Haible  <bruno@clisp.org>
11873
11874         wcscat: Move AC_LIBOBJ invocations to module description.
11875         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
11876         * modules/wcscat (configure.ac): ... to here.
11877
11878 2011-05-22  Bruno Haible  <bruno@clisp.org>
11879
11880         wcscasecmp: Move AC_LIBOBJ invocations to module description.
11881         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
11882         here...
11883         * modules/wcscasecmp (configure.ac): ... to here.
11884
11885 2011-05-22  Bruno Haible  <bruno@clisp.org>
11886
11887         wcrtomb: Move AC_LIBOBJ invocations to module description.
11888         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
11889         invocations from here...
11890         * modules/wcrtomb (configure.ac): ... to here.
11891
11892 2011-05-22  Bruno Haible  <bruno@clisp.org>
11893
11894         wcpncpy: Move AC_LIBOBJ invocations to module description.
11895         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
11896         here...
11897         * modules/wcpncpy (configure.ac): ... to here.
11898
11899 2011-05-22  Bruno Haible  <bruno@clisp.org>
11900
11901         wcpcpy: Move AC_LIBOBJ invocations to module description.
11902         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
11903         * modules/wcpcpy (configure.ac): ... to here.
11904
11905 2011-05-22  Bruno Haible  <bruno@clisp.org>
11906
11907         waitpid: Move AC_LIBOBJ invocations to module description.
11908         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
11909         invocation from here...
11910         * modules/waitpid (configure.ac): ... to here.
11911
11912 2011-05-22  Bruno Haible  <bruno@clisp.org>
11913
11914         utimensat: Move AC_LIBOBJ invocations to module description.
11915         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
11916         here...
11917         * modules/utimensat (configure.ac): ... to here.
11918
11919 2011-05-22  Bruno Haible  <bruno@clisp.org>
11920
11921         usleep: Move AC_LIBOBJ invocations to module description.
11922         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
11923         here...
11924         * modules/usleep (configure.ac): ... to here.
11925
11926 2011-05-22  Bruno Haible  <bruno@clisp.org>
11927
11928         unlockpt: Move AC_LIBOBJ invocations to module description.
11929         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
11930         gl_PREREQ_UNLOCKPT invocations from here...
11931         * modules/unlockpt (configure.ac): ... to here.
11932
11933 2011-05-22  Bruno Haible  <bruno@clisp.org>
11934
11935         unlink: Respect rules for use of AC_LIBOBJ.
11936         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
11937         * modules/unlink (configure.ac): ... to here.
11938
11939 2011-05-22  Bruno Haible  <bruno@clisp.org>
11940
11941         uname: Move AC_LIBOBJ invocations to module description.
11942         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
11943         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
11944         here...
11945         * modules/uname (configure.ac): ... to here.
11946
11947 2011-05-22  Bruno Haible  <bruno@clisp.org>
11948
11949         ttyname_r: Move AC_LIBOBJ invocations to module description.
11950         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
11951         gl_PREREQ_TTYNAME_R invocations from here...
11952         * modules/ttyname_r (configure.ac): ... to here.
11953
11954 2011-05-22  Bruno Haible  <bruno@clisp.org>
11955
11956         tsearch: Move AC_LIBOBJ invocations to module description.
11957         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
11958         invocations from here...
11959         * modules/tsearch (configure.ac): ... to here.
11960
11961 2011-05-22  Bruno Haible  <bruno@clisp.org>
11962
11963         towctrans: Move AC_LIBOBJ invocations to module description.
11964         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
11965         AC_LIBOBJ invocation from here...
11966         * modules/towctrans (configure.ac): ... to here.
11967
11968 2011-05-22  Bruno Haible  <bruno@clisp.org>
11969
11970         tmpfile: Move AC_LIBOBJ invocations to module description.
11971         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
11972         invocations from here...
11973         * modules/tmpfile (configure.ac): ... to here.
11974
11975 2011-05-22  Bruno Haible  <bruno@clisp.org>
11976
11977         times: Move AC_LIBOBJ invocations to module description.
11978         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
11979         * modules/times (configure.ac): ... to here.
11980
11981 2011-05-22  Bruno Haible  <bruno@clisp.org>
11982
11983         time_r: Move AC_LIBOBJ invocations to module description.
11984         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
11985         invocations from here...
11986         * modules/time_r (configure.ac): ... to here.
11987
11988 2011-05-22  Bruno Haible  <bruno@clisp.org>
11989
11990         timegm: Move AC_LIBOBJ invocations to module description.
11991         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
11992         invocations from here...
11993         * modules/timegm (configure.ac): ... to here.
11994
11995 2011-05-22  Bruno Haible  <bruno@clisp.org>
11996
11997         tcgetsid: Move AC_LIBOBJ invocations to module description.
11998         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
11999         and gl_PREREQ_TCGETSID invocations from here...
12000         * modules/tcgetsid (configure.ac): ... to here.
12001         (Depends-on): Update conditions.
12002
12003 2011-05-22  Bruno Haible  <bruno@clisp.org>
12004
12005         symlinkat: Move AC_LIBOBJ invocations to module description.
12006         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12007         here...
12008         * modules/symlinkat (configure.ac): ... to here.
12009
12010 2011-05-22  Bruno Haible  <bruno@clisp.org>
12011
12012         symlink: Move AC_LIBOBJ invocations to module description.
12013         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
12014         here...
12015         * modules/symlink (configure.ac): ... to here.
12016
12017 2011-05-22  Bruno Haible  <bruno@clisp.org>
12018
12019         strverscmp: Move AC_LIBOBJ invocations to module description.
12020         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
12021         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
12022         from here...
12023         * modules/strverscmp (configure.ac): ... to here.
12024
12025 2011-05-22  Bruno Haible  <bruno@clisp.org>
12026
12027         strtok_r: Move AC_LIBOBJ invocations to module description.
12028         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
12029         and gl_PREREQ_STRTOK_R invocations from here...
12030         * modules/strtok_r (configure.ac): ... to here.
12031         (Depends-on): Update conditions.
12032
12033 2011-05-22  Bruno Haible  <bruno@clisp.org>
12034
12035         strtoumax: Move AC_LIBOBJ invocations to module description.
12036         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
12037         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
12038         from here...
12039         * modules/strtoumax (configure.ac): ... to here.
12040
12041 2011-05-22  Bruno Haible  <bruno@clisp.org>
12042
12043         strtoimax: Move AC_LIBOBJ invocations to module description.
12044         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
12045         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
12046         from here...
12047         * modules/strtoimax (configure.ac): ... to here.
12048
12049 2011-05-22  Bruno Haible  <bruno@clisp.org>
12050
12051         strtoull: Move AC_LIBOBJ invocations to module description.
12052         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
12053         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
12054         from here...
12055         * modules/strtoull (configure.ac): ... to here.
12056
12057 2011-05-22  Bruno Haible  <bruno@clisp.org>
12058
12059         strtoll: Move AC_LIBOBJ invocations to module description.
12060         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
12061         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
12062         here...
12063         * modules/strtoll (configure.ac): ... to here.
12064
12065 2011-05-22  Bruno Haible  <bruno@clisp.org>
12066
12067         strtoul: Move AC_LIBOBJ invocations to module description.
12068         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
12069         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12070         * modules/strtoul (configure.ac): ... to here.
12071
12072 2011-05-22  Bruno Haible  <bruno@clisp.org>
12073
12074         strtol: Move AC_LIBOBJ invocations to module description.
12075         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
12076         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12077         * modules/strtol (configure.ac): ... to here.
12078
12079 2011-05-22  Bruno Haible  <bruno@clisp.org>
12080
12081         strtod: Move AC_LIBOBJ invocations to module description.
12082         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
12083         invocations from here...
12084         * modules/strtod (configure.ac): ... to here.
12085
12086 2011-05-22  Bruno Haible  <bruno@clisp.org>
12087
12088         strstr*: Move AC_LIBOBJ invocations to module description.
12089         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
12090         invocations from here...
12091         * modules/strstr-simple (configure.ac): ... to here.
12092         * modules/strstr (configure.ac): ... and here.
12093
12094 2011-05-22  Bruno Haible  <bruno@clisp.org>
12095
12096         strsignal: Move AC_LIBOBJ invocations to module description.
12097         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
12098         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
12099         * modules/strsignal (configure.ac): ... to here.
12100         (Depends-on): Update conditions.
12101
12102 2011-05-22  Bruno Haible  <bruno@clisp.org>
12103
12104         strsep: Move AC_LIBOBJ invocations to module description.
12105         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
12106         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
12107         here...
12108         * modules/strsep (configure.ac): ... to here.
12109
12110 2011-05-22  Bruno Haible  <bruno@clisp.org>
12111
12112         strptime: Move AC_LIBOBJ invocations to module description.
12113         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
12114         gl_PREREQ_STRPTIME invocations from here...
12115         * modules/strptime (configure.ac): ... to here.
12116
12117 2011-05-22  Bruno Haible  <bruno@clisp.org>
12118
12119         strpbrk: Move AC_LIBOBJ invocations to module description.
12120         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
12121         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
12122         here...
12123         * modules/strpbrk (configure.ac): ... to here.
12124
12125 2011-05-22  Bruno Haible  <bruno@clisp.org>
12126
12127         strnlen: Move AC_LIBOBJ invocations to module description.
12128         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
12129         invocations from here...
12130         * modules/strnlen (configure.ac): ... to here.
12131
12132 2011-05-22  Bruno Haible  <bruno@clisp.org>
12133
12134         strndup: Move AC_LIBOBJ invocations to module description.
12135         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
12136         invocations from here...
12137         * modules/strndup (configure.ac): ... to here.
12138         (Depends-on): Update conditions.
12139
12140 2011-05-22  Bruno Haible  <bruno@clisp.org>
12141
12142         strncat: Move AC_LIBOBJ invocations to module description.
12143         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
12144         invocations from here...
12145         * modules/strncat (configure.ac): ... to here.
12146
12147 2011-05-22  Bruno Haible  <bruno@clisp.org>
12148
12149         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
12150         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
12151         invocations from here...
12152         * modules/strdup (configure.ac): ... to here.
12153         * modules/strdup-posix (configure.ac): ... and here.
12154
12155 2011-05-22  Bruno Haible  <bruno@clisp.org>
12156
12157         strcspn: Move AC_LIBOBJ invocations to module description.
12158         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
12159         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
12160         here...
12161         * modules/strcspn (configure.ac): ... to here.
12162
12163 2011-05-22  Bruno Haible  <bruno@clisp.org>
12164
12165         strchrnul: Move AC_LIBOBJ invocations to module description.
12166         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
12167         gl_PREREQ_STRCHRNUL invocations from here...
12168         * modules/strchrnul (configure.ac): ... to here.
12169
12170 2011-05-22  Bruno Haible  <bruno@clisp.org>
12171
12172         strcasestr*: Move AC_LIBOBJ invocations to module description.
12173         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12174         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
12175         * modules/strcasestr-simple (configure.ac): ... to here.
12176         * modules/strcasestr (configure.ac): ... and here.
12177
12178 2011-05-22  Bruno Haible  <bruno@clisp.org>
12179
12180         strcase: Move AC_LIBOBJ invocations to module description.
12181         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
12182         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
12183         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
12184         gl_PREREQ_STRNCASECMP invocations from here...
12185         * modules/strcase (configure.ac): ... to here.
12186
12187 2011-05-22  Bruno Haible  <bruno@clisp.org>
12188
12189         stpncpy: Move AC_LIBOBJ invocations to module description.
12190         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
12191         here...
12192         * modules/stpncpy (configure.ac): ... to here.
12193
12194 2011-05-22  Bruno Haible  <bruno@clisp.org>
12195
12196         stpcpy: Move AC_LIBOBJ invocations to module description.
12197         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
12198         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
12199         here...
12200         * modules/stpcpy (configure.ac): ... to here.
12201
12202 2011-05-21  Bruno Haible  <bruno@clisp.org>
12203
12204         stat: Move AC_LIBOBJ invocations to module description.
12205         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
12206         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
12207         here...
12208         * modules/stat (configure.ac): ... to here.
12209
12210 2011-05-21  Bruno Haible  <bruno@clisp.org>
12211
12212         sleep: Move AC_LIBOBJ invocations to module description.
12213         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
12214         * modules/sleep (configure.ac): ... to here.
12215
12216 2011-05-21  Bruno Haible  <bruno@clisp.org>
12217
12218         signbit: Move AC_LIBOBJ invocations to module description.
12219         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
12220         * modules/signbit (configure.ac): ... to here.
12221
12222 2011-05-21  Bruno Haible  <bruno@clisp.org>
12223
12224         sigprocmask: Move AC_LIBOBJ invocations to module description.
12225         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
12226         gl_PREREQ_SIGPROMASK invocations from here...
12227         * modules/sigprocmask (configure.ac): ... to here.
12228
12229 2011-05-21  Bruno Haible  <bruno@clisp.org>
12230
12231         sigaction: Move AC_LIBOBJ invocations to module description.
12232         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
12233         gl_PREREQ_SIGACTION invocations from here...
12234         * modules/sigaction (configure.ac): ... to here.
12235
12236 2011-05-21  Bruno Haible  <bruno@clisp.org>
12237
12238         sig2str: Move AC_LIBOBJ invocations to module description.
12239         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
12240         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
12241         here...
12242         * modules/sig2str (configure.ac): ... to here.
12243
12244 2011-05-21  Bruno Haible  <bruno@clisp.org>
12245
12246         setlocale: Move AC_LIBOBJ invocations to module description.
12247         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
12248         gl_PREREQ_SETLOCALE invocations from here...
12249         * modules/setlocale (configure.ac): ... to here.
12250
12251 2011-05-21  Bruno Haible  <bruno@clisp.org>
12252
12253         unsetenv: Move AC_LIBOBJ invocations to module description.
12254         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
12255         and gl_PREREQ_UNSETENV invocations from here...
12256         * modules/unsetenv (configure.ac): ... to here.
12257         (Depends-on): Update.
12258
12259 2011-05-21  Bruno Haible  <bruno@clisp.org>
12260
12261         setenv: Move AC_LIBOBJ invocations to module description.
12262         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
12263         here...
12264         * modules/setenv (configure.ac): ... to here.
12265
12266 2011-05-21  Bruno Haible  <bruno@clisp.org>
12267
12268         selinux-h: Move AC_LIBOBJ invocations to module description.
12269         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
12270         AC_LIBOBJ invocation from here...
12271         * modules/selinux-h (configure.ac): ... to here.
12272
12273 2011-05-21  Bruno Haible  <bruno@clisp.org>
12274
12275         select: Respect rules for use of AC_LIBOBJ.
12276         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
12277         here...
12278         * modules/select (configure.ac): ... to here.
12279
12280 2011-05-21  Bruno Haible  <bruno@clisp.org>
12281
12282         scandir: Move AC_LIBOBJ invocations to module description.
12283         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
12284         invocations from here...
12285         * modules/scandir (configure.ac): ... to here.
12286
12287 2011-05-21  Bruno Haible  <bruno@clisp.org>
12288
12289         rpmatch: Move AC_LIBOBJ invocations to module description.
12290         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
12291         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
12292         here...
12293         * modules/rpmatch (configure.ac): ... to here.
12294
12295 2011-05-21  Bruno Haible  <bruno@clisp.org>
12296
12297         rmdir: Respect rules for use of AC_LIBOBJ.
12298         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
12299         * modules/rmdir (configure.ac): ... to here.
12300
12301 2011-05-21  Bruno Haible  <bruno@clisp.org>
12302
12303         renameat: Move AC_LIBOBJ invocations to module description.
12304         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
12305         here...
12306         * modules/renameat (configure.ac): ... to here.
12307
12308 2011-05-21  Bruno Haible  <bruno@clisp.org>
12309
12310         rename: Respect rules for use of AC_LIBOBJ.
12311         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
12312         here...
12313         * modules/rename (configure.ac): ... to here.
12314
12315 2011-05-21  Bruno Haible  <bruno@clisp.org>
12316
12317         remove: Move AC_LIBOBJ invocations to module description.
12318         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
12319         here...
12320         * modules/remove (configure.ac): ... to here.
12321
12322 2011-05-21  Bruno Haible  <bruno@clisp.org>
12323
12324         relocatable-lib: Move AC_LIBOBJ invocations to module description.
12325         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
12326         macro.
12327         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
12328         * modules/relocatable-lib (configure.ac): ... to here.
12329         * modules/relocatable-prog-wrapper (configure.ac): Invoke
12330         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
12331
12332 2011-05-21  Bruno Haible  <bruno@clisp.org>
12333
12334         relocatable-prog: Move AC_LIBOBJ invocations to module description.
12335         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
12336         here...
12337         * modules/relocatable-prog (configure.ac): ... to here.
12338
12339 2011-05-21  Bruno Haible  <bruno@clisp.org>
12340
12341         regex: Move AC_LIBOBJ invocations to module description.
12342         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
12343         invocations from here...
12344         * modules/regex (configure.ac): ... to here.
12345
12346 2011-05-21  Bruno Haible  <bruno@clisp.org>
12347
12348         realloc-*: Move AC_LIBOBJ invocations to module description.
12349         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
12350         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
12351         AC_LIBOBJ invocations from here...
12352         * modules/realloc-gnu (configure.ac): ... to here.
12353         * modules/realloc-posix (configure.ac): ... and here.
12354
12355 2011-05-21  Bruno Haible  <bruno@clisp.org>
12356
12357         readutmp: Move AC_LIBOBJ invocations to module description.
12358         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
12359         * modules/readutmp (configure.ac): ... to here.
12360
12361 2011-05-21  Bruno Haible  <bruno@clisp.org>
12362
12363         readlinkat: Move AC_LIBOBJ invocations to module description.
12364         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
12365         here...
12366         * modules/readlinkat (configure.ac): ... to here.
12367
12368 2011-05-21  Bruno Haible  <bruno@clisp.org>
12369
12370         readlink: Move AC_LIBOBJ invocations to module description.
12371         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
12372         gl_PREREQ_READLINK invocations from here...
12373         * modules/readlink (configure.ac): ... to here.
12374
12375 2011-05-21  Bruno Haible  <bruno@clisp.org>
12376
12377         readline: Move AC_LIBOBJ invocations to module description.
12378         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
12379         gl_PREREQ_READLINE invocations from here...
12380         * modules/readline (configure.ac): ... to here.
12381
12382 2011-05-21  Bruno Haible  <bruno@clisp.org>
12383
12384         read: Move AC_LIBOBJ invocations to module description.
12385         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
12386         * modules/read (configure.ac): ... to here.
12387
12388 2011-05-21  Bruno Haible  <bruno@clisp.org>
12389
12390         rawmemchr: Move AC_LIBOBJ invocations to module description.
12391         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
12392         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
12393         from here...
12394         * modules/rawmemchr (configure.ac): ... to here.
12395
12396 2011-05-21  Bruno Haible  <bruno@clisp.org>
12397
12398         random_r: Move AC_LIBOBJ invocations to module description.
12399         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
12400         gl_PREREQ_RANDOM_R invocations from here...
12401         * modules/random_r (configure.ac): ... to here.
12402
12403 2011-05-21  Bruno Haible  <bruno@clisp.org>
12404
12405         pwrite: Move AC_LIBOBJ invocations to module description.
12406         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
12407         * modules/pwrite (configure.ac): ... to here.
12408
12409 2011-05-21  Bruno Haible  <bruno@clisp.org>
12410
12411         putenv: Move AC_LIBOBJ invocations to module description.
12412         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
12413         * modules/putenv (configure.ac): ... to here.
12414
12415 2011-05-21  Bruno Haible  <bruno@clisp.org>
12416
12417         login_tty: Move AC_LIBOBJ invocations to module description.
12418         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
12419         * modules/login_tty (configure.ac): ... to here.
12420
12421 2011-05-21  Bruno Haible  <bruno@clisp.org>
12422
12423         openpty: Move AC_LIBOBJ invocations to module description.
12424         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
12425         * modules/openpty (configure.ac): ... to here.
12426
12427 2011-05-21  Bruno Haible  <bruno@clisp.org>
12428
12429         forkpty: Move AC_LIBOBJ invocations to module description.
12430         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
12431         * modules/forkpty (configure.ac): ... to here.
12432
12433 2011-05-21  Bruno Haible  <bruno@clisp.org>
12434
12435         ptsname: Move AC_LIBOBJ invocations to module description.
12436         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
12437         invocations from here...
12438         * modules/ptsname (configure.ac): ... to here.
12439
12440 2011-05-21  Bruno Haible  <bruno@clisp.org>
12441
12442         pread: Move AC_LIBOBJ invocations to module description.
12443         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
12444         * modules/pread (configure.ac): ... to here.
12445
12446 2011-05-21  Bruno Haible  <bruno@clisp.org>
12447
12448         posix_spawn*: Move AC_LIBOBJ invocations to module description.
12449         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
12450         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
12451         * modules/posix_spawn (configure.ac): ... to here.
12452         * modules/posix_spawnp (configure.ac): ... and here.
12453
12454 2011-05-21  Bruno Haible  <bruno@clisp.org>
12455
12456         popen: Move AC_LIBOBJ invocations to module description.
12457         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
12458         invocations from here...
12459         * modules/popen (configure.ac): ... to here.
12460
12461 2011-05-21  Bruno Haible  <bruno@clisp.org>
12462
12463         poll: Move AC_LIBOBJ invocations to module description.
12464         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
12465         invocations from here...
12466         * modules/poll (configure.ac): ... to here.
12467
12468 2011-05-21  Bruno Haible  <bruno@clisp.org>
12469
12470         pipe-posix: Move AC_LIBOBJ invocations to module description.
12471         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
12472         * modules/pipe-posix (configure.ac): ... to here.
12473
12474 2011-05-21  Bruno Haible  <bruno@clisp.org>
12475
12476         openat: Respect rules for use of AC_LIBOBJ.
12477         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
12478         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
12479         * modules/openat (configure.ac): ... to here.
12480
12481 2011-05-21  Bruno Haible  <bruno@clisp.org>
12482
12483         obstack-printf*: Move AC_LIBOBJ invocations to module description.
12484         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
12485         invocation from here...
12486         * modules/obstack-printf (configure.ac): ... to here.
12487         * modules/obstack-printf-posix (configure.ac): ... and here.
12488
12489 2011-05-21  Bruno Haible  <bruno@clisp.org>
12490
12491         nl_langinfo: Move AC_LIBOBJ invocations to module description.
12492         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
12493         from here...
12494         * modules/nl_langinfo (configure.ac): ... to here.
12495
12496 2011-05-21  Bruno Haible  <bruno@clisp.org>
12497
12498         nanosleep: Move AC_LIBOBJ invocations to module description.
12499         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
12500         gl_PREREQ_NANOSLEEP invocations from here...
12501         * modules/nanosleep (configure.ac): ... to here.
12502
12503 2011-05-21  Bruno Haible  <bruno@clisp.org>
12504
12505         mountlist: Move AC_LIBOBJ invocations to module description.
12506         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
12507         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
12508         * modules/mountlist (configure.ac): ... to here.
12509
12510 2011-05-21  Bruno Haible  <bruno@clisp.org>
12511
12512         mktime: Respect rules for use of AC_LIBOBJ.
12513         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
12514         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
12515         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
12516         (gl_FUNC_MKTIME_INTERNAL): ... and here...
12517         * modules/mktime (configure.ac): ... to here.
12518         * modules/mktime-internal (configure.ac): ... and here.
12519         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
12520
12521 2011-05-21  Bruno Haible  <bruno@clisp.org>
12522
12523         mkstemps: Move AC_LIBOBJ invocations to module description.
12524         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
12525         here...
12526         * modules/mkstemps (configure.ac): ... to here.
12527
12528 2011-05-21  Bruno Haible  <bruno@clisp.org>
12529
12530         mkstemp: Move AC_LIBOBJ invocations to module description.
12531         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
12532         gl_PREREQ_MKSTEMP invocations from here...
12533         * modules/mkstemp (configure.ac): ... to here.
12534
12535 2011-05-21  Bruno Haible  <bruno@clisp.org>
12536
12537         mkostemps: Move AC_LIBOBJ invocations to module description.
12538         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
12539         here...
12540         * modules/mkostemps (configure.ac): ... to here.
12541
12542 2011-05-21  Bruno Haible  <bruno@clisp.org>
12543
12544         mkostemp: Move AC_LIBOBJ invocations to module description.
12545         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
12546         gl_PREREQ_MKOSTEMP invocations from here...
12547         * modules/mkostemp (configure.ac): ... to here.
12548
12549 2011-05-21  Bruno Haible  <bruno@clisp.org>
12550
12551         mknod: Move AC_LIBOBJ invocations to module description.
12552         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
12553         * modules/mknod (configure.ac): ... to here.
12554
12555 2011-05-21  Bruno Haible  <bruno@clisp.org>
12556
12557         mkfifoat: Move AC_LIBOBJ invocations to module description.
12558         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
12559         here...
12560         * modules/mkfifoat (configure.ac): ... to here.
12561
12562 2011-05-21  Bruno Haible  <bruno@clisp.org>
12563
12564         mkfifo: Respect rules for use of AC_LIBOBJ.
12565         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
12566         here...
12567         * modules/mkfifo (configure.ac): ... to here.
12568
12569 2011-05-21  Bruno Haible  <bruno@clisp.org>
12570
12571         mkdtemp: Move AC_LIBOBJ invocations to module description.
12572         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
12573         invocations from here...
12574         * modules/mkdtemp (configure.ac): ... to here.
12575
12576 2011-05-21  Bruno Haible  <bruno@clisp.org>
12577
12578         mkdir: Move AC_LIBOBJ invocations to module description.
12579         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
12580         * modules/mkdir (configure.ac): ... to here.
12581
12582 2011-05-21  Bruno Haible  <bruno@clisp.org>
12583
12584         memset: Move AC_LIBOBJ invocations to module description.
12585         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
12586         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
12587         here...
12588         * modules/memset (configure.ac): ... to here.
12589
12590 2011-05-21  Bruno Haible  <bruno@clisp.org>
12591
12592         memrchr: Move AC_LIBOBJ invocations to module description.
12593         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
12594         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
12595         here...
12596         * modules/memrchr (configure.ac): ... to here.
12597
12598 2011-05-21  Bruno Haible  <bruno@clisp.org>
12599
12600         mempcpy: Move AC_LIBOBJ invocations to module description.
12601         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
12602         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
12603         here...
12604         * modules/mempcpy (configure.ac): ... to here.
12605
12606 2011-05-21  Bruno Haible  <bruno@clisp.org>
12607
12608         memmove: Move AC_LIBOBJ invocations to module description.
12609         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
12610         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
12611         here...
12612         * modules/memmove (configure.ac): ... to here.
12613
12614 2011-05-21  Bruno Haible  <bruno@clisp.org>
12615
12616         memmem*: Move AC_LIBOBJ invocations to module description.
12617         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
12618         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
12619         here...
12620         (gl_FUNC_MEMMEM): ... and here...
12621         * modules/memmem-simple (configure.ac): ... to here.
12622         * modules/memmem (configure.ac): ... and here.
12623
12624 2011-05-21  Bruno Haible  <bruno@clisp.org>
12625
12626         memcpy: Move AC_LIBOBJ invocations to module description.
12627         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
12628         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
12629         here...
12630         * modules/memcpy (configure.ac): ... to here.
12631
12632 2011-05-21  Bruno Haible  <bruno@clisp.org>
12633
12634         memcmp: Simplify autoconf macro.
12635         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
12636         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
12637         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
12638
12639 2011-05-21  Bruno Haible  <bruno@clisp.org>
12640
12641         memcmp: Move AC_LIBOBJ invocations to module description.
12642         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
12643         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
12644         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
12645         * modules/memcmp (configure.ac): ... to here.
12646         (Depends-on): Update conditions.
12647
12648 2011-05-21  Bruno Haible  <bruno@clisp.org>
12649
12650         memchr: Respect rules for use of AC_LIBOBJ.
12651         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
12652         invocations from here...
12653         * modules/memchr (configure.ac): ... to here.
12654
12655 2011-05-21  Bruno Haible  <bruno@clisp.org>
12656
12657         mbtowc: Move AC_LIBOBJ invocations to module description.
12658         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
12659         invocations from here...
12660         * modules/mbtowc (configure.ac): ... to here.
12661
12662 2011-05-21  Bruno Haible  <bruno@clisp.org>
12663
12664         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
12665         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
12666         gl_PREREQ_MBSRTOWCS invocations from here...
12667         * modules/mbsrtowcs (configure.ac): ... to here.
12668
12669 2011-05-21  Bruno Haible  <bruno@clisp.org>
12670
12671         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
12672         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
12673         gl_PREREQ_MBSNRTOWCS invocations from here...
12674         * modules/mbsnrtowcs (configure.ac): ... to here.
12675
12676 2011-05-21  Bruno Haible  <bruno@clisp.org>
12677
12678         mbsinit: Move AC_LIBOBJ invocations to module description.
12679         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
12680         invocations from here...
12681         * modules/mbsinit (configure.ac): ... to here.
12682
12683 2011-05-21  Bruno Haible  <bruno@clisp.org>
12684
12685         mbrlen: Move AC_LIBOBJ invocations to module description.
12686         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
12687         invocations from here...
12688         * modules/mbrlen (configure.ac): ... to here.
12689
12690 2011-05-21  Bruno Haible  <bruno@clisp.org>
12691
12692         mbrtowc: Respect rules for use of AC_LIBOBJ.
12693         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
12694         invocations from here...
12695         * modules/mbrtowc (configure.ac): ... to here.
12696
12697 2011-05-21  Bruno Haible  <bruno@clisp.org>
12698
12699         malloc-*: Move AC_LIBOBJ invocations to module description.
12700         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
12701         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
12702         AC_LIBOBJ invocations from here...
12703         * modules/malloc-gnu (configure.ac): ... to here.
12704         * modules/malloc-posix (configure.ac): ... and here.
12705
12706 2011-05-21  Bruno Haible  <bruno@clisp.org>
12707
12708         lstat, openat: Respect rules for use of AC_LIBOBJ.
12709         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
12710         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
12711         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
12712         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
12713         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
12714         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
12715         here.
12716         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
12717
12718 2011-05-21  Bruno Haible  <bruno@clisp.org>
12719
12720         lseek: Move AC_LIBOBJ invocations to module description.
12721         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
12722         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
12723         * modules/lseek (configure.ac): ... to here.
12724
12725 2011-05-21  Bruno Haible  <bruno@clisp.org>
12726
12727         linkat: Move AC_LIBOBJ invocations to module description.
12728         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
12729         here...
12730         * modules/linkat (configure.ac): ... to here.
12731
12732 2011-05-21  Bruno Haible  <bruno@clisp.org>
12733
12734         link: Respect rules for use of AC_LIBOBJ.
12735         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
12736         * modules/link (configure.ac): ... to here.
12737
12738 2011-05-21  Bruno Haible  <bruno@clisp.org>
12739
12740         lchown: Move AC_LIBOBJ invocations to module description.
12741         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
12742         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
12743         * modules/lchown (configure.ac): ... to here.
12744
12745 2011-05-21  Bruno Haible  <bruno@clisp.org>
12746
12747         iswctype: Move AC_LIBOBJ invocations to module description.
12748         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
12749         here...
12750         * modules/iswctype (configure.ac): ... to here.
12751
12752 2011-05-21  Bruno Haible  <bruno@clisp.org>
12753
12754         iswblank: Move AC_LIBOBJ invocations to module description.
12755         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
12756         here...
12757         * modules/iswblank (configure.ac): ... to here.
12758
12759 2011-05-21  Bruno Haible  <bruno@clisp.org>
12760
12761         atanl: Move AC_LIBOBJ invocations to module description.
12762         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
12763         * modules/atanl (configure.ac): ... to here.
12764
12765 2011-05-21  Bruno Haible  <bruno@clisp.org>
12766
12767         acosl: Move AC_LIBOBJ invocations to module description.
12768         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
12769         * modules/acosl (configure.ac): ... to here.
12770
12771 2011-05-21  Bruno Haible  <bruno@clisp.org>
12772
12773         asinl: Respect rules for use of AC_LIBOBJ.
12774         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
12775         * modules/asinl (configure.ac): ... to here.
12776
12777 2011-05-21  Bruno Haible  <bruno@clisp.org>
12778
12779         tanl: Move AC_LIBOBJ invocations to module description.
12780         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
12781         * modules/tanl (configure.ac): ... to here.
12782
12783 2011-05-21  Bruno Haible  <bruno@clisp.org>
12784
12785         cosl: Move AC_LIBOBJ invocations to module description.
12786         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
12787         * modules/cosl (configure.ac): ... to here.
12788
12789 2011-05-21  Bruno Haible  <bruno@clisp.org>
12790
12791         sinl: Move AC_LIBOBJ invocations to module description.
12792         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
12793         * modules/sinl (configure.ac): ... to here.
12794
12795 2011-05-21  Bruno Haible  <bruno@clisp.org>
12796
12797         logl: Move AC_LIBOBJ invocations to module description.
12798         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
12799         * modules/logl (configure.ac): ... to here.
12800
12801 2011-05-21  Bruno Haible  <bruno@clisp.org>
12802
12803         expl: Move AC_LIBOBJ invocations to module description.
12804         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
12805         * modules/expl (configure.ac): ... to here.
12806
12807 2011-05-21  Bruno Haible  <bruno@clisp.org>
12808
12809         roundl: Move AC_LIBOBJ invocations to module description.
12810         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
12811         * modules/roundl (configure.ac): ... to here.
12812
12813 2011-05-21  Bruno Haible  <bruno@clisp.org>
12814
12815         round: Move AC_LIBOBJ invocations to module description.
12816         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
12817         * modules/round (configure.ac): ... to here.
12818
12819 2011-05-21  Bruno Haible  <bruno@clisp.org>
12820
12821         roundf: Move AC_LIBOBJ invocations to module description.
12822         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
12823         * modules/roundf (configure.ac): ... to here.
12824
12825 2011-05-21  Bruno Haible  <bruno@clisp.org>
12826
12827         truncl: Move AC_LIBOBJ invocations to module description.
12828         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
12829         * modules/truncl (configure.ac): ... to here.
12830
12831 2011-05-21  Bruno Haible  <bruno@clisp.org>
12832
12833         trunc: Move AC_LIBOBJ invocations to module description.
12834         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
12835         * modules/trunc (configure.ac): ... to here.
12836
12837 2011-05-21  Bruno Haible  <bruno@clisp.org>
12838
12839         truncf: Move AC_LIBOBJ invocations to module description.
12840         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
12841         * modules/truncf (configure.ac): ... to here.
12842
12843 2011-05-21  Bruno Haible  <bruno@clisp.org>
12844
12845         ceill: Move AC_LIBOBJ invocations to module description.
12846         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
12847         * modules/ceill (configure.ac): ... to here.
12848
12849 2011-05-21  Bruno Haible  <bruno@clisp.org>
12850
12851         ceil: Move AC_LIBOBJ invocations to module description.
12852         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
12853         * modules/ceil (configure.ac): ... to here.
12854
12855 2011-05-21  Bruno Haible  <bruno@clisp.org>
12856
12857         ceilf: Move AC_LIBOBJ invocations to module description.
12858         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
12859         * modules/ceilf (configure.ac): ... to here.
12860
12861 2011-05-21  Bruno Haible  <bruno@clisp.org>
12862
12863         floorl: Respect rules for use of AC_LIBOBJ.
12864         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
12865         * modules/floorl (configure.ac): ... to here.
12866
12867 2011-05-21  Bruno Haible  <bruno@clisp.org>
12868
12869         floor: Respect rules for use of AC_LIBOBJ.
12870         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
12871         * modules/floor (configure.ac): ... to here.
12872
12873 2011-05-21  Bruno Haible  <bruno@clisp.org>
12874
12875         floorf: Move AC_LIBOBJ invocations to module description.
12876         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
12877         * modules/floorf (configure.ac): ... to here.
12878
12879 2011-05-20  Bruno Haible  <bruno@clisp.org>
12880
12881         sqrtl: Respect rules for use of AC_LIBOBJ.
12882         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
12883         * modules/sqrtl (configure.ac): ... to here.
12884
12885 2011-05-20  Bruno Haible  <bruno@clisp.org>
12886
12887         ldexpl: Respect rules for use of AC_LIBOBJ.
12888         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
12889         * modules/ldexpl (configure.ac): ... to here.
12890
12891 2011-05-20  Bruno Haible  <bruno@clisp.org>
12892
12893         frexpl*: Respect rules for use of AC_LIBOBJ.
12894         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
12895         invocation from here...
12896         * modules/frexpl (configure.ac): ... to here.
12897         * modules/frexpl-nolibm (configure.ac): ... and here.
12898
12899 2011-05-20  Bruno Haible  <bruno@clisp.org>
12900
12901         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
12902         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
12903         invocation from here...
12904         * modules/frexp (configure.ac): ... to here.
12905         * modules/frexp-nolibm (configure.ac): ... and here.
12906
12907 2011-05-20  Bruno Haible  <bruno@clisp.org>
12908
12909         isnan: Respect rules for use of AC_LIBOBJ.
12910         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
12911         invocations here.
12912         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
12913         REPLACE_ISNAN.
12914         * modules/isnand (configure.ac): Likewise.
12915         * modules/isnanl (configure.ac): Likewise.
12916
12917 2011-05-20  Bruno Haible  <bruno@clisp.org>
12918
12919         isnanl*: Respect rules for use of AC_LIBOBJ.
12920         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
12921         invocation from here...
12922         * modules/isnanl (configure.ac): ... to here.
12923         * modules/isnanl-nolibm (configure.ac): ... and here.
12924
12925 2011-05-20  Bruno Haible  <bruno@clisp.org>
12926
12927         isnand*: Move AC_LIBOBJ invocations to module description.
12928         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
12929         invocation from here...
12930         * modules/isnand (configure.ac): ... to here.
12931         * modules/isnand-nolibm (configure.ac): ... and here.
12932
12933 2011-05-20  Bruno Haible  <bruno@clisp.org>
12934
12935         isnanf*: Move AC_LIBOBJ invocations to module description.
12936         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
12937         invocation from here...
12938         * modules/isnanf (configure.ac): ... to here.
12939         * modules/isnanf-nolibm (configure.ac): ... and here.
12940
12941 2011-05-20  Bruno Haible  <bruno@clisp.org>
12942
12943         isnan*: Separate the AC_LIBOBJ invocations.
12944         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
12945         AC_LIBOBJ invocation.
12946         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
12947         here.
12948         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
12949         AC_LIBOBJ invocation.
12950         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
12951         here.
12952         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
12953         AC_LIBOBJ invocation.
12954         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
12955         here.
12956         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
12957
12958 2011-05-08  Bruno Haible  <bruno@clisp.org>
12959
12960         isinf: Move AC_LIBOBJ invocations to module description.
12961         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
12962         * modules/isinf (configure.ac): ... to here.
12963
12964 2011-05-08  Bruno Haible  <bruno@clisp.org>
12965
12966         isfinite: Move AC_LIBOBJ invocations to module description.
12967         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
12968         * modules/isfinite (configure.ac): ... to here.
12969
12970 2011-05-08  Bruno Haible  <bruno@clisp.org>
12971
12972         isblank: Move AC_LIBOBJ invocations to module description.
12973         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
12974         here...
12975         * modules/isblank (configure.ac): ... to here.
12976
12977 2011-05-08  Bruno Haible  <bruno@clisp.org>
12978
12979         isapipe: Move AC_LIBOBJ invocations to module description.
12980         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
12981         gl_PREREQ_ISAPIPE invocations from here...
12982         * modules/isapipe (configure.ac): ... to here.
12983         (Depends-on): Update condition.
12984
12985 2011-05-08  Bruno Haible  <bruno@clisp.org>
12986
12987         ioctl: Move AC_LIBOBJ invocations to module description.
12988         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
12989         invocations from here...
12990         * modules/ioctl (configure.ac): ... to here.
12991         (Depends-on): Update condition.
12992
12993 2011-05-08  Bruno Haible  <bruno@clisp.org>
12994
12995         imaxdiv: Move AC_LIBOBJ invocations to module description.
12996         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
12997         invocations from here...
12998         * modules/imaxdiv (configure.ac): ... to here.
12999
13000 2011-05-08  Bruno Haible  <bruno@clisp.org>
13001
13002         imaxabs: Move AC_LIBOBJ invocations to module description.
13003         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13004         invocations from here...
13005         * modules/imaxabs (configure.ac): ... to here.
13006
13007 2011-05-08  Bruno Haible  <bruno@clisp.org>
13008
13009         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13010         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
13011         AC_LIBOBJ invocations from here...
13012         * modules/getaddrinfo (configure.ac): ... to here.
13013         (Depends-on): Add conditions.
13014
13015 2011-05-08  Bruno Haible  <bruno@clisp.org>
13016
13017         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13018         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
13019         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13020         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
13021         (gl_PREREQ_INET_PTON): ... from here.
13022         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
13023         gl_PREREQ_INET_PTON here.
13024         (Depends-on): Update condition.
13025
13026 2011-05-08  Bruno Haible  <bruno@clisp.org>
13027
13028         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13029         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
13030         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13031         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
13032         (gl_PREREQ_INET_NTOP): ... from here.
13033         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
13034         gl_PREREQ_INET_NTOP here.
13035         (Depends-on): Update condition.
13036
13037 2011-05-08  Bruno Haible  <bruno@clisp.org>
13038
13039         iconv_open: Move AC_LIBOBJ invocations to module description.
13040         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
13041         AC_LIBOBJ invocations from here...
13042         * modules/iconv_open (configure.ac): ... to here.
13043
13044 2011-05-08  Bruno Haible  <bruno@clisp.org>
13045
13046         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
13047         If module 'iconv_open' is among the main modules and module
13048         'iconv_open-utf' is among the tests dependencies, then
13049         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
13050         return the special iconv_t values. Therefore iconv() and iconv_close()
13051         must support these special iconv_t values, already in lib, not only in
13052         tests.
13053         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
13054         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
13055         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
13056         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
13057         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
13058         (Depends-on): Add the dependencies of iconv_open-utf.
13059         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
13060         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
13061         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
13062
13063 2011-05-08  Bruno Haible  <bruno@clisp.org>
13064
13065         group-member: Move AC_LIBOBJ invocations to module description.
13066         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
13067         gl_PREREQ_GROUP_MEMBER invocations from here...
13068         * modules/group-member (configure.ac): ... to here.
13069
13070 2011-05-08  Bruno Haible  <bruno@clisp.org>
13071
13072         grantpt: Move AC_LIBOBJ invocations to module description.
13073         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
13074         invocations from here...
13075         * modules/grantpt (configure.ac): ... to here.
13076
13077 2011-05-08  Bruno Haible  <bruno@clisp.org>
13078
13079         glob: Move AC_LIBOBJ invocations to module description.
13080         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
13081         from here...
13082         * modules/glob (configure.ac): ... to here.
13083
13084 2011-05-08  Bruno Haible  <bruno@clisp.org>
13085
13086         getusershell: Move AC_LIBOBJ invocations to module description.
13087         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
13088         Move AC_LIBOBJ invocation from here...
13089         * modules/getusershell (configure.ac): ... to here.
13090         (Depends-on): Update condition.
13091
13092 2011-05-08  Bruno Haible  <bruno@clisp.org>
13093
13094         gettimeofday: Move AC_LIBOBJ invocations to module description.
13095         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
13096         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
13097         gl_PREREQ_GETTIMEOFDAY invocations from here...
13098         * modules/gettimeofday (configure.ac): ... to here.
13099
13100 2011-05-08  Bruno Haible  <bruno@clisp.org>
13101
13102         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
13103         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
13104         just gl_FUNC_TZSET.
13105         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
13106         (gl_FUNC_TZSET_CLOBBER): Remove actions.
13107         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
13108         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
13109
13110 2011-05-08  Bruno Haible  <bruno@clisp.org>
13111
13112         getsubopt: Move AC_LIBOBJ invocations to module description.
13113         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
13114         gl_PREREQ_GETSUBOPT invocations from here...
13115         * modules/getsubopt (configure.ac): ... to here.
13116
13117 2011-05-08  Bruno Haible  <bruno@clisp.org>
13118
13119         getpass-gnu: Move AC_LIBOBJ invocations to module description.
13120         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
13121         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
13122         * modules/getpass-gnu (configure.ac): ... to here.
13123
13124 2011-05-08  Bruno Haible  <bruno@clisp.org>
13125
13126         getpass: Move AC_LIBOBJ invocations to module description.
13127         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
13128         gl_PREREQ_GETPASS invocations from here...
13129         * modules/getpass (configure.ac): ... to here.
13130
13131 2011-05-08  Bruno Haible  <bruno@clisp.org>
13132
13133         getpagesize: Move AC_LIBOBJ invocations to module description.
13134         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
13135         from here...
13136         * modules/getpagesize (configure.ac): ... to here.
13137
13138 2011-05-08  Bruno Haible  <bruno@clisp.org>
13139
13140         getopt: Move AC_LIBOBJ invocations to module description.
13141         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
13142         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
13143         invocations from here...
13144         * modules/getopt-gnu (configure.ac): ... to here.
13145         * modules/getopt-posix (configure.ac): ... and here.
13146         (Depends-on): Update condition.
13147
13148 2011-05-08  Bruno Haible  <bruno@clisp.org>
13149
13150         getopt, argp: Respect rules for use of AC_LIBOBJ.
13151         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
13152         (gl_REPLACE_GETOPT_ALWAYS): New macro.
13153         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
13154         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
13155
13156 2011-05-08  Bruno Haible  <bruno@clisp.org>
13157
13158         getlogin_r: Move AC_LIBOBJ invocations to module description.
13159         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
13160         gl_PREREQ_GETLOGIN_R invocations from here...
13161         * modules/getlogin_r (configure.ac): ... to here.
13162
13163 2011-05-08  Bruno Haible  <bruno@clisp.org>
13164
13165         getlogin: Move AC_LIBOBJ invocations to module description.
13166         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
13167         here...
13168         * modules/getlogin (configure.ac): ... to here.
13169
13170 2011-05-08  Bruno Haible  <bruno@clisp.org>
13171
13172         getloadavg: Move AC_LIBOBJ invocations to module description.
13173         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
13174         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
13175         * modules/getloadavg (configure.ac): ... to here.
13176
13177 2011-05-08  Bruno Haible  <bruno@clisp.org>
13178
13179         gethrxtime: Move AC_LIBOBJ invocations to module description.
13180         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
13181         LIB_GETHRXTIME from here...
13182         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
13183         invocations from here...
13184         * modules/gethrxtime (configure.ac): ... to here.
13185
13186 2011-05-08  Bruno Haible  <bruno@clisp.org>
13187
13188         gethostname: Move AC_LIBOBJ invocations to module description.
13189         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
13190         gl_PREREQ_GETHOSTNAME invocations from here...
13191         * modules/gethostname (configure.ac): ... to here.
13192
13193 2011-05-08  Bruno Haible  <bruno@clisp.org>
13194
13195         getgroups: Move AC_LIBOBJ invocations to module description.
13196         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
13197         here...
13198         * modules/getgroups (configure.ac): ... to here.
13199
13200 2011-05-08  Bruno Haible  <bruno@clisp.org>
13201
13202         getdtablesize: Move AC_LIBOBJ invocations to module description.
13203         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
13204         invocation from here...
13205         * modules/getdtablesize (configure.ac): ... to here.
13206
13207 2011-05-08  Bruno Haible  <bruno@clisp.org>
13208
13209         getdomainname: Move AC_LIBOBJ invocations to module description.
13210         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
13211         gl_PREREQ_GETDOMAINNAME invocations from here...
13212         * modules/getdomainname (configure.ac): ... to here.
13213
13214 2011-05-08  Bruno Haible  <bruno@clisp.org>
13215
13216         getline: Move AC_LIBOBJ invocations to module description.
13217         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
13218         invocations from here...
13219         * modules/getline (configure.ac): ... to here.
13220
13221 2011-05-08  Bruno Haible  <bruno@clisp.org>
13222
13223         getline: Simplify.
13224         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
13225         It's already handled through the module dependency.
13226
13227 2011-05-08  Bruno Haible  <bruno@clisp.org>
13228
13229         getdelim: Move AC_LIBOBJ invocations to module description.
13230         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
13231         and gl_PREREQ_GETDELIM invocations from here...
13232         * modules/getdelim (configure.ac): ... to here.
13233         (Depends-on): Fix condition.
13234
13235 2011-05-08  Bruno Haible  <bruno@clisp.org>
13236
13237         getcwd: Move AC_LIBOBJ invocations to module description.
13238         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
13239         invocations from here...
13240         * modules/getcwd (configure.ac): ... to here.
13241
13242 2011-05-08  Bruno Haible  <bruno@clisp.org>
13243
13244         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
13245         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
13246         here...
13247         * modules/getcwd-lgpl (configure.ac): ... to here.
13248
13249 2011-05-07  Bruno Haible  <bruno@clisp.org>
13250
13251         crypto/gc: Move AC_LIBOBJ invocations to module description.
13252         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
13253         * modules/crypto/gc (configure.ac): ... to here.
13254
13255 2011-05-07  Bruno Haible  <bruno@clisp.org>
13256
13257         fwriting: Move AC_LIBOBJ invocations to module description.
13258         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
13259         here...
13260         * modules/fwriting (configure.ac): ... to here.
13261
13262 2011-05-07  Bruno Haible  <bruno@clisp.org>
13263
13264         fwritable: Move AC_LIBOBJ invocations to module description.
13265         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
13266         here...
13267         * modules/fwritable (configure.ac): ... to here.
13268
13269 2011-05-07  Bruno Haible  <bruno@clisp.org>
13270
13271         futimens: Move AC_LIBOBJ invocations to module description.
13272         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
13273         here...
13274         * modules/futimens (configure.ac): ... to here.
13275
13276 2011-05-07  Bruno Haible  <bruno@clisp.org>
13277
13278         ftruncate: Move AC_LIBOBJ invocations to module description.
13279         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
13280         gl_PREREQ_FTRUNCATE invocations from here...
13281         * modules/ftruncate (configure.ac): ... to here.
13282
13283 2011-05-07  Bruno Haible  <bruno@clisp.org>
13284
13285         fsync: Move AC_LIBOBJ invocations to module description.
13286         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
13287         invocations from here...
13288         * modules/fsync (configure.ac): ... to here.
13289
13290 2011-05-07  Bruno Haible  <bruno@clisp.org>
13291
13292         fsusage: Move AC_LIBOBJ invocations to module description.
13293         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
13294         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
13295         * modules/fsusage (configure.ac): ... to here.
13296
13297 2011-05-07  Bruno Haible  <bruno@clisp.org>
13298
13299         freopen: Move AC_LIBOBJ invocations to module description.
13300         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
13301         invocations from here...
13302         * modules/freopen (configure.ac): ... to here.
13303
13304 2011-05-07  Bruno Haible  <bruno@clisp.org>
13305
13306         free: Move AC_LIBOBJ invocations to module description.
13307         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
13308         invocations from here...
13309         * modules/free (configure.ac): ... to here.
13310
13311 2011-05-07  Bruno Haible  <bruno@clisp.org>
13312
13313         freadable: Move AC_LIBOBJ invocations to module description.
13314         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
13315         here...
13316         * modules/freadable (configure.ac): ... to here.
13317
13318 2011-05-07  Bruno Haible  <bruno@clisp.org>
13319
13320         fpurge: Move AC_LIBOBJ invocations to module description.
13321         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
13322         invocations from here...
13323         * modules/fpurge (configure.ac): ... to here.
13324
13325 2011-05-07  Bruno Haible  <bruno@clisp.org>
13326
13327         fpending: Move AC_LIBOBJ invocations to module description.
13328         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
13329         gl_FUNC_FPENDING.
13330         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
13331         invocations from here...
13332         * modules/fpending (configure.ac): ... to here.
13333
13334 2011-05-07  Bruno Haible  <bruno@clisp.org>
13335
13336         fopen: Move AC_LIBOBJ invocations to module description.
13337         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
13338         invocations from here...
13339         * modules/fopen (configure.ac): ... to here.
13340
13341 2011-05-07  Bruno Haible  <bruno@clisp.org>
13342
13343         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
13344         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
13345         gl_FUNC_FNMATCH_POSIX.
13346         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
13347         invocations from here...
13348         * modules/fnmatch (configure.ac): ... to here.
13349         * modules/fnmatch-gnu (configure.ac): ... and here.
13350
13351 2011-05-07  Bruno Haible  <bruno@clisp.org>
13352
13353         flock: Move AC_LIBOBJ invocations to module description.
13354         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
13355         invocations from here...
13356         * modules/flock (configure.ac): ... to here.
13357
13358 2011-05-07  Bruno Haible  <bruno@clisp.org>
13359
13360         fileblocks: Move AC_LIBOBJ invocations to module description.
13361         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
13362         gl_PREREQ_FILEBLOCKS invocations from here...
13363         * modules/fileblocks (configure.ac): ... to here.
13364
13365 2011-05-06  Bruno Haible  <bruno@clisp.org>
13366
13367         fflush: Move AC_LIBOBJ invocations to module description.
13368         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
13369         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
13370         invocations from here...
13371         * modules/fflush (configure.ac): ... to here.
13372
13373 2011-05-06  Bruno Haible  <bruno@clisp.org>
13374
13375         fdopendir: Move AC_LIBOBJ invocations to module description.
13376         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
13377         here...
13378         * modules/fdopendir (configure.ac): ... to here.
13379         (Depends-on): Improve conditions.
13380
13381 2011-05-06  Bruno Haible  <bruno@clisp.org>
13382
13383         _Exit: Move AC_LIBOBJ invocations to module description.
13384         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
13385         invocations from here...
13386         * modules/_Exit (configure.ac): ... to here.
13387
13388 2011-05-21  Bruno Haible  <bruno@clisp.org>
13389
13390         euidaccess: Respect rules for use of AC_LIBOBJ.
13391         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13392         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
13393         from here...
13394         * modules/euidaccess (configure.ac): ... to here.
13395
13396 2011-05-06  Bruno Haible  <bruno@clisp.org>
13397
13398         error: Move AC_LIBOBJ invocations to module description.
13399         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
13400         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
13401         invocations from here...
13402         * modules/error (configure.ac): ... to here.
13403
13404 2011-05-06  Bruno Haible  <bruno@clisp.org>
13405
13406         duplocale: Move AC_LIBOBJ invocations to module description.
13407         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
13408         gl_PREREQ_DUPLOCALE invocations from here...
13409         * modules/duplocale (configure.ac): ... to here.
13410
13411 2011-05-05  Bruno Haible  <bruno@clisp.org>
13412
13413         dirfd: Move AC_LIBOBJ invocations to module description.
13414         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
13415         gl_FUNC_DIRFD.
13416         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
13417         here...
13418         * modules/dirfd (configure.ac): ... to here.
13419         (Depends-on): Fix condition.
13420
13421 2011-05-05  Bruno Haible  <bruno@clisp.org>
13422
13423         chown: Respect rules for use of AC_LIBOBJ.
13424         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
13425         * modules/chown (configure.ac): ... to here.
13426
13427 2011-05-05  Bruno Haible  <bruno@clisp.org>
13428
13429         chdir-long: Move AC_LIBOBJ invocations to module description.
13430         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
13431         gl_PREREQ_CHDIR_LONG invocations from here...
13432         * modules/chdir-long (configure.ac): ... to here.
13433
13434 2011-05-05  Bruno Haible  <bruno@clisp.org>
13435
13436         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
13437         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
13438         from here...
13439         * modules/canonicalize-lgpl (configure.ac): ... to here.
13440
13441 2011-05-05  Bruno Haible  <bruno@clisp.org>
13442
13443         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
13444         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
13445         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
13446         REPLACE_CALLOC.
13447         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
13448         * modules/calloc-gnu (configure.ac): Likewise.
13449
13450 2011-05-05  Bruno Haible  <bruno@clisp.org>
13451
13452         btowc: Move AC_LIBOBJ invocations to module description.
13453         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
13454         invocations from here...
13455         * modules/btowc (configure.ac): ... to here.
13456
13457 2011-05-21  Bruno Haible  <bruno@clisp.org>
13458
13459         atexit: Move AC_LIBOBJ invocations to module description.
13460         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
13461         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
13462         here...
13463         * modules/atexit (configure.ac): ... to here.
13464
13465 2011-05-05  Bruno Haible  <bruno@clisp.org>
13466
13467         atoll: Move AC_LIBOBJ invocations to module description.
13468         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
13469         invocations from here...
13470         * modules/atoll (configure.ac): ... to here.
13471
13472 2011-05-05  Bruno Haible  <bruno@clisp.org>
13473
13474         argz: Move AC_LIBOBJ invocations to module description.
13475         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
13476         * modules/argz (configure.ac): ... to here.
13477
13478 2011-05-05  Bruno Haible  <bruno@clisp.org>
13479
13480         alphasort: Move AC_LIBOBJ invocations to module description.
13481         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
13482         gl_PREREQ_ALPHASORT invocations from here...
13483         * modules/alphasort (configure.ac): ... to here.
13484
13485 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
13486
13487         verify: new macro verify_expr; verify_true deprecated
13488         * NEWS: Mention this.
13489         * doc/verify.texi (Compile-time Assertions): Document this.
13490         * lib/verify.h (verify_true): Deprecate.
13491         (verify_expr): New macro.
13492         * tests/test-verify.c (function): Test verify_expr.
13493
13494 2011-06-14  Jim Meyering  <meyering@redhat.com>
13495
13496         init.sh: give more portable redirection-related advice in a comment
13497         * tests/init.sh (stderr_fileno_): Update the advice in comments.
13498         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
13499         for lots of discussion.  Stefano Lattarini suggested the solution
13500         of putting "9>&2" after the command.  Reported by Bruno Haible.
13501
13502 2011-06-13  Bruno Haible  <bruno@clisp.org>
13503
13504         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
13505         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
13506         'none'.
13507
13508 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
13509
13510         ftoastr: use strtof only if HAVE_STRTOF
13511         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
13512         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
13513         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
13514         * modules/ftoastr (configure.ac): Check for strtof.
13515
13516 2011-06-13  Bruno Haible  <bruno@clisp.org>
13517
13518         gnulib-tool: Addendum to 2011-06-08 commit.
13519         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
13520         and --witness-c-macro have been given, augment AM_CPPFLAGS.
13521
13522 2011-06-13  Bruno Haible  <bruno@clisp.org>
13523
13524         fseeko: Provide a non-inline replacement of fseek().
13525         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
13526         * modules/fseeko (Depends-on): Add fseek.
13527         * modules/fseek (License): Change to LGPLv2+.
13528
13529 2011-06-13  Bruno Haible  <bruno@clisp.org>
13530
13531         ftello: Provide a non-inline replacement of ftell().
13532         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
13533         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
13534         not have ftello() (such as on mingw).
13535         * modules/ftello (Depends-on): Add ftell.
13536         * modules/ftell (License): Change to LGPLv2+.
13537
13538 2011-05-07  Bruno Haible  <bruno@clisp.org>
13539
13540         ftell: Move AC_LIBOBJ invocations to module description.
13541         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
13542         * modules/ftell (configure.ac): ... to here.
13543
13544 2011-05-07  Bruno Haible  <bruno@clisp.org>
13545
13546         ftello: Respect rules for use of AC_LIBOBJ.
13547         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
13548         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
13549         here...
13550         * modules/ftello (configure.ac): ... to here.
13551
13552 2011-05-07  Bruno Haible  <bruno@clisp.org>
13553
13554         fseeko: Simplify.
13555         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
13556         (gl_FUNC_FSEEKO): Inline it here.
13557
13558 2011-05-07  Bruno Haible  <bruno@clisp.org>
13559
13560         fseek: Move AC_LIBOBJ invocations to module description.
13561         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
13562         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13563         * modules/fseek (configure.ac): ... to here.
13564
13565 2011-05-07  Bruno Haible  <bruno@clisp.org>
13566
13567         fseek: Respect rules for use of AC_LIBOBJ.
13568         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
13569         here...
13570         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
13571
13572 2011-05-07  Bruno Haible  <bruno@clisp.org>
13573
13574         fseeko: Respect rules for use of AC_LIBOBJ.
13575         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
13576         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
13577         here...
13578         * modules/fseeko (configure.ac): ... to here.
13579
13580 2011-06-13  Bruno Haible  <bruno@clisp.org>
13581
13582         gnulib-tool: Allow comments in the 'Depends-on' section.
13583         * doc/gnulib.texi (Module description): Mention comment syntax in the
13584         Depends-on section.
13585         * gnulib-tool (func_get_dependencies): Filter out comment lines.
13586
13587 2011-06-13  Bruno Haible  <bruno@clisp.org>
13588
13589         file-set.h: guard __attibute__ use, now that it's not always defined
13590         * lib/file-set.h (record_file): Use __attribute__ only with compiler
13591         versions that support it.  This fixes a coreutils build failure with
13592         the vendor cc on HP-UX 11.31.
13593
13594 2011-06-12  Bruno Haible  <bruno@clisp.org>
13595
13596         acl: Add support for HP-UX >= 11.11 JFS ACLs.
13597         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
13598         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
13599         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
13600         (acl, aclsort): New declarations.
13601         (aclv_nontrivial): New declaration.
13602         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
13603         (file_has_acl): Read also the second kind of HP-UX ACLs.
13604         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
13605         kind of HP-UX ACLs if the first kind fails.
13606         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
13607         second kind of HP-UX ACLs.
13608         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
13609         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
13610         agree.
13611         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
13612         hpuxjfs.
13613         Handle hpuxjfs.
13614         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
13615         hpuxjfs.
13616         Handle hpuxjfs.
13617         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
13618         (func_test_same_acls): Use both lsacl and getacl.
13619         Handle hpuxjfs.
13620         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
13621         (func_test_same_acls): Use both lsacl and getacl.
13622         Handle hpuxjfs.
13623
13624 2011-06-12  Bruno Haible  <bruno@clisp.org>
13625
13626         acl: Complete the 2010-08-10 fix.
13627         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
13628         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
13629         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
13630         explicitly.
13631         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
13632         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
13633
13634 2011-06-12  Bruno Haible  <bruno@clisp.org>
13635
13636         spawn-pipe tests: Comments.
13637         * tests/test-spawn-pipe-child.c (main): Update comment.
13638         Reported by James Youngman <jay@gnu.org>.
13639
13640 2011-06-11  James Youngman  <jay@gnu.org>
13641
13642         New module 'stat-size'.
13643         * modules/stat-size: New module.  Provides macros for accessing
13644         file size information in instances of struct stat.  Depends on the
13645         fileblocks module because it calls st_blocks.
13646         * lib/stat-size.h: New file, adapted from coreutils' system.h.
13647         * doc/gnulib.texi: Include stat-size.texi.
13648         * doc/stat-size.texi: Documentation for this module.
13649         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
13650         * m4/fileblocks.m4: Mention that stat-size depends on the call to
13651         AC_STRUCT_ST_BLOCKS.
13652
13653 2011-06-09  Bruno Haible  <bruno@clisp.org>
13654
13655         thread: Support pthreads-win32.
13656         * lib/glthread/thread.h (gl_thread_self): Define differently on
13657         pthreads-win32.
13658         (gl_null_thread): New declaration.
13659         (gl_thread_self_pointer): New macro.
13660         * lib/glthread/thread.c (gl_null_thread): New constant.
13661         * tests/test-lock.c: Use gl_thread_self_pointer instead of
13662         gl_thread_self.
13663         * tests/test-tls.c: Likewise.
13664         Suggested by Paul Eggert. Reported by Eric Blake.
13665
13666 2011-06-09  Bruno Haible  <bruno@clisp.org>
13667
13668         thread: Fix confusion between NULL and 0.
13669         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
13670         Reported by Paul Eggert.
13671
13672 2011-06-09  Bruno Haible  <bruno@clisp.org>
13673
13674         spawn-pipe tests: Avoid test failure on HP-UX 11.
13675         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
13676         is closed.
13677
13678 2011-06-09  Bruno Haible  <bruno@clisp.org>
13679
13680         acl tests: Fix compilation error on HP-UX 11.
13681         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
13682
13683 2011-06-09  Bruno Haible  <bruno@clisp.org>
13684
13685         rmdir: Avoid test failure on HP-UX 10.20.
13686         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
13687         EEXIST.
13688
13689 2011-06-08  Eric Blake  <eblake@redhat.com>
13690
13691         perror: fix test on mingw
13692         * modules/perror-tests (Depends-on): Add dup2.
13693
13694         strerror_r-posix: fix on MacOS
13695         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
13696         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
13697         logic bug.
13698         * lib/strerror_r.c (strerror_r): Fix the bug.
13699         * lib/strerror.c (strerror): Likewise.
13700         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
13701         problem.
13702         * doc/posix-functions/strerror.texi (strerror): Likewise.
13703         * doc/posix-functions/perror.texi (perror): Likewise.
13704         * tests/test-strerror.c (main): Enhance test.
13705         * tests/test-strerror_r.c (main): Likewise.
13706
13707 2011-06-08  Bruno Haible  <bruno@clisp.org>
13708
13709         gnulib-tool: Better isolation between different gnulib-tool invocations.
13710         * gnulib-tool: New option --witness-c-macro.
13711         (witness_c_macro): New variable.
13712         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
13713         AM_CPPFLAGS define it as a C macro.
13714         (func_emit_tests_Makefile_am): Likewise.
13715         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
13716         read it from there.
13717         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
13718         m4_define, not AC_DEFUN.
13719         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
13720         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
13721         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
13722         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
13723         s|...|...|, to substitute the values of the GNULIB_* module indicator
13724         variables.
13725         * modules/dirent (Makefile.am): Likewise.
13726         * modules/fcntl-h (Makefile.am): Likewise.
13727         * modules/iconv-h (Makefile.am): Likewise.
13728         * modules/langinfo (Makefile.am): Likewise.
13729         * modules/locale (Makefile.am): Likewise.
13730         * modules/math (Makefile.am): Likewise.
13731         * modules/netdb (Makefile.am): Likewise.
13732         * modules/poll-h (Makefile.am): Likewise.
13733         * modules/pty (Makefile.am): Likewise.
13734         * modules/search (Makefile.am): Likewise.
13735         * modules/signal (Makefile.am): Likewise.
13736         * modules/spawn (Makefile.am): Likewise.
13737         * modules/stdio (Makefile.am): Likewise.
13738         * modules/stdlib (Makefile.am): Likewise.
13739         * modules/string (Makefile.am): Likewise.
13740         * modules/sys_ioctl (Makefile.am): Likewise.
13741         * modules/sys_select (Makefile.am): Likewise.
13742         * modules/sys_socket (Makefile.am): Likewise.
13743         * modules/sys_stat (Makefile.am): Likewise.
13744         * modules/sys_times (Makefile.am): Likewise.
13745         * modules/sys_utsname (Makefile.am): Likewise.
13746         * modules/sys_wait (Makefile.am): Likewise.
13747         * modules/termios (Makefile.am): Likewise.
13748         * modules/time (Makefile.am): Likewise.
13749         * modules/unistd (Makefile.am): Likewise.
13750         * modules/wchar (Makefile.am): Likewise.
13751
13752 2011-06-08  Eric Blake  <eblake@redhat.com>
13753
13754         strerror: simplify replacement
13755         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
13756         * modules/strerror (configure.ac): No prereqs needed here...
13757         * modules/strerror-override (configure.ac): ...but this needs it.
13758         (Files): Add file for needed prereq macro.
13759
13760 2011-06-08  Bruno Haible  <bruno@clisp.org>
13761
13762         strerror_r-posix: Tweaks.
13763         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
13764         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
13765         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
13766         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
13767         (gl_FUNC_STRERROR_R): ... to here.
13768         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
13769
13770 2011-06-07  Eric Blake  <eblake@redhat.com>
13771
13772         perror: document fixed bugs
13773         * doc/posix-functions/perror.texi (perror): Document recent
13774         patches.
13775
13776 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
13777
13778         stat-time: get_stat_birthtime failure is better-defined
13779         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
13780         return a timestamp whose tv_sec and tv_nsec values are both -1.
13781         Previously, the spec said only that the tv_nsec value was negative.
13782         This upward-compatible change simplifies GNU tar a bit.
13783
13784 2011-06-07  Eric Blake  <eblake@redhat.com>
13785
13786         strerror_r-posix: work around cygwin 1.7.9
13787         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
13788         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
13789         bug without replacing strerror_r.
13790         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
13791         strerror_r is buggy, but without requiring strerror_r compilation.
13792         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
13793
13794         test-perror: relax test to ignore cygwin bug
13795         * tests/test-perror2.c (main): Relax test on requiring detection
13796         of stream errors, and use unbuffered stream.
13797         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
13798         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
13799         * doc/posix-functions/fputc.texi (fputc): Likewise.
13800         * doc/posix-functions/fputs.texi (fputs): Likewise.
13801         * doc/posix-functions/fputws.texi (fputws): Likewise.
13802         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
13803         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
13804         * doc/posix-functions/getopt.texi (getopt): Likewise.
13805         * doc/posix-functions/perror.texi (perror): Likewise.
13806         * doc/posix-functions/printf.texi (printf): Likewise.
13807         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
13808         * doc/posix-functions/psignal.texi (psignal): Likewise.
13809         * doc/posix-functions/putc.texi (putc): Likewise.
13810         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
13811         Likewise.
13812         * doc/posix-functions/putchar.texi (putchar): Likewise.
13813         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
13814         Likewise.
13815         * doc/posix-functions/puts.texi (puts): Likewise.
13816         * doc/posix-functions/putwc.texi (putwc): Likewise.
13817         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
13818         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
13819         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13820         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
13821         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13822         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13823         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
13824         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
13825
13826 2011-05-22  Bruno Haible  <bruno@clisp.org>
13827
13828         strerror: Move AC_LIBOBJ invocations to module description.
13829         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
13830         gl_PREREQ_STRERROR invocations from here...
13831         * modules/strerror (configure.ac): ... to here.
13832
13833 2011-05-21  Bruno Haible  <bruno@clisp.org>
13834
13835         perror: Use common idiom.
13836         * modules/perror (configure.ac): Reorder statements.
13837
13838 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
13839
13840         tests: fix usage message in 'mktempd_'
13841         * tests/init.sh (mktempd_): In the usage message, use literal
13842         'mktempd_', not '$ME' (which is even undefined), as the name of
13843         the subroutine.
13844
13845 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
13846
13847         tests init: new function 'fatal_', for hard errors
13848         Before this patch, the only way offered by tests/init.sh to
13849         properly signal a hard error was the `framework_failure_'
13850         function.  But the error message issued by that function,
13851         as its name would suggest, refers to a set-up failure in the
13852         testsuite, while hard errors can obviously also be due to
13853         other reasons.  The best way to fix this inconsistency is to
13854         introduce a new function with a more general error message.
13855         * tests/init.sh (fatal_): New function.
13856
13857 2011-06-06  Eric Blake  <eblake@redhat.com>
13858
13859         canonicalize-lgpl: use common idiom
13860         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
13861         over newer POSIX -Rf.
13862         Reported by Bruno Haible.
13863
13864         canonicalize-lgpl: work around AIX realpath bug
13865         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
13866         * doc/posix-functions/realpath.texi (realpath): Document it.
13867         Reported by Bruno Haible.
13868
13869         strerror: work around FreeBSD bug
13870         * lib/strerror.c (strerror): Special case 0.
13871         Reported by Bruno Haible.
13872
13873         strerror-override: avoid bloating errno module
13874         * modules/errno (Files, configure.ac): Move replacement strings...
13875         * modules/strerror-override: ...to new module.
13876         * modules/strerror (Depends-on): Add strerror-override.
13877         * modules/strerror_r-posix (Depends-on): Likewise.
13878         * MODULES.html.sh: Document new module.
13879         Reported by Bruno Haible.
13880
13881 2011-06-06  Bruno Haible  <bruno@clisp.org>
13882
13883         spawn-pipe tests: Rename program.
13884         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
13885         * tests/test-spawn-pipe-child.c: Update comment.
13886         * tests/test-spawn-pipe.sh: Update.
13887         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
13888
13889         spawn-pipe tests: Link the child program only against libc.
13890         * tests/test-spawn-pipe-child.c: New file, extracted from
13891         tests/test-spawn-pipe.c.
13892         (main): Expect only one argument.
13893         (is_open): New function, copied from tests/test-pipe.c.
13894         * tests/test-spawn-pipe.c: Don't include <errno.h>.
13895         (child_main): Remove function.
13896         (test_pipe): Pass only one argument to the child program.
13897         (main): Remove child process code. Expect the child program's name as
13898         first argument.
13899         * tests/test-spawn-pipe.sh: Pass the child program's name as first
13900         argument.
13901         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
13902         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
13903         test-spawn-pipe-child against no libraries.
13904
13905 2011-06-06  Bruno Haible  <bruno@clisp.org>
13906
13907         careadlinkat: Avoid mismatch between ssize_t and int.
13908         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
13909         * lib/careadlinkat.c (careadlinkatcwd): Define always.
13910
13911 2011-06-06  Jim Meyering  <meyering@redhat.com>
13912
13913         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
13914         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
13915         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
13916
13917 2011-06-05  Bruno Haible  <bruno@clisp.org>
13918
13919         ansi-c++-opt: Interoperability with libtool.
13920         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
13921         set the variable to "no", not to ":".
13922         * NEWS: Mention the change.
13923
13924 2011-06-05  Bruno Haible  <bruno@clisp.org>
13925
13926         acl: Fix test failure on AIX 7.
13927         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
13928         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
13929
13930 2011-06-05  Bruno Haible  <bruno@clisp.org>
13931
13932         pipe-filter-ii: Fix test failure on AIX and IRIX.
13933         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
13934         with EAGAIN, retry with a smaller buffer size.
13935
13936 2011-06-05  Bruno Haible  <bruno@clisp.org>
13937
13938         localename: Fix link dependencies.
13939         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
13940         * modules/localename-tests (Makefile.am): Link test-localename with
13941         $(LIBTHREAD).
13942
13943 2011-06-05  Bruno Haible  <bruno@clisp.org>
13944
13945         error: Avoid gcc warning.
13946         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
13947
13948 2011-06-05  Bruno Haible  <bruno@clisp.org>
13949
13950         unsetenv: Avoid gcc warning.
13951         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
13952
13953 2011-06-05  Bruno Haible  <bruno@clisp.org>
13954
13955         setenv: Avoid gcc warning.
13956         * lib/setenv.c (setenv): Provide declaration if system lacks it.
13957
13958 2011-06-05  Bruno Haible  <bruno@clisp.org>
13959
13960         sys_select: Ensure memset is declared also on AIX 7.
13961         * lib/sys_select.in.h: Include <string.h> also on AIX.
13962         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
13963         self-contained also on AIX 7.1.
13964
13965 2011-06-04  Jim Meyering  <meyering@redhat.com>
13966
13967         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
13968         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
13969         function name, "error".
13970         (_gl_translatable_diag_func_re): New configurable variable.
13971
13972 2011-06-04  Bruno Haible  <bruno@clisp.org>
13973
13974         getopt: Avoid gcc warning.
13975         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
13976
13977 2011-06-04  Bruno Haible  <bruno@clisp.org>
13978
13979         strerror_r: Fix comments.
13980         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
13981         commit.
13982
13983 2011-06-04  Bruno Haible  <bruno@clisp.org>
13984
13985         perror: Fix compilation error.
13986         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
13987         Undefine fprintf, not sprintf.
13988         * modules/perror (Depends-on): Remove intprops, verify.
13989
13990 2011-06-04  Bruno Haible  <bruno@clisp.org>
13991
13992         setlocale: Enable replacement on Cygwin 1.5.
13993         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
13994         Cygwin 1.5.x.
13995         * doc/posix-functions/setlocale.texi: Mention that the problem with the
13996         LC_CTYPE category also exists on Cygwin 1.5.x.
13997
13998 2011-06-04  Bruno Haible  <bruno@clisp.org>
13999
14000         strerror-override: Don't disable symbol renamings.
14001         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14002         * lib/strerror-override.c: Include config.h.
14003         (strerror_override): Don't undefine.
14004
14005 2011-06-03  Bruno Haible  <bruno@clisp.org>
14006
14007         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14008         * lib/localename.h: Update copyright header.
14009         * lib/localename.c: Likewise.
14010         * lib/relocatable.h: Likewise.
14011         * lib/relocatable.c: Likewise.
14012
14013 2011-06-02  Bruno Haible  <bruno@clisp.org>
14014
14015         doc: Fix a module name.
14016         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
14017
14018 2011-06-02  Bruno Haible  <bruno@clisp.org>
14019
14020         pipe2: Remove dependency on 'nonblocking' module.
14021         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
14022         O_NONBLOCK is defined by gnulib.
14023         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
14024         is zero.
14025         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
14026         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
14027         defined by gnulib.
14028         (get_nonblocking_flag): New function.
14029         (main): Test O_NONBLOCK flag only if it is nonzero.
14030         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
14031
14032 2011-06-03  Jim Meyering  <meyering@redhat.com>
14033
14034         maint: three new prohibit-header-without-use rules
14035         Prohibit use of cloexec.h, posixver.h, same.h without use.
14036         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
14037         (sc_prohibit_posixver_without_use): Likewise.
14038         (sc_prohibit_same_without_use): Likewise.
14039
14040 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14041
14042         allocator: 'die' routine is now given requested size
14043         * lib/allocator.h (struct allocator.die): New size arg.
14044         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
14045         If the actual problem is an ssize_t limitation, not a size_t or
14046         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
14047
14048 2011-06-01  Eric Blake  <eblake@redhat.com>
14049
14050         strerror: drop strerror_r dependency
14051         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
14052         * lib/strerror-override.c (strerror_override): ...to new file.
14053         * lib/strerror-override.h: Add prototype.
14054         * lib/strerror-impl.h: Delete.
14055         * lib/strerror.c (strerror): New implementation.
14056         * modules/errno (Files): Add new files.
14057         (configure.ac): Compile new file as appropriate.
14058         * modules/strerror (Files): Drop unused file.
14059         (Depends-on): Drop strerror_r-posix.
14060         * MODULES.html.sh: Document strerror_r-posix.
14061         Requested by Sam Steingold.
14062
14063         perror: call strerror_r directly
14064         * modules/perror (Files): Drop strerror-impl.h.
14065         * lib/perror.c (perror): Use our own stack buffer, rather than
14066         calling a wrapper that uses static storage.
14067         * doc/posix-functions/perror.texi (perror): Document a limitation
14068         of our replacement.
14069
14070         strerror_r: fix includes for FreeBSD
14071         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
14072         since we use abort on some platforms.
14073         Reported by Matthias Bolte.
14074
14075 2011-05-31  Bruno Haible  <bruno@clisp.org>
14076
14077         Fix link errors in tests: openat-die uses gettext-h.
14078         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
14079         against $(LIBINTL).
14080         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
14081         against $(LIBINTL).
14082         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
14083         $(LIBINTL).
14084         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
14085         against $(LIBINTL).
14086         * modules/linkat-tests (Makefile.am): Link test-linkat against
14087         $(LIBINTL).
14088         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
14089         $(LIBINTL).
14090         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
14091         against $(LIBINTL).
14092         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
14093         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
14094         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
14095         $(LIBINTL).
14096         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
14097         $(LIBINTL).
14098         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
14099         $(LIBINTL).
14100         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14101
14102 2011-05-31  Bruno Haible  <bruno@clisp.org>
14103
14104         Fix link errors in tests: wait-process uses gettext-h.
14105         * modules/nonblocking-pipe-tests (Makefile.am): Set
14106         test_nonblocking_pipe_main_LDADD.
14107         * modules/nonblocking-socket-tests (Makefile.am): Link
14108         test-nonblocking-socket-main against $(LIBINTL).
14109         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14110
14111 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14112
14113         assert-h: work around 'verify' incompatibility
14114         * lib/verify.h: Use @...@ directives, not ifdef.
14115         * modules/assert-h (assert.h): Implement the directives.
14116         (assert.h): Substitute the symbol-prefix more consistently.
14117
14118 2011-05-29  Jim Meyering  <meyering@redhat.com>
14119
14120         trim: remove three superfluous assignments
14121         * lib/trim.c (trim2): Remove three superfluous assignments
14122         and correct brace positioning.
14123
14124 2011-05-29  Bruno Haible  <bruno@clisp.org>
14125
14126         wctype-h: Avoid namespace pollution on Solaris 2.6.
14127         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
14128         identifiers.
14129         * doc/posix-headers/wctype.texi: Mention the problem.
14130         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14131
14132 2011-05-28  Jim Meyering  <meyering@redhat.com>
14133
14134         parse-datetime.y: accommodate -Wstrict-overflow
14135         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
14136         placate -Wstrict-overflow.
14137
14138         trim: avoid a warning from -O2 -Wstrict-overflow
14139         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
14140
14141 2011-05-29  Bruno Haible  <bruno@clisp.org>
14142
14143         gnulib-tool: Fix bug in yesterday's commit.
14144         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
14145         twice.
14146
14147 2011-05-29  Bruno Haible  <bruno@clisp.org>
14148
14149         Allow multiple gnulib generated include files to be combined.
14150         * gnulib-tool (func_compute_include_guard_prefix): New function.
14151         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
14152         ${gl_include_guard_prefix} references.
14153         (func_import, func_create_testdir): Invoke
14154         func_compute_include_guard_prefix.
14155         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
14156         * lib/ctype.in.h: Likewise.
14157         * lib/dirent.in.h: Likewise.
14158         * lib/errno.in.h: Likewise.
14159         * lib/fcntl.in.h: Likewise.
14160         * lib/float.in.h: Likewise.
14161         * lib/getopt.in.h: Likewise.
14162         * lib/iconv.in.h: Likewise.
14163         * lib/langinfo.in.h: Likewise.
14164         * lib/locale.in.h: Likewise.
14165         * lib/math.in.h: Likewise.
14166         * lib/netdb.in.h: Likewise.
14167         * lib/netinet_in.in.h: Likewise.
14168         * lib/poll.in.h: Likewise.
14169         * lib/pthread.in.h: Likewise.
14170         * lib/pty.in.h: Likewise.
14171         * lib/sched.in.h: Likewise.
14172         * lib/se-selinux.in.h: Likewise.
14173         * lib/search.in.h: Likewise.
14174         * lib/signal.in.h: Likewise.
14175         * lib/spawn.in.h: Likewise.
14176         * lib/stdarg.in.h: Likewise.
14177         * lib/stddef.in.h: Likewise.
14178         * lib/stdint.in.h: Likewise.
14179         * lib/stdio.in.h: Likewise.
14180         * lib/stdlib.in.h: Likewise.
14181         * lib/string.in.h: Likewise.
14182         * lib/strings.in.h: Likewise.
14183         * lib/sys_file.in.h: Likewise.
14184         * lib/sys_ioctl.in.h: Likewise.
14185         * lib/sys_select.in.h: Likewise.
14186         * lib/sys_socket.in.h: Likewise.
14187         * lib/sys_stat.in.h: Likewise.
14188         * lib/sys_time.in.h: Likewise.
14189         * lib/sys_times.in.h: Likewise.
14190         * lib/sys_uio.in.h: Likewise.
14191         * lib/sys_utsname.in.h: Likewise.
14192         * lib/sys_wait.in.h: Likewise.
14193         * lib/sysexits.in.h: Likewise.
14194         * lib/termios.in.h: Likewise.
14195         * lib/time.in.h: Likewise.
14196         * lib/unistd.in.h: Likewise.
14197         * lib/wchar.in.h: Likewise.
14198         * lib/wctype.in.h: Likewise.
14199         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
14200         * modules/ctype (Makefile.am): Likewise.
14201         * modules/dirent (Makefile.am): Likewise.
14202         * modules/errno (Makefile.am): Likewise.
14203         * modules/fcntl-h (Makefile.am): Likewise.
14204         * modules/float (Makefile.am): Likewise.
14205         * modules/getopt-posix (Makefile.am): Likewise.
14206         * modules/iconv-h (Makefile.am): Likewise.
14207         * modules/langinfo (Makefile.am): Likewise.
14208         * modules/locale (Makefile.am): Likewise.
14209         * modules/math (Makefile.am): Likewise.
14210         * modules/netdb (Makefile.am): Likewise.
14211         * modules/netinet_in (Makefile.am): Likewise.
14212         * modules/poll-h (Makefile.am): Likewise.
14213         * modules/pthread (Makefile.am): Likewise.
14214         * modules/pty (Makefile.am): Likewise.
14215         * modules/sched (Makefile.am): Likewise.
14216         * modules/search (Makefile.am): Likewise.
14217         * modules/selinux-h (Makefile.am): Likewise.
14218         * modules/signal (Makefile.am): Likewise.
14219         * modules/spawn (Makefile.am): Likewise.
14220         * modules/stdarg (Makefile.am): Likewise.
14221         * modules/stddef (Makefile.am): Likewise.
14222         * modules/stdint (Makefile.am): Likewise.
14223         * modules/stdio (Makefile.am): Likewise.
14224         * modules/stdlib (Makefile.am): Likewise.
14225         * modules/string (Makefile.am): Likewise.
14226         * modules/strings (Makefile.am): Likewise.
14227         * modules/sys_file (Makefile.am): Likewise.
14228         * modules/sys_ioctl (Makefile.am): Likewise.
14229         * modules/sys_select (Makefile.am): Likewise.
14230         * modules/sys_socket (Makefile.am): Likewise.
14231         * modules/sys_stat (Makefile.am): Likewise.
14232         * modules/sys_time (Makefile.am): Likewise.
14233         * modules/sys_times (Makefile.am): Likewise.
14234         * modules/sys_uio (Makefile.am): Likewise.
14235         * modules/sys_utsname (Makefile.am): Likewise.
14236         * modules/sys_wait (Makefile.am): Likewise.
14237         * modules/sysexits (Makefile.am): Likewise.
14238         * modules/termios (Makefile.am): Likewise.
14239         * modules/time (Makefile.am): Likewise.
14240         * modules/unistd (Makefile.am): Likewise.
14241         * modules/wchar (Makefile.am): Likewise.
14242         * modules/wctype-h (Makefile.am): Likewise.
14243         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
14244
14245 2011-05-29  Bruno Haible  <bruno@clisp.org>
14246
14247         assert-h: Allow multiple gnulib generated replacements to coexist.
14248         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
14249
14250 2011-05-29  Bruno Haible  <bruno@clisp.org>
14251
14252         argp: Allow coexistence with strerror_r-posix module.
14253         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
14254         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
14255         by gnulib's <string.h> replacement), assume it has the POSIX signature,
14256         not the glibc signature.
14257
14258 2011-05-28  Bruno Haible  <bruno@clisp.org>
14259
14260         gnulib-tool: Alternative structure of testdirs, similar to --import.
14261         * gnulib-tool: New option --single-configure.
14262         (func_usage): Document it.
14263         (single_configure): New variable.
14264         (func_modules_transitive_closure_separately,
14265         func_modules_transitive_closure_separately,
14266         func_determine_use_libtests, func_modules_add_dummy_separately,
14267         func_modules_to_filelist_separately): New functions, extracted from
14268         func_import.
14269         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
14270         (func_import): Use the new functions.
14271         (func_create_testdir): Set final_modules. Handle $single_configure =
14272         true case.
14273
14274 2011-05-28  Bruno Haible  <bruno@clisp.org>
14275
14276         getloadavg: Remove an unreliable safety check.
14277         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
14278         getloadavg.c is in place.
14279         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
14280         Reported by Sam Steingold <sds@gnu.org>.
14281
14282 2011-05-28  Bruno Haible  <bruno@clisp.org>
14283
14284         doc: Cleanup yet another file produced by texinfo.tex.
14285         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
14286
14287 2011-05-28  Bruno Haible  <bruno@clisp.org>
14288
14289         Finish the conditional dependencies mechanism.
14290         * gnulib-tool: New option --no-conditional-dependencies.
14291         (func_usage): Document it. Don't mark --conditional-dependencies as
14292         experimental.
14293         (cond_dependencies): The possible values can now be true, false, empty.
14294         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
14295         (func_import): Store setting in gnulib-cache.m4 and read it from there.
14296         * doc/gnulib-tool.texi (Conditional dependencies): New section.
14297
14298 2011-05-28  Bruno Haible  <bruno@clisp.org>
14299
14300         doc: Use a recent texinfo.tex.
14301         * doc/Makefile (tex_opts): New variable.
14302         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
14303
14304 2011-05-28  Jim Meyering  <meyering@redhat.com>
14305
14306         intprops.h: adjust comment to match code change
14307         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
14308         only once, it *may* have side effects.  Also fix an unrelated typo.
14309         (_GL_INT_SIGNED): Likewise.
14310
14311 2011-05-26  Simon Josefsson  <simon@josefsson.org>
14312
14313         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
14314
14315 2011-05-26  Bruno Haible  <bruno@clisp.org>
14316
14317         mbsrchr: Avoid collision with system function on Interix.
14318         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
14319         Reported by Markus Duft <mduft@gentoo.org>.
14320
14321 2011-05-15  James Youngman  <jay@gnu.org>
14322
14323         getopt: for ambiguous options, enumerate the possibilities.
14324         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
14325         the ambiguous options when an ambiguous prefix is given. This was
14326         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
14327         glibc change was
14328         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
14329
14330 2011-05-25  Eric Blake  <eblake@redhat.com>
14331
14332         getcwd: work around mingw bug
14333         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
14334         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14335         Reported by Matthias Bolte.
14336
14337 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14338
14339         test-intprops: disable -Wtype-limits diagnostics
14340         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
14341         diagnostics.  Otherwise, the integer overflow macros generate many
14342         diagnostics.  Reported by Jim Meyering in
14343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
14344
14345         intprops: shorten, to pacify gcc -Woverlength-strings
14346         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
14347         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
14348         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
14349         likely to run afoul of C compiler limits for string constant lengths.
14350         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
14351
14352 2011-05-24  Eric Blake  <eblake@redhat.com>
14353
14354         docs: document recently fixed glibc printf bug
14355         * doc/posix-functions/fprintf.texi (fprintf): Document it.
14356         * doc/posix-functions/printf.texi (printf): Likewise.
14357         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14358         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14359
14360         closein-tests: convert to init.sh
14361         * modules/closein-tests (Files): Add init.sh
14362         * tests/test-closein.sh Use it.
14363
14364         yesno-tests: convert to init.sh
14365         * modules/yesno-tests (Files): Add init.sh.
14366         * tests/test-yesno.sh: Use it.
14367
14368         atexit-tests: ensure reliable exit status
14369         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
14370         Reported by Bruno Haible.
14371
14372 2011-05-24  Bruno Haible  <bruno@clisp.org>
14373
14374         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
14375         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
14376         gl_PREREQ_STRERROR_R invocations from here...
14377         * modules/strerror_r-posix (configure.ac): ... to here.
14378
14379 2011-05-24  Eric Blake  <eblake@redhat.com>
14380
14381         strerror_r: fix missing header
14382         * lib/strerror_r.c: Avoid compiler warning about snprintf.
14383
14384         strerror_r: fix AIX test failures
14385         * lib/strerror_r.c (strerror_r): Convert silent truncation to
14386         ERANGE failure.
14387
14388         strerror_r: fix Solaris test failures
14389         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
14390         failures.
14391         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
14392
14393         strerror_r: enforce POSIX recommendations
14394         * lib/strerror_r.c (safe_copy): New helper method.
14395         (strerror_r): Guarantee a non-empty string.
14396         * tests/test-strerror_r.c (main): Enhance tests to incorporate
14397         recent POSIX rulings and to match our strerror guarantees.
14398         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
14399
14400 2011-05-24  Jim Meyering  <meyering@redhat.com>
14401
14402         test-perror2.c: avoid warning about unused variable
14403         * tests/test-perror2.c (main): Remove declaration of unused "fp".
14404
14405 2011-05-24  Eric Blake  <eblake@redhat.com>
14406
14407         perror: avoid spurious test failure on HP-UX
14408         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
14409
14410         tests: fix logic bug in init.sh
14411         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
14412         shell.
14413
14414 2011-05-24  Jim Meyering  <meyering@redhat.com>
14415
14416         utimensat: do not reference an out-of-scope buffer
14417         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
14418         declared in an inner scope, yet "times" would be dereferenced outside
14419         the scope in which "ts" was valid.
14420         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
14421         of ts[2] "out/up", so that the use of aliased "times" (via
14422         "times = ts;") does not end up referencing an out-of-scope "ts"
14423
14424         opendir-safer.c: don't clobber errno; don't close negative FD
14425         * lib/opendir-safer.c (opendir_safer):
14426         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
14427         file descriptor, and more importantly, don't clobber the
14428         offending errno value with EINVAL.  Before, upon failure
14429         of dup_safer, we would pass the negative file descriptor to
14430         fdopendir, which would clobber errno.
14431
14432 2011-05-23  Bruno Haible  <bruno@clisp.org>
14433
14434         idcache: Fix module description.
14435         * modules/idcache (Include): Set to "idcache.h".
14436
14437 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
14438
14439         gnulib-tool: fix portability problem with MacOS sed
14440         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
14441         before the "}".  Problem reported by Leo in
14442         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
14443         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
14444         sed_extract_condition1, sed_extract_condition2.
14445
14446 2011-05-23  Bruno Haible  <bruno@clisp.org>
14447
14448         hash: Simplify autoconf macro.
14449         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
14450
14451 2011-05-23  Bruno Haible  <bruno@clisp.org>
14452
14453         getugroups: Fix module description.
14454         * modules/getugroups (Include): Set to "getugroups.h".
14455
14456 2011-05-23  Bruno Haible  <bruno@clisp.org>
14457
14458         linkat: Simplify autoconf macro.
14459         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
14460
14461 2011-05-23  Bruno Haible  <bruno@clisp.org>
14462             Eric Blake  <eblake@redhat.com>
14463
14464         linkat, renameat: Update dependencies.
14465         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
14466         * modules/linkat (Depends-on): Likewise. Remove also readlink,
14467         symlinkat.
14468
14469 2011-05-23  Jim Meyering  <meyering@redhat.com>
14470
14471         maint.mk: more tight_scope improvements
14472         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
14473         (_gl_TS_headers): Define only in if-0'd block.
14474         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
14475         sometimes we must *not* use it.  Adjust uses accordingly.
14476         (sc_tight_scope): Use much simpler grep-based test to determine
14477         whether we skip this rule.
14478
14479         maint.mk: generalize/improve the tight-scope rule
14480         * top/maint.mk: Emit a warning when the test is skipped.
14481         (_gl_TS_dir): Add $(srcdir)/ prefix.
14482         (_gl_TS_function_match): Simplify, rather than trying
14483         to enumerate common types.  Otherwise, it would fail to match an
14484         "extern unsigned char const *" declaration in idutils.
14485         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
14486         a way to support use of that type of macro.
14487         (_gl_TS_var_match): Simplify regexp.
14488         (_gl_TS_obj_files): New configurable variable.
14489         (_gl_TS_headers): Likewise.
14490
14491 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
14492
14493         verify: fix bug when gnulib <assert.h> is also included
14494         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
14495         is defined, not if _GL_STATIC_ASSERT_H is not defined.
14496         Perhaps there's a better way, but this fixes the immediate problem.
14497         Problem reported by Bruno Haible in
14498         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
14499
14500 2011-05-22  Bruno Haible  <bruno@clisp.org>
14501
14502         xgetcwd: Simplify autoconf macro.
14503         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
14504
14505 2011-05-22  Bruno Haible  <bruno@clisp.org>
14506
14507         New module 'mktime-internal'.
14508         * modules/mktime-internal: New file.
14509         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
14510         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
14511         mktime_internal as a C macro if libc has __mktime_internal.
14512         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
14513         conditions.
14514         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
14515
14516 2011-05-22  Bruno Haible  <bruno@clisp.org>
14517
14518         timegm: Correct mktime replacement statements.
14519         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
14520         defining mktime as a C macro. This completes a 2009-07-28 commit.
14521
14522 2011-05-22  Bruno Haible  <bruno@clisp.org>
14523
14524         timegm: Simplify autoconf macro.
14525         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
14526
14527 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
14528
14529         clock-time: change to LGPLv2+.
14530         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
14531         BSD-like but we have no mark for that; this is good enough for now.
14532
14533 2011-05-21  Bruno Haible  <bruno@clisp.org>
14534
14535         strerror_r: Fix comments.
14536         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
14537
14538 2011-05-21  Bruno Haible  <bruno@clisp.org>
14539
14540         relocatable-prog-wrapper: Fix possible link error.
14541         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
14542         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
14543         (gl_FUNC_SETENV): ... to here.
14544         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
14545         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
14546
14547 2011-05-21  Bruno Haible  <bruno@clisp.org>
14548
14549         relocatable-prog-wrapper: Assume strerror() exists.
14550         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
14551         m4/strerror.m4.
14552         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
14553         * lib/relocwrapper.c: Remove mention of strerror module.
14554         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
14555         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
14556         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
14557         C macro.
14558
14559 2011-05-21  Bruno Haible  <bruno@clisp.org>
14560
14561         select: Simplify replacement idiom.
14562         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
14563         Win32 platforms.
14564         * lib/sys_select.in.h (select): Simplify accordingly.
14565         * modules/select (Depends-on): Likewise.
14566
14567 2011-05-21  Bruno Haible  <bruno@clisp.org>
14568
14569         mkdir-p: Simplify autoconf macro.
14570         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
14571         gl_FUNC_LCHOWN.
14572
14573 2011-05-21  Eric Blake  <eblake@redhat.com>
14574
14575         strerror_r: avoid clobbering strerror on cygwin
14576         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
14577         fall back instead to sys_errlist.
14578         * modules/strerror (configure.ac): Add witness.
14579         * tests/test-strerror_r.c (main): Enhance test.
14580         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14581         * tests/test-perror2.c (main): Free memory before exit.
14582
14583 2011-05-21  Bruno Haible  <bruno@clisp.org>
14584
14585         mkdtemp: Use gnulib naming conventions.
14586         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
14587         * modules/mkdtemp (configure.ac): Update.
14588
14589 2011-05-20  Eric Blake  <eblake@redhat.com>
14590
14591         strerror_r: avoid corrupting errno on Solaris
14592         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
14593         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14594
14595         strerror_r: avoid compiler warning
14596         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
14597
14598         strerror_r: simplify AIX code
14599         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
14600
14601         test-perror: avoid spurious failure on FreeBSD
14602         * modules/perror-tests (Depends-on): Add strerror, now that
14603         strerror_r no longer pulls it in.
14604
14605 2011-05-20  Bruno Haible  <bruno@clisp.org>
14606
14607         strerror_r-posix: Remove unused dependencies.
14608         * modules/strerror_r-posix (Depends-on): Remove strerror.
14609         Reported by Eric Blake.
14610
14611 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
14612
14613         intprops: remove assumption about A|B representation
14614         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
14615         is a valid integer if both A and B are.  Although this is true for
14616         all known practical hosts, the C standard doesn't guarantee it,
14617         and the code need not assume it.  Also, this change may work around
14618         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
14619         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
14620
14621 2011-05-20  Eric Blake  <eblake@redhat.com>
14622
14623         perror: work around FreeBSD bug
14624         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
14625         is broken.  Move AC_LIBOBJ...
14626         * modules/perror (configure.ac): Here.
14627         * doc/posix-functions/perror.texi (perror): Document this.
14628         * tests/test-perror2.c (main): Enhance test.
14629
14630         test-perror: check for strerror interactions
14631         * tests/macros.h (STREQ): Add macro.
14632         * modules/perror-tests (Files): Add second test.
14633         * tests/test-perror2.c (main): New file.
14634         * doc/posix-functions/perror.texi (perror): Document glibc bug.
14635
14636         test-perror: rewrite to use init script
14637         * modules/perror-tests (Files): Add init.sh.
14638         * tests/test-perror.sh: Use temporary directory.
14639
14640 2011-05-20  Jim Meyering  <meyering@redhat.com>
14641
14642         maint: replace misused "a" with "an"
14643         * doc/intprops.texi: "a integer"
14644         * doc/regex.texi: "a explanation"
14645         * lib/alignof.h: "a object"
14646         * lib/argmatch.h: "a explanation"
14647         * lib/argp-help.c: "a option" and "a OPTION_DOC"
14648         * lib/stdint.in.h: "a integer"
14649         * lib/userspec.c: "a owner"
14650         * doc/gnulib.texi: Fix "a idea", and reword.
14651
14652 2011-05-19  Jim Meyering  <meyering@redhat.com>
14653
14654         maint: correct misuse of "a" and "an"
14655         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
14656         * lib/argp-help.c: "an docum...": s/an/a/
14657         * lib/argp-parse.c: "An vector": s/An/A/
14658         * lib/execute.c: "an native": s/an/a/
14659         * lib/spawn-pipe.c: Likewise.
14660         * lib/gc.h: "an Gc_rc": s/an/a/
14661         * lib/unigbrk.in.h: "an grapheme": s/an/a/
14662         * lib/fts.c: "an stat.st_dev": s/an/a/
14663
14664 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14665
14666         intprops-tests: work around HP-UX 11.23 cc bug with constants
14667         * tests/test-intprops.c (VERIFY): New macro.
14668         (main): Use it, instead of verify, to work around the compiler bug; see
14669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
14670
14671         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
14672         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
14673         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
14674         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
14675         (_GL_REMAINDER_OVERFLOW): Use it.
14676
14677         intprops-tests: revert unsigned part of previous change
14678         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
14679         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
14680         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
14681         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
14682
14683 2011-05-19  Bruno Haible  <bruno@clisp.org>
14684
14685         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
14686         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
14687         strerror_r() returned without filling the buffer.
14688         Reported by Eric Blake.
14689
14690 2011-05-19  Eric Blake  <eblake@redhat.com>
14691
14692         strerror_r: guarantee unchanged errno
14693         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
14694         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
14695         failure.
14696         * tests/test-strerror_r.c (main): Enhance test.
14697
14698 2011-05-19  Bruno Haible  <bruno@clisp.org>
14699
14700         strerror_r: Reorder #if blocks.
14701         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
14702         for consistency with the previous commit.
14703
14704 2011-05-19  Bruno Haible  <bruno@clisp.org>
14705
14706         perror: Avoid clobbering the strerror buffer when possible.
14707         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
14708         * lib/strerror.c: Include it.
14709         * modules/strerror (Files): Add lib/strerror-impl.h.
14710         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
14711         (my_strerror): New function, defined through lib/strerror-impl.h.
14712         (perror): Use it instead of strerror.
14713         * modules/perror (Files): Add lib/strerror-impl.h.
14714         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
14715
14716 2011-05-19  Eric Blake  <eblake@redhat.com>
14717
14718         strerror_r: fix on newer cygwin
14719         * lib/strerror_r.c (strerror_r): Cygwin now has
14720         __xpg_strerror_r, use it.
14721
14722 2011-05-19  Bruno Haible  <bruno@clisp.org>
14723
14724         strerror_r: Avoid clobbering the strerror buffer when possible.
14725         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
14726         (sys_nerr, sys_errlist): New declarations.
14727         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
14728         HP-UX, native Win32, IRIX, and 32-bit Solaris.
14729         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
14730
14731 2011-05-19  Bruno Haible  <bruno@clisp.org>
14732
14733         strerror_r: Fix test failure on mingw.
14734         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
14735         EXTEND_STRERROR_R.
14736         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
14737         macros from errno.in.h instead.
14738
14739 2011-05-19  Eric Blake  <eblake@redhat.com>
14740
14741         strerror: relax test for Solaris
14742         * tests/test-strerror.c (main): Permit Solaris behavior.
14743         * tests/test-strerror_r.c (main): Likewise.
14744
14745         strerror: enforce POSIX ruling on strerror(0)
14746         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
14747         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14748         * lib/strerror_r.c (rpl_strerror_r): Work around it.
14749         * doc/posix-functions/strerror.texi (strerror): Document it.
14750         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
14751         * tests/test-strerror.c (main): Strengthen test.
14752         * tests/test-strerror_r.c (main): Likewise.
14753
14754 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14755
14756         intprop-tests: port to older and more-pedantic compilers
14757         * modules/intprops-tests (Files): Add tests/macros.h.
14758         * tests/test-intprops.c: Include macros.h.
14759         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
14760         it's no longer documented to expand to an integer constant expression.
14761         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
14762         argument is floating point, as it's no longer documented to expand
14763         to an integer constant expression in that case.
14764         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
14765         compiler bugs reported by Bruno Haible.  See
14766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
14767         (U0, U1): New constants, to work around the same bugs.  Also,
14768         in tests, use e.g., "(unsigned int) 39" rather than "39u".
14769
14770         intprops: work around C compiler bugs
14771         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
14772         bug in Sun C 5.11 2010/08/13 and other compilers; see
14773         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
14774
14775         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
14776         * doc/intprops.texi (Integer Type Determination): Fix
14777         documentation for TYPE_IS_INTEGER: it returns an constant
14778         expression, not an integer constant expression.  Fix doc for
14779         TYPE_SIGNED: it returns an integer constant expression only if its
14780         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
14781         hardly worth documented that way....)
14782
14783 2011-05-18  Bruno Haible  <bruno@clisp.org>
14784
14785         strerror_r: Avoid clobbering the strerror buffer when possible.
14786         * lib/strerror_r.c (strerror_r): Merge the three implementations.
14787         Handle gnulib defined errno values here. When strerror() returns NULL
14788         or an empty string, return EINVAL.
14789         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
14790         gnulib defined errno values here.
14791         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
14792
14793 2011-05-18  Eric Blake  <eblake@redhat.com>
14794
14795         fnmatch: avoid compiler warning
14796         * lib/fnmatch_loop.c (FCT): Use correct type.
14797         Reported by Matthias Bolte.
14798
14799 2011-05-13  Jim Meyering  <meyering@redhat.com>
14800
14801         maint.mk: three new prohibit_<HDR>_without_use rules
14802         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
14803         (sc_prohibit_stdio-safer_without_use): Likewise.
14804         (sc_prohibit_xfreopen_without_use): Likewise.
14805
14806 2011-05-17  Jim Meyering  <meyering@redhat.com>
14807
14808         announce-gen: fail if the NEWS delta is empty
14809         If there's nothing noteworthy in NEWS, then either you forgot
14810         or you shouldn't be releasing.
14811         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
14812
14813 2011-05-17  Pádraig Brady <P@draigBrady.com>
14814
14815         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
14816         reserved symbols starting with double underscore from the check.
14817
14818 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
14819
14820         intprops: add doc
14821         * doc/intprops.texi: New file, documenting intprops.
14822         * doc/gnulib.texi (Particular Modules): Include it.
14823
14824         verify: add doc to gnulib manual and fix example
14825         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
14826         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
14827         (Compile-time Assertions): Fix example so it can't overflow.
14828
14829 2011-05-17  Jim Meyering  <meyering@redhat.com>
14830
14831         warnings.m4: don't usurp save_CPPFLAGS variable name
14832         * m4/warnings.m4: Prefix local temporary variable name with gl_.
14833
14834         doc: fix typo
14835         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
14836
14837 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14838             Bruno Haible  <bruno@clisp.org>
14839
14840         doc: Tweak recent change.
14841         * README (Portability guidelines): Tweak new text.
14842         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
14843         Interix 6.1.
14844
14845 2011-05-16  Eric Blake  <eblake@redhat.com>
14846
14847         inttypes: avoid autoconf warning
14848         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
14849         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14850
14851 2011-05-16  Sam Steingold <sds@gnu.org>
14852         and Eric Blake  <eblake@redhat.com>
14853
14854         vc-list-files: accept multiple directory operands
14855         * build-aux/vc-list-files: Iterate over all remaining operands.
14856
14857 2011-05-16  Bruno Haible  <bruno@clisp.org>
14858
14859         Fix confusion regarding deprecated modules.
14860         * modules/calloc (Status, Notice): Mark module as deprecated, not
14861         obsolete.
14862         * modules/fnmatch-posix (Status, Notice): Likewise.
14863         * modules/getdate (Status, Notice): Likewise.
14864         * modules/getopt (Status, Notice): Likewise.
14865         * modules/malloc (Status, Notice): Likewise.
14866         * modules/pipe (Status, Notice): Likewise.
14867         * modules/realloc (Status, Notice): Likewise.
14868         * modules/rename-dest-slash (Status, Notice): Likewise.
14869         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
14870         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
14871         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
14872         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
14873         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
14874
14875 2011-05-16  Bruno Haible  <bruno@clisp.org>
14876
14877         doc: List the target platforms.
14878         * doc/gnulib-intro.texi (Target Platforms): New section.
14879         * doc/gnulib.texi (Introduction): Update menu.
14880         * README (Portability guidelines): Refer to the new section. Update
14881         statement about oldest supported environment. Remove rationale why
14882         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
14883         unportable C89 function.
14884         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
14885         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
14886
14887 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14888
14889         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
14890
14891 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
14892
14893         intprops-tests: new module
14894         * modules/intprops-tests, tests/test-intprops.c: New files.
14895
14896         intprops: add safe, portable integer overflow checking
14897         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
14898         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
14899         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
14900         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
14901         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
14902         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
14903         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
14904         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
14905         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
14906         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
14907         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
14908
14909 2011-05-12  James Youngman  <jay@gnu.org>
14910
14911         Add a test for glibc's Bugzilla bug #12378.
14912         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
14913         doesn't allow the literal matching of a lone "[" (which is
14914         required by POSIX).
14915         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
14916
14917 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
14918
14919         Sync glibc change fixing Bugzilla bug #12378.
14920         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
14921         beginning and fall back to matching as normal character if the
14922         string ends before the matching ']' is found.  This is what POSIX
14923         requires.
14924
14925 2011-05-13  Eric Blake  <eblake@redhat.com>
14926
14927         getcwd-lgpl: relax test for FreeBSD
14928         * doc/posix-functions/getcwd.texi (getcwd): Document portability
14929         issue.
14930         * tests/test-getcwd-lgpl.c (main): Relax test.
14931         Reported by Matthias Bolte.
14932
14933 2011-05-11  Eric Blake  <eblake@redhat.com>
14934
14935         test-fflush: silence compiler warning
14936         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
14937
14938 2011-05-11  Bruno Haible  <bruno@clisp.org>
14939
14940         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
14941         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
14942         * modules/canonicalize (Depends-on): Add 'nocrash'.
14943         * modules/canonicalize-lgpl (Depends-on): Likewise.
14944         * doc/posix-functions/realpath.texi: Update platforms list.
14945         Reported by Ryan Schmidt <ryandesign@macports.org>.
14946
14947 2011-05-11  Bruno Haible  <bruno@clisp.org>
14948
14949         group-member: Declare function in <unistd.h>.
14950         * lib/unistd.in.h (group_member): New declaration.
14951         * lib/group-member.h: Remove file.
14952         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
14953         * tests/test-unistd-c++.cc: Check signature of group_member.
14954         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
14955         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
14956         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
14957         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
14958         HAVE_GROUP_MEMBER.
14959         * modules/group-member (Files): Remove lib/group-member.h.
14960         (Depends-on): Add unistd. Specify conditions.
14961         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14962         (Include): Change to <unistd.h>.
14963         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
14964         HAVE_GROUP_MEMBER.
14965         * NEWS: Mention the change.
14966         * lib/euidaccess.c: Don't include group-member.h.
14967
14968 2011-05-11  Bruno Haible  <bruno@clisp.org>
14969
14970         group-member: Document module.
14971         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
14972         module.
14973
14974 2011-05-11  Bruno Haible  <bruno@clisp.org>
14975
14976         fclose: Fix mistake earlier today.
14977         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
14978
14979 2011-05-11  Eric Blake  <eblake@redhat.com>
14980
14981         fclose: preserve fflush errors
14982         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
14983         Reported by Jim Meyering.
14984
14985         bootstrap: support a prereq of 'rpcgen -' on RHEL5
14986         * build-aux/bootstrap (check_versions): When no specific version
14987         is required, merely check that the app produces an exit status
14988         that indicates its existence.
14989
14990         maint.mk: drop redundant check
14991         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
14992         the same but better.
14993
14994 2011-05-11  Bruno Haible  <bruno@clisp.org>
14995
14996         fclose: Fix possible link error.
14997         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
14998         unregister_shadow_fd. Improve comments.
14999         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15000         Eric Blake.
15001
15002 2011-05-11  Jim Meyering  <meyering@redhat.com>
15003
15004         maint.mk: improve "can not" detection and generalize rule name
15005         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15006         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15007         Use the same technique as in sc_prohibit_doubled_word, so that
15008         we recognize "can not" also when the words are separated by a newline.
15009         Suggested by Eric Blake.
15010         (perl_filename_lineno_text_): Define.  Factored out of...
15011         (prohibit_doubled_word_): ...here.  Use the new definition.
15012         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
15013         (prohibit_undesirable_word_seq_RE_): New overridable variable.
15014         (ignore_undesirable_word_sequence_RE_): New overridable variable.
15015
15016 2011-05-10  Eric Blake  <eblake@redhat.com>
15017
15018         fclose: avoid double close race when possible
15019         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
15020         all but WINDOWS_SOCKETS.
15021
15022 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
15023
15024         openat: correct new comment
15025         * lib/openat-proc.c (openat_proc_name): Correct the comment.
15026
15027 2011-05-10  Jim Meyering  <meyering@redhat.com>
15028
15029         openat: add comments
15030         * lib/openat-proc.c (openat_proc_name): Add comments,
15031         mostly from Eric Blake.
15032
15033 2011-05-09  Eric Blake  <eblake@redhat.com>
15034
15035         openat: reduce syscalls in first probe of /proc
15036         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
15037         be a directory.  Simplify the probe for .. bugs.
15038         * modules/openat (Depends-on): Drop same-inode.
15039         Reported by Bastien ROUCARIES.
15040
15041 2011-05-09  Jim Meyering  <meyering@redhat.com>
15042
15043         maint.mk: change semantics/name of tight_scope variables
15044         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
15045         Rename variables to align with semantics that make them more useful.
15046
15047         maint.mk: tweak new rule's name not to impinge
15048         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
15049         (sc_tight_scope): Use new rule name rather than $@-0.
15050
15051         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
15052         * top/maint.mk (sc_tight_scope): New rule.
15053         (sc_tight_scope-0): New rule, ifdef'd out.
15054         (_gl_TS_dir): Default.
15055         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
15056         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
15057
15058 2011-05-09  Simon Josefsson  <simon@josefsson.org>
15059
15060         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
15061         Haible <bruno@clisp.org>.
15062
15063 2011-05-08  Bruno Haible  <bruno@clisp.org>
15064
15065         Comments.
15066         * m4/isnanf.m4: Add comment.
15067         * m4/isnanl.m4: Likewise.
15068
15069 2011-05-08  Bruno Haible  <bruno@clisp.org>
15070
15071         glob: Remove obsolete macro.
15072         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
15073
15074 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15075
15076         intprops: Sun C 5.11 supports __typeof__
15077         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
15078         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
15079         which is new.
15080         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
15081
15082         intprops: switch to usual gnulib indenting and naming
15083         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
15084         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
15085
15086         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
15087
15088 2011-05-08  Jim Meyering  <meyering@redhat.com>
15089
15090         maint.mk: suppress "Entering/Leaving directory" diag in announcement
15091         * top/maint.mk (release-prep): Use make's --no-print-directory
15092         option when generating the announcement.  This eliminates the
15093         pesky "make[2]: Entering/Leaving directory" diagnostics in the
15094         generated announcement template.
15095
15096 2011-05-08  Bruno Haible  <bruno@clisp.org>
15097
15098         tzset: Fix gettimeofday wrapper on Solaris 2.6.
15099         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
15100         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
15101
15102 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15103
15104         ignore-value, verify: Omit include files from lib_SOURCES.
15105         * modules/ignore-value, modules/verify (Makefile.am):
15106         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
15107         that leads Automake to duplicate use of am__objects_... variables
15108         in Makefile.in.  See
15109         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
15110
15111 2011-05-07  Bruno Haible  <bruno@clisp.org>
15112
15113         fclose: Simplify autoconf macro.
15114         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
15115         defined.
15116
15117 2011-05-07  Bruno Haible  <bruno@clisp.org>
15118
15119         canonicalize-lgpl: Fix autoconf macro ordering bug.
15120         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
15121         gl_STDLIB_H_DEFAULTS.
15122
15123 2011-05-06  Eric Blake  <eblake@redhat.com>
15124
15125         maintainer-makefile: make sc_po_check easier to tune
15126         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
15127         to probe for strings, such as an alternate location for gnulib.
15128
15129         fclose: guarantee behavior on seekable stdin
15130         * modules/fclose (Depends-on): Add fflush.
15131         * doc/posix-functions/fclose.texi (fclose): Document this.
15132         * tests/test-fclose.c (main): Make test for this unconditional.
15133
15134 2011-05-06  Bruno Haible  <bruno@clisp.org>
15135
15136         fflush, fpurge: Relicense under LGPLv2+.
15137         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
15138         * modules/fpurge (License): Likewise.
15139         With permission from Eric Blake and Jim Meyering.
15140         Suggested by Eric Blake.
15141
15142 2011-05-06  Karl Berry  <karl@gnu.org>
15143
15144         * MODULES.html.sh (func_all_modules): remove exit.
15145
15146 2011-05-06  Jim Meyering  <meyering@redhat.com>
15147
15148         maint.mk: use info-gnu@ as the default only for a stable release
15149         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
15150         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
15151         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
15152         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
15153
15154 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15155
15156         assert-h: new module, which supports C1X-style static_assert
15157         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
15158         * lib/verify.h: Revamp so that this can be copied into assert.h,
15159         while retaining the ability to use it standalone as before.
15160         Rename private identifiers so as not to encroach on the
15161         standard C namespace, since this is now used by assert.h.
15162         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
15163         the old verify_true.
15164         (_GL_VERIFY_TRUE): New macro, with much of the contents of
15165         the old verify_true.  Use _GL_VERIFY_TYPE.
15166         (_GL_VERIFY): New macro, with much of the contents of the old verify.
15167         (static_assert): New macro, if _GL_STATIC_ASSERT_H
15168         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
15169         defined when this file is copied into the replacement assert.h.
15170         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
15171         and _Static_assert is not built in.
15172         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
15173         defined, and use the new macros mentioned above.
15174         * doc/posix-headers/assert.texi: Document this.
15175
15176 2011-05-05  Bruno Haible  <bruno@clisp.org>
15177
15178         fclose, fflush: Respect rules for use of AC_LIBOBJ.
15179         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
15180         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
15181         gl_REPLACE_FCLOSE here.
15182         * modules/fflush (Depends-on): Remove fclose.
15183         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
15184         combination with module 'fclose'.
15185
15186 2011-05-05  Bruno Haible  <bruno@clisp.org>
15187
15188         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
15189         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
15190         gl_FUNC_FFLUSH.
15191         (gl_FUNC_FFLUSH): Use it.
15192         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
15193         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
15194         gl_REPLACE_FSEEKO here.
15195
15196 2011-05-05  Bruno Haible  <bruno@clisp.org>
15197
15198         tzset: Relicense under LGPL.
15199         * modules/tzset (License): Change to LGPL.
15200         No agreement needed; it's a no-op.
15201
15202         strtoimax, strtoumax: Relicense under LGPL.
15203         * modules/strtoimax (License): Change to LGPL.
15204         * modules/strtoumax (License): Likewise.
15205         With permission from Jim Meyering, Paul Eggert:
15206         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
15207         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
15208
15209         getgroups: Relicense under LGPL.
15210         * modules/getgroups (License): Change to LGPL.
15211         With permission from Jim Meyering, Paul Eggert, Eric Blake:
15212         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15214         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15215
15216         nanosleep: Relicense under LGPL.
15217         * modules/nanosleep (License): Change to LGPL.
15218         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
15219         Haible:
15220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15222         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15224
15225         futimens: Relicense under LGPL.
15226         * modules/futimens (License): Change to LGPL.
15227         With permission from Eric Blake:
15228         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15229
15230         fflush: Relicense under LGPL.
15231         * modules/fflush (License): Change to LGPL.
15232         With permission from Eric Blake, Bruno Haible, Jim Meyering:
15233         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15234         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15235         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
15236
15237         tmpfile: Relicense under LGPL.
15238         * modules/tmpfile (License): Change to LGPL.
15239         With permission from Ben Pfaff:
15240         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15241
15242         isfinite: Relicense under LGPL.
15243         * modules/isfinite (License): Change to LGPL.
15244         With permission from Ben Pfaff, Bruno Haible:
15245         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
15247
15248         acosl..tanl: Relicense under LGPL.
15249         * modules/acosl (License): Change to LGPL.
15250         * modules/asinl (License): Likewise.
15251         * modules/atanl (License): Likewise.
15252         * modules/cosl (License): Likewise.
15253         * modules/expl (License): Likewise.
15254         * modules/logl (License): Likewise.
15255         * modules/sinl (License): Likewise.
15256         * modules/sqrtl (License): Likewise.
15257         * modules/tanl (License): Likewise.
15258         Source code originally from glibc and Paolo Bonzini. Agreements:
15259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
15260         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
15261
15262 2011-05-05  Bruno Haible  <bruno@clisp.org>
15263
15264         signal: Define sighandler_t.
15265         * lib/signal.in.h (sighandler_t): New type.
15266         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
15267         whether sighandler_t is defined.
15268         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
15269         * modules/signal (Depends-on): Add extensions.
15270         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
15271         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
15272         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
15273
15274 2011-05-05  Eric Blake  <eblake@redhat.com>
15275
15276         maint: remove useless REPLACE_*_H macros
15277         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
15278         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
15279         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
15280         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
15281         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
15282         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
15283         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
15284         * m4/btowc.m4: Update callers.
15285         * m4/dirfd.m4: Likewise.
15286         * m4/duplocale.m4: Likewise.
15287         * m4/fchdir.m4: Likewise.
15288         * m4/fdopendir.m4: Likewise.
15289         * m4/inet_ntop.m4: Likewise.
15290         * m4/inet_pton.m4: Likewise.
15291         * m4/ioctl.m4: Likewise.
15292         * m4/mbrlen.m4: Likewise.
15293         * m4/mbrtowc.m4: Likewise.
15294         * m4/mbsinit.m4: Likewise.
15295         * m4/mbsnrtowcs.m4: Likewise.
15296         * m4/mbsrtowcs.m4: Likewise.
15297         * m4/poll.m4: Likewise.
15298         * m4/setlocale.m4: Likewise.
15299         * m4/wcrtomb.m4: Likewise.
15300         * m4/wcsnrtombs.m4: Likewise.
15301         * m4/wcsrtombs.m4: Likewise.
15302         * m4/wctob.m4: Likewise.
15303         * m4/wcwidth.m4: Likewise.
15304         * modules/posix_spawn: Likewise.
15305         * modules/posix_spawn_file_actions_addclose: Likewise.
15306         * modules/posix_spawn_file_actions_adddup2: Likewise.
15307         * modules/posix_spawn_file_actions_addopen: Likewise.
15308         * modules/posix_spawn_file_actions_destroy: Likewise.
15309         * modules/posix_spawn_file_actions_init: Likewise.
15310         * modules/posix_spawnattr_destroy: Likewise.
15311         * modules/posix_spawnattr_getflags: Likewise.
15312         * modules/posix_spawnattr_getpgroup: Likewise.
15313         * modules/posix_spawnattr_getschedparam: Likewise.
15314         * modules/posix_spawnattr_getschedpolicy: Likewise.
15315         * modules/posix_spawnattr_getsigdefault: Likewise.
15316         * modules/posix_spawnattr_getsigmask: Likewise.
15317         * modules/posix_spawnattr_init: Likewise.
15318         * modules/posix_spawnattr_setflags: Likewise.
15319         * modules/posix_spawnattr_setpgroup: Likewise.
15320         * modules/posix_spawnattr_setschedparam: Likewise.
15321         * modules/posix_spawnattr_setschedpolicy: Likewise.
15322         * modules/posix_spawnattr_setsigdefault: Likewise.
15323         * modules/posix_spawnattr_setsigmask: Likewise.
15324         * modules/posix_spawnp: Likewise.
15325
15326 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
15327
15328         Add option to do-release-commit-and-tag to specify branch.
15329         * build-aux/do-release-commit-and-tag: Add --branch.
15330
15331 2011-05-03  Bruno Haible  <bruno@clisp.org>
15332
15333         Avoid unnecessary compilation units, through conditional dependencies.
15334         * modules/accept (Depends-on): Add conditions to the dependencies.
15335         * modules/acosl (Depends-on): Likewise.
15336         * modules/argz (Depends-on): Likewise.
15337         * modules/asinl (Depends-on): Likewise.
15338         * modules/atanl (Depends-on): Likewise.
15339         * modules/atoll (Depends-on): Likewise.
15340         * modules/bind (Depends-on): Likewise.
15341         * modules/btowc (Depends-on): Likewise.
15342         * modules/canonicalize-lgpl (Depends-on): Likewise.
15343         * modules/ceil (Depends-on): Likewise.
15344         * modules/ceilf (Depends-on): Likewise.
15345         * modules/ceill (Depends-on): Likewise.
15346         * modules/chdir-long (Depends-on): Likewise.
15347         * modules/chown (Depends-on): Likewise.
15348         * modules/close (Depends-on): Likewise.
15349         * modules/connect (Depends-on): Likewise.
15350         * modules/cosl (Depends-on): Likewise.
15351         * modules/dirfd (Depends-on): Likewise.
15352         * modules/dprintf (Depends-on): Likewise.
15353         * modules/dprintf-posix (Depends-on): Likewise.
15354         * modules/error (Depends-on): Likewise.
15355         * modules/euidaccess (Depends-on): Likewise.
15356         * modules/expl (Depends-on): Likewise.
15357         * modules/faccessat (Depends-on): Likewise.
15358         * modules/fchdir (Depends-on): Likewise.
15359         * modules/fclose (Depends-on): Likewise.
15360         * modules/fcntl (Depends-on): Likewise.
15361         * modules/fdopendir (Depends-on): Likewise.
15362         * modules/fflush (Depends-on): Likewise.
15363         * modules/floor (Depends-on): Likewise.
15364         * modules/floorf (Depends-on): Likewise.
15365         * modules/floorl (Depends-on): Likewise.
15366         * modules/fnmatch (Depends-on): Likewise.
15367         * modules/fopen (Depends-on): Likewise.
15368         * modules/fprintf-posix (Depends-on): Likewise.
15369         * modules/frexp (Depends-on): Likewise.
15370         * modules/frexp-nolibm (Depends-on): Likewise.
15371         * modules/frexpl (Depends-on): Likewise.
15372         * modules/frexpl-nolibm (Depends-on): Likewise.
15373         * modules/fseek (Depends-on): Likewise.
15374         * modules/fsusage (Depends-on): Likewise.
15375         * modules/ftell (Depends-on): Likewise.
15376         * modules/ftello (Depends-on): Likewise.
15377         * modules/futimens (Depends-on): Likewise.
15378         * modules/getcwd (Depends-on): Likewise.
15379         * modules/getcwd-lgpl (Depends-on): Likewise.
15380         * modules/getdelim (Depends-on): Likewise.
15381         * modules/getdomainname (Depends-on): Likewise.
15382         * modules/getgroups (Depends-on): Likewise.
15383         * modules/gethostname (Depends-on): Likewise.
15384         * modules/getline (Depends-on): Likewise.
15385         * modules/getlogin_r (Depends-on): Likewise.
15386         * modules/getopt-posix (Depends-on): Likewise.
15387         * modules/getpeername (Depends-on): Likewise.
15388         * modules/getsockname (Depends-on): Likewise.
15389         * modules/getsockopt (Depends-on): Likewise.
15390         * modules/getsubopt (Depends-on): Likewise.
15391         * modules/getusershell (Depends-on): Likewise.
15392         * modules/glob (Depends-on): Likewise.
15393         * modules/grantpt (Depends-on): Likewise.
15394         * modules/iconv_open (Depends-on): Likewise.
15395         * modules/iconv_open-utf (Depends-on): Likewise.
15396         * modules/inet_ntop (Depends-on): Likewise.
15397         * modules/inet_pton (Depends-on): Likewise.
15398         * modules/ioctl (Depends-on): Likewise.
15399         * modules/isapipe (Depends-on): Likewise.
15400         * modules/isfinite (Depends-on): Likewise.
15401         * modules/isinf (Depends-on): Likewise.
15402         * modules/lchown (Depends-on): Likewise.
15403         * modules/ldexpl (Depends-on): Likewise.
15404         * modules/link (Depends-on): Likewise.
15405         * modules/linkat (Depends-on): Likewise.
15406         * modules/listen (Depends-on): Likewise.
15407         * modules/logl (Depends-on): Likewise.
15408         * modules/lstat (Depends-on): Likewise.
15409         * modules/mbrlen (Depends-on): Likewise.
15410         * modules/mbrtowc (Depends-on): Likewise.
15411         * modules/mbsinit (Depends-on): Likewise.
15412         * modules/mbsnrtowcs (Depends-on): Likewise.
15413         * modules/mbsrtowcs (Depends-on): Likewise.
15414         * modules/mbtowc (Depends-on): Likewise.
15415         * modules/memcmp (Depends-on): Likewise.
15416         * modules/mkdir (Depends-on): Likewise.
15417         * modules/mkdtemp (Depends-on): Likewise.
15418         * modules/mkfifo (Depends-on): Likewise.
15419         * modules/mkfifoat (Depends-on): Likewise.
15420         * modules/mknod (Depends-on): Likewise.
15421         * modules/mkostemp (Depends-on): Likewise.
15422         * modules/mkostemps (Depends-on): Likewise.
15423         * modules/mkstemp (Depends-on): Likewise.
15424         * modules/mkstemps (Depends-on): Likewise.
15425         * modules/mktime (Depends-on): Likewise.
15426         * modules/nanosleep (Depends-on): Likewise.
15427         * modules/open (Depends-on): Likewise.
15428         * modules/openat (Depends-on): Likewise.
15429         * modules/perror (Depends-on): Likewise.
15430         * modules/poll (Depends-on): Likewise.
15431         * modules/popen (Depends-on): Likewise.
15432         * modules/posix_spawn (Depends-on): Likewise.
15433         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
15434         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
15435         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
15436         * modules/posix_spawnp (Depends-on): Likewise.
15437         * modules/pread (Depends-on): Likewise.
15438         * modules/printf-posix (Depends-on): Likewise.
15439         * modules/ptsname (Depends-on): Likewise.
15440         * modules/putenv (Depends-on): Likewise.
15441         * modules/pwrite (Depends-on): Likewise.
15442         * modules/readline (Depends-on): Likewise.
15443         * modules/readlink (Depends-on): Likewise.
15444         * modules/readlinkat (Depends-on): Likewise.
15445         * modules/recv (Depends-on): Likewise.
15446         * modules/recvfrom (Depends-on): Likewise.
15447         * modules/regex (Depends-on): Likewise.
15448         * modules/remove (Depends-on): Likewise.
15449         * modules/rename (Depends-on): Likewise.
15450         * modules/renameat (Depends-on): Likewise.
15451         * modules/rmdir (Depends-on): Likewise.
15452         * modules/round (Depends-on): Likewise.
15453         * modules/roundf (Depends-on): Likewise.
15454         * modules/roundl (Depends-on): Likewise.
15455         * modules/rpmatch (Depends-on): Likewise.
15456         * modules/select (Depends-on): Likewise.
15457         * modules/send (Depends-on): Likewise.
15458         * modules/sendto (Depends-on): Likewise.
15459         * modules/setenv (Depends-on): Likewise.
15460         * modules/setlocale (Depends-on): Likewise.
15461         * modules/setsockopt (Depends-on): Likewise.
15462         * modules/shutdown (Depends-on): Likewise.
15463         * modules/sigaction (Depends-on): Likewise.
15464         * modules/signbit (Depends-on): Likewise.
15465         * modules/sigprocmask (Depends-on): Likewise.
15466         * modules/sinl (Depends-on): Likewise.
15467         * modules/sleep (Depends-on): Likewise.
15468         * modules/snprintf (Depends-on): Likewise.
15469         * modules/snprintf-posix (Depends-on): Likewise.
15470         * modules/socket (Depends-on): Likewise.
15471         * modules/sprintf-posix (Depends-on): Likewise.
15472         * modules/sqrtl (Depends-on): Likewise.
15473         * modules/stat (Depends-on): Likewise.
15474         * modules/strchrnul (Depends-on): Likewise.
15475         * modules/strdup-posix (Depends-on): Likewise.
15476         * modules/strerror (Depends-on): Likewise.
15477         * modules/strerror_r-posix (Depends-on): Likewise.
15478         * modules/strndup (Depends-on): Likewise.
15479         * modules/strnlen (Depends-on): Likewise.
15480         * modules/strptime (Depends-on): Likewise.
15481         * modules/strsep (Depends-on): Likewise.
15482         * modules/strsignal (Depends-on): Likewise.
15483         * modules/strstr-simple (Depends-on): Likewise.
15484         * modules/strtod (Depends-on): Likewise.
15485         * modules/strtoimax (Depends-on): Likewise.
15486         * modules/strtok_r (Depends-on): Likewise.
15487         * modules/strtoumax (Depends-on): Likewise.
15488         * modules/symlink (Depends-on): Likewise.
15489         * modules/symlinkat (Depends-on): Likewise.
15490         * modules/tanl (Depends-on): Likewise.
15491         * modules/tcgetsid (Depends-on): Likewise.
15492         * modules/tmpfile (Depends-on): Likewise.
15493         * modules/trunc (Depends-on): Likewise.
15494         * modules/truncf (Depends-on): Likewise.
15495         * modules/truncl (Depends-on): Likewise.
15496         * modules/uname (Depends-on): Likewise.
15497         * modules/unlink (Depends-on): Likewise.
15498         * modules/unlockpt (Depends-on): Likewise.
15499         * modules/unsetenv (Depends-on): Likewise.
15500         * modules/usleep (Depends-on): Likewise.
15501         * modules/utimensat (Depends-on): Likewise.
15502         * modules/vasprintf (Depends-on): Likewise.
15503         * modules/vdprintf (Depends-on): Likewise.
15504         * modules/vdprintf-posix (Depends-on): Likewise.
15505         * modules/vfprintf-posix (Depends-on): Likewise.
15506         * modules/vprintf-posix (Depends-on): Likewise.
15507         * modules/vsnprintf (Depends-on): Likewise.
15508         * modules/vsnprintf-posix (Depends-on): Likewise.
15509         * modules/vsprintf-posix (Depends-on): Likewise.
15510         * modules/wcrtomb (Depends-on): Likewise.
15511         * modules/wcscasecmp (Depends-on): Likewise.
15512         * modules/wcscspn (Depends-on): Likewise.
15513         * modules/wcsdup (Depends-on): Likewise.
15514         * modules/wcsncasecmp (Depends-on): Likewise.
15515         * modules/wcsnrtombs (Depends-on): Likewise.
15516         * modules/wcspbrk (Depends-on): Likewise.
15517         * modules/wcsrtombs (Depends-on): Likewise.
15518         * modules/wcsspn (Depends-on): Likewise.
15519         * modules/wcsstr (Depends-on): Likewise.
15520         * modules/wcstok (Depends-on): Likewise.
15521         * modules/wcswidth (Depends-on): Likewise.
15522         * modules/wctob (Depends-on): Likewise.
15523         * modules/wctomb (Depends-on): Likewise.
15524         * modules/wctype (Depends-on): Likewise.
15525         * modules/wcwidth (Depends-on): Likewise.
15526         * modules/write (Depends-on): Likewise.
15527
15528 2011-05-03  Bruno Haible  <bruno@clisp.org>
15529
15530         Support for conditional dependencies.
15531         * doc/gnulib.texi (Module description): Document the syntax of
15532         conditional dependencies.
15533         * gnulib-tool: New option --conditional-dependencies.
15534         (func_usage): Document it.
15535         (cond_dependencies): New variable.
15536         (func_get_automake_snippet_conditional,
15537         func_get_automake_snippet_unconditional): New functions, extracted from
15538         func_get_automake_snippet.
15539         (func_get_automake_snippet): Use them.
15540         (sed_first_32_chars): New variable.
15541         (func_module_shellfunc_name): New function.
15542         (func_module_shellvar_name): New function.
15543         (func_module_conditional_name): New function.
15544         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
15545         func_cond_module_condition): New functions.
15546         (func_modules_transitive_closure): Add support for conditional
15547         dependencies.
15548         (func_emit_lib_Makefile_am): For a conditional module, enclose the
15549         conditional automake snippet in an automake conditional.
15550         (func_emit_autoconf_snippets): Emit shell functions that contain the
15551         code for conditional modules.
15552         (func_import, func_create_testdir): Update specification.
15553
15554 2011-05-03  Eric Blake  <eblake@redhat.com>
15555
15556         test-getaddrinfo: report error information
15557         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
15558
15559 2011-05-03  Jim Meyering  <meyering@redhat.com>
15560
15561         bootstrap: avoid build failure when $GZIP is set
15562         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
15563         program name.  If defined at all, it is supposed to list gzip options.
15564         Reported by Alan Curry in http://debbugs.gnu.org/8609
15565
15566 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
15567
15568         readme-release: new module with release instructions
15569         * modules/readme-release: New module.
15570         * top/README-release: New file, from coreutils, grep, diffutils.
15571         * MODULES.html.sh (Support for maintaining and releasing): Add it.
15572
15573 2011-05-02  Eric Blake  <eblake@redhat.com>
15574
15575         fflush: also replace fclose when fixing fflush
15576         * modules/fflush (Depends-on): Add fclose.
15577         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
15578         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
15579         memstreams with no backing fd.
15580         * doc/posix-functions/fclose.texi (fclose): Document the use of
15581         fflush module to fix the bug.
15582         * tests/test-fclose.c (main): Relax test when fclose is used in
15583         isolation.
15584
15585         fclose: add some tests
15586         * modules/fclose-tests: New test module.
15587         * tests/test-fclose.c: New file.
15588         * doc/posix-functions/fclose.texi (fclose): Document the bug.
15589
15590         fclose: reduced dependencies
15591         * modules/fclose (Depends-on): Switch from fflush/fseeko to
15592         simpler lseek.
15593         * lib/fclose.c (rpl_fclose): Likewise.
15594         Reported by Simon Josefsson.
15595
15596         exit: drop remaining clients
15597         * modules/argmatch (Depends-on): Replace exit with stdlib.
15598         * modules/copy-file (Depends-on): Likewise.
15599         * modules/execute (Depends-on): Likewise.
15600         * modules/exitfail (Depends-on): Likewise.
15601         * modules/obstack (Depends-on): Likewise.
15602         * modules/pagealign_alloc (Depends-on): Likewise.
15603         * modules/pipe-filter-gi (Depends-on): Likewise.
15604         * modules/pipe-filter-ii (Depends-on): Likewise.
15605         * modules/savewd (Depends-on): Likewise.
15606         * modules/spawn-pipe (Depends-on): Likewise.
15607         * modules/wait-process (Depends-on): Likewise.
15608         * modules/xsetenv (Depends-on): Likewise.
15609         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
15610         * modules/git-merge-changelog (Depends-on): Likewise.
15611         * modules/long-options (Depends-on): Likewise.
15612         * modules/pt_chown (Depends-on): Likewise.
15613         * modules/sysexits (Depends-on): Likewise.
15614
15615         freading: relax license from LGPLv3+ to LGPLv2+
15616         * modules/freading (License): Relax LGPL version.
15617
15618 2011-05-02  Bruno Haible  <bruno@clisp.org>
15619
15620         fchdir: Remove unused dependencies.
15621         * modules/fchdir (Depends-on): Remove include_next.
15622
15623 2011-05-02  Bruno Haible  <bruno@clisp.org>
15624
15625         gnulib-tool: Refactor.
15626         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
15627         from func_emit_autoconf_snippets.
15628         (func_emit_autoconf_snippets): Use it.
15629
15630 2011-05-02  Simon Josefsson  <simon@josefsson.org>
15631
15632         * NEWS: Document removal of 'exit'.
15633         * modules/exit: Remove file.
15634
15635 2011-05-01  Bruno Haible  <bruno@clisp.org>
15636
15637         Update DEPENDENCIES.
15638         * DEPENDENCIES (gettext): Recommend the newest release.
15639         Reported by Simon Josefsson.
15640
15641 2011-05-01  Bruno Haible  <bruno@clisp.org>
15642
15643         gnulib-tool: Reduce code duplication.
15644         * gnulib-tool (func_emit_autoconf_snippets): New function.
15645         (func_import, func_create_testdir): Use it.
15646
15647 2011-04-30  Eric Blake  <eblake@redhat.com>
15648
15649         fclose: don't fail on non-seekable input stream
15650         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
15651         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
15652         since fflush is allowed to fail in that case.
15653
15654 2011-04-30  Bruno Haible  <bruno@clisp.org>
15655
15656         dup3: cleanup
15657         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
15658
15659 2011-04-30  Bruno Haible  <bruno@clisp.org>
15660
15661         netdb: Make it work in C++ mode.
15662         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
15663         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
15664         module.
15665         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
15666         gl_MODULE_INDICATOR_FOR_TESTS.
15667         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
15668         * modules/netdb-c++-tests: New file.
15669         * tests/test-netdb-c++.cc: New file.
15670
15671 2011-04-30  Bruno Haible  <bruno@clisp.org>
15672
15673         New modules 'vfscanf', 'vscanf'.
15674         * modules/vfscanf: New file.
15675         * modules/vscanf: New file.
15676         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
15677         here.
15678         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
15679         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
15680
15681 2011-04-30  Bruno Haible  <bruno@clisp.org>
15682
15683         passfd: Add comments.
15684         * lib/passfd.c: Add comments about platforms.
15685
15686 2011-04-30  Bruno Haible  <bruno@clisp.org>
15687
15688         sys_uio: Make <sys/uio.h> self-contained.
15689         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
15690         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
15691
15692 2011-04-30  Bruno Haible  <bruno@clisp.org>
15693
15694         sys_socket: Ensure 'struct iovec' definition.
15695         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
15696         <sys/socket.h>.
15697         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
15698
15699 2011-04-30  Bruno Haible  <bruno@clisp.org>
15700
15701         sys_uio: Protect definition of 'struct iovec'.
15702         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
15703         it as a C struct.
15704
15705 2011-04-30  Bruno Haible  <bruno@clisp.org>
15706
15707         manywarnings: fix indentation
15708         * m4/manywarnings.m4: Indent by 2 spaces consistently.
15709
15710 2011-04-30  Pádraig Brady <P@draigBrady.com>
15711
15712         manywarnings: add -Wno-missing-field-initializers if needed.
15713         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
15714         option if it's needed to allow initialization with { 0, }
15715
15716 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
15717
15718         announce-gen: cosmetic improvement
15719         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
15720
15721 2011-04-29  Jim Meyering  <meyering@redhat.com>
15722
15723         vc-list-files: indent with spaces, not TABs
15724         * build-aux/vc-list-files: Convert leading TABs to spaces,
15725         to match the style of most other files in gnulib.
15726
15727         announce-gen: indent with spaces, not TABs
15728         * build-aux/announce-gen: Convert all TABs to spaces, to match
15729         the style of most other files in gnulib.
15730
15731 2011-04-29  Eric Blake  <eblake@redhat.com>
15732
15733         quotearg: avoid uninitialized variable use
15734         * lib/quotearg.c (quoting_options_from_style): Initialize
15735         remaining fields, and ensure that custom styles are only used via
15736         quoting_options rather than quoting_style.
15737
15738 2011-04-29  Jim Meyering  <meyering@redhat.com>
15739
15740         maint.mk: remove unused VC-tag variable
15741         * top/maint.mk (VC-tag): Remove unused variable.
15742
15743 2011-04-29  Bruno Haible  <bruno@clisp.org>
15744
15745         netdb: fix gai_strerror replacements
15746         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
15747         * modules/netdb: Substitute it.
15748
15749 2011-04-29  Jim Meyering  <meyering@redhat.com>
15750
15751         test-getcwd.c: avoid new set-but-not-used warning
15752         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
15753         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
15754         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
15755         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
15756
15757         test-hash.c: avoid a new shadowing warning
15758         * tests/test-hash.c (main): Don't shadow "dup".
15759
15760 2011-04-28  Eric Blake  <eblake@redhat.com>
15761
15762         getaddrinfo: fix gai_strerror signature
15763         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
15764         and work around mingw with UNICODE defined.
15765         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
15766         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
15767         * modules/netdb (Makefile.am): Substitute it.
15768         * lib/netdb.in.h (gai_strerror): Declare replacement.
15769         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
15770         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
15771         the fix.
15772
15773         getsockopt: avoid compiler warning
15774         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
15775         Reported by Matthias Bolte.
15776
15777         tests: drop unused link dependency
15778         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
15779         * modules/dirent-safer-tests (Makefile.am): Likewise.
15780         * modules/fdopendir-tests (Makefile.am): Likewise.
15781         * modules/mkfifoat-tests (Makefile.am): Likewise.
15782         * modules/openat-safer-tests (Makefile.am): Likewise.
15783         * modules/openat-tests (Makefile.am): Likewise.
15784         * modules/readlinkat-tests (Makefile.am): Likewise.
15785         * modules/symlinkat-tests (Makefile.am): Likewise.
15786         * modules/linkat-tests (Makefile.am): Likewise.
15787         (Depends-on): Switch to filenamecat-lgpl.
15788         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
15789         LIBINTL.
15790         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
15791         * tests/test-linkat.c (main): Don't require xalloc.
15792
15793         hash, mgetgroups: drop xalloc dependency
15794         * lib/hash.c (includes): Adjust includes.
15795         * lib/mgetgroups.c (includes): Likewise.
15796         (xgetgroups): Move...
15797         * lib/xgetgroups.c: ...to new file.
15798         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
15799         * modules/xgetgroups: New file, split from...
15800         * modules/mgetgroups: ...here.
15801         (Depends-on): Add xalloc-oversized.
15802         * modules/hash (Depends-on): Likewise.
15803         * modules/hash-tests (Depends-on): Drop xalloc.
15804         (test_hash_LDADD): Drop unused library.
15805         * tests/test-hash.c (main): Break xalloc dependency.
15806         (includes): Drop unused include.
15807
15808         xalloc-oversized: new module
15809         * modules/xalloc-oversized: New module.
15810         * modules/xalloc (Depends-on): Add it.
15811         * lib/xalloc.h (xalloc_oversized): Move...
15812         * lib/xalloc-oversized.h: ...into new file.
15813
15814         utimecmp: drop dependency on xmalloc
15815         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
15816         due to memory pressure.
15817         * modules/utimecmp (Depends-on): Drop xalloc.
15818
15819 2011-04-27  Eric Blake  <eblake@redhat.com>
15820
15821         getcwd: fix mingw bugs
15822         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
15823         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
15824         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
15825
15826 2011-04-27  Bruno Haible  <bruno@clisp.org>
15827
15828         mkstemps: Ensure declaration on MacOS X 10.5.
15829         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
15830         * doc/glibc-functions/mkstemps.texi: Document header file problem on
15831         MacOS X.
15832
15833 2011-04-27  Bruno Haible  <bruno@clisp.org>
15834
15835         mkstemp: More documentation.
15836         * doc/posix-functions/mkstemp.texi: Document header file problem on
15837         MacOS X.
15838
15839 2011-04-27  Bruno Haible  <bruno@clisp.org>
15840
15841         mkstemp: Tweak configure message when cross-compiling.
15842         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
15843         result as a guess.
15844
15845 2011-04-27  Bruno Haible  <bruno@clisp.org>
15846
15847         clean-temp: Clarify what it does.
15848         * lib/clean-temp.h: Add more comments.
15849         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
15850         module.
15851         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
15852         * doc/glibc-functions/mkstemps.texi: Likewise.
15853         * doc/glibc-functions/mkostemps.texi: Likewise.
15854
15855 2011-04-27  Eric Blake  <eblake@redhat.com>
15856
15857         fchdir: avoid extra chdir and fix test
15858         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
15859         getcwd-lgpl.
15860         * lib/fchdir.c (get_name): Any absolute name will do; it does not
15861         have to be canonical.
15862         (canonicalize_file_name): Drop unused macro.
15863         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
15864
15865         filenamecat-lgpl: fix licence
15866         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
15867         when it was first created.
15868
15869         linkat, renameat: add missing dependency
15870         * modules/linkat (Depends-on): Require getcwd-lgpl.
15871         * modules/renameat (Depends-on): Likewise.
15872
15873         tests: reduce dependencies
15874         * tests/test-linkat.c (main): Use lighter-weight getcwd.
15875         * tests/test-renameat.c (main): Likewise.
15876         * modules/linkat-tests (Depends-on): Relax dependency.
15877         * modules/renameat-tests (Depends-on): Likewise.
15878         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
15879         dependency explicit.
15880
15881         save-cwd: reduce default dependency
15882         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
15883         * lib/save-cwd.c: Update comments.
15884         * NEWS: Document the semantic change.
15885
15886         getcwd: enhance tests
15887         * tests/test-getcwd-lgpl.c: New file, taken from...
15888         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
15889         repeat long path stress tests from m4 probe.
15890         * modules/getcwd-lgpl-tests: New module.
15891         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
15892         * m4/getcwd-abort-bug.m4: Update comment.
15893         * m4/getcwd-path-max.m4: Likewise.
15894
15895         getcwd-lgpl: new module
15896         * modules/getcwd-lgpl: New module.
15897         * lib/getcwd-lgpl.c: New file.
15898         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15899         * MODULES.html.sh (lacking POSIX:2008): Likewise.
15900         * modules/getcwd (configure.ac): Set C witness.
15901         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
15902
15903         getcwd: tweak comments
15904         * m4/getcwd-abort-bug.m4: Fix comments.
15905         * m4/getcwd-path-max.m4: Likewise.
15906         * m4/getcwd.m4: Likewise.
15907
15908 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
15909         and Eric Blake  <eblake@redhat.com>
15910
15911         mkstemp: replace if system version uses wrong permissions
15912         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
15913         read/write mode bits set in file created by mkstemp.
15914         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
15915
15916 2011-04-27  Eric Blake  <eblake@redhat.com>
15917
15918         passfd: avoid compiler warning
15919         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
15920         Reported by Laine Stump.
15921
15922 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
15923
15924         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
15925         required by the NetBSD (and perhaps other 4.4BSD derived) join.
15926
15927 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
15928         and Eric Blake  <eblake@redhat.com>
15929
15930         mkstemp: mention clean-temp module
15931         * lib/mkstemp.c: Add comment.
15932         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
15933
15934 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
15935
15936         inttypes: also provide default values for 32-bit tests
15937         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
15938         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
15939
15940 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
15941
15942         strtoumax: remove dependency on strtoimax
15943         This is like the strtoull change of yesterday.
15944         * modules/strtoumax (Files): Add lib/strtoimax.c.
15945         (Depends-on): Remove strtoimax and add verify.
15946
15947         inttypes-incomplete: new module
15948         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
15949         all but the PRI* and SCN* parts of gl_INTTYPES_H.
15950         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
15951         of gl_INTTYPES_H.
15952         (gl_INTTYPES_H): Rewrite in terms of these new macros.
15953         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
15954         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
15955         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
15956         * modules/strtoumax, modules/xstrtol (Depends-on):
15957         Depend on inttypes-incomplete, not inttypes.
15958         * modules/inttypes-incomplete: New module, containing the contents
15959         of the old modules/inttypes module, except that the Files: section
15960         omits m4/inttypes-pri.m4, and the configure.ac section invokes
15961         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
15962         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
15963         (Depends-on): Depend only on inttypes-incomplete.
15964         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
15965
15966         inttypes: omit now-redundant strtoimax and strtoumax work
15967         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
15968         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
15969
15970         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
15971         This supports apps that need pointers to strtoimax and strtoumax,
15972         and ports to HP-UX 11.00 64.bit, which has macros that expand to
15973         nonexistent functions.  See
15974         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
15975         et seq.
15976         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
15977         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
15978         a macro.
15979         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15980
15981 2011-04-25  Simon Josefsson  <simon@josefsson.org>
15982
15983         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
15984
15985 2011-04-25  Bruno Haible  <bruno@clisp.org>
15986
15987         strtol, strtoul: Mark modules as obsolete.
15988         * modules/strtol (Status, Notice): New sections.
15989         * modules/strtoul (Status, Notice): New sections.
15990
15991 2011-04-25  Bruno Haible  <bruno@clisp.org>
15992
15993         strtod: Remove check for strtod, unless supporting old platforms.
15994         * modules/strtod-obsolete: New file.
15995         * m4/strtod-obsolete.m4: New file.
15996         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
15997         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
15998         * modules/strtod (Depends-on): Add strtod-obsolete.
15999         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16000
16001 2011-04-25  Bruno Haible  <bruno@clisp.org>
16002
16003         strcase: Make module obsolete.
16004         * modules/strcase (Status, Notice): New sections.
16005
16006 2011-04-25  Bruno Haible  <bruno@clisp.org>
16007
16008         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16009         * modules/dup2-obsolete: New file.
16010         * m4/dup2-obsolete.m4: New file.
16011         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
16012         gl_FUNC_DUP2_OBSOLETE is not also defined.
16013         * modules/dup2 (Depends-on): Add dup2-obsolete.
16014         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
16015
16016 2011-04-25  Bruno Haible  <bruno@clisp.org>
16017
16018         strnlen: Avoid memchr related link error on old obsolete platforms.
16019         * modules/memchr-obsolete: New file.
16020         * m4/memchr-obsolete.m4: New file.
16021         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
16022         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
16023         * modules/memchr (Depends-on): Add memchr-obsolete.
16024         * modules/strnlen (Depends-on): Likewise.
16025         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
16026
16027 2011-04-25  Jim Meyering  <meyering@redhat.com>
16028
16029         maint.mk: makefile_at_at_check extend and clean up
16030         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
16031         in addition to */Makefile.am.
16032         Exempt legitimate uses of @VAR@ notation, e.g.,
16033         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
16034         Remove obsolete coreutils-specific comment.
16035         Prompted by discussion here:
16036         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
16037
16038 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16039
16040         strtoul: remove dependency on strtol
16041         This is so that 'configure' need not check for strtol merely because
16042         the application needs strtoul.
16043         * modules/strtoul (Files): Add lib/strtol.c.
16044         (Depends-on): Remove strtol.
16045
16046         strtoull: remove dependency on strtoul
16047         This is like the strtoll change.
16048         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
16049         (Depends-on): Remove strtoul.
16050
16051         strtoll: remove dependency on strtol
16052         This is so that 'configure' need not check for strtol merely because
16053         the application needs strtoll.
16054         * modules/strtoll (Files): Add lib/strtol.c.
16055         (Depends-on): Remove strtol.
16056
16057 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16058
16059         inttypes: Move some configure check to module 'imaxdiv'.
16060         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
16061         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
16062         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
16063
16064 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16065
16066         inttypes: Move some configure check to module 'imaxabs'.
16067         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
16068         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
16069         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
16070
16071 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16072
16073         inttypes: Remove configure tests that are not needed since 2009-12-31.
16074         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
16075         gl_cv_header_working_inttypes_h.
16076
16077 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16078
16079         * modules/strnlen (Depends-on): Remove memchr.
16080         The strnlen implementation doesn't need the memchr module's fixes; see
16081         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
16082
16083         strtol: remove dependency on wchar
16084         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
16085         * modules/strtol (Depends-on): Remove wchar.
16086
16087 2011-04-21  Eric Blake  <eblake@redhat.com>
16088
16089         passfd: fix test regression on Linux
16090         * modules/passfd-tests (configure.ac): Correct socketpair check.
16091
16092         passfd: speed up configure and drop unused code
16093         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
16094         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
16095         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
16096         Instead of probing at configure for unix_scm_rights_bsd44_way,
16097         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
16098         check to a struct member probe.
16099         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
16100         (sendfd, recvfd): Update preprocessor checks.
16101         * modules/passfd (Files): Reflect rename, and drop unused file.
16102         (Depends-on): Drop unused dependency.
16103
16104         passfd: allow compilation on mingw
16105         * modules/sys_socket (Depends-on): Add sys_uio.
16106         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
16107         iovec and a minimal struct msghdr.
16108         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
16109         * tests/test-sys_socket.c (main): Enhance test.
16110         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
16111         guaranteed to provide what we need.
16112         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
16113         * modules/passfd-tests (Depends-on): Add sys_wait.
16114         * tests/test-passfd.c (main): Skip test on mingw, for now.
16115         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
16116         partial 'struct msghdr' implementation.
16117
16118         sys_uio: new module
16119         * modules/sys_uio: New module.
16120         * modules/sys_uio-tests: Likewise.
16121         * lib/sys_uio.in.h: New file.
16122         * m4/sys_uio_h.m4: Likewise.
16123         * tests/test-sys_uio.c: Likewise.
16124         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
16125         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
16126
16127 2011-04-20  Jim Meyering  <meyering@redhat.com>
16128
16129         useless-if-before-free: avoid false-positive
16130         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
16131         disjunct so that it too requires a terminating ";".  Without that,
16132         this script would identify as useless one statement from gcc that
16133         was not:
16134           if (aligned_ptr)
16135             free (((void **) aligned_ptr) [-1]);
16136
16137 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
16138
16139         doc: update users.txt.
16140         * users.txt: Add barcode.
16141
16142 2011-04-19  Bruno Haible  <bruno@clisp.org>
16143
16144         ioctl: Remove link dependency on native Windows.
16145         * lib/fd-hook.h: Renamed from lib/close-hook.h.
16146         (gl_close_fn, gl_ioctl_fn): New types.
16147         (struct fd_hook): Renamed from struct close_hook. Change type of
16148         private_close_fn field. Add private_ioctl_fn field.
16149         (close_hook_fn): Add parameter for primary close method.
16150         (execute_close_hooks, execute_all_close_hooks): Likewise.
16151         (ioctl_hook_fn): New type.
16152         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
16153         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16154         argument.
16155         (unregister_fd_hook): Renamed from unregister_close_hook.
16156         * lib/fd-hook.c: Renamed from lib/close-hook.c.
16157         Don't include <unistd.h>.
16158         (close): Remove undef.
16159         (anchor): Update.
16160         (execute_close_hooks): Add argument for primary close method.
16161         (execute_all_close_hooks): Likewise.
16162         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
16163         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16164         argument. Allow each argument to be NULL.
16165         (unregister_fd_hook): Renamed from unregister_close_hook.
16166         * lib/close.c (rpl_close): Pass 'close' function pointer to
16167         execute_all_close_hooks.
16168         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
16169         (primary_ioctl): New function.
16170         (ioctl): Don't call ioctlsocket here. Instead, call
16171         execute_all_ioctl_hooks.
16172         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
16173         close method.
16174         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
16175         (fd_sockets_hook): Renamed from close_sockets_hook.
16176         (gl_sockets_startup, gl_sockets_cleanup): Update.
16177         * modules/fd-hook: Renamed from modules/close-hook. Update.
16178         * modules/close (Depends-on): Add fd-hook, remove close-hook.
16179         * modules/sockets (Depends-on): Likewise.
16180         * modules/ioctl (Depends-on): Add fd-hook.
16181         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
16182         GNULIB_SOCKET.
16183
16184 2011-04-19  Bruno Haible  <bruno@clisp.org>
16185
16186         Move the support of O_NONBLOCK in open() to the 'open' module.
16187         * modules/nonblocking (Depends-on): Remove 'open'.
16188         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
16189         gl_cv_have_open_O_NONBLOCK.
16190         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
16191         O_NONBLOCK support.
16192         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
16193
16194 2011-04-17  Bruno Haible  <bruno@clisp.org>
16195
16196         pipe2: Simplify code.
16197         * lib/pipe2.c (pipe2): Reduce code duplication.
16198
16199 2011-04-17  Bruno Haible  <bruno@clisp.org>
16200
16201         nonblocking: Add comment.
16202         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
16203
16204 2011-04-17  Bruno Haible  <bruno@clisp.org>
16205
16206         nonblocking: Add tests for sockets.
16207         * tests/test-nonblocking-socket.sh: New file.
16208         * tests/test-nonblocking-socket-main.c: New file.
16209         * tests/test-nonblocking-socket-child.c: New file.
16210         * tests/test-nonblocking-socket.h: New file.
16211         * tests/socket-server.h: New file.
16212         * tests/socket-client.h: New file.
16213         * modules/nonblocking-socket-tests: New file.
16214         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
16215
16216 2011-04-17  Bruno Haible  <bruno@clisp.org>
16217
16218         nonblocking: Add tests for pipes.
16219         * tests/test-nonblocking-pipe.sh: New file.
16220         * tests/test-nonblocking-pipe-main.c: New file.
16221         * tests/test-nonblocking-pipe-child.c: New file.
16222         * tests/test-nonblocking-pipe.h: New file.
16223         * tests/test-nonblocking-writer.h: New file.
16224         * tests/test-nonblocking-reader.h: New file.
16225         * tests/test-nonblocking-misc.h: New file.
16226         * modules/nonblocking-pipe-tests: New file.
16227         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
16228
16229 2011-04-16  Bruno Haible  <bruno@clisp.org>
16230
16231         gettext: Clarify the needed programmer actions.
16232         * modules/gettext (Notice): New field.
16233         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
16234
16235 2011-04-16  Bruno Haible  <bruno@clisp.org>
16236
16237         strchrnul: Tweak last commit.
16238         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
16239         bug.
16240         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
16241         as in _GL_FUNCDECL_SYS.
16242         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
16243         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
16244
16245 2011-04-15  Eric Blake  <eblake@redhat.com>
16246
16247         strchrnul: work around cygwin bug
16248         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
16249         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
16250         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
16251         * modules/string (Makefile.am): Substitute it.
16252         * lib/string.in.h (strchrnul): Use it.
16253
16254 2011-04-15  Bruno Haible  <bruno@clisp.org>
16255
16256         Don't require lib/stdio-write.c when only module 'stdio' is used.
16257         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
16258         invocation.
16259         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
16260
16261 2011-04-14  Bruno Haible  <bruno@clisp.org>
16262
16263         Support non-blocking pipe I/O in read() on native Windows.
16264         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
16265         (read): New declaration.
16266         * lib/read.c: New file.
16267         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
16268         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
16269         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
16270         vscanf): New declarations.
16271         * lib/stdio-read.c: New file.
16272         * m4/read.m4: New file.
16273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
16274         REPLACE_READ.
16275         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
16276         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16277         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
16278         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
16279         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
16280         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16281         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16282         * modules/read: New file.
16283         * modules/nonblocking (Files): Add lib/stdio-read.c.
16284         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
16285         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
16286         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16287         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16288         * modules/pread (Depends-on): Add read.
16289         * modules/safe-read (Depends-on): Likewise.
16290         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
16291         gets, scanf, vfscanf, vscanf): Verify signatures.
16292         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
16293         problem with non-blocking pipes.
16294         * doc/posix-functions/fgetc.texi: Likewise.
16295         * doc/posix-functions/fgets.texi: Likewise.
16296         * doc/posix-functions/fread.texi: Likewise.
16297         * doc/posix-functions/fscanf.texi: Likewise.
16298         * doc/posix-functions/getc.texi: Likewise.
16299         * doc/posix-functions/getchar.texi: Likewise.
16300         * doc/posix-functions/gets.texi: Likewise.
16301         * doc/posix-functions/scanf.texi: Likewise.
16302         * doc/posix-functions/vfscanf.texi: Likewise.
16303         * doc/posix-functions/vscanf.texi: Likewise.
16304
16305 2011-04-14  Bruno Haible  <bruno@clisp.org>
16306
16307         Support non-blocking pipe I/O in write() on native Windows.
16308         * lib/write.c (rpl_write): Split a write request that failed merely
16309         because the byte count was larger than the pipe buffer's size.
16310         * doc/posix-functions/write.texi: Mention the problem with large byte
16311         counts.
16312
16313 2011-04-14  Bruno Haible  <bruno@clisp.org>
16314
16315         wchar: Ensure that wchar_t gets defined on uClibc.
16316         * lib/wchar.in.h: On uClibc, include <stddef.h>.
16317         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
16318
16319 2011-04-13  Bruno Haible  <bruno@clisp.org>
16320
16321         safe-write, full-read: Avoid unnecessary compilation units.
16322         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
16323         (Depends-on): Remove safe-read. Add ssize_t.
16324         * modules/full-read (Files): Add lib/full-write.c.
16325         (Depends-on): Add full-write.
16326
16327 2011-04-13  Bruno Haible  <bruno@clisp.org>
16328
16329         Support non-blocking pipe I/O and SIGPIPE in pwrite().
16330         * modules/pwrite (Depends-on): Add 'write'.
16331
16332 2011-04-13  Bruno Haible  <bruno@clisp.org>
16333
16334         Support non-blocking pipe I/O in write() on native Windows.
16335         * lib/unistd.in.h (write): Enable replacement also if
16336         GNULIB_UNISTD_H_NONBLOCKING is 1.
16337         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
16338         (rpl_write): When failing to write on a non-blocking pipe, change
16339         errno from ENOSPC to EAGAIN.
16340         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
16341         putchar, puts, vfprintf, vprintf): Enable replacement also if
16342         GNULIB_STDIO_H_NONBLOCKING is 1.
16343         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
16344         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
16345         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
16346         CALL_WITH_SIGPIPE_EMULATION.
16347         (CALL_WITH_SIGPIPE_EMULATION): Use them.
16348         * m4/nonblocking.m4: New file.
16349         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
16350         for non-blocking I/O support.
16351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16352         GNULIB_UNISTD_H_NONBLOCKING.
16353         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
16354         required for non-blocking I/O support.
16355         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
16356         * modules/nonblocking (Files): Add m4/nonblocking.m4,
16357         lib/stdio-write.c, m4/asm-underscore.m4.
16358         (Depends-on): Add stdio, unistd.
16359         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
16360         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
16361         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
16362         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
16363         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
16364         problem with non-blocking pipes.
16365         * doc/posix-functions/fputc.texi: Likewise.
16366         * doc/posix-functions/fputs.texi: Likewise.
16367         * doc/posix-functions/fwrite.texi: Likewise.
16368         * doc/posix-functions/printf.texi: Likewise.
16369         * doc/posix-functions/putc.texi: Likewise.
16370         * doc/posix-functions/putchar.texi: Likewise.
16371         * doc/posix-functions/puts.texi: Likewise.
16372         * doc/posix-functions/vfprintf.texi: Likewise.
16373         * doc/posix-functions/vprintf.texi: Likewise.
16374         * doc/posix-functions/write.texi: Likewise.
16375
16376 2011-04-10  Jim Meyering  <meyering@redhat.com>
16377
16378         maint.mk: prohibit doubled words
16379         Detect them also when they're separated by a newline.
16380         There are 3 ways to customize it:
16381           - disable the test on a per file basis, as usual with rules using
16382             $(VC_LIST_EXCEPT)
16383           - replace the default doubled-word-selecting regexp (affects all files)
16384           - ignore a particular file-vs-doubled-word match
16385         I nearly used that last one to ignore the "is is" match in
16386         coreutils' NEWS file, since the text was "ls -is is ..."
16387         To do that, I would have added this line to cfg.mk:
16388           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
16389         but it would have ignored any "is is" match in NEWS.
16390         Low probability, but still...
16391         Instead, I changed the text, slightly:
16392           -  ls -is is now consistent with ls -lis in ignoring values returned
16393           +  "ls -is" is now consistent with ls -lis in ignoring values returned
16394         * top/maint.mk (prohibit_double_word_RE_): Provide default.
16395         (prohibit_doubled_word_): Define.
16396         (sc_prohibit_doubled_word): New rule.
16397         (sc_prohibit_the_the): Remove.  Subsumed by the above.
16398
16399 2011-04-10  Jim Meyering  <meyering@redhat.com>
16400
16401         maint: fix doubled-word typo in comment
16402         * m4/gethostname.m4: s/is is/it is/
16403         * m4/getdomainname.m4: Likewise.
16404
16405 2011-04-10  Jim Meyering  <meyering@redhat.com>
16406
16407         maint: remove doubled word: s/it it/it/
16408         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
16409
16410 2011-04-10  Jim Meyering  <meyering@redhat.com>
16411
16412         maint.mk: remove useless semicolon and backslash
16413         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
16414         semicolon and backslash.
16415
16416 2011-04-10  Bruno Haible  <bruno@clisp.org>
16417
16418         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
16419         * modules/stdint-tests (Depends-on): Add wchar.
16420
16421 2011-04-10  Jim Meyering  <meyering@redhat.com>
16422
16423         maint: remove doubled words in comments, e.g., s/a a/a/
16424         * lib/strptime.c (day_of_the_week): s/the the/the/
16425         * tests/test-chown.h (test_chown): s/a a/a/
16426
16427         test-chown.h: correct a cast
16428         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
16429         when the destination is a stat.st_gid.
16430
16431 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
16432
16433         getaddrinfo: Fix test for sa_len member.
16434         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
16435         include <sys/types.h> before <sys/socket.h>.
16436
16437 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
16438
16439         maint: change "can not" to "cannot"
16440         * doc/posix-functions/iconv.texi (iconv): This one crossed line
16441         boundaries.
16442
16443 2011-04-09  Jim Meyering  <meyering@redhat.com>
16444
16445         maint: change "a a" to "a"
16446         * tests/test-lchown.h (test_lchown): s/a a/a/
16447
16448         maint.mk: prohibit \<the the\>
16449         * top/maint.mk (sc_prohibit_the_the): New rule.
16450
16451         maint: fix "the the" in comment
16452         * lib/count-one-bits.h: s/the the/the/
16453
16454         maint: change "can not" to "cannot"
16455         But do not change the occurrences in maintain.texi or in
16456         build-aux/po/Makefile.in.in, which I presume comes from gettext.
16457         * doc/gnulib-tool.texi: s/can not/cannot/
16458         * doc/posix-functions/accept.texi (accept): Likewise.
16459         * doc/posix-functions/socket.texi (socket): Likewise.
16460         * lib/mbrtowc.c: Likewise.
16461
16462         maint.mk: prohibit use of "can not"
16463         * top/maint.mk (sc_prohibit_can_not): New rule.
16464         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
16465
16466 2011-04-09  Bruno Haible  <bruno@clisp.org>
16467
16468         careadlinkat: Guard against misuse of careadlinkatcwd.
16469         * lib/careadlinkat.c: Include <stdlib.h>.
16470         (careadlinkatcwd): Check that the fd argument is as expected.
16471
16472 2011-04-09  Bruno Haible  <bruno@clisp.org>
16473
16474         careadlinkat: Use common coding style.
16475         * lib/careadlinkat.c: Move gnulib includes after system includes.
16476
16477 2011-04-09  Bruno Haible  <bruno@clisp.org>
16478
16479         careadlinkat: Clarify specification.
16480         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
16481         (careadlinkatcwd): Add comment.
16482         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
16483
16484 2011-04-09  Bruno Haible  <bruno@clisp.org>
16485
16486         areadlinkat: Avoid link error on many platforms.
16487         * modules/areadlinkat (Depends-on): Add areadlink.
16488
16489 2011-04-09  Bruno Haible  <bruno@clisp.org>
16490
16491         allocator, careadlinkat: Fix double-inclusion guard.
16492         * lib/allocator.h: Fix double-inclusion guard.
16493         * lib/careadlinkat.h: Likewise.
16494
16495 2011-04-09  Bruno Haible  <bruno@clisp.org>
16496
16497         relocatable-prog-wrapper: Update after module 'areadlink' changed.
16498         * lib/relocwrapper.c: Update dependencies hierarchy.
16499         * build-aux/install-reloc: Update list of files to be compiled.
16500         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
16501         lib/allocator.[hc].
16502
16503 2011-04-08  Eric Blake  <eblake@redhat.com>
16504
16505         strftime: silence gnulib-tool warning
16506         * modules/strftime-tests (Depends-on): Drop automatic dependency.
16507
16508 2011-04-08  Bruno Haible  <bruno@clisp.org>
16509
16510         verify: Fix syntax error with GCC 4.6 in C++ mode.
16511         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
16512         (HAVE_STATIC_ASSERT): New macro.
16513         (verify_true, verify): Use 'static_assert' if it is supported and
16514         '_Static_assert' is not supported.
16515
16516 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
16517
16518         allocator: New module.
16519         * modules/allocator, lib/allocator.c: New files.
16520         * lib/allocator.h (stdlib_allocator): New decl.
16521         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
16522         Remove.  Do not include <stdlib.h>.
16523         (careadlinkat): Use stdlib_allocator instead of rolling our own.
16524         * modules/careadlinkat (Files): Remove lib/allocator.h.
16525         (Depends-on): Add allocator.
16526
16527         stdlib: let modules use system malloc, realloc
16528         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
16529         if !_GL_USE_STDLIB_ALLOC.
16530         (malloc, realloc): Limit this change to a smaller scope.
16531
16532         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
16533         (malloc, realloc): Don't #undef; no longer needed.
16534         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16535         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16536         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
16537         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16538         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16539         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16540         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16541         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
16542
16543         careadlinkat: rename members to avoid problem
16544         * lib/allocator.h (struct allocator): Rename members from
16545         malloc/realloc to allocate/reallocate, to avoid problems if malloc
16546         and realloc are #define'd.  Reported by Eric Blake in
16547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
16548         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
16549
16550 2011-04-08  Eric Blake  <eblake@redhat.com>
16551
16552         nonblocking: reduce dependency
16553         * tests/test-nonblocking.c: Only test sockets when in use.
16554         * modules/nonblocking-tests (Depends-on): Drop socket.
16555         (Makefile.am): Link even if sockets are not present.
16556         * modules/pipe2-tests (Makefile.am): Likewise.
16557         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
16558
16559         pipe2: fix O_NONBLOCK support on mingw
16560         * modules/pipe2 (Depends-on): Add nonblocking.
16561         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
16562         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
16563         * tests/test-nonblocking.c (main): Likewise.
16564         * modules/pipe2-tests (Makefile.am): Avoid link failure.
16565
16566         fcntl-h: fix O_ACCMODE on cygwin
16567         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
16568         * lib/fcntl.in.h (O_ACCMODE): Fix it.
16569
16570         pipe-filter: drop O_NONBLOCK workarounds
16571         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
16572         * modules/pipe-filter-ii (Depends-on): Likewise.
16573         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
16574
16575         nonblocking: provide O_NONBLOCK for mingw
16576         * modules/nonblocking (Depends-on): Add open.
16577         (configure.ac): Set new witness macro.
16578         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
16579         * modules/fcntl-h (Makefile.am): Substitute it.
16580         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
16581         nonblocking module is in use.
16582         * lib/nonblocking.c: Adjust portability test.
16583         * lib/open.c (open): Don't let native open see gnulib flag.
16584         * tests/test-fcntl-h.c (main): Enhance test.
16585         * tests/test-open.h (test_open): Likewise.
16586         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
16587
16588         careadlinkat: fix compilation error on mingw
16589         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
16590         within struct allocator.
16591
16592 2011-04-06  Eric Blake  <eblake@redhat.com>
16593
16594         binary-io: relicense under LGPLv2+
16595         * modules/binary-io (License): Relax to LGPLv2+.
16596         Requested for libvirt, and required by pipe2.
16597
16598 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
16599
16600         verify: use _Static_assert if available
16601         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
16602         (verify_true, verify): Use it if available.  This generates better
16603         diagnostics with GCC 4.6.0 and later.
16604
16605 2011-04-05  Bruno Haible  <bruno@clisp.org>
16606
16607         Remove leftover generated .h files after config.status changed.
16608
16609         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
16610         GL_GENERATE_ALLOCA_H.
16611         * modules/alloca-opt (Makefile.am): Remove alloca.h if
16612         GL_GENERATE_ALLOCA_H evaluates to false.
16613
16614         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
16615         GL_GENERATE_ARGZ_H.
16616         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
16617         evaluates to false.
16618
16619         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
16620         GL_GENERATE_BYTESWAP_H.
16621         * modules/byteswap (Makefile.am): Remove byteswap.h if
16622         GL_GENERATE_BYTESWAP_H evaluates to false.
16623
16624         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
16625         GL_GENERATE_ERRNO_H.
16626         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
16627         evaluates to false.
16628
16629         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
16630         GL_GENERATE_FLOAT_H.
16631         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
16632         evaluates to false.
16633
16634         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
16635         GL_GENERATE_FNMATCH_H.
16636         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
16637         GL_GENERATE_FNMATCH_H evaluates to false.
16638
16639         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
16640         GL_GENERATE_GLOB_H.
16641         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
16642         evaluates to false.
16643
16644         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
16645         automake conditional GL_GENERATE_ICONV_H.
16646         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
16647         evaluates to false.
16648
16649         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
16650         GL_GENERATE_NETINET_IN_H.
16651         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
16652         GL_GENERATE_NETINET_IN_H evaluates to false.
16653
16654         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
16655         conditional GL_GENERATE_PTHREAD_H.
16656         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
16657         * modules/pthread (Makefile.am): Remove pthread.h if
16658         GL_GENERATE_PTHREAD_H evaluates to false.
16659
16660         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
16661         GL_GENERATE_SCHED_H.
16662         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
16663         evaluates to false.
16664
16665         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
16666         conditional GL_GENERATE_SELINUX_CONTEXT_H.
16667         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
16668         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
16669
16670         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
16671         GL_GENERATE_STDARG_H.
16672         * modules/stdarg (Makefile.am): Remove stdarg.h if
16673         GL_GENERATE_STDARG_H evaluates to false.
16674
16675         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
16676         GL_GENERATE_STDBOOL_H.
16677         * modules/stdbool (Makefile.am): Remove stdbool.h if
16678         GL_GENERATE_STDBOOL_H evaluates to false.
16679
16680         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
16681         conditional GL_GENERATE_STDDEF_H.
16682         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
16683         * modules/stddef (Makefile.am): Remove stddef.h if
16684         GL_GENERATE_STDDEF_H evaluates to false.
16685
16686         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
16687         GL_GENERATE_STDINT_H.
16688         * modules/stdint (Makefile.am): Remove stdint.h if
16689         GL_GENERATE_STDINT_H evaluates to false.
16690
16691         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
16692         GL_GENERATE_SYSEXITS_H.
16693         * modules/sysexits (Makefile.am): Remove sysexits.h if
16694         GL_GENERATE_SYSEXITS_H evaluates to false.
16695
16696         Reported by Karl Berry and Ralf Wildenhues.
16697
16698 2011-04-05  Bruno Haible  <bruno@clisp.org>
16699
16700         Ensure to rebuild generated .h files when config.status has changed.
16701         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
16702         config.status.
16703         * modules/ctype (Makefile.am): Likewise.
16704         * modules/dirent (Makefile.am): Likewise.
16705         * modules/errno (Makefile.am): Likewise.
16706         * modules/fcntl-h (Makefile.am): Likewise.
16707         * modules/float (Makefile.am): Likewise.
16708         * modules/getopt-posix (Makefile.am): Likewise.
16709         * modules/glob (Makefile.am): Likewise.
16710         * modules/iconv-h (Makefile.am): Likewise.
16711         * modules/inttypes (Makefile.am): Likewise.
16712         * modules/langinfo (Makefile.am): Likewise.
16713         * modules/locale (Makefile.am): Likewise.
16714         * modules/math (Makefile.am): Likewise.
16715         * modules/netdb (Makefile.am): Likewise.
16716         * modules/netinet_in (Makefile.am): Likewise.
16717         * modules/poll-h (Makefile.am): Likewise.
16718         * modules/pthread (Makefile.am): Likewise.
16719         * modules/pty (Makefile.am): Likewise.
16720         * modules/sched (Makefile.am): Likewise.
16721         * modules/search (Makefile.am): Likewise.
16722         * modules/selinux-h (Makefile.am): Likewise.
16723         * modules/signal (Makefile.am): Likewise.
16724         * modules/spawn (Makefile.am): Likewise.
16725         * modules/stdarg (Makefile.am): Likewise.
16726         * modules/stdbool (Makefile.am): Likewise.
16727         * modules/stddef (Makefile.am): Likewise.
16728         * modules/stdint (Makefile.am): Likewise.
16729         * modules/stdio (Makefile.am): Likewise.
16730         * modules/stdlib (Makefile.am): Likewise.
16731         * modules/string (Makefile.am): Likewise.
16732         * modules/strings (Makefile.am): Likewise.
16733         * modules/sys_file (Makefile.am): Likewise.
16734         * modules/sys_ioctl (Makefile.am): Likewise.
16735         * modules/sys_select (Makefile.am): Likewise.
16736         * modules/sys_socket (Makefile.am): Likewise.
16737         * modules/sys_stat (Makefile.am): Likewise.
16738         * modules/sys_time (Makefile.am): Likewise.
16739         * modules/sys_times (Makefile.am): Likewise.
16740         * modules/sys_utsname (Makefile.am): Likewise.
16741         * modules/sys_wait (Makefile.am): Likewise.
16742         * modules/sysexits (Makefile.am): Likewise.
16743         * modules/termios (Makefile.am): Likewise.
16744         * modules/time (Makefile.am): Likewise.
16745         * modules/unistd (Makefile.am): Likewise.
16746         * modules/wchar (Makefile.am): Likewise.
16747         * modules/wctype-h (Makefile.am): Likewise.
16748         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
16749
16750 2011-04-05  Bruno Haible  <bruno@clisp.org>
16751
16752         pipe2: Relicense under LGPLv2+.
16753         * modules/pipe2 (License): Change to LGPLv2+.
16754         Requested by Eric Blake, for libvirt.
16755
16756 2011-04-05  Bruce Korb  <bkorb@gnu.org>
16757
16758         bootstrap: compute gnulib_extra_files after updating build_aux
16759         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
16760         change build_aux or also supply gnulib_extra_files.  Handle correctly.
16761
16762 2011-04-05  Eric Blake  <eblake@redhat.com>
16763
16764         bootstrap: preserve git whitelist item sorting
16765         * build-aux/bootstrap (sort_patterns): New function.
16766         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
16767
16768 2011-04-05  Simon Josefsson  <simon@josefsson.org>
16769
16770         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
16771         sc_space_tab check.
16772
16773 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
16774
16775         areadlink, areadlinkat: rewrite in terms of careadlinkat
16776         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
16777         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
16778         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
16779         (malloc, realloc): Remove #undefs.
16780         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
16781         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
16782         readlink, ssize_t, stdint, unistd.
16783         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
16784         areadlink, stdint.
16785
16786         careadlinkat: new module
16787         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
16788         * modules/careadlinkat: New files, written by me with
16789         a review and feedback from Ben Pfaff in
16790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
16791
16792 2011-04-01  Bruno Haible  <bruno@clisp.org>
16793
16794         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
16795         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
16796         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
16797         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
16798         Reported by Bruce Korb <bruce.korb@gmail.com>.
16799
16800 2011-04-01  Bruno Haible  <bruno@clisp.org>
16801
16802         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
16803         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
16804         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
16805         * modules/wcpcpy (Depends-on): Add extensions.
16806         * modules/wcpncpy (Depends-on): Likewise.
16807         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
16808         systems.
16809         * doc/posix-functions/wcpncpy.texi: Likewise.
16810         * doc/posix-functions/wcwidth.texi: Likewise.
16811
16812 2011-03-31  Eric Blake  <eblake@redhat.com>
16813
16814         nonblocking: fix mingw test failures
16815         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
16816         non-blocking flag on regular file.
16817         (get_nonblocking_flag): Set errno on invalid fd.
16818         * tests/test-nonblocking.c (main): Avoid test failure on
16819         directories if fchdir is not active.
16820         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
16821
16822 2011-03-31  Bruno Haible  <bruno@clisp.org>
16823
16824         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
16825         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
16826         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
16827         Reported by Simon Josefsson <simon@josefsson.org>.
16828
16829 2011-03-31  Bruno Haible  <bruno@clisp.org>
16830         and Eric Blake  <eblake@redhat.com>
16831
16832         nonblocking: new module
16833         * modules/nonblocking: New module.
16834         * modules/nonblocking-tests: Likewise.
16835         * lib/nonblocking.h: New file.
16836         * lib/nonblocking.c: Likewise.
16837         * tests/test-nonblocking.c: New test.
16838         * lib/ioctl.c (ioctl) [mingw]: Update comment.
16839
16840 2011-03-30  Bruno Haible  <bruno@clisp.org>
16841
16842         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
16843         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
16844         instead of 'printf' format for GCC >= 4.4.
16845         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
16846         (fprintf, printf, vfprintf, vprintf): Declare with
16847         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
16848         the system's vfprintf() function.
16849         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
16850
16851 2011-03-30  Eric Blake  <eblake@redhat.com>
16852
16853         passfd: fix scoping bug
16854         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
16855         before sendmsg/recvmsg.
16856
16857         passfd: standardize coding conventions
16858         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
16859         can be learned at compile time.
16860         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
16861         ifdefs.
16862         (sendfd, recvfd): Follow gnulib code conventions.
16863
16864         passfd: fix incorrect sendmsg arguments
16865         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
16866         incorrect msg_controllen value.
16867         * modules/passfd-tests (Depends-on): Check for alarm.
16868         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
16869         Reported by Bastien ROUCARIES.
16870
16871 2011-03-30  Bruno Haible  <bruno@clisp.org>
16872
16873         c-strcasestr: Relicense under LGPLv2+.
16874         * modules/c-strcasestr (License): Change to LGPLv2+.
16875         Requested by Eric Blake, for libvirt.
16876
16877 2011-03-30  Simon Josefsson  <simon@josefsson.org>
16878
16879         * users.txt: Add libidn2.  Fix libtasn1 link.
16880
16881 2011-03-30  Jim Meyering  <meyering@redhat.com>
16882
16883         tests: readlink* ("",... fails with EINVAL on newer kernels
16884         readlink and readlinkat have typically failed with ENOENT for
16885         the invalid, empty file name,  "".  However, with the advent
16886         of linux-2.6.39, they fail with EINVAL.
16887         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
16888         when operating on the empty file name.
16889         * tests/test-readlink.h (test_readlink): Likewise.
16890
16891 2011-03-29  Bruno Haible  <bruno@clisp.org>
16892
16893         Relicense some modules under LGPLv2+, for libidn2.
16894         * modules/array-mergesort (License): Change to LGPLv2+.
16895         * modules/c-strcaseeq (License): Likewise.
16896         * modules/striconveh (License): Likewise.
16897         * modules/striconveha (License): Likewise.
16898         * modules/uniconv/base (License): Likewise.
16899         * modules/uniconv/u8-conv-from-enc (License): Likewise.
16900         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
16901         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
16902         * modules/unictype/base (License): Likewise.
16903         * modules/unictype/bidiclass-of (License): Likewise.
16904         * modules/unictype/category-M (License): Likewise.
16905         * modules/unictype/category-none (License): Likewise.
16906         * modules/unictype/category-of (License): Likewise.
16907         * modules/unictype/category-test (License): Likewise.
16908         * modules/unictype/category-test-withtable (License): Likewise.
16909         * modules/unictype/combining-class (License): Likewise.
16910         * modules/unictype/joiningtype-of (License): Likewise.
16911         * modules/unictype/scripts (License): Likewise.
16912         * modules/uninorm/base (License): Likewise.
16913         * modules/uninorm/canonical-decomposition (License): Likewise.
16914         * modules/uninorm/composition (License): Likewise.
16915         * modules/uninorm/decompose-internal (License): Likewise.
16916         * modules/uninorm/decomposition-table (License): Likewise.
16917         * modules/uninorm/nfc (License): Likewise.
16918         * modules/uninorm/nfd (License): Likewise.
16919         * modules/uninorm/u32-normalize (License): Likewise.
16920         * modules/unistr/base (License): Likewise.
16921         * modules/unistr/u32-cpy (License): Likewise.
16922         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
16923         * modules/unistr/u32-to-u8 (License): Likewise.
16924         * modules/unistr/u32-uctomb (License): Likewise.
16925         * modules/unistr/u8-check (License): Likewise.
16926         * modules/unistr/u8-mblen (License): Likewise.
16927         * modules/unistr/u8-mbtouc (License): Likewise.
16928         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
16929         * modules/unistr/u8-mbtoucr (License): Likewise.
16930         * modules/unistr/u8-prev (License): Likewise.
16931         * modules/unistr/u8-strlen (License): Likewise.
16932         * modules/unistr/u8-to-u32 (License): Likewise.
16933         * modules/unistr/u8-uctomb (License): Likewise.
16934         * modules/unitypes (License): Likewise.
16935         Requested by Simon Josefsson.
16936
16937 2011-03-29  Simon Josefsson  <simon@josefsson.org>
16938
16939         lib-symbol-visibility: Add a notice.
16940         * modules/lib-symbol-visibility (Notice): New field.
16941
16942 2011-03-29  Bruno Haible  <bruno@clisp.org>
16943
16944         getaddrinfo: Doc fix.
16945         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
16946         section "fixed in Gnulib".
16947
16948 2011-03-28  Simon Josefsson  <simon@josefsson.org>
16949
16950         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
16951         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
16952
16953 2011-03-26  Bruno Haible  <bruno@clisp.org>
16954
16955         unictype/property-byname: Reduce the number of load-time relocations.
16956         * lib/unictype/pr_byname.c: Include <stdlib.h>.
16957         (UC_PROPERTY_INDEX_*): New enumeration values.
16958         (uc_property_byname): Convert an index from the lookup table to an
16959         uc_property_t.
16960         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
16961         values.
16962
16963 2011-03-26  Bruno Haible  <bruno@clisp.org>
16964
16965         unictype/property-byname: Allow omitted word separators and aliases.
16966         * lib/unictype/pr_byname.gperf: Add property names without word
16967         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
16968         for 'space'.
16969
16970 2011-03-26  Bruno Haible  <bruno@clisp.org>
16971
16972         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
16973         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
16974         also hyphens to space.
16975         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
16976         without spaces.
16977         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
16978
16979 2011-03-26  Bruno Haible  <bruno@clisp.org>
16980
16981         unictype/joiningtype-byname: Recognize long names as well.
16982         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
16983         a long name.
16984         * lib/unictype/joiningtype_byname.c: Include <string.h>,
16985         unictype/joiningtype_byname.h.
16986         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
16987         * lib/unictype/joiningtype_byname.gperf: New file.
16988         * modules/unictype/joiningtype-byname (Files): Add
16989         lib/unictype/joiningtype_byname.gperf.
16990         (Depends-on): Add gperf.
16991         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
16992         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
16993         long names.
16994
16995         Tests for module 'unictype/joiningtype-longname'.
16996         * modules/unictype/joiningtype-longname-tests: New file.
16997         * tests/unictype/test-joiningtype_longname.c: New file.
16998
16999         New module 'unictype/joiningtype-longname'.
17000         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17001         * lib/unictype/joiningtype_longname.c: New file.
17002         * modules/unictype/joiningtype-longname: New file.
17003         * modules/unictype/joiningtype-all (Depends-on): Add
17004         unictype/joiningtype-longname.
17005
17006 2011-03-26  Bruno Haible  <bruno@clisp.org>
17007
17008         unictype/bidiclass-byname: Recognize long names as well.
17009         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17010         name.
17011         * lib/unictype/bidi_byname.c: Include <string.h>,
17012         unictype/bidi_byname.h.
17013         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
17014         * lib/unictype/bidi_byname.gperf: New file.
17015         * modules/unictype/bidiclass-byname (Files): Add
17016         lib/unictype/bidi_byname.gperf.
17017         (Depends-on): Add gperf.
17018         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
17019         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
17020         long names.
17021
17022         Tests for module 'unictype/bidiclass-longname'.
17023         * modules/unictype/bidiclass-longname-tests: New file.
17024         * tests/unictype/test-bidi_longname.c: New file.
17025
17026         New module 'unictype/bidiclass-longname'.
17027         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
17028         * lib/unictype/bidi_longname.c: New file.
17029         * modules/unictype/bidiclass-longname: New file.
17030         * modules/unictype/bidiclass-all (Depends-on): Add
17031         unictype/bidiclass-longname.
17032
17033 2011-03-26  Bruno Haible  <bruno@clisp.org>
17034
17035         unictype/bidi*: Rename modules.
17036         * modules/unictype/bidiclass-all: Renamed from
17037         modules/unictype/bidicategory-all.
17038         * modules/unictype/bidiclass-name: Renamed from
17039         modules/unictype/bidiclass-name.
17040         (Description): Update.
17041         * modules/unictype/bidiclass-name-tests: Renamed from
17042         modules/unictype/bidicategory-name-tests.
17043         * modules/unictype/bidiclass-byname: Renamed from
17044         modules/unictype/bidicategory-byname.
17045         (Description): Update.
17046         * modules/unictype/bidiclass-byname-tests: Renamed from
17047         modules/unictype/bidicategory-byname-tests.
17048         * modules/unictype/bidiclass-of: Renamed from
17049         modules/unictype/bidicategory-of.
17050         (Description): Update.
17051         * modules/unictype/bidiclass-of-tests: Renamed from
17052         modules/unictype/bidicategory-of-tests.
17053         * modules/unictype/bidiclass-test: Renamed from
17054         modules/unictype/bidicategory-test.
17055         (Description): Update.
17056         * modules/unictype/bidiclass-test-tests: Renamed from
17057         modules/unictype/bidicategory-test-tests.
17058         * modules/unictype/bidicategory-all: New file, a simple redirection.
17059         * modules/unictype/bidicategory-name: Likewise.
17060         * modules/unictype/bidicategory-byname: Likewise.
17061         * modules/unictype/bidicategory-of: Likewise.
17062         * modules/unictype/bidicategory-test: Likewise.
17063         * modules/unictype/property-bidi-* (Dependencies): Update.
17064         * lib/unictype/bidi_*.c: Update comment.
17065
17066 2011-03-26  Bruno Haible  <bruno@clisp.org>
17067
17068         unictype/bidi*: Rename functions, part 2.
17069         * modules/unictype/bidicategory-name (configure.ac): Update required
17070         libunistring version.
17071         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
17072
17073 2011-03-25  Bruno Haible  <bruno@clisp.org>
17074
17075         New module 'unictype/combining-class-all'.
17076         * modules/unictype/combining-class-all: New file.
17077
17078         Tests for module 'unictype/combining-class-byname'.
17079         * modules/unictype/combining-class-byname-tests: New file.
17080         * tests/unictype/test-combiningclass_byname.c: New file.
17081
17082         New module 'unictype/combining-class-byname'.
17083         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
17084         * lib/unictype/combiningclass_byname.c: New file.
17085         * lib/unictype/combiningclass_byname.gperf: New file.
17086         * modules/unictype/combining-class-byname: New file.
17087
17088         Tests for module 'unictype/combining-class-longname'.
17089         * modules/unictype/combining-class-longname-tests: New file.
17090         * tests/unictype/test-combiningclass_longname.c: New file.
17091
17092         New module 'unictype/combining-class-longname'.
17093         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
17094         * lib/unictype/combiningclass_longname.c: New file.
17095         * modules/unictype/combining-class-longname: New file.
17096
17097         Tests for module 'unictype/combining-class-name'.
17098         * modules/unictype/combining-class-name-tests: New file.
17099         * tests/unictype/test-combiningclass_name.c: New file.
17100
17101         New module 'unictype/combining-class-name'.
17102         * lib/unictype.in.h (uc_combining_class_name): New declaration.
17103         * lib/unictype/combiningclass_name.c: New file.
17104         * modules/unictype/combining-class-name: New file.
17105
17106 2011-03-25  Bruno Haible  <bruno@clisp.org>
17107
17108         unictype/combining-class: Rename source files.
17109         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
17110         of unictype/combining.h.
17111         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
17112         Update.
17113         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
17114         * modules/unictype/combining-class (Description): Fix.
17115         (Files, Makefile.am): Update.
17116         * tests/unictype/test-combiningclass.c: Renamed from
17117         tests/unictype/test-combining.c.
17118         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
17119
17120 2011-03-25  Bruno Haible  <bruno@clisp.org>
17121
17122         unictype: Update list of canonical combining classes.
17123         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
17124
17125 2011-03-25  Bruno Haible  <bruno@clisp.org>
17126
17127         unictype/category-byname: Recognize long names as well.
17128         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
17129         a long name.
17130         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
17131         unictype/categ_byname.h.
17132         (UC_CATEGORY_INDEX_*): New enumeration values.
17133         (uc_general_category_byname): Use uc_general_category_lookup and
17134         convert from index to value.
17135         * lib/unictype/categ_byname.gperf: New file.
17136         * modules/unictype/category-byname (Files): Add
17137         lib/unictype/categ_byname.gperf.
17138         (Depends-on): Add gperf.
17139         (Makefile.am): Add rule for generating unictype/categ_byname.h.
17140         * tests/unictype/test-categ_byname.c (main): Test the recognition of
17141         long names.
17142
17143         Tests for module 'unictype/category-longname'.
17144         * modules/unictype/category-longname-tests: New file.
17145         * tests/unictype/test-categ_longname.c: New file.
17146
17147         New module 'unictype/category-longname'.
17148         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
17149         * lib/unictype/categ_longname.c: New file.
17150         * modules/unictype/category-longname: New file.
17151         * modules/unictype/category-all (Depends-on): Add it.
17152
17153 2011-03-25  Bruno Haible  <bruno@clisp.org>
17154
17155         Tests for module 'unictype/category-LC'.
17156         * modules/unictype/category-LC-tests: New file.
17157         * tests/unictype/test-categ_LC.c: New file, automatically generated.
17158
17159         New module 'unictype/category-LC'.
17160         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
17161         (UC_CATEGORY_LC): New declaration.
17162         (UC_CASED_LETTER): New macro.
17163         * lib/gen-uni-tables.c (is_category_LC): New function.
17164         (output_categories): Also handle category LC.
17165         (UC_CATEGORY_MASK_LC): New enumeration value.
17166         (general_category_byname): Also handle category LC.
17167         * lib/unictype/categ_LC.c: New file.
17168         * lib/unictype/categ_LC.h: New file, automatically generated.
17169         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
17170         category LC.
17171         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
17172         * modules/unictype/category-LC: New file.
17173         * modules/unictype/category-byname (Depends-on): Add
17174         unictype/category-LC.
17175         * modules/unictype/category-all (Depends-on): Likewise.
17176
17177 2011-03-25  Eric Blake  <eblake@redhat.com>
17178
17179         xmalloc: revert yesterday's regression
17180         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
17181         realloc's underlying behavior (allowing allocation of zero-size
17182         objects, especially if malloc-gnu is also in use).
17183
17184 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
17185
17186         maint.mk: add missing version to VC-tag
17187         * top/maint.mk: git tag was missing actual tag name; add it.
17188
17189         valgrind: do leak checking, and exit with code 1 on error (not 0)
17190         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
17191         to VALGRIND.
17192
17193 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
17194
17195         posix-modules: say what it does.
17196         * posix-modules: Add a line to the --help output saying what it does.
17197
17198 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17199
17200         xmalloc: Do not leak if underlying realloc is C99 compatible.
17201         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
17202         This avoids a leak on C99-based systems.  See
17203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
17204
17205 2011-03-24  Eric Blake  <eblake@redhat.com>
17206
17207         realloc: document portability problem
17208         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
17209         passing 0 size to realloc.
17210
17211 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
17212
17213         doc: update users.txt
17214         * users.txt: Add cvsps, tmpwatch
17215
17216 2011-03-23  Matt Rice  <ratmice@gmail.com>
17217
17218         doc: update users.txt
17219         * users.txt: Add gdb.
17220
17221 2011-03-23  Jim Meyering  <meyering@redhat.com>
17222
17223         doc: update users.txt
17224         Looking through matches up to the following URL (there are still
17225         several more pages), I found several projects that use gnulib:
17226         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
17227         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
17228         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
17229
17230 2011-03-22  Bruno Haible  <bruno@clisp.org>
17231
17232         unictype/bidi*: Rename functions.
17233         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
17234         uc_bidi_class, uc_is_bidi_class): New declarations.
17235         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
17236         uc_bidi_category_byname.
17237         (uc_bidi_category_byname): New function.
17238         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
17239         u_bidi_category_name.
17240         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
17241         (uc_bidi_category_name): New function.
17242         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
17243         uc_bidi_category.
17244         (uc_bidi_category): New function.
17245         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
17246         uc_is_bidi_category. Invoke uc_bidi_class.
17247         (uc_is_bidi_category): New function.
17248         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
17249         instead of uc_bidi_category_byname.
17250         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
17251         instead of uc_bidi_category_name.
17252         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
17253         uc_bidi_category.
17254         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
17255         instead of uc_is_bidi_category.
17256
17257 2011-03-21  Bruno Haible  <bruno@clisp.org>
17258
17259         New module 'unictype/joininggroup-all'.
17260         * modules/unictype/joininggroup-all: New file.
17261
17262         Tests for module 'unictype/joininggroup-of'.
17263         * modules/unictype/joininggroup-of-tests: New file.
17264         * tests/unictype/test-joininggroup_of.c: New file.
17265         * tests/unictype/test-joininggroup_of.h: New file, automatically
17266         generated by gen-uni-tables.
17267
17268         New module 'unictype/joininggroup-of'.
17269         * modules/unictype/joininggroup-of: New file.
17270         * lib/unictype/joininggroup_of.c: New file.
17271         * lib/unictype/joininggroup_of.h: New file, automatically generated by
17272         gen-uni-tables.
17273
17274         Tests for module 'unictype/joininggroup-byname'.
17275         * modules/unictype/joininggroup-byname-tests: New file.
17276         * tests/unictype/test-joininggroup_byname.c: New file.
17277
17278         New module 'unictype/joininggroup-byname'.
17279         * modules/unictype/joininggroup-byname: New file.
17280         * lib/unictype/joininggroup_byname.c: New file.
17281         * lib/unictype/joininggroup_byname.gperf: New file.
17282
17283         Tests for module 'unictype/joininggroup-name'.
17284         * modules/unictype/joininggroup-name-tests: New file.
17285         * tests/unictype/test-joininggroup_name.c: New file.
17286
17287         New module 'unictype/joininggroup-name'.
17288         * modules/unictype/joininggroup-name: New file.
17289         * lib/unictype/joininggroup_name.c: New file.
17290         * lib/unictype/joininggroup_name.h: New file.
17291
17292         New module 'unictype/joiningtype-all'.
17293         * modules/unictype/joiningtype-all: New file.
17294
17295         Tests for module 'unictype/joiningtype-of'.
17296         * modules/unictype/joiningtype-of-tests: New file.
17297         * tests/unictype/test-joiningtype_of.c: New file.
17298         * tests/unictype/test-joiningtype_of.h: New file, automatically
17299         generated by gen-uni-tables.
17300
17301         New module 'unictype/joiningtype-of'.
17302         * modules/unictype/joiningtype-of: New file.
17303         * lib/unictype/joiningtype_of.c: New file.
17304         * lib/unictype/joiningtype_of.h: New file, automatically generated by
17305         gen-uni-tables.
17306
17307         Tests for module 'unictype/joiningtype-byname'.
17308         * modules/unictype/joiningtype-byname-tests: New file.
17309         * tests/unictype/test-joiningtype_byname.c: New file.
17310
17311         New module 'unictype/joiningtype-byname'.
17312         * modules/unictype/joiningtype-byname: New file.
17313         * lib/unictype/joiningtype_byname.c: New file.
17314
17315         Tests for module 'unictype/joiningtype-name'.
17316         * modules/unictype/joiningtype-name-tests: New file.
17317         * tests/unictype/test-joiningtype_name.c: New file.
17318
17319         New module 'unictype/joiningtype-name'.
17320         * modules/unictype/joiningtype-name: New file.
17321         * lib/unictype/joiningtype_name.c: New file.
17322
17323         unictype: Add support for Arabic shaping properties.
17324         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
17325         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
17326         declarations.
17327         (UC_JOINING_GROUP_*): New enumeration values.
17328         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
17329         declarations.
17330         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
17331         (unicode_joining_type): New variable.
17332         (UC_JOINING_GROUP_*): New enumeration values.
17333         (unicode_joining_group): New variable.
17334         (fill_arabicshaping, joining_type_as_c_identifier,
17335         output_joining_type_test, output_joining_type,
17336         joining_group_as_c_identifier, output_joining_group_test,
17337         output_joining_group): New functions.
17338         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
17339         fill_arabicshaping and output_joining_type_test, output_joining_type,
17340         output_joining_group_test, output_joining_group.
17341         Reported by Simon Josefsson.
17342
17343 2011-03-21  Jim Meyering  <meyering@redhat.com>
17344
17345         strftime: fix a bug in yesterday's change
17346         * lib/strftime.c (add): Accommodate width's initial value of -1.
17347         Otherwise, nstrftime would copy uninitialized data into
17348         the result buffer.
17349
17350 2011-03-21  Jim Meyering  <meyering@redhat.com>
17351
17352         tests: add strftime-tests module
17353         * tests/test-strftime.c: New file.
17354         * modules/strftime-tests: New module.
17355
17356 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17357
17358         strftime: don't assume a byte count fits in 'int'
17359         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
17360         found this problem by static analysis, using gcc -Wstrict-overflow
17361         (GCC 4.5.2, x86-64).  This reported an optimization that depended
17362         on an integer overflow having undefined behavior, but it turns out
17363         that the argument is a size, which might not fit in 'int' anyway,
17364
17365 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17366
17367         stdio: don't require ignore_value around fwrite
17368
17369         This patch works around libc bug 11959
17370         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
17371         Without this patch, applications must often write
17372         ignore_value (fwrite (...)) even though the ignore_value is
17373         not helpful here.  It's common to write many objects, using
17374         fwrite/printf/etc., and then use ferror to detect output error.
17375
17376         I considered making this patch optional, but decided against it,
17377         because libc is obviously being inconsistent here: there is no
17378         reason libc should insist that user code must inspect fwrite
17379         return's value without also insisting that it inspect printf's,
17380         putchar's, etc.  If user code wants to have a strict style where
17381         all these functions' values are checked (so that ferror need not
17382         be checked), we could add support for that style in a new gnulib
17383         module, but in the meantime it's better to be consistent and to
17384         support common usage.
17385
17386         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
17387         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
17388         that we are compiling in checking mode, and if not C++, and
17389         if not already wrapping fwrite for some other reason.
17390         (fwrite): #define to rpl_fwrite if the latter is defined.
17391
17392 2011-03-20  Bruno Haible  <bruno@clisp.org>
17393
17394         verror: Fix compilation error introduced on 2011-02-13.
17395         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
17396         instead of __attribute__.
17397         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17398
17399 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17400             Bruno Haible  <bruno@clisp.org>
17401
17402         socklen: do not depend on sys_socket
17403         While trying to modify Emacs to use gnulib's socklen module,
17404         I discovered a circular dependency: socklen depends on sys_socket
17405         and vice versa.  Emacs can use socklen, but it does not need
17406         sys_socket because it has its own substitute for sys/socket.h.
17407         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
17408         gl_TYPE_SOCKLEN_T.
17409         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
17410         gl_PREREQ_SYS_H_SOCKET.
17411         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
17412         gl_PREREQ_SYS_H_SOCKET.
17413         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
17414         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
17415         * modules/socklen (Depends-on): Do not depend on sys_socket.
17416         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
17417
17418 2011-03-20  Jim Meyering  <meyering@redhat.com>
17419
17420         maint.mk: sort file names *after* new transformation
17421         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
17422         prefix would have led to an unwarranted failure in GNU parted.
17423         Sort after that transformation.
17424
17425 2011-03-19  Jim Meyering  <meyering@redhat.com>
17426
17427         maint.mk: fix po-file syntax-check rule
17428         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
17429         Patch by Bruno Haible.
17430
17431 2011-03-19  Bruno Haible  <bruno@clisp.org>
17432
17433         socklen: Update comment.
17434         * m4/socklen.m4: Update comment about platforms.
17435
17436 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17437             Bruno Haible  <bruno@clisp.org>
17438
17439         inet_ntop, inet_pton: Simplify.
17440         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
17441         documented to provide socklen_t and we already depend on sys_socket.
17442         * modules/inet_pton (Depends-on): Likewise.
17443         * lib/arpa_inet.in.h: Adjust comment.
17444
17445 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17446             Bruno Haible  <bruno@clisp.org>
17447
17448         netdb: Simplify.
17449         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
17450         documented to provide socklen_t and we already depend on sys_socket.
17451         * lib/netdb.in.h: Adjust comment.
17452
17453 2011-03-19  Bruno Haible  <bruno@clisp.org>
17454
17455         sys_socket, netdb: Document problem with socklen_t.
17456         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
17457         platforms.
17458         * doc/posix-headers/netdb.texi: Likewise.
17459
17460 2011-03-18  Eric Blake  <eblake@redhat.com>
17461
17462         maint.mk: let po check work in VPATH build
17463         * top/maint.mk (po_file): Allow cfg.mk override.
17464         (sc_po_check): Allow VPATH use.
17465         Reported by Jiri Denemark.
17466
17467 2011-03-16  Jim Meyering  <meyering@redhat.com>
17468
17469         maint.mk: allow fine-grained syntax-check exclusion via Make variables
17470         Before, you would have had to create one .x-sc_ file per rule in order
17471         to exempt offending files.  Now, you may instead use a Make variable --
17472         usually defined in cfg.mk -- whose name identifies the affected rule.
17473         * top/maint.mk (_sc_excl): Define.
17474         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
17475         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
17476
17477 2011-03-13  Bruno Haible  <bruno@clisp.org>
17478
17479         ignore-value tests: Avoid warnings.
17480         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
17481         empty for gcc < 3.4.
17482
17483 2011-03-13  Bruno Haible  <bruno@clisp.org>
17484
17485         passfd: Fix link error on Solaris.
17486         * modules/passfd (Description): Correct.
17487         (Depends-on): Add socketlib.
17488         (Link): New section.
17489         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
17490
17491 2011-03-13  Bruno Haible  <bruno@clisp.org>
17492
17493         passfd: Fix link error on AIX 5.2.
17494         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
17495
17496 2011-03-13  Bruno Haible  <bruno@clisp.org>
17497
17498         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
17499         * lib/sys_socket.in.h: Include <stddef.h>.
17500         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
17501         CMSG_FIRSTHDR. Remove unused variable.
17502
17503 2011-03-13  Bruno Haible  <bruno@clisp.org>
17504
17505         passfd: Fix compilation error on OpenBSD.
17506         * lib/passfd.c: Include <sys/uio.h>.
17507
17508 2011-03-13  Bruno Haible  <bruno@clisp.org>
17509
17510         passfd test: Fix warnings.
17511         * tests/test-passfd.c: Include <sys/wait.h>.
17512         (main): Fix typo.
17513
17514 2011-03-13  Bruno Haible  <bruno@clisp.org>
17515
17516         passfd module, part 4, tweaks.
17517         * tests/test-passfd.c: Reorder includes.
17518         (main): Fix perror and printf calls.
17519
17520 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
17521
17522         passfd module, part 4.
17523         * modules/passfd-tests: New file.
17524         * tests/test-passfd.c: New file.
17525
17526 2011-03-13  Jim Meyering  <meyering@redhat.com>
17527
17528         Makefile: rely on GNU make; derive syntax-check rule names
17529         Rather than requiring that each sc_ rule be listed as a dependent
17530         of "check", use features of GNU make to derive the list.
17531         * Makefile (syntax-check-rules): Define.
17532         (check): Depend on the new variable, not the hard-coded list.
17533
17534 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
17535             Bruno Haible  <bruno@clisp.org>
17536
17537         passfd module, part 3.
17538         * lib/passfd.h (recvfd): Add a flags argument.
17539         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
17540         (recvfd): Add a flags argument.
17541         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
17542         exists.
17543         * modules/passfd (Depends-on): Add cloexec.
17544         Suggested by Eric Blake.
17545
17546 2011-03-13  Bruno Haible  <bruno@clisp.org>
17547
17548         passfd module, part 2, tweaks.
17549         * modules/passfd (Files): Reorder.
17550         (Depends-on): Remove errno.
17551         (Include): Remove <sys/socket.h>, <sys/un.h>.
17552         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
17553         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
17554         specification header. Include <sys/socket.h> always. Don't include
17555         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
17556         (sendfd): Clarify that it sets errno when it fails.
17557         (recvfd): Fix specification.
17558
17559 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
17560
17561         passfd module, part 2.
17562         * modules/passfd: New file.
17563         * lib/passfd.h: New file.
17564         * lib/passfd.c: New file.
17565
17566 2011-03-12  Bruno Haible  <bruno@clisp.org>
17567
17568         wcswidth, mbswidth: Avoid integer overflow.
17569         * lib/wcswidth.c: Include <limits.h>.
17570         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
17571         * lib/mbswidth.c: Include <limits.h>.
17572         (mbsnwidth): Avoid 'int' overflow.
17573         Reported by Jim Meyering.
17574
17575 2011-03-12  Bruno Haible  <bruno@clisp.org>
17576
17577         futimens, utimensat: Avoid endless recursion on Solaris 10.
17578         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
17579         Solaris.
17580         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
17581         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
17582
17583 2011-03-11  Jim Meyering  <meyering@redhat.com>
17584
17585         maint.mk: relax a regexp to accommodate other formatting styles
17586         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
17587         between "ngettext" and the following "(".
17588
17589 2011-03-11  Pádraig Brady <P@draigBrady.com>
17590
17591         maint.mk: suppress a false positive warning
17592         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
17593         diagnostics are marked with ngettext.
17594
17595 2011-03-10  Eric Blake  <eblake@redhat.com>
17596
17597         wchar: add explicit dependencies, for Tru64
17598         * modules/mbmemcasecoll (Depends-on): Add wchar.
17599         * modules/mbtowc (Depends-on): Likewise.
17600         * modules/vasnprintf (Depends-on): Likewise.
17601         * modules/unistdio/u-printf-args (Depends-on): Likewise.
17602         * modules/wctomb (Depends-on): Likewise.
17603         Reported by Peter O'Gorman.
17604
17605 2011-03-08  Bruno Haible  <bruno@clisp.org>
17606
17607         passfd module, part 1, tweaks.
17608         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
17609         Improve indentation. Improve AC_MSG_CHECKING messages.
17610         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
17611         gl_SOCKET_FAMILIES.
17612
17613 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
17614
17615         passfd module, part 1.
17616         * m4/afunix.m4: New file.
17617         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
17618         sockets.
17619
17620 2011-03-08  Bruno Haible  <bruno@clisp.org>
17621
17622         regex-quote: New API.
17623         * lib/regex-quote.h: Include <stdbool.h>.
17624         (struct regex_quote_spec): New type.
17625         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
17626         New declarations.
17627         (regex_quote_length, regex_quote_copy, regex_quote): Take a
17628         'const struct regex_quote_spec *' argument.
17629         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
17630         (pcre_special): New constant.
17631         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
17632         New functions.
17633         (regex_quote_length, regex_quote_copy, regex_quote): Take a
17634         'const struct regex_quote_spec *' argument.
17635         * modules/regex-quote (Depends-on): Add stdbool.
17636         * tests/test-regex-quote.c (check): Update for new API. Add test for
17637         anchored results.
17638         * NEWS: Mention the API change.
17639         Reported by Reuben Thomas and Eric Blake.
17640
17641 2011-03-06  Bruno Haible  <bruno@clisp.org>
17642
17643         regex-quote: Fix creation of POSIX extended regular expressions.
17644         * lib/regex-quote.c (ere_special): Add grouping and alternation
17645         operators.
17646
17647 2011-03-05  Bruno Haible  <bruno@clisp.org>
17648
17649         doc: Improve doc regarding autopoint vs. gnulib.
17650         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
17651         disable autopoint while running autoreconf.
17652         Suggested by Ralf Wildenhues.
17653
17654 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17655
17656         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
17657         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
17658
17659 2011-03-03  Bruce Korb  <bkorb@gnu.org>
17660
17661         parse-duration: remove xalloc.h dependency
17662         * lib/parse-duration.c (parse_period): handle NULL return from
17663         strdup instead of calling xstrdup().
17664         * modules/parse-duration: remove "xalloc" dependency
17665
17666 2011-03-03  Matthew Booth  <mbooth@redhat.com>
17667
17668         bootstrap: honor m4_base when running aclocal
17669         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
17670
17671 2011-03-02  Jim Meyering  <meyering@redhat.com>
17672
17673         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
17674         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
17675         on request from Matt Booth.
17676
17677 2011-03-01  Eric Blake  <eblake@redhat.com>
17678
17679         test-link: work on Hurd
17680         * tests/test-link.h (test_link): Hurd rejects linking directories
17681         with EISDIR instead of the POSIX-mandated EPERM.
17682
17683 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
17684
17685         stdio: simplify by moving files to printf-posix, sigpipe
17686         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
17687         since this symbol is needed only if printf is replaced.
17688         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
17689         Require gl_ASM_SYMBOL_PREFIX.
17690         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
17691         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
17692         (Depends-on): Add 'raise'.
17693         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
17694         * modules/stdio (Files): Remove lib/stdio-write.c,
17695         m4/asm-underscore.m4.
17696         (Depends-on): Remove 'raise'.
17697
17698         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
17699         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
17700         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
17701         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
17702
17703 2011-02-28  Bruno Haible  <bruno@clisp.org>
17704
17705         localcharset: Assume ANSI C behaviour of free().
17706         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
17707         calling free().
17708         Suggested by Simon Josefsson <simon@josefsson.org>.
17709
17710 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
17711             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
17712             Bruno Haible  <bruno@clisp.org>  (tiny change)
17713
17714         On Cygwin, use /proc file system instead of win32 API.
17715         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
17716         Win32 file names.
17717         (DllMain): Simplify by removing Cygwin specific code.
17718         (find_shared_library_fullname): Use Linux specific implementation also
17719         for Cygwin.
17720         (get_shared_library_fullname): Update accordingly.
17721         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
17722         Win32 file names.
17723         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
17724         Cygwin specific code.
17725
17726 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
17727             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
17728
17729         Fix OpenMP flag detection for various Fortran compilers.
17730         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
17731         OpenMP-conditional compilation construct, to force compile
17732         failure with missing OpenMP flag.
17733         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
17734
17735 2011-02-25  Eric Blake  <eblake@redhat.com>
17736
17737         strstr: expand test coverage
17738         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
17739         compilation.
17740         * tests/test-memmem.c (main): Duplicate tests.
17741         * tests/test-strcasestr.c (main): Likewise.
17742         * tests/test-c-strcasestr.c (main): Likewise.
17743
17744 2011-02-25  Jim Meyering  <meyering@redhat.com>
17745
17746         maint.mk: detect missing-NL-at-EOF, too
17747         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
17748         it also detects when a file lacks a newline at EOF.
17749         (require_exactly_one_NL_at_EOF_): Renamed from
17750         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
17751         since people may well have .x-sc_... file names tied to the
17752         existing name.  Suggested by Eric Blake.
17753
17754 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
17755
17756         dirname: move m4/dos.m4 functionality into lib/dosname.h
17757
17758         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
17759         extracts symbols from it, puts them into config.h; but it's much
17760         easier to use the symbols directly.  filename.h already does this,
17761         but it disagrees with dos.m4 in some respects.  This patch
17762         introduces a different include file dosname.h that packages up
17763         dos.m4, and then later we can work on merging filename.h and
17764         dosname.h.  Applications that need only the easy-to-configure
17765         symbols should consider including dosname.h rather than dirname.h.
17766         * NEWS: Mention incompatible changes.
17767         * m4/dos.m4: Remove.
17768         * lib/dosname.h, modules/dosname: New files.
17769         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
17770         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
17771         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
17772         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
17773         Include dosname.h, not dirname.h.
17774         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
17775         Include dosname.h, for definitions of symbols like ISSLASH
17776         that used to be in config.h.
17777         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
17778         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17779         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17780         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17781         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
17782         * modules/rmdir (Files): Likewise.
17783         * modules/stat (Files): Likewise.
17784         * modules/unlink (Files): Likewise.
17785         * modules/dirname-lgpl (Depends-on): Add dosname.
17786         * modules/lstat (Depends-on): Likewise.
17787         * modules/openat (Depends-on): Likewise.
17788         * modules/rmdir (Depends-on): Likewise.
17789         * modules/savewd (Depends-on): Likewise.
17790         * modules/stat (Depends-on): Likewise.
17791         * modules/unlink (Depends-on): Likewise.
17792         * modules/openat (Depends-on): Remove dirname-lgpl.
17793         * modules/savewd (Depends-on): Likewise.
17794         * tests/test-dirname.c: Do not use removed symbols like
17795         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
17796         the remaining symbols, e.g., ISSLASH ('\\').
17797
17798 2011-02-25  Eric Blake  <eblake@redhat.com>
17799
17800         strstr: revert patches that introduced bug and pessimization
17801         * lib/str-two-way.h: Add another reference.
17802         (two_way_short_needle, two_way_long_needle): Revert changes from
17803         2011-02-24; they pessimize search speed.
17804         (critical_factorization): Partially revert changes from
17805         2010-06-22; they violate the requirement that the left half of the
17806         needle be smaller than the period of the needle.
17807
17808 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
17809
17810         filenamecat: remove unnecessary dependency on dirname-lgpl
17811         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
17812         is no direct dependency, just an indirect one via filenamecat-lgpl.
17813
17814         remove: remove unnecessary use of m4/dos.m4
17815         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
17816         * modules/remove (FILES): Remove m4/dos.m4.
17817
17818         * lib/openat-proc.c: Don't include dirname.h; not needed.
17819
17820         backupfile: remove unnecessary use of m4/dos.m4
17821         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
17822         of its symbols are used by the backupfile code.  backupfile.c does
17823         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
17824         for the rare case of programs that want all their backup file
17825         names to live within 8+3 limits, and dos.m4 doesn't address that.
17826         * modules/backupfile (Files): Remove m4/dos.m4.
17827
17828 2011-02-24  Jim Meyering  <meyering@redhat.com>
17829
17830         strstr: fix a bug whereby strstr would mistakenly return NULL
17831         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
17832         in period calculation.
17833         (two_way_long_needle): Likewise.
17834         The original problem was reported by Mike Stump in
17835         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
17836         Ralf Wildenhues provided the short needle and haystack.
17837         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
17838         Add a more involved test to trigger the bug in two_way_long_needle.
17839
17840 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17841
17842         gnulib-tool: remove use of bold display in help screen
17843         * gnulib-tool (func_usage): Do not use bold display anymore in the
17844         help screen.  That was just meant to be a temporary emphasis for a
17845         backward-incompatible change.
17846
17847 2011-02-23  Bruno Haible  <bruno@clisp.org>
17848
17849         Fix misindentation of preprocessor directives.
17850         * lib/argp-namefrob.h: Reindent preprocessor directives.
17851         * lib/getopt_int.h (struct _getopt_data): Likewise.
17852         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
17853         * lib/vasnprintf.c (decode_long_double): Likewise.
17854         * tests/test-argmatch.c: Insert blank lines, for clarity.
17855         * tests/test-exclude.c: Likewise.
17856
17857 2011-02-22  Bruno Haible  <bruno@clisp.org>
17858
17859         ioctl: Fix for MacOS X in 64-bit mode.
17860         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
17861         value.
17862         Suggested by Eric Blake.
17863         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
17864
17865 2011-02-22  Jim Meyering  <meyering@redhat.com>
17866
17867         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
17868         * Makefile (sc_cpp_indent_check): Don't limit the check to files
17869         in lib/.
17870
17871 2011-02-22  Eric Blake  <eblake@redhat.com>
17872
17873         maint: avoid any CDPATH issue
17874         * Makefile (sc_cpp_indent_check): Anchor cd argument.
17875
17876         maint: adjust cpp indentation for my modules, as well
17877         * Makefile (sc_cpp_indent_check): Add my name.
17878         * lib/fbufmode.c: Filter through cppi.
17879         * lib/fpurge.c: Likewise.
17880         * lib/freadable.c: Likewise.
17881         * lib/freading.c: Likewise.
17882         * lib/fwritable.c: Likewise.
17883         * lib/fwriting.c: Likewise.
17884         * lib/sigaction.c: Likewise.
17885
17886 2011-02-22  Jim Meyering  <meyering@redhat.com>
17887
17888         maint: adjust cpp indentation to reflect nesting depth
17889         I.e., in a block of code that begins with an unnested "#if",
17890         put one space between the "#" in column 1 and following token.
17891         For example,
17892         -#include <sys/vfs.h>
17893         +# include <sys/vfs.h>
17894         Do this only in .c files that are part of a module I maintain.
17895         * lib/linkat.c: Filter through cppi.
17896         * lib/nanosleep.c: Likewise.
17897         * lib/openat.c: Likewise.
17898         * lib/openat-die.c: Likewise.
17899         * lib/dup3.c: Likewise.
17900         * lib/fchownat.c: Likewise.
17901         * lib/flock.c: Likewise.
17902         * lib/fsync.c: Likewise.
17903         * lib/fts.c: Likewise.
17904         * lib/getpass.c: Likewise.
17905         * lib/gettimeofday.c: Likewise.
17906         * lib/userspec.c: Likewise.
17907         * Makefile (sc_cpp_indent_check): New rule, to check this.
17908
17909 2011-02-22  Bruno Haible  <bruno@clisp.org>
17910
17911         New module 'wctomb'.
17912         * lib/stdlib.in.h (wctomb): New declaration.
17913         * lib/wctomb.c: New file.
17914         * lib/wctomb-impl.h: New file.
17915         * m4/wctomb.m4: New file.
17916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
17917         REPLACE_WCTOMB.
17918         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
17919         REPLACE_WCTOMB.
17920         * modules/wctomb: New file.
17921         * tests/test-stdlib-c++.cc: Test signature of wctomb.
17922         * doc/posix-functions/wctomb.texi: Mention the new module.
17923         * modules/wctob (Depends-on): Add wctomb.
17924
17925 2011-02-22  Bruno Haible  <bruno@clisp.org>
17926
17927         New module 'mbtowc'.
17928         * lib/stdlib.in.h (mbtowc): New declaration.
17929         * lib/mbtowc.c: New file.
17930         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
17931         * m4/mbtowc.m4: New file.
17932         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
17933         REPLACE_MBTOWC.
17934         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
17935         REPLACE_MBTOWC.
17936         * modules/mbtowc: New file.
17937         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
17938         * doc/posix-functions/mbtowc.texi: Mention the new module.
17939         * modules/btowc (Depends-on): Add mbtowc.
17940
17941 2011-02-22  Bruno Haible  <bruno@clisp.org>
17942
17943         wcrtomb: Add more tests for native Windows platforms.
17944         * tests/test-wcrtomb-w32-1.sh: New file.
17945         * tests/test-wcrtomb-w32-2.sh: New file.
17946         * tests/test-wcrtomb-w32-3.sh: New file.
17947         * tests/test-wcrtomb-w32-4.sh: New file.
17948         * tests/test-wcrtomb-w32-5.sh: New file.
17949         * tests/test-wcrtomb-w32.c: New file.
17950         * modules/wcrtomb-tests (Files): Add them.
17951         (Makefile.am): Arrange to run these tests.
17952         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
17953         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
17954
17955 2011-02-20  Bruno Haible  <bruno@clisp.org>
17956
17957         wcrtomb: Enhance test.
17958         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
17959
17960 2011-02-20  Bruno Haible  <bruno@clisp.org>
17961
17962         mbrtowc: Tiny optimization.
17963         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
17964
17965 2011-02-20  Jim Meyering  <meyering@redhat.com>
17966
17967         test-exclude.c: remove unmatched #endif
17968         * tests/test-exclude.c: Remove stray #endif, left over from
17969         the change of a week ago.
17970
17971 2011-02-19  Jim Meyering  <meyering@redhat.com>
17972
17973         git-version-gen: skip "-dirty" check when appropriate
17974         * build-aux/git-version-gen: Don't run any git commands when the
17975         version string comes from .tarball-version.  Prior to this, we
17976         would run git update-index --refresh even from a just-unpacked
17977         tarball directory, and that could affect a .git/ directory in a
17978         parent of the build directory.  Reported by Mike Frysinger.
17979
17980 2011-02-19  Bruno Haible  <bruno@clisp.org>
17981
17982         unictype/property-byname: Reduce the size of the 'data' segment.
17983         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
17984
17985 2011-02-19  Bruno Haible  <bruno@clisp.org>
17986
17987         unictype/scripts: Reduce the size of the 'data' segment.
17988         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
17989         '%pic'.
17990         * lib/unictype/scripts_byname.gperf: Regenerated.
17991
17992 2011-02-19  Bruno Haible  <bruno@clisp.org>
17993
17994         stdint: Update documentation.
17995         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
17996
17997 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
17998
17999         stdint: omit redundant check for wchar.h
18000         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18001         always tests whether wchar.h exists, so remove the now-redundant test.
18002
18003 2011-02-18  Bruno Haible  <bruno@clisp.org>
18004
18005         stdint: Cut dependency to module 'wchar'.
18006         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18007         include the necessary prerequisites.
18008         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18009         * modules/stdint (Depends-on): Remove wchar.
18010         (Makefile.am): Substitute HAVE_WCHAR_H.
18011         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
18012
18013 2011-02-18  Eric Blake  <eblake@redhat.com>
18014
18015         longlong: skip, rather than fail, on cross-compilation
18016         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
18017         when cross-compiling; regression from 2011-02-16.
18018
18019 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18020
18021         * NEWS: Mention 2011-02-08 change to stdlib.
18022
18023 2011-02-17  Bruno Haible  <bruno@clisp.org>
18024
18025         getloadavg: Add comments about platforms.
18026         * m4/getloadavg.m4: Add comment.
18027         * lib/getloadavg.c: Likewise.
18028
18029 2011-02-17  Bruno Haible  <bruno@clisp.org>
18030
18031         getloadavg: Fix link error on Solaris 2.6.
18032         * modules/getloadavg (Link): New section.
18033         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
18034         linking test-getloadavg.
18035         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
18036         getloadavg.
18037
18038 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18039
18040         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
18041         It was 'int', but this doesn't match the IRIX 6.5 manual.
18042         Suggested by Bruno Haible in
18043         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
18044
18045 2011-02-17  Bruno Haible  <bruno@clisp.org>
18046
18047         havelib: Fix comments.
18048         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
18049         change.
18050
18051 2011-02-17  Bruno Haible  <bruno@clisp.org>
18052
18053         havelib: Update config.rpath.
18054         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
18055
18056 2011-02-17  Bruno Haible  <bruno@clisp.org>
18057
18058         getloadavg test: Add some plausibility checks.
18059         * tests/test-getloadavg.c (check_avg): Print a warning when the value
18060         is improbable.
18061
18062 2011-02-16  Eric Blake  <eblake@redhat.com>
18063
18064         maintainer-makefile: make syntax-check a no-op from tarballs
18065         * top/maint.mk (no-vc-detected): New rule.
18066         (local-checks-available): Use it to avoid hanging if someone tries
18067         'make syntax-check' from a tarball.  Also append to any non-syntax
18068         checks already defined in cfg.mk.
18069
18070 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
18071
18072         longlong: tune, particularly for common case of c99
18073
18074         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
18075         or running anything if c99, or if unsigned long long int does not
18076         work.  In either case, we know the answer without further tests.
18077         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
18078         it at most once, and use its results for both long long int and
18079         unsigned long long int.  This is more likely to be efficient in
18080         the common case where the program wants to check for both long
18081         long int and unsigned long long int.
18082         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
18083         since the answer is already known.
18084
18085 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
18086
18087         getloadavg: set errno
18088         * lib/getloadavg.c: Set errno when returning -1.  If no other
18089         error number looks appropriate, set it to ENOSYS if the getloadavg
18090         looks like it can't possibly ever work, ENOTSUP otherwise.
18091         Suggested by Bruno Haible in
18092         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
18093
18094         getloadavg: trim unused parts and speed up 'configure'
18095         * NEWS: Document this.
18096         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
18097         always compiled if getloadavg is absent.
18098         Move test code to ...
18099         * tests/test-getloadavg.c: New file, containing previous
18100         contents of test from lib/getloadavg.c.  It also contains
18101         suggestions by Bruno Haible in
18102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
18103         * modules/getloadavg-tests: New file.
18104         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
18105         Do tests in the same order as they're needed for getloadavg.c.
18106         Omit setgid-related tests that generate symbols KMEM_GROUP,
18107         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
18108         Do only the tests that are needed to see whether the system has
18109         getloadavg, moving the other tests into ...
18110         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
18111         NLIST_NAME_UNION; nobody should be using it.  Do not define
18112         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
18113         relevant, as the user of this module shouldn't care how getloadavg
18114         is implemented.
18115
18116         getloadavg: omit unused var
18117         * lib/getloadavg.c (getloadavg): Omit unused local variable.
18118
18119 2011-02-15  Jim Meyering  <meyering@redhat.com>
18120
18121         doc: update users.txt
18122         * users.txt: Update iwhd's URL.
18123
18124 2011-02-13  Bruno Haible  <bruno@clisp.org>
18125
18126         Consistent macro naming for macros that use GCC __attribute__.
18127         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
18128         _ATTRIBUTE_NONNULL_.
18129         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
18130         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
18131         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
18132         ATTRIBUTE_DEPRECATED.
18133         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
18134         ATTRIBUTE_NORETURN.
18135         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18136         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18137         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18138         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18139         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
18140         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
18141         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
18142         ATTRIBUTE_SENTINEL.
18143         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
18144         ATTRIBUTE_RETURN_CHECK.
18145         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
18146         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
18147         ATTRIBUTE_NORETURN.
18148         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
18149         Reported by Paul Eggert.
18150
18151 2011-02-13  Bruno Haible  <bruno@clisp.org>
18152
18153         Don't interfere with a program's definition of __attribute__.
18154         * lib/argp.h (__attribute__): Remove definition.
18155         (_GL_ATTRIBUTE_FORMAT): New macro.
18156         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
18157         * lib/argp-fmtstream.h (__attribute__): Remove definition.
18158         (_GL_ATTRIBUTE_FORMAT): New macro.
18159         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
18160         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
18161         GCC 3 or newer.
18162         * lib/error.h (__attribute__): Remove definition.
18163         (_GL_ATTRIBUTE_FORMAT): New macro.
18164         (error, error_at_line): Use it.
18165         * lib/hash.h (__attribute__): Remove definition.
18166         (ATTRIBUTE_WUR): Update definition. Define always.
18167         * lib/openat.h (__attribute__): Remove definition.
18168         (ATTRIBUTE_NORETURN): Update definition. Define always.
18169         * lib/sigpipe-die.h (__attribute__): Remove definition.
18170         (ATTRIBUTE_NORETURN): Update definition. Define always.
18171         * lib/vasnprintf.h (__attribute__): Remove definition.
18172         (_GL_ATTRIBUTE_FORMAT): New macro.
18173         (asnprintf, vasnprintf): Use it.
18174         * lib/xalloc.h (__attribute__): Remove definition.
18175         (ATTRIBUTE_NORETURN): Update definition. Define always.
18176         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
18177         * lib/xmemdup0.h (__attribute__): Remove definition.
18178         (ATTRIBUTE_NORETURN): Update definition. Define always.
18179         * lib/xprintf.h (__attribute__): Remove definition.
18180         (_GL_ATTRIBUTE_FORMAT): New macro.
18181         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
18182         * lib/xstrtol.h (__attribute__): Remove definition.
18183         (ATTRIBUTE_NORETURN): Update definition. Define always.
18184         * lib/xvasprintf.h (__attribute__): Remove definition.
18185         (_GL_ATTRIBUTE_FORMAT): New macro.
18186         (xasprintf, xvasprintf): Use it.
18187         * tests/test-argmatch.c (__attribute__): Remove definition.
18188         (ATTRIBUTE_NORETURN): Update definition. Define always.
18189         * tests/test-exclude.c (__attribute__): Remove definition.
18190         (ATTRIBUTE_NORETURN): Update definition. Define always.
18191         Reported by Paul Eggert.
18192
18193 2011-02-13  Bruno Haible  <bruno@clisp.org>
18194
18195         mbrtowc: Add more tests for native Windows platforms.
18196         * tests/test-mbrtowc-w32-1.sh: New file.
18197         * tests/test-mbrtowc-w32-2.sh: New file.
18198         * tests/test-mbrtowc-w32-3.sh: New file.
18199         * tests/test-mbrtowc-w32-4.sh: New file.
18200         * tests/test-mbrtowc-w32-5.sh: New file.
18201         * tests/test-mbrtowc-w32.c: New file.
18202         * modules/mbrtowc-tests (Files): Add them.
18203         (Makefile.am): Arrange to run these tests.
18204         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
18205         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
18206
18207 2011-02-13  Bruno Haible  <bruno@clisp.org>
18208
18209         mbrtowc: Work around native Windows bug.
18210         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
18211         guess when no suitable locale for testing was found.
18212         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
18213
18214 2011-02-13  Bruno Haible  <bruno@clisp.org>
18215
18216         mbsinit: Work around mingw bug.
18217         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
18218         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
18219         Windows.
18220         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
18221
18222 2011-02-13  Bruno Haible  <bruno@clisp.org>
18223
18224         mbsinit: Don't crash for a NULL argument.
18225         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
18226         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
18227
18228 2011-02-13  Bruno Haible  <bruno@clisp.org>
18229
18230         Don't interfere with a program's definition of __attribute__.
18231         * lib/stdio.in.h (__attribute__): Remove definition.
18232         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
18233         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
18234         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
18235         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
18236         * lib/string.in.h (__attribute__): Remove definition.
18237         Reported by Paul Eggert.
18238
18239 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18240
18241         stdlib: don't get in the way of non-GCC __attribute__
18242         See thread starting at
18243         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
18244         Revert previous stdlib change, installing the following instead:
18245         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
18246         to get in the way of a non-GCC compiler that supports __attribute__.
18247         (_GL_ATTRIBUTE_RETURN): New macro.
18248         (_Exit): Use it instead of __attribute__.
18249
18250 2011-02-12  Bruno Haible  <bruno@clisp.org>
18251
18252         quotearg test: Avoid test failure on mingw.
18253         * tests/test-quotearg.sh: Convert the locale identifier from native
18254         Windows syntax to Unix syntax.
18255
18256 2011-02-12  Bruno Haible  <bruno@clisp.org>
18257
18258         setlocale: Prefer gnulib's override over libintl's override.
18259         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
18260         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
18261         GNULIB_defined_setlocale is set.
18262
18263 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18264
18265         stdlib: support non-GCC __attribute__
18266
18267         Fix a serious and tricky problem encountered when attempting to
18268         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
18269         5.5, but it crashed due to memory corruption on Solaris 10 with
18270         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
18271         bits that are otherwise zero.  This tagging is optional inside
18272         Emacs but is preferred and is used when __attribute__ ((__aligned
18273         (8))) works, as it does with both recent-enough GCC and with Sun C
18274         5.11.  However, Sun C 5.11 is not GCC and does not #define
18275         __GNUC__ and __GNUC_MINOR__.
18276
18277         When I added the getloadavg module to Emacs, it brought in
18278         stdlib.in.h, which contained this fragment:
18279
18280            #ifndef __attribute__
18281            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
18282            #  define __attribute__(Spec)   /* empty */
18283            # endif
18284            #endif
18285
18286         When files that include <stdlib.h> were compiled with Sun C 5.11,
18287         the above code disabled __attribute__ ((__aligned (8))), which
18288         caused variables to not be properly aligned, which eventually led
18289         to the pointer corruption mentioned above.  (This was a bit hard
18290         to diagnose, unfortunately.)
18291
18292         Several "#define __attribute__(X) /* empty */" code snippets need
18293         to be eradicated from Gnulib to work with non-GCC compilers that
18294         support __attribute__.  The Autoconf way to do this is to test for
18295         each kind of attribute that we want support for, and selectively
18296         enable that in source code.
18297
18298         Fix this problem just for stdlib.h, by adding a test for the
18299         __noreturn__ attribute, and change stdlib.in.h to use that test
18300         when needed.  This technique can be easily generalized to the
18301         other *.in.h files and attributes, and a similar technique can be
18302         used for *.h and *.c files.  This patch is enough to solve the
18303         problem for Emacs + getloadavg, and I thought I'd publish it for
18304         feedback before undertaking further, similar fixes in other
18305         modules.
18306
18307         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
18308         because it's not needed for stdlib.h.  It merely substitutes the
18309         value directly into stdlib.h.  We may well need to #define it, or
18310         similar symbols, for other modules, but it's nice to also have an
18311         option to not #define it for applications like Emacs that do not
18312         need it.
18313
18314         * lib/stdlib.in.h (__attribute__): Do not #define.
18315         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
18316         be defined only if the _Exit module is also used.
18317         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
18318         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
18319         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
18320         platforms.
18321         * modules/_Exit (Files): Add m4/attribute.m4.
18322         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
18323         * m4/attribute.m4: New file.
18324
18325 2011-02-12  Bruno Haible  <bruno@clisp.org>
18326
18327         wcsrtombs: Work around bug on native Windows.
18328         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
18329         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
18330         instead of len.
18331         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
18332
18333 2011-02-12  Bruno Haible  <bruno@clisp.org>
18334
18335         mbsrtowcs: Work around bug on native Windows.
18336         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
18337         against mingw bug.
18338         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
18339
18340 2011-02-12  Bruno Haible  <bruno@clisp.org>
18341
18342         Avoid setlocale bugs in tests.
18343         * modules/btowc (Dependencies): Add setlocale.
18344         * modules/c-strcase (Dependencies): Likewise.
18345         * modules/mbmemcasecmp (Dependencies): Likewise.
18346         * modules/mbmemcasecoll (Dependencies): Likewise.
18347         * modules/mbrtowc (Dependencies): Likewise.
18348         * modules/mbscasecmp (Dependencies): Likewise.
18349         * modules/mbscasestr (Dependencies): Likewise.
18350         * modules/mbschr (Dependencies): Likewise.
18351         * modules/mbscspn (Dependencies): Likewise.
18352         * modules/mbsinit (Dependencies): Likewise.
18353         * modules/mbsncasecmp (Dependencies): Likewise.
18354         * modules/mbsnrtowcs (Dependencies): Likewise.
18355         * modules/mbspbrk (Dependencies): Likewise.
18356         * modules/mbspcasecmp (Dependencies): Likewise.
18357         * modules/mbsrchr (Dependencies): Likewise.
18358         * modules/mbsrtowcs (Dependencies): Likewise.
18359         * modules/mbsspn (Dependencies): Likewise.
18360         * modules/mbsstr (Dependencies): Likewise.
18361         * modules/nl_langinfo (Dependencies): Likewise.
18362         * modules/quotearg (Dependencies): Likewise.
18363         * modules/unicase/locale-language (Dependencies): Likewise.
18364         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
18365         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
18366         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
18367         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
18368         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
18369         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
18370         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
18371         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
18372         * modules/vasnprintf-posix (Dependencies): Likewise.
18373         * modules/wcrtomb (Dependencies): Likewise.
18374         * modules/wcsnrtombs (Dependencies): Likewise.
18375         * modules/wcsrtombs (Dependencies): Likewise.
18376
18377 2011-02-12  Bruno Haible  <bruno@clisp.org>
18378
18379         setlocale: Workaround native Windows bug.
18380         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
18381         succeeds but sets LC_CTYPE to "C", report a failure.
18382         * tests/test-setlocale2.sh: New file.
18383         * tests/test-setlocale2.c: New file.
18384         * modules/setlocale-tests (Files): Add the new files.
18385         (Makefile.am): Enable test-setlocale2.sh test.
18386         * doc/posix-functions/setlocale.texi: Mention workaround.
18387
18388 2011-02-11  Bruno Haible  <bruno@clisp.org>
18389
18390         Tests for module 'setlocale'.
18391         * modules/setlocale-tests: New file.
18392         * tests/test-setlocale1.sh: New file.
18393         * tests/test-setlocale1.c: New file.
18394
18395         New module 'setlocale'.
18396         * lib/locale.in.h (setlocale): New declaration.
18397         * lib/setlocale.c: New file, based on
18398         gettext/gettext-runtime/intl/setlocale.c.
18399         * m4/setlocale.m4: New file.
18400         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
18401         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
18402         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
18403         REPLACE_SETLOCALE.
18404         * modules/setlocale: New file.
18405         * tests/test-locale-c++.cc: Test the declaration of setlocale.
18406         * doc/posix-functions/setlocale.texi: Mention the new module.
18407
18408 2011-02-11  Bruno Haible  <bruno@clisp.org>
18409
18410         Prepare for locale dependent tests on mingw.
18411         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
18412         because it has the wrong locale encoding.
18413         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
18414         French_France.1252 instead of "fr".
18415         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
18416         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
18417         because it has the wrong locale encoding.
18418         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
18419         native Windows, try Turkish_Turkey.65001.
18420         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
18421         Chinese_China.54936.
18422
18423         Prepare for locale dependent tests on mingw.
18424         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
18425         differently.
18426         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
18427         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
18428         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
18429         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18430
18431 2011-02-11  Eric Blake  <eblake@redhat.com>
18432
18433         strptime: avoid compiler warnings
18434         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
18435         compiler warnings about dead code.
18436         Reported by Daniel P. Berrange.
18437
18438 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
18439
18440         doc: update users.txt
18441         * users.txt: Add rcs.
18442
18443 2011-02-10  John W. Eaton  <jwe@gnu.org>
18444
18445         doc: update users.txt
18446         * users.txt: Add octave.
18447
18448 2011-02-10  Jim Meyering  <meyering@redhat.com>
18449
18450         doc: update users.txt
18451         * users.txt: Add iwhd.
18452
18453 2011-02-09  Bruno Haible  <bruno@clisp.org>
18454
18455         gnulib-tool: Make copyright notice adjustment more robust.
18456         * gnulib-tool (func_import): In sed_transform_main_lib_file,
18457         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
18458         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
18459         License".
18460         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
18461
18462 2011-02-06  Bruno Haible  <bruno@clisp.org>
18463
18464         New module 'towctrans'.
18465         * modules/towctrans: New file.
18466         * lib/wctype.in.h (towctrans): New declaration.
18467         * lib/towctrans.c: New file.
18468         * lib/towctrans-impl.h: New file.
18469         * m4/towctrans.m4: New file.
18470         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
18471         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
18472         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
18473         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
18474         * doc/posix-functions/towctrans.texi: Mention the new module.
18475
18476 2011-02-06  Bruno Haible  <bruno@clisp.org>
18477
18478         New module 'wctrans'.
18479         * modules/wctrans: New file.
18480         * lib/wctype.in.h (wctrans): New declaration.
18481         * lib/wctrans.c: New file.
18482         * lib/wctrans-impl.h: New file.
18483         * m4/wctrans.m4: New file.
18484         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
18485         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
18486         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
18487         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
18488         * doc/posix-functions/wctrans.texi: Mention the new module.
18489
18490 2011-02-06  Bruno Haible  <bruno@clisp.org>
18491
18492         New module 'iswctype'.
18493         * modules/iswctype: New file.
18494         * lib/wctype.in.h (iswctype): New declaration.
18495         * lib/iswctype.c: New file.
18496         * lib/iswctype-impl.h: New file.
18497         * m4/iswctype.m4: New file.
18498         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
18499         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
18500         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
18501         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
18502         * doc/posix-functions/iswctype.texi: Mention the new module and the
18503         HP-UX 11.00 problem.
18504
18505 2011-02-06  Bruno Haible  <bruno@clisp.org>
18506
18507         New module 'wctype'.
18508         * modules/wctype: Change to represent the wctype() substitute.
18509         * lib/wctype.in.h (wctype): New declaration.
18510         * lib/wctype.c: New file.
18511         * lib/wctype-impl.h: New file.
18512         * m4/wctype.m4: New file.
18513         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
18514         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
18515         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
18516         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
18517         * doc/posix-functions/wctype.texi: Mention the new module and the
18518         HP-UX 11.00 problem.
18519
18520 2011-02-06  Bruno Haible  <bruno@clisp.org>
18521
18522         wctype-h: Ensure wctype_t and wctrans_t are defined.
18523         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
18524         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
18525         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
18526         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
18527         HAVE_WCTRANS_T.
18528         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
18529
18530 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
18531
18532         flock: fix license typo
18533
18534         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
18535         omitted.
18536
18537 2011-02-08  Bruno Haible  <bruno@clisp.org>
18538
18539         Split large sed scripts, for HP-UX sed.
18540         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
18541         to avoid HP-UX limit of 99 commands, in the near future.
18542         * modules/stdlib (Makefile.am): Likewise.
18543         * modules/unistd (Makefile.am): Likewise.
18544         * modules/wchar (Makefile.am): Likewise.
18545         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18546         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
18547         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
18548
18549 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
18550             Bruno Haible  <bruno@clisp.org>
18551
18552         stdlib: improve random_r modularization
18553         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
18554         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
18555         you also need the random_r module to get this material right.
18556         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
18557         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
18558         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
18559
18560 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
18561
18562         stdlib: don't depend on stdint
18563         * lib/stdlib.in.h: Don't include <stdint.h> merely because
18564         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
18565         be independent of whether stdint.h is needed.
18566         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
18567         here, instead of ...
18568         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
18569         struct random_data should be using the random_r module, not just
18570         the stdlib module (which wouldn't make sense: what package needs
18571         just struct random_data without also needing random_r?).
18572         * modules/stdlib (Depends-on): Remove stdint.
18573
18574         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
18575         See the thread rooted at
18576         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
18577         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
18578         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
18579         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
18580         __VMS)); previously it was always included (via fcntl--.h).
18581         (getloadavg): Do not use c_strtod.  Instead, approximate it by
18582         hand; this is good enough for load averages.  Also, do not use
18583         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
18584         flags directly if available and don't bother otherwise.  (Packages
18585         that need the extra reliability should use the modules that define
18586         these flags on older platforms that lack them.)
18587         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
18588         fcntl-safer.
18589
18590 2011-02-08  Jim Meyering  <meyering@redhat.com>
18591
18592         di-set.h, ino-map.h: add multiple-inclusion guard
18593         Technically, the guard is required only for ino-map.h, due to its
18594         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
18595         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
18596         * lib/ino-map.h: Likewise.
18597
18598 2011-02-06  Bruno Haible  <bruno@clisp.org>
18599
18600         iswblank: Ensure declaration on glibc systems.
18601         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
18602         * modules/iswblank (Dependencies): Add 'extensions'.
18603         * doc/posix-functions/iswblank.texi: Document the glibc problem.
18604
18605 2011-02-06  Bruno Haible  <bruno@clisp.org>
18606
18607         New module 'iswblank'.
18608         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
18609         * modules/iswblank: New file.
18610         * modules/wctype-h (Files): Remove lib/iswblank.c.
18611         (Makefile.am): Substitute GNULIB_ISWBLANK.
18612         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
18613         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
18614         (gl_WCTYPE_H_DEFAULTS): New macro.
18615         (gl_WCTYPE_H): Require it. Remove iswblank related code.
18616         * modules/iswblank-tests: New file.
18617         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
18618         * tests/test-wctype-h.c (main): Remove iswblank tests.
18619         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
18620         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
18621         of 'wctype-h'.
18622         * NEWS: Mention the change.
18623         * modules/mbchar (Depends-on): Add iswblank.
18624
18625 2011-02-08  Bruno Haible  <bruno@clisp.org>
18626
18627         di-set tests: Refactor.
18628         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
18629         unnecessary includes.
18630         (ASSERT): Remove macro.
18631         (main): Make C90 compliant by avoiding variable declaration after
18632         statement.
18633         * modules/di-set-tests (Files): Add tests/macros.h.
18634
18635 2011-02-08  Bruno Haible  <bruno@clisp.org>
18636
18637         ino-map tests: Refactor.
18638         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
18639         unnecessary includes.
18640         (ASSERT): Remove macro.
18641         (main): Make C90 compliant by avoiding variable declaration after
18642         statement.
18643         * modules/ino-map-tests (Files): Add tests/macros.h.
18644
18645 2011-02-08  Jim Meyering  <meyering@redhat.com>
18646
18647         di-set: add "const" to a cast
18648         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
18649         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
18650
18651 2011-02-06  Bruno Haible  <bruno@clisp.org>
18652
18653         Rename module 'wctype' to 'wctype-h'.
18654         * modules/wctype-h: Renamed from modules/wctype.
18655         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
18656         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
18657         (Files, Depends-on, Makefile.am): Update.
18658         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
18659         (Files, Makefile.am): Update.
18660         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
18661         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
18662         * doc/posix-headers/wctype.texi: Update.
18663         * doc/posix-functions/iswalnum.texi: Update.
18664         * doc/posix-functions/iswalpha.texi: Update.
18665         * doc/posix-functions/iswblank.texi: Update.
18666         * doc/posix-functions/iswcntrl.texi: Update.
18667         * doc/posix-functions/iswdigit.texi: Update.
18668         * doc/posix-functions/iswgraph.texi: Update.
18669         * doc/posix-functions/iswlower.texi: Update.
18670         * doc/posix-functions/iswprint.texi: Update.
18671         * doc/posix-functions/iswpunct.texi: Update.
18672         * doc/posix-functions/iswspace.texi: Update.
18673         * doc/posix-functions/iswupper.texi: Update.
18674         * doc/posix-functions/iswxdigit.texi: Update.
18675         * doc/posix-functions/towlower.texi: Update.
18676         * doc/posix-functions/towupper.texi: Update.
18677         * NEWS: Mention the change.
18678         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
18679         * modules/mbchar (Dependencies): Likewise.
18680         * modules/mbswidth (Dependencies): Likewise.
18681         * modules/quotearg (Dependencies): Likewise.
18682         * modules/regex (Dependencies): Likewise.
18683         * modules/wcscasecmp (Dependencies): Likewise.
18684         * modules/wcsncasecmp (Dependencies): Likewise.
18685         * modules/wcwidth (Dependencies): Likewise.
18686
18687 2011-02-06  Bruno Haible  <bruno@clisp.org>
18688
18689         New module 'wcswidth'.
18690         * modules/wcswidth: New file.
18691         * lib/wchar.in.h (wcswidth): New declaration.
18692         * lib/wcswidth.c: New file.
18693         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
18694         * m4/wcswidth.m4: New file.
18695         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
18696         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
18697         REPLACE_WCSWIDTH.
18698         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
18699         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
18700         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
18701         * doc/posix-functions/wcswidth.texi: Mention the new module.
18702
18703 2011-02-06  Bruno Haible  <bruno@clisp.org>
18704
18705         New module 'wcstok'.
18706         * modules/wcstok: New file.
18707         * lib/wchar.in.h (wcstok): New declaration.
18708         * lib/wcstok.c: New file.
18709         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
18710         * m4/wcstok.m4: New file.
18711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
18712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
18713         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
18714         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
18715         * doc/posix-functions/wcstok.texi: Mention the new module.
18716
18717 2011-02-06  Bruno Haible  <bruno@clisp.org>
18718
18719         New module 'wcsstr'.
18720         * modules/wcsstr: New file.
18721         * lib/wchar.in.h (wcsstr): New declaration.
18722         * lib/wcsstr.c: New file.
18723         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
18724         * m4/wcsstr.m4: New file.
18725         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
18726         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
18727         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
18728         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
18729         * doc/posix-functions/wcsstr.texi: Mention the new module.
18730
18731 2011-02-06  Bruno Haible  <bruno@clisp.org>
18732
18733         New module 'wcspbrk'.
18734         * modules/wcspbrk: New file.
18735         * lib/wchar.in.h (wcspbrk): New declaration.
18736         * lib/wcspbrk.c: New file.
18737         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
18738         * m4/wcspbrk.m4: New file.
18739         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
18740         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
18741         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
18742         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
18743         * doc/posix-functions/wcspbrk.texi: Mention the new module.
18744
18745 2011-02-06  Bruno Haible  <bruno@clisp.org>
18746
18747         New module 'wcsspn'.
18748         * modules/wcsspn: New file.
18749         * lib/wchar.in.h (wcsspn): New declaration.
18750         * lib/wcsspn.c: New file.
18751         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
18752         * m4/wcsspn.m4: New file.
18753         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
18754         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
18755         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
18756         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
18757         * doc/posix-functions/wcsspn.texi: Mention the new module.
18758
18759 2011-02-06  Bruno Haible  <bruno@clisp.org>
18760
18761         New module 'wcscspn'.
18762         * modules/wcscspn: New file.
18763         * lib/wchar.in.h (wcscspn): New declaration.
18764         * lib/wcscspn.c: New file.
18765         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
18766         * m4/wcscspn.m4: New file.
18767         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
18768         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
18769         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
18770         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
18771         * doc/posix-functions/wcscspn.texi: Mention the new module.
18772
18773 2011-02-06  Bruno Haible  <bruno@clisp.org>
18774
18775         New module 'wcsrchr'.
18776         * modules/wcsrchr: New file.
18777         * lib/wchar.in.h (wcsrchr): New declaration.
18778         * lib/wcsrchr.c: New file.
18779         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
18780         * m4/wcsrchr.m4: New file.
18781         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
18782         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
18783         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
18784         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
18785         * doc/posix-functions/wcsrchr.texi: Mention the new module.
18786
18787 2011-02-06  Bruno Haible  <bruno@clisp.org>
18788
18789         New module 'wcschr'.
18790         * modules/wcschr: New file.
18791         * lib/wchar.in.h (wcschr): New declaration.
18792         * lib/wcschr.c: New file.
18793         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
18794         * m4/wcschr.m4: New file.
18795         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
18796         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
18797         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
18798         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
18799         * doc/posix-functions/wcschr.texi: Mention the new module.
18800
18801 2011-02-06  Bruno Haible  <bruno@clisp.org>
18802
18803         New module 'wcsdup'.
18804         * modules/wcsdup: New file.
18805         * lib/wchar.in.h (wcsdup): New declaration.
18806         * lib/wcsdup.c: New file.
18807         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
18808         * m4/wcsdup.m4: New file.
18809         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
18810         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
18811         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
18812         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
18813         * doc/posix-functions/wcsdup.texi: Mention the new module.
18814
18815 2011-02-06  Bruno Haible  <bruno@clisp.org>
18816
18817         New module 'wcsxfrm'.
18818         * modules/wcsxfrm: New file.
18819         * lib/wchar.in.h (wcsxfrm): New declaration.
18820         * lib/wcsxfrm.c: New file.
18821         * lib/wcsxfrm-impl.h: New file.
18822         * m4/wcsxfrm.m4: New file.
18823         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
18824         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
18825         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
18826         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
18827         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
18828
18829 2011-02-06  Bruno Haible  <bruno@clisp.org>
18830
18831         New module 'wcscoll'.
18832         * modules/wcscoll: New file.
18833         * lib/wchar.in.h (wcscoll): New declaration.
18834         * lib/wcscoll.c: New file.
18835         * lib/wcscoll-impl.h: New file.
18836         * m4/wcscoll.m4: New file.
18837         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
18838         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
18839         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
18840         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
18841         * doc/posix-functions/wcscoll.texi: Mention the new module.
18842
18843 2011-02-06  Bruno Haible  <bruno@clisp.org>
18844
18845         New module 'wcsncasecmp'.
18846         * modules/wcsncasecmp: New file.
18847         * lib/wchar.in.h (wcsncasecmp): New declaration.
18848         * lib/wcsncasecmp.c: New file.
18849         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
18850         * m4/wcsncasecmp.m4: New file.
18851         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
18852         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
18853         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
18854         HAVE_WCSNCASECMP.
18855         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
18856         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
18857
18858 2011-02-06  Bruno Haible  <bruno@clisp.org>
18859
18860         New module 'wcscasecmp'.
18861         * modules/wcscasecmp: New file.
18862         * lib/wchar.in.h (wcscasecmp): New declaration.
18863         * lib/wcscasecmp.c: New file.
18864         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
18865         * m4/wcscasecmp.m4: New file.
18866         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
18867         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
18868         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
18869         HAVE_WCSCASECMP.
18870         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
18871         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
18872
18873 2011-02-05  Bruno Haible  <bruno@clisp.org>
18874
18875         New module 'wcsncmp'.
18876         * modules/wcsncmp: New file.
18877         * lib/wchar.in.h (wcsncmp): New declaration.
18878         * lib/wcsncmp.c: New file.
18879         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
18880         * m4/wcsncmp.m4: New file.
18881         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
18882         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
18883         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
18884         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
18885         * doc/posix-functions/wcsncmp.texi: Mention the new module.
18886
18887 2011-02-05  Bruno Haible  <bruno@clisp.org>
18888
18889         New module 'wcscmp'.
18890         * modules/wcscmp: New file.
18891         * lib/wchar.in.h (wcscmp): New declaration.
18892         * lib/wcscmp.c: New file.
18893         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
18894         * m4/wcscmp.m4: New file.
18895         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
18896         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
18897         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
18898         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
18899         * doc/posix-functions/wcscmp.texi: Mention the new module.
18900
18901 2011-02-05  Bruno Haible  <bruno@clisp.org>
18902
18903         New module 'wcsncat'.
18904         * modules/wcsncat: New file.
18905         * lib/wchar.in.h (wcsncat): New declaration.
18906         * lib/wcsncat.c: New file.
18907         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
18908         * m4/wcsncat.m4: New file.
18909         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
18910         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
18911         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
18912         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
18913         * doc/posix-functions/wcsncat.texi: Mention the new module.
18914
18915 2011-02-05  Bruno Haible  <bruno@clisp.org>
18916
18917         New module 'wcscat'.
18918         * modules/wcscat: New file.
18919         * lib/wchar.in.h (wcscat): New declaration.
18920         * lib/wcscat.c: New file.
18921         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
18922         * m4/wcscat.m4: New file.
18923         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
18924         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
18925         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
18926         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
18927         * doc/posix-functions/wcscat.texi: Mention the new module.
18928
18929 2011-02-05  Bruno Haible  <bruno@clisp.org>
18930
18931         New module 'wcpncpy'.
18932         * modules/wcpncpy: New file.
18933         * lib/wchar.in.h (wcpncpy): New declaration.
18934         * lib/wcpncpy.c: New file.
18935         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
18936         * m4/wcpncpy.m4: New file.
18937         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
18938         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
18939         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
18940         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
18941         * doc/posix-functions/wcpncpy.texi: Mention the new module.
18942
18943 2011-02-05  Bruno Haible  <bruno@clisp.org>
18944
18945         New module 'wcsncpy'.
18946         * modules/wcsncpy: New file.
18947         * lib/wchar.in.h (wcsncpy): New declaration.
18948         * lib/wcsncpy.c: New file.
18949         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
18950         * m4/wcsncpy.m4: New file.
18951         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
18952         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
18953         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
18954         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
18955         * doc/posix-functions/wcsncpy.texi: Mention the new module.
18956
18957 2011-02-05  Bruno Haible  <bruno@clisp.org>
18958
18959         New module 'wcpcpy'.
18960         * modules/wcpcpy: New file.
18961         * lib/wchar.in.h (wcpcpy): New declaration.
18962         * lib/wcpcpy.c: New file.
18963         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
18964         * m4/wcpcpy.m4: New file.
18965         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
18966         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
18967         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
18968         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
18969         * doc/posix-functions/wcpcpy.texi: Mention the new module.
18970
18971 2011-02-05  Bruno Haible  <bruno@clisp.org>
18972
18973         New module 'wcscpy'.
18974         * modules/wcscpy: New file.
18975         * lib/wchar.in.h (wcscpy): New declaration.
18976         * lib/wcscpy.c: New file.
18977         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
18978         * m4/wcscpy.m4: New file.
18979         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
18980         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
18981         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
18982         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
18983         * doc/posix-functions/wcscpy.texi: Mention the new module.
18984
18985 2011-02-05  Bruno Haible  <bruno@clisp.org>
18986
18987         New module 'wcsnlen'.
18988         * modules/wcsnlen: New file.
18989         * lib/wchar.in.h (wcsnlen): New declaration.
18990         * lib/wcsnlen.c: New file.
18991         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
18992         * m4/wcsnlen.m4: New file.
18993         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
18994         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
18995         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
18996         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
18997         * doc/posix-functions/wcsnlen.texi: Mention the new module.
18998
18999 2011-02-05  Bruno Haible  <bruno@clisp.org>
19000
19001         New module 'wcslen'.
19002         * modules/wcslen: New file.
19003         * lib/wchar.in.h (wcslen): New declaration.
19004         * lib/wcslen.c: New file.
19005         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19006         * m4/wcslen.m4: New file.
19007         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19008         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19009         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19010         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
19011         * doc/posix-functions/wcslen.texi: Mention the new module.
19012
19013 2011-02-05  Bruno Haible  <bruno@clisp.org>
19014
19015         New module 'wmemset'.
19016         * modules/wmemset: New file.
19017         * lib/wchar.in.h (wmemset): New declaration.
19018         * lib/wmemset.c: New file.
19019         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
19020         * m4/wmemset.m4: New file.
19021         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
19022         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
19023         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
19024         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
19025         * doc/posix-functions/wmemset.texi: Mention the new module.
19026
19027 2011-02-05  Bruno Haible  <bruno@clisp.org>
19028
19029         New module 'wmemmove'.
19030         * modules/wmemmove: New file.
19031         * lib/wchar.in.h (wmemmove): New declaration.
19032         * lib/wmemmove.c: New file.
19033         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
19034         * m4/wmemmove.m4: New file.
19035         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
19036         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
19037         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
19038         HAVE_WMEMMOVE.
19039         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
19040         * doc/posix-functions/wmemmove.texi: Mention the new module.
19041
19042 2011-02-05  Bruno Haible  <bruno@clisp.org>
19043
19044         New module 'wmemcpy'.
19045         * modules/wmemcpy: New file.
19046         * lib/wchar.in.h (wmemcpy): New declaration.
19047         * lib/wmemcpy.c: New file.
19048         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
19049         * m4/wmemcpy.m4: New file.
19050         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
19051         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
19052         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
19053         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
19054         * doc/posix-functions/wmemcpy.texi: Mention the new module.
19055
19056 2011-02-05  Bruno Haible  <bruno@clisp.org>
19057
19058         New module 'wmemcmp'.
19059         * modules/wmemcmp: New file.
19060         * lib/wchar.in.h (wmemcmp): New declaration.
19061         * lib/wmemcmp.c: New file.
19062         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
19063         * m4/wmemcmp.m4: New file.
19064         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
19065         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
19066         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
19067         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
19068         * doc/posix-functions/wmemcmp.texi: Mention the new module.
19069
19070 2011-02-07  Jim Meyering  <meyering@redhat.com>
19071
19072         di-set, ino-map: new modules, from coreutils
19073         * lib/di-set.c: New file.
19074         * lib/di-set.h: Likewise.
19075         * lib/ino-map.c: Likewise.
19076         * lib/ino-map.h: Likewise.
19077         * modules/di-set: Likewise.
19078         * modules/di-set-tests: Likewise.
19079         * modules/ino-map: Likewise.
19080         * modules/ino-map-tests: Likewise.
19081         * tests/test-di-set.c: Likewise.
19082         * tests/test-ino-map.c: Likewise.
19083
19084 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19085
19086         getloadavg: merge minor changes from Emacs
19087
19088         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
19089         (getloadavg): Use memset, not bzero.
19090
19091         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
19092         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
19093         clash (bug#86).
19094
19095 2010-11-14  Bruno Haible  <bruno@clisp.org>
19096
19097         Allow multiple gnulib generated replacements to coexist.
19098         * lib/getopt.in.h (struct option): Avoid identical redefinition.
19099         * lib/inttypes.in.h (imaxdiv_t): Likewise.
19100         * lib/langinfo.in.h (nl_item): Likewise.
19101         * lib/math.in.h (_NaN, NAN): Likewise.
19102         * lib/netdb.in.h (struct addrinfo): Likewise.
19103         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
19104         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
19105         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
19106         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
19107         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
19108         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
19109         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
19110         pthread_mutexattr_init, pthread_mutexattr_settype,
19111         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
19112         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
19113         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
19114         pthread_spin_trylock, pthread_spin_unlock): Likewise.
19115         * lib/sched.in.h (struct sched_param): Likewise.
19116         * lib/se-selinux.in.h (security_class_t, security_context_t,
19117         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
19118         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
19119         lsetfilecon, fsetfilecon, security_check_context,
19120         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
19121         Likewise.
19122         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
19123         Likewise.
19124         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
19125         _gl_function_taking_int_returning_void_t, union sigval,
19126         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
19127         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
19128         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19129         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
19130         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
19131         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
19132         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
19133         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
19134         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
19135         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
19136         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
19137         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
19138         socklen_t, rpl_fd_isset): Likewise.
19139         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
19140         * lib/sys_time.in.h (struct timeval): Likewise.
19141         * lib/sys_times.in.h (struct tms): Likewise.
19142         * lib/sys_utsname.in.h (struct utsname):
19143         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
19144         * lib/unistd.in.h (getpagesize): Likewise.
19145         * lib/wchar.in.h (mbstate_t): Likewise.
19146         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19147         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
19148         towlower, towupper): Likewise.
19149         Reported by Sam Steingold <sds@gnu.org>.
19150
19151 2011-02-05  Eric Blake  <eblake@redhat.com>
19152
19153         unsetenv: work around Haiku issues
19154         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
19155         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
19156
19157 2010-12-30  Bruce Korb  <bkorb@gnu.org>
19158
19159         libposix: avoid calling error() within libposix
19160         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
19161         is defined.
19162
19163 2011-02-05  Eric Blake  <eblake@redhat.com>
19164
19165         strerror_r-posix: port to cygwin
19166         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
19167         implementation.
19168         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
19169         * tests/test-strerror_r.c (main): Fix test.
19170         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19171         issue.
19172
19173 2011-02-05  Bruno Haible  <bruno@clisp.org>
19174
19175         New module 'wmemchr'.
19176         * modules/wmemchr: New file.
19177         * lib/wchar.in.h (wmemchr): New declaration.
19178         * lib/wmemchr.c: New file.
19179         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
19180         * m4/wmemchr.m4: New file.
19181         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
19182         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
19183         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
19184         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
19185         * doc/posix-functions/wmemchr.texi: Mention the new module.
19186
19187 2011-02-04  Eric Blake  <eblake@redhat.com>
19188
19189         fdopendir: detect FreeBSD bug
19190         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
19191         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
19192
19193 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19194
19195         stdbool: do not define HAVE_STDBOOL_H
19196         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
19197         AC_HEADER_STDBOOL.  All uses changed.  Do not define
19198         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
19199         imported from the latest Autoconf git.  It was motivated by Emacs,
19200         which uses gnulib but does not need HAVE_STDBOOL_H.
19201
19202 2011-02-04  Bruno Haible  <bruno@clisp.org>
19203
19204         wcsnrtombs: Prepare for new module wwcsnrtombs.
19205         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
19206         * lib/wcsnrtombs.c: Include it.
19207         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
19208
19209         wcsrtombs: Prepare for new module wwcsrtombs.
19210         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
19211         * lib/wcsrtombs.c: Include it.
19212         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
19213
19214         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
19215         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
19216         * lib/mbsnrtowcs.c: Include it.
19217         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
19218
19219         mbsrtowcs: Prepare for new module mbsrtowwcs.
19220         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
19221         * lib/mbsrtowcs.c: Include it.
19222         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
19223
19224 2011-02-04  Bruno Haible  <bruno@clisp.org>
19225
19226         vasnprintf: Reduce use of malloc for small format strings.
19227         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
19228         (arguments): Add room for the first 7 arguments.
19229         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
19230         (char_directives, u8_directives, u16_directives, u32_directives): Add
19231         room for the first 7 directives.
19232         * lib/printf-parse.c: Include <string.h>.
19233         (PRINTF_PARSE): Change memory handling code so that it uses the first
19234         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
19235         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
19236         Reported by Pádraig Brady <P@draigbrady.com>.
19237
19238 2011-01-31  Eric Blake  <eblake@redhat.com>
19239
19240         dup2: work around Haiku bug
19241         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
19242         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
19243         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19244         * tests/test-dup2.c (main): Enhance test.
19245
19246 2011-01-31  Simon Josefsson  <simon@josefsson.org>
19247
19248         doc: off_t is not available in eglibc 2.11.2 stdio.h.
19249         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
19250         declared by eglibc 2.11.2.
19251         * lib/stdio.in.h: Likewise.
19252
19253 2011-01-31  Eric Blake  <eblake@redhat.com>
19254
19255         ignore-value: add missing test dependency
19256         * tests/test-ignore-value.c: Revert previous change; stdio.h
19257         provides off_t.
19258         * modules/ignore-value-tests (Depends-on): Add missing dependency.
19259
19260 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
19261
19262         mktime: clarify long_int width checking
19263         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
19264         the top level, to make it clearer that the assumption about
19265         long_int width is being checked.  See
19266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
19267
19268 2011-01-30  Simon Josefsson  <simon@josefsson.org>
19269
19270         ignore-value: Fix self-test.
19271         * tests/test-ignore-value.c: Include sys/types.h for off_t.
19272
19273 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19274
19275         TYPE_MAXIMUM: avoid theoretically undefined behavior
19276         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
19277         negative number, which the C Standard says has undefined behavior.
19278         In practice this is not a problem, but might as well do it by the book.
19279         Reported by Rich Felker and Eric Blake; see
19280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
19281         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
19282         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19283         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19284         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
19285         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19286         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
19287
19288         mktime: #undef mktime before #defining it
19289         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
19290
19291         mktime: systematically normalize tm_isdst comparisons
19292         * lib/mktime.c (isdst_differ): New function.
19293         (__mktime_internal): Use it systematically for all isdst comparisons.
19294         This completes the fix for libc BZ #6723, and removes the need for
19295         normalizing tm_isdst.  See
19296         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
19297         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
19298
19299         mktime: fix some integer overflow issues and sidestep the rest
19300
19301         This was prompted by a bug report by Benjamin Lindner for MinGW
19302         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
19303         His bug is due to signed integer overflow (0 - INT_MIN), and I
19304         I scanned through mktime.c looking for other integer overflow
19305         problems, fixing all the bugs I found.
19306
19307         Although the C Standard says the resulting code is still not safe
19308         in the presence of integer overflow, in practice it should be good
19309         enough for all real-world two's-complement implementations, except
19310         for debugging environments that deliberately trap on integer
19311         overflow (e.g., gcc -ftrapv).
19312
19313         * lib/mktime.c (WRAPV): New macro.
19314         (SHR): Also check that long_int and time_t shift right in the
19315         usual way, before using the fast-but-unportable method.
19316         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
19317         used.  The code already assumed two's complement, so there's
19318         no need to test for alternatives.  All uses removed.
19319         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
19320         the C standard.  Problem reported by Rich Felker in
19321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
19322         (twos_complement_arithmetic): Also check long_int and time_t.
19323         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
19324         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
19325         (__mktime_internal): Avoid integer overflow with unary subtraction
19326         in two instances where -1 - X is an adequate replacement for -X,
19327         since the calculations are approximate.
19328
19329 2011-01-29  Eric Blake  <eblake@redhat.com>
19330
19331         mktime: avoid infinite loop
19332         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
19333         type; behavior is still undefined but portable to all known targets.
19334         Reported by Rich Felker.
19335
19336 2011-01-29  Simon Josefsson  <simon@josefsson.org>
19337
19338         rename, unlink, same-inode: Relicense.
19339         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
19340         * modules/unlink (License): Likewise.
19341         * modules/same-inode (License): Likewise.
19342
19343 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19344
19345         mktime: avoid problems on NetBSD 5 / i386
19346         * lib/mktime.c (long_int): New type.  This works around a problem
19347         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
19348         but time_t is 64 bits, and where I expect the existing code is
19349         wrong in some cases.
19350         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
19351         (ydhms_diff): Bring back the compile-time check for wide-enough
19352         year and yday.
19353
19354         mktime: fix misspelling in comment
19355         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
19356         This merges all recent glibc changes of importance.
19357
19358 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19359
19360         move-if-change: cope with concurrent mv of identical file.
19361         * build-aux/move-if-change (CMPPROG): Accept environment
19362         variable as an override for `cmp'.
19363         (usage): Document CMPPROG.
19364         Adjust comparison to drop stdout.  Cope with failure of mv if
19365         the target file exists and is identical to the source, for
19366         parallel builds.
19367         Report from H.J. Lu against binutils in PR binutils/12283.
19368
19369 2011-01-28  Bruce Korb  <bkorb@gnu.org>
19370
19371         * users.txt: Mention sharutils.
19372
19373 2011-01-28  Simon Josefsson  <simon@josefsson.org>
19374
19375         * users.txt: Mention OATH Toolkit.
19376
19377 2011-01-27  Bruno Haible  <bruno@clisp.org>
19378
19379         Prepare for supporting FreeBSD 10.
19380         * build-aux/config.libpath: Remove handling of freebsd1*.
19381
19382 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
19383
19384         Prepare for supporting FreeBSD 10.
19385         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
19386         match FreeBSD 10.0.
19387
19388 2011-01-27  Bruno Haible  <bruno@clisp.org>
19389
19390         vma-iter, get-rusage-as: Add OpenBSD support.
19391         * modules/vma-iter (configure.ac): Test for mquery.
19392         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
19393         * lib/vma-iter.c: Include <sys/mman.h>.
19394         (vma_iterate): Add an implementation based on mquery().
19395         * lib/resource-ext.h (get_rusage_as): Update comments.
19396         * lib/get-rusage-as.c: Likewise.
19397         * lib/get-rusage-data.c: Likewise.
19398
19399 2011-01-26  Karl Berry  <karl@gnu.org>
19400
19401         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
19402         variables to make it easier to override the makeinfo program used.
19403
19404 2011-01-26  Eric Blake  <eblake@redhat.com>
19405
19406         fcntl: work around Haiku F_DUPFD bugs
19407         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
19408         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
19409         cloexec bit on duplication.
19410         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
19411
19412 2011-01-26  Bruno Haible  <bruno@clisp.org>
19413
19414         Enable memory leak tests on AIX.
19415         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
19416         * tests/test-fprintf-posix3.c (main): Likewise.
19417
19418 2011-01-26  Bruno Haible  <bruno@clisp.org>
19419
19420         Tests for module 'get-rusage-data'.
19421         * modules/get-rusage-data-tests: New file.
19422         * tests/test-get-rusage-data.c: New file.
19423
19424         New module 'get-rusage-data'.
19425         * lib/resource-ext.h (get_rusage_data): New declaration.
19426         * lib/get-rusage-data.c: New file.
19427         * modules/get-rusage-data: New file.
19428
19429 2011-01-25  Bruno Haible  <bruno@clisp.org>
19430
19431         get-rusage-as: Allow for easier testing.
19432         * lib/resource-ext.h (get_rusage_as): Add comment.
19433         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
19434         (main): New function for interactive testing.
19435
19436 2011-01-25  Bruno Haible  <bruno@clisp.org>
19437
19438         vma-iter: Treat Haiku like BeOS.
19439         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
19440         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
19441
19442 2011-01-25  Eric Blake  <eblake@redhat.com>
19443
19444         c-stack: fix regression on cygwin when libsigsegv is present
19445         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
19446
19447 2011-01-24  Bruno Haible  <bruno@clisp.org>
19448
19449         vma-iter: Avoid empty intervals.
19450         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
19451         on an empty interval.
19452
19453 2011-01-24  Jim Meyering  <meyering@redhat.com>
19454
19455         u64: remove unnecessary #include
19456         * lib/u64.h: Don't include <stddef.h>.  It was not used.
19457
19458 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19459
19460         Allow the user to avoid the HAVE_RAW_DECL_* macros.
19461         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
19462
19463 2011-01-23  Bruno Haible  <bruno@clisp.org>
19464
19465         New module 'vma-iter'.
19466         * lib/vma-iter.h: New file.
19467         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
19468         * modules/vma-iter: New file.
19469         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
19470         for get_rusage_as_via_iterator.
19471         (vma_iterate_callback): New function.
19472         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
19473         * modules/get-rusage-as (Depends-on): Add vma-iter.
19474
19475 2011-01-23  Bruno Haible  <bruno@clisp.org>
19476
19477         uninorm: Tweak includes.
19478         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
19479         Reported by Jim Meyering.
19480
19481 2011-01-23  Bruno Haible  <bruno@clisp.org>
19482
19483         get-rusage-as: Improve on NetBSD.
19484         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
19485         /proc, like on FreeBSD.
19486
19487 2011-01-23  Jim Meyering  <meyering@redhat.com>
19488
19489         xreadlink.h: remove unnecessary #include
19490         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
19491
19492         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
19493         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
19494
19495 2011-01-23  Bruno Haible  <bruno@clisp.org>
19496
19497         get-rusage-as: Fix bug.
19498         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
19499         original limit when aborting the first loop.
19500
19501 2011-01-23  Bruno Haible  <bruno@clisp.org>
19502
19503         wctype: Ensure valid C syntax.
19504         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
19505         unconditionally, instead of gl_NEXT_HEADERS conditionally.
19506
19507 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
19508
19509         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
19510         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
19511         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
19512         as they are needed only for configure's test case.
19513         This removes two unnecessary symbols from config.h.
19514
19515         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
19516         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
19517         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
19518         AC_CHECK_HEADERS_ONCE on a header that we also invoke
19519         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
19520         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
19521         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
19522         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
19523         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19524         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19525         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19526         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19527         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19528         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19529         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
19530         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19531         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19532         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19533
19534 2011-01-21  Eric Blake  <eblake@redhat.com>
19535
19536         maintainer-makefile: work with older git for submodule check
19537         * top/maint.mk (public-submodule-commit): Rewrite to avoid
19538         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
19539         Reported by Matthias Bolte.
19540
19541         bootstrap: minor portability fixes
19542         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
19543         (usage): Omit leading capital and trailing . on help phrases, per
19544         GNU Coding Standards.
19545         (check_versions, top level): Prefix messages with script name.
19546
19547 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
19548
19549         bootstrap: support --no-git option
19550         * build-aux/bootstrap: Add --no-git option, to be used when
19551         --gnulib-srcdir points to the exact desired checkout.
19552
19553 2011-01-21  Eric Blake  <eblake@redhat.com>
19554
19555         strerror_r-posix: work with glibc 2.13
19556         * lib/strerror_r.c (strerror_r): Fix return type.
19557
19558 2011-01-21  Pádraig Brady  <P@draigBrady.com>
19559             Bruno Haible  <bruno@clisp.org>
19560
19561         uN_strstr: New unit tests.
19562         * modules/unistr/u8-strstr-tests: New file.
19563         * modules/unistr/u16-strstr-tests: New file.
19564         * modules/unistr/u32-strstr-tests: New file.
19565         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
19566         * tests/unistr/test-u8-strstr.c: New file.
19567         * tests/unistr/test-u16-strstr.c: New file.
19568         * tests/unistr/test-u32-strstr.c: New file.
19569
19570 2011-01-21  Pádraig Brady  <P@draigBrady.com>
19571             Bruno Haible  <bruno@clisp.org>
19572
19573         Make uN_strstr functions O(n) worst-case.
19574         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
19575         16-bit and 32-bit unit cases, use the unibyte algorithm from
19576         lib/mbsstr.c.
19577         * lib/unistr/u8-strstr.c: Include <string.h>.
19578         (UNIT_IS_UINT8_T): New macro.
19579         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
19580         (U_STRLEN, U_STRNLEN): New macros.
19581         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
19582         (U_STRLEN, U_STRNLEN): New macros.
19583         * modules/unistr/u8-strstr (Depends-on): Add strstr.
19584         (configure.ac): Update required libunistring version.
19585         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
19586         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
19587         malloca.
19588         (configure.ac): Update required libunistring version.
19589         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
19590         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
19591         malloca.
19592         (configure.ac): Update required libunistring version.
19593
19594 2011-01-21  Pádraig Brady  <P@draigBrady.com>
19595             Bruno Haible  <bruno@clisp.org>
19596
19597         Prepare for faster uN_strstr functions.
19598         * lib/str-kmp.h: Support definable UNITs.
19599         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
19600         needle_len argument.
19601         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
19602         * lib/mbscasestr.c (mbscasestr): Likewise.
19603
19604 2011-01-21  Pádraig Brady <P@draigBrady.com>
19605
19606         malloca-tests: make faster by unsetting MALLOC_PERTURB_
19607         * tests/test-malloca.c (main): Unset the environment variable
19608         to greatly speed up the test.
19609         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
19610         * modules/malloca-tests: Depend on unsetenv.
19611
19612 2011-01-21  Pádraig Brady <P@draigBrady.com>
19613
19614         ignore-value: remove stdint dependency
19615         * lib/ignore-value.h: Remove <stdint.h>
19616         * modules/ignore-value: Remove stdint dependency.
19617
19618 2011-01-21  Jim Meyering  <meyering@redhat.com>
19619
19620         maint.mk: adjust variable name to be consistent with other gl_ vars
19621         * top/maint.mk (gl_public_submodule_commit): Rename the variable
19622         to be lower case.
19623
19624 2011-01-20  Jim Meyering  <meyering@redhat.com>
19625
19626         maint.mk: make "check" depend on public-submodule-commit by default
19627         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
19628
19629 2011-01-20  Bruno Haible  <bruno@clisp.org>
19630
19631         mbfile, mbiter: Complete change from 2008-12-21.
19632         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
19633         * m4/mbiter.m4 (gl_MBITER): Likewise.
19634
19635 2011-01-20  Jim Meyering  <meyering@redhat.com>
19636
19637         init.sh: insert space between each function name and "()"
19638         * tests/init.sh: Make it a little easier to see that a function's
19639         name is "warn_", and not "warn" when looking at the first part of
19640         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
19641
19642 2011-01-20  Jim Meyering  <meyering@redhat.com>
19643
19644         mountlist: clean up code formatting
19645         * lib/mountlist.c (read_file_system_list): Split a long line,
19646         correct bracing style, use NULL in place of "(struct statfs *)0",
19647         don't parenthesize return value, add spaces around "=" and after
19648         ";-in-for-stmt".
19649
19650 2011-01-14  Markus Duft <mduft@gentoo.org>
19651
19652         mountlist: add support for Interix
19653         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
19654         Apply statvfs to all entries of /dev/fs.
19655         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
19656         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
19657
19658 2011-01-20  Jim Meyering  <meyering@redhat.com>
19659
19660         maint.mk: improve the public-submodule-commit rule
19661         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
19662         to suppress printing of its commands... unless V=1.
19663         Add git submodule's --quiet option to suppress printing of e.g.,
19664         "Entering gnulib" output.
19665         "cd" into $(srcdir) before running git submodule.
19666
19667 2011-01-20  Bruno Haible  <bruno@clisp.org>
19668
19669         include_next: Fix bug introduced on 2011-01-18.
19670         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
19671         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
19672         ac_cv_header_... variable if the second argument is not 'check'.
19673         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
19674         gl_NEXT_HEADERS_INTERNAL.
19675
19676 2011-01-20  Bruno Haible  <bruno@clisp.org>
19677
19678         Allow the user to avoid the GNULIB_TEST_* macros.
19679         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
19680         Suggested by Paul Eggert.
19681
19682 2011-01-14  Jim Meyering  <meyering@redhat.com>
19683
19684         bootstrap: avoid failure when there is no .gitmodules file
19685         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
19686         has been assigned to, even when its value is the empty string.
19687         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
19688         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
19689         Reported by John W. Eaton <jwe@gnu.org>.
19690
19691 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
19692
19693         assume <ctype.h>, ..., <time.h> exist
19694         For years gnulib has been assuming the existence of the headers
19695         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
19696         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
19697         them, since they don't appear to be needed.
19698         * README (Portability guidelines): Document this.
19699         * lib/flock.c: Assume <fcntl.h> exists.
19700         * lib/regex_internal.h: Assume <locale.h> exists.
19701         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
19702         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
19703         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
19704         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
19705         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
19706         * m4/regex.m4 (gl_REGEX): Likewise.
19707         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
19708         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
19709         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
19710         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
19711         * tests/test-argp.c: Likewise.
19712         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
19713
19714         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
19715         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
19716         AA_APPLE_UNIVERSAL_BUILD.  See
19717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
19718         * NEWS: Document this.
19719
19720 2011-01-19  Eric Blake  <eblake@redhat.com>
19721
19722         c-stack: assume stack overflow if SA_SIGINFO unsupported
19723         * lib/c-stack.c (SIGACTION_WORKS): Rename...
19724         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
19725         sigaction will work.
19726         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
19727         behavior match Linux.
19728         * tests/test-c-stack.c (main): Prefer NULL for pointers.
19729
19730         stdbool-tests: accomodate Haiku
19731         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
19732
19733         binary-io: fix O_TEXT on Haiku
19734         * modules/binary-io (Depends-on): Add fcntl-h.
19735         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
19736         than blindly undefining O_TEXT.
19737         Reported by Scott McCreary.
19738
19739 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
19740
19741         include_next: do not check for standard headers like stddef.h
19742
19743         I found this problem when modifying Emacs to use gnulib.
19744         I noticed that it added HAVE_STDDEF_H to config.h, even though
19745         gnulib always assumes <stddef.h> exists as per README and this
19746         symbol is unnecessary.
19747         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
19748         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
19749         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
19750         faster for headers like stddef.h that are known to exist.
19751         (gl_CHECK_NEXT_HEADERS): Use it.
19752         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
19753         rather than gl_CHECK_NEXT_HEADERS.
19754         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
19755         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
19756
19757 2011-01-18  Eric Blake  <eblake@redhat.com>
19758
19759         ansi-c++-opt: skip C++ dependency style if C++ is unused
19760         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
19761         tests when we know C++ compilation is not desired.
19762         Reported by Scott McCreary.
19763
19764 2011-01-18  Bruno Haible  <bruno@clisp.org>
19765
19766         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
19767         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
19768         (main): Perform test also when getrlimit and setrlimit don't exist or
19769         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
19770         limiting the address space size using setrlimit, compare the address
19771         space size before and after the the test.
19772         * tests/test-dprintf-posix2.c: Likewise.
19773         * tests/test-fprintf-posix3.sh: Update skip messages.
19774         * tests/test-dprintf-posix2.sh: Likewise.
19775         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
19776         * modules/dprintf-posix-tests (Depends-on): Likewise.
19777         Reported by Bruce Korb <bkorb@gnu.org> and
19778         Gary V. Vaughan <gary@gnu.org>.
19779
19780 2011-01-18  Bruno Haible  <bruno@clisp.org>
19781
19782         get-rusage-as: Improvement for Cygwin.
19783         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
19784         areas that are merely reserved.
19785
19786 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
19787
19788         strftime: remove dependencies on multibyte modules
19789
19790         strftime depended on mbrlen, mbsinit, and wchar, but these modules
19791         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
19792         only if __osf__ is defined, and I suspect OSF doesn't need these
19793         other modules.  If my guess is wrong, we'll need to come up with a
19794         variant of strftime that doesn't need the multibyte modules.
19795
19796         I discovered this problem when attempting modify Emacs to use the
19797         strftime module.  With the previous gnulib, this caused Emacs to
19798         need 31 new files, ranging from lib/config.charset to
19799         m4/wint_t.m4.  This was overkill and I expect would be offputting
19800         to the Emacs maintainers.  After this change, only 6 new files are
19801         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
19802         stdbool.m4, and tm_gmtoff.m4.
19803
19804         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
19805         Suggested by Bruno Haible in
19806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
19807         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
19808         and do not check for wchar.h.
19809         * modules/strftime (Files): Remove m4/mbstate_t.m4.
19810         (Depends-on): Remove mbrlen, mbsinit, wchar.
19811
19812 2011-01-18  Bruno Haible  <bruno@clisp.org>
19813
19814         Tests for module 'get-rusage-as'.
19815         * modules/get-rusage-as-tests: New file.
19816         * tests/test-get-rusage-as.c: New file.
19817
19818         New module 'get-rusage-as'.
19819         * modules/get-rusage-as: New file.
19820         * lib/resource-ext.h: New file.
19821         * lib/get-rusage-as.c: New file.
19822
19823 2011-01-17  Eric Blake  <eblake@redhat.com>
19824
19825         sigaction: relax license from LGPLv3+ to LGPLv2+
19826         * modules/sigaction (License): Relax to LGPLv2+.
19827
19828 2011-01-14  Bruno Haible  <bruno@clisp.org>
19829
19830         filemode: Make function declarations usable in C++ mode.
19831         * lib/filemode.h: Enclose function declarations in extern "C" block.
19832         Reported by John W. Eaton <jwe@gnu.org>.
19833
19834 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
19835
19836         save-cwd: no longer include "xgetcwd.h"
19837         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
19838         This avoids a compilation failure in projects that use save-cwd
19839         without also using the xgetcwd module.
19840
19841 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
19842
19843         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
19844         This is so that a program like Emacs, which needs only dtoastr,
19845         does not have to bother with distributing and compiling ftoastr
19846         and ldtoastr.
19847         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
19848         * modules/dtoastr, modules/ldtoastr: New files.
19849         * modules/ftoastr: Now works just for 'float'.
19850         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
19851         (Makefile.am): Remove ftoastr.h (not needed and no effect),
19852         dtoastr.c, ldtoastr.c.
19853
19854 2011-01-11  Jim Meyering  <meyering@redhat.com>
19855
19856         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
19857         There is no need to work around the lack of the fchdir function,
19858         since gnulib can now provide a replacement when required.
19859         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
19860         * modules/save-cwd (Depends-on): Add fchdir.
19861
19862 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
19863
19864         openat, save-cwd: avoid xmalloc
19865
19866         This removes a direct (but undocumented) dependency of openat on
19867         xalloc, along with an indirect dependency via save-cwd.  It also
19868         removes a dependency of save-cwd on xgetcwd, and thereby
19869         indirectly on xalloc.  This change causes the openat substitute
19870         to fall back on save_cwd when memory is tight, and for save_cwd to
19871         fail instead of dying when memory is tight, but that's good enough.
19872         Problem and initial idea for fix reported by Bastien Roucaries in
19873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
19874
19875         * lib/openat-proc.c: Include stdlib.h (for malloc), not
19876         xalloc.h (for xmalloc).
19877         (openat_proc_name): Use malloc, not xmalloc.
19878         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
19879         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
19880
19881         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
19882         This avoids heap allocation for file names whose lengths are in
19883         the range 512..1023, with the upper bound increasing to at most
19884         4031 depending on the platform's PATH_MAX.  (We do not want
19885         pathmax.h here as it might supply a non-constant PATH_MAX.)
19886         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
19887         Perhaps they should be moved to malloca.h?
19888         (OPENAT_BUFFER_SIZE): Use them.
19889
19890 2011-01-10  Bruno Haible  <bruno@clisp.org>
19891
19892         doc: Update users.txt.
19893         * users.txt: Add recutils.
19894
19895 2011-01-09  Karl Berry  <karl@gnu.org>
19896
19897         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
19898
19899         * doc/configmake.texi: New file.
19900         * doc/gnulib.texi: Include it.
19901         * modules/configmake: Move documentation from here.
19902
19903 2011-01-09  Bruno Haible  <bruno@clisp.org>
19904
19905         Update to Unicode 6.0.0.
19906         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
19907         (get_lbp): Update for Unicode 6.0.0.
19908         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
19909         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
19910         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
19911         U+11001, U+11038..U+11046. Remove U+06DE.
19912         (uc_width): Fix bounds of planes.
19913         * tests/uniwidth/test-uc_width2.sh: Same updates as in
19914         lib/uniwidth/width.c.
19915         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
19916         trailing whitespace removed.
19917         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
19918         without comments, but with the original copyright notice.
19919         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
19920         * lib/unicase/ignorable.h: Likewise.
19921         * lib/unicase/tocasefold.h: Likewise.
19922         * lib/unicase/tolower.h: Likewise.
19923         * lib/unicase/totitle.h: Likewise.
19924         * lib/unicase/toupper.h: Likewise.
19925         * lib/unictype/bidi_of.h: Likewise.
19926         * lib/unictype/blocks.h: Likewise.
19927         * lib/unictype/categ_C.h: Likewise.
19928         * lib/unictype/categ_Cn.h: Likewise.
19929         * lib/unictype/categ_L.h: Likewise.
19930         * lib/unictype/categ_Ll.h: Likewise.
19931         * lib/unictype/categ_Lm.h: Likewise.
19932         * lib/unictype/categ_Lo.h: Likewise.
19933         * lib/unictype/categ_Lu.h: Likewise.
19934         * lib/unictype/categ_M.h: Likewise.
19935         * lib/unictype/categ_Mc.h: Likewise.
19936         * lib/unictype/categ_Me.h: Likewise.
19937         * lib/unictype/categ_Mn.h: Likewise.
19938         * lib/unictype/categ_N.h: Likewise.
19939         * lib/unictype/categ_Nd.h: Likewise.
19940         * lib/unictype/categ_No.h: Likewise.
19941         * lib/unictype/categ_P.h: Likewise.
19942         * lib/unictype/categ_Po.h: Likewise.
19943         * lib/unictype/categ_S.h: Likewise.
19944         * lib/unictype/categ_Sc.h: Likewise.
19945         * lib/unictype/categ_Sk.h: Likewise.
19946         * lib/unictype/categ_Sm.h: Likewise.
19947         * lib/unictype/categ_So.h: Likewise.
19948         * lib/unictype/categ_of.h: Likewise.
19949         * lib/unictype/combining.h: Likewise.
19950         * lib/unictype/ctype_alnum.h: Likewise.
19951         * lib/unictype/ctype_alpha.h: Likewise.
19952         * lib/unictype/ctype_graph.h: Likewise.
19953         * lib/unictype/ctype_lower.h: Likewise.
19954         * lib/unictype/ctype_print.h: Likewise.
19955         * lib/unictype/ctype_punct.h: Likewise.
19956         * lib/unictype/ctype_upper.h: Likewise.
19957         * lib/unictype/decdigit.h: Likewise.
19958         * lib/unictype/digit.h: Likewise.
19959         * lib/unictype/numeric.h: Likewise.
19960         * lib/unictype/pr_alphabetic.h: Likewise.
19961         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
19962         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
19963         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
19964         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
19965         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
19966         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
19967         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
19968         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
19969         * lib/unictype/pr_case_ignorable.h: Likewise.
19970         * lib/unictype/pr_cased.h: Likewise.
19971         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
19972         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
19973         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
19974         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
19975         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
19976         * lib/unictype/pr_combining.h: Likewise.
19977         * lib/unictype/pr_composite.h: Likewise.
19978         * lib/unictype/pr_currency_symbol.h: Likewise.
19979         * lib/unictype/pr_decimal_digit.h: Likewise.
19980         * lib/unictype/pr_deprecated.h: Likewise.
19981         * lib/unictype/pr_format_control.h: Likewise.
19982         * lib/unictype/pr_grapheme_base.h: Likewise.
19983         * lib/unictype/pr_grapheme_extend.h: Likewise.
19984         * lib/unictype/pr_grapheme_link.h: Likewise.
19985         * lib/unictype/pr_id_continue.h: Likewise.
19986         * lib/unictype/pr_id_start.h: Likewise.
19987         * lib/unictype/pr_ideographic.h: Likewise.
19988         * lib/unictype/pr_lowercase.h: Likewise.
19989         * lib/unictype/pr_math.h: Likewise.
19990         * lib/unictype/pr_numeric.h: Likewise.
19991         * lib/unictype/pr_other_alphabetic.h: Likewise.
19992         * lib/unictype/pr_other_id_continue.h: Likewise.
19993         * lib/unictype/pr_other_math.h: Likewise.
19994         * lib/unictype/pr_punctuation.h: Likewise.
19995         * lib/unictype/pr_sentence_terminal.h: Likewise.
19996         * lib/unictype/pr_terminal_punctuation.h: Likewise.
19997         * lib/unictype/pr_unassigned_code_value.h: Likewise.
19998         * lib/unictype/pr_unified_ideograph.h: Likewise.
19999         * lib/unictype/pr_uppercase.h: Likewise.
20000         * lib/unictype/pr_xid_continue.h: Likewise.
20001         * lib/unictype/pr_xid_start.h: Likewise.
20002         * lib/unictype/scripts.h: Likewise.
20003         * lib/unictype/scripts_byname.gperf: Likewise.
20004         * lib/unictype/sy_java_ident.h: Likewise.
20005         * lib/unigbrk/gbrkprop.h: Likewise.
20006         * lib/unilbrk/lbrkprop1.h: Likewise.
20007         * lib/unilbrk/lbrkprop2.h: Likewise.
20008         * lib/uninorm/decomposition-table2.h: Likewise.
20009         * lib/uniwbrk/wbrkprop.h: Likewise.
20010         * tests/unicase/test-cased.c: Likewise.
20011         * tests/unicase/test-ignorable.c: Likewise.
20012         * tests/unicase/test-uc_tolower.c: Likewise.
20013         * tests/unicase/test-uc_totitle.c: Likewise.
20014         * tests/unicase/test-uc_toupper.c: Likewise.
20015         * tests/unictype/test-categ_C.c: Likewise.
20016         * tests/unictype/test-categ_Cn.c: Likewise.
20017         * tests/unictype/test-categ_L.c: Likewise.
20018         * tests/unictype/test-categ_Ll.c: Likewise.
20019         * tests/unictype/test-categ_Lm.c: Likewise.
20020         * tests/unictype/test-categ_Lo.c: Likewise.
20021         * tests/unictype/test-categ_Lu.c: Likewise.
20022         * tests/unictype/test-categ_M.c: Likewise.
20023         * tests/unictype/test-categ_Mc.c: Likewise.
20024         * tests/unictype/test-categ_Me.c: Likewise.
20025         * tests/unictype/test-categ_Mn.c: Likewise.
20026         * tests/unictype/test-categ_N.c: Likewise.
20027         * tests/unictype/test-categ_Nd.c: Likewise.
20028         * tests/unictype/test-categ_No.c: Likewise.
20029         * tests/unictype/test-categ_P.c: Likewise.
20030         * tests/unictype/test-categ_Po.c: Likewise.
20031         * tests/unictype/test-categ_S.c: Likewise.
20032         * tests/unictype/test-categ_Sc.c: Likewise.
20033         * tests/unictype/test-categ_Sk.c: Likewise.
20034         * tests/unictype/test-categ_Sm.c: Likewise.
20035         * tests/unictype/test-categ_So.c: Likewise.
20036         * tests/unictype/test-ctype_alnum.c: Likewise.
20037         * tests/unictype/test-ctype_alpha.c: Likewise.
20038         * tests/unictype/test-ctype_graph.c: Likewise.
20039         * tests/unictype/test-ctype_lower.c: Likewise.
20040         * tests/unictype/test-ctype_print.c: Likewise.
20041         * tests/unictype/test-ctype_punct.c: Likewise.
20042         * tests/unictype/test-ctype_upper.c: Likewise.
20043         * tests/unictype/test-decdigit.h: Likewise.
20044         * tests/unictype/test-digit.h: Likewise.
20045         * tests/unictype/test-numeric.h: Likewise.
20046         * tests/unictype/test-pr_alphabetic.c: Likewise.
20047         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20048         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
20049         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
20050         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20051         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20052         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20053         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20054         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20055         * tests/unictype/test-pr_case_ignorable.c: Likewise.
20056         * tests/unictype/test-pr_cased.c: Likewise.
20057         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
20058         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
20059         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
20060         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
20061         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
20062         * tests/unictype/test-pr_combining.c: Likewise.
20063         * tests/unictype/test-pr_composite.c: Likewise.
20064         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20065         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20066         * tests/unictype/test-pr_deprecated.c: Likewise.
20067         * tests/unictype/test-pr_format_control.c: Likewise.
20068         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20069         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20070         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20071         * tests/unictype/test-pr_id_continue.c: Likewise.
20072         * tests/unictype/test-pr_id_start.c: Likewise.
20073         * tests/unictype/test-pr_ideographic.c: Likewise.
20074         * tests/unictype/test-pr_lowercase.c: Likewise.
20075         * tests/unictype/test-pr_math.c: Likewise.
20076         * tests/unictype/test-pr_numeric.c: Likewise.
20077         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20078         * tests/unictype/test-pr_other_id_continue.c: Likewise.
20079         * tests/unictype/test-pr_other_math.c: Likewise.
20080         * tests/unictype/test-pr_punctuation.c: Likewise.
20081         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20082         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20083         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20084         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20085         * tests/unictype/test-pr_uppercase.c: Likewise.
20086         * tests/unictype/test-pr_xid_continue.c: Likewise.
20087         * tests/unictype/test-pr_xid_start.c: Likewise.
20088         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20089         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20090         changes.
20091         * lib/unictype/categ_Cc.h: Likewise.
20092         * lib/unictype/categ_Cf.h: Likewise.
20093         * lib/unictype/categ_Co.h: Likewise.
20094         * lib/unictype/categ_Cs.h: Likewise.
20095         * lib/unictype/categ_Lt.h: Likewise.
20096         * lib/unictype/categ_Nl.h: Likewise.
20097         * lib/unictype/categ_Pc.h: Likewise.
20098         * lib/unictype/categ_Pd.h: Likewise.
20099         * lib/unictype/categ_Pe.h: Likewise.
20100         * lib/unictype/categ_Pf.h: Likewise.
20101         * lib/unictype/categ_Pi.h: Likewise.
20102         * lib/unictype/categ_Ps.h: Likewise.
20103         * lib/unictype/categ_Z.h: Likewise.
20104         * lib/unictype/categ_Zl.h: Likewise.
20105         * lib/unictype/categ_Zp.h: Likewise.
20106         * lib/unictype/categ_Zs.h: Likewise.
20107         * lib/unictype/ctype_blank.h: Likewise.
20108         * lib/unictype/ctype_cntrl.h: Likewise.
20109         * lib/unictype/ctype_digit.h: Likewise.
20110         * lib/unictype/ctype_space.h: Likewise.
20111         * lib/unictype/ctype_xdigit.h: Likewise.
20112         * lib/unictype/mirror.h: Likewise.
20113         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20114         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20115         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20116         * lib/unictype/pr_bidi_control.h: Likewise.
20117         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20118         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20119         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20120         * lib/unictype/pr_bidi_pdf.h: Likewise.
20121         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20122         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20123         * lib/unictype/pr_dash.h: Likewise.
20124         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20125         * lib/unictype/pr_diacritic.h: Likewise.
20126         * lib/unictype/pr_extender.h: Likewise.
20127         * lib/unictype/pr_hex_digit.h: Likewise.
20128         * lib/unictype/pr_hyphen.h: Likewise.
20129         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20130         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20131         * lib/unictype/pr_ignorable_control.h: Likewise.
20132         * lib/unictype/pr_iso_control.h: Likewise.
20133         * lib/unictype/pr_join_control.h: Likewise.
20134         * lib/unictype/pr_left_of_pair.h: Likewise.
20135         * lib/unictype/pr_line_separator.h: Likewise.
20136         * lib/unictype/pr_logical_order_exception.h: Likewise.
20137         * lib/unictype/pr_non_break.h: Likewise.
20138         * lib/unictype/pr_not_a_character.h: Likewise.
20139         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20140         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20141         * lib/unictype/pr_other_id_start.h: Likewise.
20142         * lib/unictype/pr_other_lowercase.h: Likewise.
20143         * lib/unictype/pr_other_uppercase.h: Likewise.
20144         * lib/unictype/pr_paired_punctuation.h: Likewise.
20145         * lib/unictype/pr_paragraph_separator.h: Likewise.
20146         * lib/unictype/pr_pattern_syntax.h: Likewise.
20147         * lib/unictype/pr_pattern_white_space.h: Likewise.
20148         * lib/unictype/pr_private_use.h: Likewise.
20149         * lib/unictype/pr_quotation_mark.h: Likewise.
20150         * lib/unictype/pr_radical.h: Likewise.
20151         * lib/unictype/pr_soft_dotted.h: Likewise.
20152         * lib/unictype/pr_space.h: Likewise.
20153         * lib/unictype/pr_titlecase.h: Likewise.
20154         * lib/unictype/pr_variation_selector.h: Likewise.
20155         * lib/unictype/pr_white_space.h: Likewise.
20156         * lib/unictype/pr_zero_width.h: Likewise.
20157         * lib/unictype/sy_c_ident.h: Likewise.
20158         * lib/unictype/sy_c_whitespace.h: Likewise.
20159         * lib/unictype/sy_java_whitespace.h: Likewise.
20160         * lib/uninorm/composition-table.gperf: Likewise.
20161         * lib/uninorm/decomposition-table1.h: Likewise.
20162         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
20163         LB8.
20164         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20165         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20166         * modules/unictype/*: Bump version number of expected libunistring
20167         version.
20168
20169 2011-01-09  Bruno Haible  <bruno@clisp.org>
20170
20171         Update to Unicode 5.2.0.
20172         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
20173         trailing whitespace removed.
20174
20175 2011-01-09  Bruno Haible  <bruno@clisp.org>
20176
20177         New Unicode character properties, from Unicode 5.2.0.
20178         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
20179         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
20180         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
20181         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
20182         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
20183         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
20184         uc_is_property_cased, uc_is_property_case_ignorable,
20185         uc_is_property_changes_when_lowercased,
20186         uc_is_property_changes_when_uppercased,
20187         uc_is_property_changes_when_titlecased,
20188         uc_is_property_changes_when_casefolded,
20189         uc_is_property_changes_when_casemapped): New declarations.
20190         * lib/unictype/pr_byname.gperf: Add the new properties.
20191         * modules/unictype/property-byname (Depends-on): Depend on the new
20192         properties modules.
20193         * modules/unictype/property-all (Depends-on): Likewise.
20194         * MODULES.html.sh (Unicode string functions): Add
20195         unictype/property-case-ignorable, unictype/property-cased,
20196         unictype/property-changes-when-casefolded,
20197         unictype/property-changes-when-casemapped,
20198         unictype/property-changes-when-lowercased,
20199         unictype/property-changes-when-titlecased,
20200         unictype/property-changes-when-uppercased.
20201
20202         New module 'unictype/property-changes-when-casemapped'.
20203         * modules/unictype/property-changes-when-casemapped: New file.
20204         * lib/unictype/pr_changes_when_casemapped.c: New file.
20205         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
20206         generated by gen-uni-tables.
20207         * modules/unictype/property-changes-when-casemapped-tests: New file.
20208         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
20209         automatically generated by gen-uni-tables.
20210
20211         New module 'unictype/property-changes-when-casefolded'.
20212         * modules/unictype/property-changes-when-casefolded: New file.
20213         * lib/unictype/pr_changes_when_casefolded.c: New file.
20214         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
20215         generated by gen-uni-tables.
20216         * modules/unictype/property-changes-when-casefolded-tests: New file.
20217         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
20218         automatically generated by gen-uni-tables.
20219
20220         New module 'unictype/property-changes-when-titlecased'.
20221         * modules/unictype/property-changes-when-titlecased: New file.
20222         * lib/unictype/pr_changes_when_titlecased.c: New file.
20223         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
20224         generated by gen-uni-tables.
20225         * modules/unictype/property-changes-when-titlecased-tests: New file.
20226         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
20227         automatically generated by gen-uni-tables.
20228
20229         New module 'unictype/property-changes-when-uppercased'.
20230         * modules/unictype/property-changes-when-uppercased: New file.
20231         * lib/unictype/pr_changes_when_uppercased.c: New file.
20232         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
20233         generated by gen-uni-tables.
20234         * modules/unictype/property-changes-when-uppercased-tests: New file.
20235         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
20236         automatically generated by gen-uni-tables.
20237
20238         New module 'unictype/property-changes-when-lowercased'.
20239         * modules/unictype/property-changes-when-lowercased: New file.
20240         * lib/unictype/pr_changes_when_lowercased.c: New file.
20241         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
20242         generated by gen-uni-tables.
20243         * modules/unictype/property-changes-when-lowercased-tests: New file.
20244         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
20245         automatically generated by gen-uni-tables.
20246
20247         New module 'unictype/property-case-ignorable'.
20248         * modules/unictype/property-case-ignorable: New file.
20249         * lib/unictype/pr_case_ignorable.c: New file.
20250         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
20251         by gen-uni-tables.
20252         * modules/unictype/property-case-ignorable-tests: New file.
20253         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
20254         generated by gen-uni-tables.
20255
20256         New module 'unictype/property-cased'.
20257         * modules/unictype/property-cased: New file.
20258         * lib/unictype/pr_cased.c: New file.
20259         * lib/unictype/pr_cased.h: New file, automatically generated by
20260         gen-uni-tables.
20261         * modules/unictype/property-cased-tests: New file.
20262         * tests/unictype/test-pr_cased.c: New file, automatically generated by
20263         gen-uni-tables.
20264
20265 2011-01-09  Bruno Haible  <bruno@clisp.org>
20266
20267         Update to Unicode 5.2.0.
20268         * lib/gen-uni-tables.c (output_predicate, output_category,
20269         output_combclass, output_bidi_category, output_decimal_digit_test,
20270         output_decimal_digit, output_digit_test, output_digit,
20271         output_numeric_test, output_numeric, output_mirror, output_scripts,
20272         output_scripts_byname, output_blocks, output_ident_category): Fix
20273         comment header.
20274         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
20275         get_wbp.
20276         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
20277         items.
20278         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
20279         Changes_When_Lowercased, Changes_When_Uppercased,
20280         Changes_When_Titlecased, Changes_When_Casefolded,
20281         Changes_When_Casemapped.
20282         (is_property_alphabetic, is_property_default_ignorable_code_point):
20283         Update for Unicode 5.2.0.
20284         (is_property_cased, is_property_case_ignorable,
20285         is_property_changes_when_lowercased,
20286         is_property_changes_when_uppercased,
20287         is_property_changes_when_titlecased,
20288         is_property_changes_when_casefolded,
20289         is_property_changes_when_casemapped): New functions.
20290         (output_properties): Output also the properties cased, case_ignorable,
20291         changes_when_lowercased, changes_when_uppercased,
20292         changes_when_titlecased, changes_when_casefolded,
20293         changes_when_casemapped.
20294         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
20295         Unicode TR#11 revision 17 -> 19.
20296         (LBP_CP): New enumeration value.
20297         (LBP_*): Adjust values accordingly.
20298         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20299         TR#14 revision 22 -> 24.
20300         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
20301         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
20302         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20303         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
20304         is_WBP_MIDLETTER.
20305         (output_composition_tables): Allow for 24 bits instead of 16 bits in
20306         the code1 and code2 of each composition rule.
20307         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
20308         * lib/unicase/ignorable.h: Likewise.
20309         * lib/unicase/tocasefold.h: Likewise.
20310         * lib/unicase/tolower.h: Likewise.
20311         * lib/unicase/totitle.h: Likewise.
20312         * lib/unicase/toupper.h: Likewise.
20313         * lib/unictype/bidi_of.h: Likewise.
20314         * lib/unictype/blocks.h: Likewise.
20315         * lib/unictype/categ_C.h: Likewise.
20316         * lib/unictype/categ_Cf.h: Likewise.
20317         * lib/unictype/categ_Cn.h: Likewise.
20318         * lib/unictype/categ_L.h: Likewise.
20319         * lib/unictype/categ_Ll.h: Likewise.
20320         * lib/unictype/categ_Lm.h: Likewise.
20321         * lib/unictype/categ_Lo.h: Likewise.
20322         * lib/unictype/categ_Lu.h: Likewise.
20323         * lib/unictype/categ_M.h: Likewise.
20324         * lib/unictype/categ_Mc.h: Likewise.
20325         * lib/unictype/categ_Mn.h: Likewise.
20326         * lib/unictype/categ_N.h: Likewise.
20327         * lib/unictype/categ_Nd.h: Likewise.
20328         * lib/unictype/categ_Nl.h: Likewise.
20329         * lib/unictype/categ_No.h: Likewise.
20330         * lib/unictype/categ_P.h: Likewise.
20331         * lib/unictype/categ_Pd.h: Likewise.
20332         * lib/unictype/categ_Po.h: Likewise.
20333         * lib/unictype/categ_S.h: Likewise.
20334         * lib/unictype/categ_Sc.h: Likewise.
20335         * lib/unictype/categ_So.h: Likewise.
20336         * lib/unictype/categ_of.h: Likewise.
20337         * lib/unictype/combining.h: Likewise.
20338         * lib/unictype/ctype_alnum.h: Likewise.
20339         * lib/unictype/ctype_alpha.h: Likewise.
20340         * lib/unictype/ctype_graph.h: Likewise.
20341         * lib/unictype/ctype_lower.h: Likewise.
20342         * lib/unictype/ctype_print.h: Likewise.
20343         * lib/unictype/ctype_punct.h: Likewise.
20344         * lib/unictype/ctype_upper.h: Likewise.
20345         * lib/unictype/decdigit.h: Likewise.
20346         * lib/unictype/digit.h: Likewise.
20347         * lib/unictype/numeric.h: Likewise.
20348         * lib/unictype/pr_alphabetic.h: Likewise.
20349         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20350         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20351         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20352         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20353         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20354         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20355         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20356         * lib/unictype/pr_combining.h: Likewise.
20357         * lib/unictype/pr_composite.h: Likewise.
20358         * lib/unictype/pr_currency_symbol.h: Likewise.
20359         * lib/unictype/pr_dash.h: Likewise.
20360         * lib/unictype/pr_decimal_digit.h: Likewise.
20361         * lib/unictype/pr_deprecated.h: Likewise.
20362         * lib/unictype/pr_diacritic.h: Likewise.
20363         * lib/unictype/pr_extender.h: Likewise.
20364         * lib/unictype/pr_grapheme_base.h: Likewise.
20365         * lib/unictype/pr_grapheme_extend.h: Likewise.
20366         * lib/unictype/pr_grapheme_link.h: Likewise.
20367         * lib/unictype/pr_id_continue.h: Likewise.
20368         * lib/unictype/pr_id_start.h: Likewise.
20369         * lib/unictype/pr_ideographic.h: Likewise.
20370         * lib/unictype/pr_ignorable_control.h: Likewise.
20371         * lib/unictype/pr_logical_order_exception.h: Likewise.
20372         * lib/unictype/pr_lowercase.h: Likewise.
20373         * lib/unictype/pr_numeric.h: Likewise.
20374         * lib/unictype/pr_other_alphabetic.h: Likewise.
20375         * lib/unictype/pr_punctuation.h: Likewise.
20376         * lib/unictype/pr_sentence_terminal.h: Likewise.
20377         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20378         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20379         * lib/unictype/pr_unified_ideograph.h: Likewise.
20380         * lib/unictype/pr_uppercase.h: Likewise.
20381         * lib/unictype/pr_xid_continue.h: Likewise.
20382         * lib/unictype/pr_xid_start.h: Likewise.
20383         * lib/unictype/pr_zero_width.h: Likewise.
20384         * lib/unictype/scripts.h: Likewise.
20385         * lib/unictype/scripts_byname.gperf: Likewise.
20386         * lib/unictype/sy_java_ident.h: Likewise.
20387         * lib/unigbrk/gbrkprop.h: Likewise.
20388         * lib/unilbrk/lbrkprop1.h: Likewise.
20389         * lib/unilbrk/lbrkprop2.h: Likewise.
20390         * lib/unilbrk/lbrktables.h: Likewise.
20391         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
20392         LBP_CP. Implement rule LB30.
20393         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
20394         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
20395         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
20396         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
20397         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
20398         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
20399         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
20400         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
20401         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
20402         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
20403         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
20404         bits instead of 16 bits in the code1 and code2 of each composition
20405         rule.
20406         (uc_composition): Update for Unicode 5.2.0.
20407         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
20408         * lib/uninorm/decomposition-table2.h: Likewise.
20409         * lib/uniwbrk/wbrkprop.h: Likewise.
20410         * tests/unicase/test-cased.c: Likewise.
20411         * tests/unicase/test-ignorable.c: Likewise.
20412         * tests/unicase/test-uc_tolower.c: Likewise.
20413         * tests/unicase/test-uc_totitle.c: Likewise.
20414         * tests/unicase/test-uc_toupper.c: Likewise.
20415         * tests/unictype/test-categ_C.c: Likewise.
20416         * tests/unictype/test-categ_Cf.c: Likewise.
20417         * tests/unictype/test-categ_Cn.c: Likewise.
20418         * tests/unictype/test-categ_L.c: Likewise.
20419         * tests/unictype/test-categ_Ll.c: Likewise.
20420         * tests/unictype/test-categ_Lm.c: Likewise.
20421         * tests/unictype/test-categ_Lo.c: Likewise.
20422         * tests/unictype/test-categ_Lu.c: Likewise.
20423         * tests/unictype/test-categ_M.c: Likewise.
20424         * tests/unictype/test-categ_Mc.c: Likewise.
20425         * tests/unictype/test-categ_Mn.c: Likewise.
20426         * tests/unictype/test-categ_N.c: Likewise.
20427         * tests/unictype/test-categ_Nd.c: Likewise.
20428         * tests/unictype/test-categ_Nl.c: Likewise.
20429         * tests/unictype/test-categ_No.c: Likewise.
20430         * tests/unictype/test-categ_P.c: Likewise.
20431         * tests/unictype/test-categ_Pd.c: Likewise.
20432         * tests/unictype/test-categ_Po.c: Likewise.
20433         * tests/unictype/test-categ_S.c: Likewise.
20434         * tests/unictype/test-categ_Sc.c: Likewise.
20435         * tests/unictype/test-categ_So.c: Likewise.
20436         * tests/unictype/test-ctype_alnum.c: Likewise.
20437         * tests/unictype/test-ctype_alpha.c: Likewise.
20438         * tests/unictype/test-ctype_graph.c: Likewise.
20439         * tests/unictype/test-ctype_lower.c: Likewise.
20440         * tests/unictype/test-ctype_print.c: Likewise.
20441         * tests/unictype/test-ctype_punct.c: Likewise.
20442         * tests/unictype/test-ctype_upper.c: Likewise.
20443         * tests/unictype/test-decdigit.h: Likewise.
20444         * tests/unictype/test-digit.h: Likewise.
20445         * tests/unictype/test-numeric.h: Likewise.
20446         * tests/unictype/test-pr_alphabetic.c: Likewise.
20447         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20448         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20449         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
20450         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20451         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20452         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20453         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20454         * tests/unictype/test-pr_combining.c: Likewise.
20455         * tests/unictype/test-pr_composite.c: Likewise.
20456         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20457         * tests/unictype/test-pr_dash.c: Likewise.
20458         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20459         * tests/unictype/test-pr_deprecated.c: Likewise.
20460         * tests/unictype/test-pr_diacritic.c: Likewise.
20461         * tests/unictype/test-pr_extender.c: Likewise.
20462         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20463         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20464         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20465         * tests/unictype/test-pr_id_continue.c: Likewise.
20466         * tests/unictype/test-pr_id_start.c: Likewise.
20467         * tests/unictype/test-pr_ideographic.c: Likewise.
20468         * tests/unictype/test-pr_ignorable_control.c: Likewise.
20469         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
20470         * tests/unictype/test-pr_lowercase.c: Likewise.
20471         * tests/unictype/test-pr_numeric.c: Likewise.
20472         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20473         * tests/unictype/test-pr_punctuation.c: Likewise.
20474         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20475         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20476         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20477         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20478         * tests/unictype/test-pr_uppercase.c: Likewise.
20479         * tests/unictype/test-pr_xid_continue.c: Likewise.
20480         * tests/unictype/test-pr_xid_start.c: Likewise.
20481         * tests/unictype/test-pr_zero_width.c: Likewise.
20482         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20483         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
20484         changed behaviour: line breaking is now disallowed between a letter
20485         or '=' and '('.
20486         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20487         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20488         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
20489         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
20490         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20491         lib/uniwidth/width.c.
20492         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
20493         without comments, but with the original copyright notice.
20494         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20495         changes.
20496         * lib/unictype/categ_Cc.h: Likewise.
20497         * lib/unictype/categ_Co.h: Likewise.
20498         * lib/unictype/categ_Cs.h: Likewise.
20499         * lib/unictype/categ_Lt.h: Likewise.
20500         * lib/unictype/categ_Me.h: Likewise.
20501         * lib/unictype/categ_Pc.h: Likewise.
20502         * lib/unictype/categ_Pe.h: Likewise.
20503         * lib/unictype/categ_Pf.h: Likewise.
20504         * lib/unictype/categ_Pi.h: Likewise.
20505         * lib/unictype/categ_Ps.h: Likewise.
20506         * lib/unictype/categ_Sk.h: Likewise.
20507         * lib/unictype/categ_Sm.h: Likewise.
20508         * lib/unictype/categ_Z.h: Likewise.
20509         * lib/unictype/categ_Zl.h: Likewise.
20510         * lib/unictype/categ_Zp.h: Likewise.
20511         * lib/unictype/categ_Zs.h: Likewise.
20512         * lib/unictype/ctype_blank.h: Likewise.
20513         * lib/unictype/ctype_cntrl.h: Likewise.
20514         * lib/unictype/ctype_digit.h: Likewise.
20515         * lib/unictype/ctype_space.h: Likewise.
20516         * lib/unictype/ctype_xdigit.h: Likewise.
20517         * lib/unictype/mirror.h: Likewise.
20518         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20519         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20520         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20521         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20522         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20523         * lib/unictype/pr_bidi_control.h: Likewise.
20524         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20525         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20526         * lib/unictype/pr_bidi_pdf.h: Likewise.
20527         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20528         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20529         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20530         * lib/unictype/pr_format_control.h: Likewise.
20531         * lib/unictype/pr_hex_digit.h: Likewise.
20532         * lib/unictype/pr_hyphen.h: Likewise.
20533         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20534         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20535         * lib/unictype/pr_iso_control.h: Likewise.
20536         * lib/unictype/pr_join_control.h: Likewise.
20537         * lib/unictype/pr_left_of_pair.h: Likewise.
20538         * lib/unictype/pr_line_separator.h: Likewise.
20539         * lib/unictype/pr_math.h: Likewise.
20540         * lib/unictype/pr_non_break.h: Likewise.
20541         * lib/unictype/pr_not_a_character.h: Likewise.
20542         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20543         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20544         * lib/unictype/pr_other_id_continue.h: Likewise.
20545         * lib/unictype/pr_other_id_start.h: Likewise.
20546         * lib/unictype/pr_other_lowercase.h: Likewise.
20547         * lib/unictype/pr_other_math.h: Likewise.
20548         * lib/unictype/pr_other_uppercase.h: Likewise.
20549         * lib/unictype/pr_paired_punctuation.h: Likewise.
20550         * lib/unictype/pr_paragraph_separator.h: Likewise.
20551         * lib/unictype/pr_pattern_syntax.h: Likewise.
20552         * lib/unictype/pr_pattern_white_space.h: Likewise.
20553         * lib/unictype/pr_private_use.h: Likewise.
20554         * lib/unictype/pr_quotation_mark.h: Likewise.
20555         * lib/unictype/pr_radical.h: Likewise.
20556         * lib/unictype/pr_soft_dotted.h: Likewise.
20557         * lib/unictype/pr_space.h: Likewise.
20558         * lib/unictype/pr_titlecase.h: Likewise.
20559         * lib/unictype/pr_variation_selector.h: Likewise.
20560         * lib/unictype/pr_white_space.h: Likewise.
20561         * lib/unictype/sy_c_ident.h: Likewise.
20562         * lib/unictype/sy_c_whitespace.h: Likewise.
20563         * lib/unictype/sy_java_whitespace.h: Likewise.
20564         * modules/uni*/*: Bump version number of expected libunistring version.
20565         Reported by Simon Josefsson.
20566
20567 2011-01-09  Karl Heuer  <kwzh@gnu.org>
20568
20569         useless-if-before-free: fix typo in --help and make the internal,
20570         automatic version date update process work once again.
20571         --help output contained a NUL character instead of the
20572         backslash-zero that was intended.  Also, the "must lie within
20573         the first 8 lines" line is on line 9, and hence not getting
20574         automatically updated.
20575         * build-aux/useless-if-before-free: Fix the former by adding a
20576         backslash, and the latter by condensing the three lines of what-it-does
20577         to a single line, leaving one line of slack for the future.
20578
20579 2011-01-09  Bruno Haible  <bruno@clisp.org>
20580
20581         uniwidth/width: Fix width of U+1D173..U+1D17A.
20582         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
20583         symbolic_width, output_width_property_test): New functions.
20584         (main): Invoke output_nonspacing_property, output_width_property_test.
20585         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
20586         U+1D173..U+1D17A.
20587         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
20588         1.
20589         * modules/uniwidth/*: Bump version number of expected libunistring
20590         version.
20591         * modules/unilbrk/*: Likewise.
20592
20593 2011-01-08  Bruno Haible  <bruno@clisp.org>
20594
20595         uninorm tests: Preserve copyright of Unicode data file.
20596         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
20597         Mention modifications.
20598
20599 2011-01-08  Bruno Haible  <bruno@clisp.org>
20600
20601         gen-uni-tables: Prepare for Unicode 5.2.0.
20602         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
20603         (debug_output_lbp, output_lbp): Update.
20604
20605 2011-01-08  Bruno Haible  <bruno@clisp.org>
20606
20607         unilbrk: Clarify gen-uni-tables.c code.
20608         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
20609         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
20610         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
20611
20612 2011-01-07  Bruno Haible  <bruno@clisp.org>
20613
20614         strtod: Restore errno when successfully parsing Infinity or NaN.
20615         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
20616         restore the original errno.
20617
20618 2011-01-07  Bruno Haible  <bruno@clisp.org>
20619
20620         remove test: Avoid failure on HP-UX 11.
20621         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
20622
20623 2011-01-07  Bruno Haible  <bruno@clisp.org>
20624
20625         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
20626         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
20627         error code.
20628
20629 2011-01-07  Pádraig Brady <P@draigBrady.com>
20630
20631         ignore-value: fixup comments, and add Eric Blake
20632         as an author since he rewrote the macros.
20633         * lib/ignore-value.h (ignore_value):  State that
20634         we now support aggregates.  Also specify exactly
20635         when the GCC warn_unused_result feature was added.
20636
20637 2011-01-06  Eric Blake  <eblake@redhat.com>
20638
20639         ignore-value: support aggregate types
20640         * lib/ignore-value.h (ignore_value): Provide separate gcc
20641         definition.
20642         * modules/ignore-value-tests: New test module.
20643         * tests/test-ignore-value.c: New test.
20644
20645         maint.mk: improve sc_prohibit_strcmp regex
20646         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
20647         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
20648         definition of STRNEQ.
20649
20650         signal: work around Haiku issue with SIGBUS
20651         * lib/siglist.h: Add comment.
20652         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
20653         strsignal's favoring of SIGSEGV.
20654         * tests/test-signal.c (main): Avoid test failure.
20655         * doc/posix-headers/signal.texi (signal.h): Document the issue.
20656         Reported by Scott McCreary.
20657
20658         maint.mk: add pre-release check to ensure submodule commits are public
20659         * top/maint.mk (public-submodule-commit): New rule.
20660         (submodule-checks): New variable.
20661         (alpha beta stable): Depend on the variable.
20662
20663 2011-01-05  Pádraig Brady <P@draigBrady.com>
20664         and Jim Meyering  <meyering@redhat.com>
20665
20666         ignore-value: make ignore_value more generic; deprecate ignore_ptr
20667         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
20668         (ATTRIBUTE_DEPRECATED): Define.
20669         (_ignore_case): New function.
20670         (ignore_value): New macro, to replace the old function.
20671         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
20672         * modules/ignore-value (Depends-on): Add stdint.
20673
20674 2011-01-04  Eric Blake  <eblake@redhat.com>
20675
20676         doc: regenerate INSTALL
20677         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
20678         @firstparagraphindent support, now that autoconf dropped it.
20679         (INSTALL_PRELUDE): Reinstate old macro.
20680         * doc/install.texi: Resync from autoconf.
20681         * doc/INSTALL: Reflect recent autoconf update.
20682         * doc/INSTALL.ISO: Likewise.
20683         * doc/INSTALL.UTF-8: Likewise.
20684         Reported by Karl Berry.
20685
20686 2011-01-04  Bruce Korb  <address@hidden>
20687
20688         git-version-gen: avoid a sub-shell
20689         * build-aux/git-version-gen: Redirect stderr in `...` via
20690         "exec 2>...", rather than via an added sub-shell.
20691
20692 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
20693
20694         git-version-gen: use (...) rather than sh -c '...'
20695         * build-aux/git-version-gen: Rather than hard-coding a shell's name
20696         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
20697
20698 2011-01-03  Jim Meyering  <meyering@redhat.com>
20699
20700         git-version-gen: convert leading TABs to spaces
20701         * build-aux/git-version-gen: Expand leading TABs.
20702
20703         git-version-gen: handle failed "git rev-list"
20704         * build-aux/git-version-gen: Rather than leaking a "fatal" error
20705         from git and proceeding as if it had succeeded but printed no SHA1
20706         checksums, suppress the diagnostic and handle the failure.
20707         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
20708
20709         git-version-gen: include command name in one more diagnostic
20710         * build-aux/git-version-gen: When the required .tarball-version file
20711         was missing or unreadable, you might see the diagnostic from "cat",
20712         but no trace of the name of the invoking script.  Now, you still see
20713         the diagnostic from cat, but also get one from "git-version-gen: ".
20714         Inspired by a patch from Bruce Korb.
20715
20716         update-copyright: adjust test to match changed code
20717         * tests/test-update-copyright.sh: Change test's expected output
20718         to match new actual output.
20719
20720 2011-01-02  Bruno Haible  <bruno@clisp.org>
20721
20722         getlogin_r: Avoid test failure on HP-UX 11.
20723         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
20724         ERANGE when the second argument is zero.
20725         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
20726         portability problem.
20727
20728 2011-01-02  Bruce Korb  <bkorb@gnu.org>
20729
20730         * build-aux/update-copyright: doc Simon's changes
20731
20732 2011-01-02  Simon Josefsson  <simon@josefsson.org>
20733
20734         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
20735         environment variable.
20736
20737 2011-01-02  Bruno Haible  <bruno@clisp.org>
20738
20739         unigbrk: Avoid gcc warnings.
20740         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
20741         unused variable.
20742         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
20743         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
20744         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
20745         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
20746         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
20747         Change type of first argument to 'const char *'.
20748         (main): Remove unused variable.
20749         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
20750         type of first argument to 'const char *'.
20751         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
20752         Likewise.
20753         (main): Change type of variable 's'.
20754         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
20755         to 'int'.
20756
20757 2011-01-02  Bruno Haible  <bruno@clisp.org>
20758
20759         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
20760         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
20761         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
20762         bug.
20763         * lib/pwrite.c: Undo 2010-12-31 patch.
20764         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
20765
20766 2011-01-02  Bruno Haible  <bruno@clisp.org>
20767
20768         pread: Fix test whether it works.
20769         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
20770
20771 2011-01-02  Bruno Haible  <bruno@clisp.org>
20772
20773         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
20774         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
20775         ends in "6". Don't require a specific month name. Try also the locale
20776         names found on HP-UX 11 and Solaris 7.
20777
20778 2011-01-02  Bruno Haible  <bruno@clisp.org>
20779
20780         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
20781         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
20782         C linkage.
20783         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
20784
20785 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
20786
20787         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
20788         for consistency, since the "cluster" term is not used elsewhere.
20789         * lib/unigbrk.in.h: Update name.
20790         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
20791         * lib/unigbrk/u16-grapheme-next.c: Update name.
20792         * lib/unigbrk/u16-grapheme-prev.c: Update name.
20793         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
20794         * lib/unigbrk/u32-grapheme-next.c: Update name.
20795         * lib/unigbrk/u32-grapheme-prev.c: Update name.
20796         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
20797         * lib/unigbrk/u8-grapheme-next.c: Update name.
20798         * lib/unigbrk/u8-grapheme-prev.c: Update name.
20799         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
20800         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
20801         Suggested by Bruno Haible.
20802
20803 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
20804
20805         Remove module 'u8-grapheme-len' as too redundant with
20806         'u8-grapheme-next'.
20807         * modules/unigbrk/u8-grapheme-len: Delete file.
20808         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
20809         * lib/unigbrk.in.h: Remove prototype for deleted function.
20810         * lib/unigbrk/u8-grapheme-len.c: Delete file.
20811         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
20812
20813         Remove module 'u16-grapheme-len' as too redundant with
20814         'u16-grapheme-next'.
20815         * modules/unigbrk/u16-grapheme-len: Delete file.
20816         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
20817         * lib/unigbrk.in.h: Remove prototype for deleted function.
20818         * lib/unigbrk/u16-grapheme-len.c: Delete file.
20819         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
20820
20821         Remove module 'u32-grapheme-len' as too redundant with
20822         'u32-grapheme-next'.
20823         * modules/unigbrk/u32-grapheme-len: Delete file.
20824         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
20825         * lib/unigbrk.in.h: Remove prototype for deleted function.
20826         * lib/unigbrk/u32-grapheme-len.c: Delete file.
20827         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
20828
20829         Suggested by Bruno Haible.
20830
20831 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
20832
20833         * unigbrk.in.h: Fix typo: "ben" => "been".
20834         Reported by Bruno Haible.
20835
20836 2011-01-01  Jim Meyering  <meyering@redhat.com>
20837
20838         maint: update almost all copyright ranges to include 2011
20839         Run the new "make update-copyright" rule.
20840
20841 2011-01-01  Jim Meyering  <meyering@redhat.com>
20842
20843         maint: update-copyright: exempt doc/INSTALL*
20844         * Makefile (update-copyright): Also exclude doc/INSTALL*,
20845         since they are generated.  Suggested by Bruno Haible.
20846
20847 2011-01-01  Jim Meyering  <meyering@redhat.com>
20848
20849         maint: refine the update-copyright rule
20850         * Makefile (update-copyright): Also exclude any file that includes
20851         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
20852         code that merely generates the comment.
20853
20854 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
20855
20856         New module 'u8-grapheme-len'.
20857         * modules/unigbrk/u8-grapheme-len: New file.
20858         * modules/unigbrk/u8-grapheme-len-tests: New file.
20859         * lib/unigbrk.in.h: Add prototype for new function.
20860         * lib/unigbrk/u8-grapheme-len.c: New file.
20861         * tests/unigbrk/test-u8-grapheme-len.c: New file.
20862
20863         New module 'u16-grapheme-len'.
20864         * modules/unigbrk/u16-grapheme-len: New file.
20865         * modules/unigbrk/u16-grapheme-len-tests: New file.
20866         * lib/unigbrk.in.h: Add prototype for new function.
20867         * lib/unigbrk/u16-grapheme-len.c: New file.
20868         * tests/unigbrk/test-u16-grapheme-len.c: New file.
20869
20870         New module 'u32-grapheme-len'.
20871         * modules/unigbrk/u32-grapheme-len: New file.
20872         * modules/unigbrk/u32-grapheme-len-tests: New file.
20873         * lib/unigbrk.in.h: Add prototype for new function.
20874         * lib/unigbrk/u32-grapheme-len.c: New file.
20875         * tests/unigbrk/test-u32-grapheme-len.c: New file.
20876
20877         New module 'u8-grapheme-next'.
20878         * modules/unigbrk/u8-grapheme-next: New file.
20879         * modules/unigbrk/u8-grapheme-next-tests: New file.
20880         * lib/unigbrk.in.h: Add prototype for new function.
20881         * lib/unigbrk/u8-grapheme-next.c: New file.
20882         * tests/unigbrk/test-u8-grapheme-next.c: New file.
20883
20884         New module 'u16-grapheme-next'.
20885         * modules/unigbrk/u16-grapheme-next: New file.
20886         * modules/unigbrk/u16-grapheme-next-tests: New file.
20887         * lib/unigbrk.in.h: Add prototype for new function.
20888         * lib/unigbrk/u16-grapheme-next.c: New file.
20889         * tests/unigbrk/test-u16-grapheme-next.c: New file.
20890
20891         New module 'u32-grapheme-next'.
20892         * modules/unigbrk/u32-grapheme-next: New file.
20893         * modules/unigbrk/u32-grapheme-next-tests: New file.
20894         * lib/unigbrk.in.h: Add prototype for new function.
20895         * lib/unigbrk/u32-grapheme-next.c: New file.
20896         * tests/unigbrk/test-u32-grapheme-next.c: New file.
20897
20898         New module 'u8-grapheme-prev'.
20899         * modules/unigbrk/u8-grapheme-prev: New file.
20900         * modules/unigbrk/u8-grapheme-prev-tests: New file.
20901         * lib/unigbrk.in.h: Add prototype for new function.
20902         * lib/unigbrk/u8-grapheme-prev.c: New file.
20903         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
20904
20905         New module 'u16-grapheme-prev'.
20906         * modules/unigbrk/u16-grapheme-prev: New file.
20907         * modules/unigbrk/u16-grapheme-prev-tests: New file.
20908         * lib/unigbrk.in.h: Add prototype for new function.
20909         * lib/unigbrk/u16-grapheme-prev.c: New file.
20910         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
20911
20912         New module 'u32-grapheme-prev'.
20913         * modules/unigbrk/u32-grapheme-prev: New file.
20914         * modules/unigbrk/u32-grapheme-prev-tests: New file.
20915         * lib/unigbrk.in.h: Add prototype for new function.
20916         * lib/unigbrk/u32-grapheme-prev.c: New file.
20917         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
20918
20919         New module 'u8-grapheme-breaks'.
20920         * modules/unigbrk/u8-grapheme-breaks: New file.
20921         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
20922         * lib/unigbrk.in.h: Add prototype for new function.
20923         * lib/unigbrk/u8-grapheme-breaks.c: New file.
20924         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
20925
20926         New module 'u16-grapheme-breaks'.
20927         * modules/unigbrk/u16-grapheme-breaks: New file.
20928         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
20929         * lib/unigbrk.in.h: Add prototype for new function.
20930         * lib/unigbrk/u16-grapheme-breaks.c: New file.
20931         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
20932
20933         New module 'u32-grapheme-breaks'.
20934         * modules/unigbrk/u32-grapheme-breaks: New file.
20935         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
20936         * lib/unigbrk.in.h: Add prototype for new function.
20937         * lib/unigbrk/u32-grapheme-breaks.c: New file.
20938         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
20939
20940         New module 'ulc-grapheme-breaks'.
20941         * modules/unigbrk/ulc-grapheme-breaks: New file.
20942         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
20943         * m4/locale-ar.m4: New file.
20944         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
20945         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
20946         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
20947
20948 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
20949
20950         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
20951         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
20952         modified how this file was generated before I initially submitted
20953         the module, but failed to regenerate it.  This meant that several
20954         of the level2 entries were wrong.
20955         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
20956         Remove the division-by-2 that is folded into the table now that
20957         gbrkprop.h has been regenerated properly.  Now -1 entries are
20958         handled correctly.
20959
20960         New module 'unigbrk/uc-gbrk-prop-tests'.
20961         * modules/unigbrk/uc-gbrk-prop-tests: New file.
20962         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
20963         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
20964         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
20965
20966 2011-01-01  Bruno Haible  <bruno@clisp.org>
20967
20968         Avoid use of hexadecimal escapes.
20969         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
20970         instead of hexadecimal escapes.
20971
20972 2011-01-01  Jim Meyering  <meyering@redhat.com>
20973
20974         maint: new rule to update copyright year ranges
20975         * Makefile (update-copyright): New rule.
20976
20977         maint: indent with TABs in Makefile
20978         * Makefile: Expand leading sequences of spaces to TABs
20979
20980         version-etc: update the copyright year it reports
20981         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
20982
20983 2010-12-31  Bruno Haible  <bruno@clisp.org>
20984
20985         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
20986         * lib/isfinite.c (zerof, zerod, zerol): New variables.
20987         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
20988         zero.
20989
20990 2010-12-31  Bruno Haible  <bruno@clisp.org>
20991
20992         pwrite: Work around HP-UX 11.11 bug.
20993         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
20994         works and set REPLACE_PWRITE if not.
20995         * lib/pwrite.c (pwrite): Add an implementation that uses the system
20996         function.
20997         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
20998
20999 2010-12-31  Bruno Haible  <bruno@clisp.org>
21000
21001         pread: Work around HP-UX 11 bugs.
21002         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21003         and set REPLACE_PREAD if not.
21004         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21005
21006 2010-12-31  Eric Blake  <eblake@redhat.com>
21007
21008         nl_langinfo: fix YESEXPR on Irix 6.5
21009         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21010         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
21011         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
21012         it.
21013
21014 2010-12-31  Bruno Haible  <bruno@clisp.org>
21015
21016         iconv: Document HP-UX 11 bug.
21017         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
21018
21019 2010-12-31  Bruno Haible  <bruno@clisp.org>
21020
21021         ldexpl: Fix link error on HP-UX 11.
21022         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
21023         LDEXPL_LIBM, using $ISNANL_LIBM.
21024
21025 2010-12-31  Eric Blake  <eblake@redhat.com>
21026
21027         ftello: avoid compilation failure with SunStudio c89
21028         * lib/ftello.c (ftello): Use lseek, not llseek.
21029
21030         tests: avoid failing coreutils tests on cygwin
21031         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
21032         (create_exe_shims_): Return 0 when skipping.
21033
21034 2010-12-31  Bruno Haible  <bruno@clisp.org>
21035
21036         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
21037         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
21038
21039 2010-12-31  Bruno Haible  <bruno@clisp.org>
21040
21041         waitpid: Fix link error in C++ mode.
21042         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
21043
21044 2010-12-31  Bruno Haible  <bruno@clisp.org>
21045
21046         isnan: Use GCC built-ins when possible.
21047         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
21048         __builtin_isnan.
21049         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
21050         (isnan): Define using GCC built-ins for GCC >= 4.0.
21051
21052 2010-12-31  Bruno Haible  <bruno@clisp.org>
21053
21054         isnand: Fix mistake.
21055         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
21056         __builtin_isnand.
21057
21058 2010-12-31  Bruno Haible  <bruno@clisp.org>
21059
21060         open: Avoid C++ error on HP-UX 11.
21061         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
21062
21063 2010-12-31  Bruno Haible  <bruno@clisp.org>
21064
21065         time_r: Add missing declarations on HP-UX 11.
21066         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
21067         instead of HAVE_LOCALTIME_R.
21068         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
21069         HAVE_LOCALTIME_R always.
21070         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
21071         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
21072         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
21073         HAVE_LOCALTIME_R.
21074         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
21075         * doc/posix-functions/localtime_r.texi: Likewise.
21076
21077 2010-12-29  Eric Blake  <eblake@redhat.com>
21078
21079         mountlist: tweak previous commit
21080         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
21081         Reported by Paul Eggert.
21082
21083         mountlist: fix local drive detection on cygwin
21084         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
21085         that works for cygwin.
21086
21087 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21088
21089         ftoastr, snprintf: ftoastr + snprintf module
21090         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
21091         since the snprintf module now should be good enough here.
21092         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
21093         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
21094         and gl_MODULE_INDICATOR([snprintf]), but the former enables
21095         GNULIB_SNPRINTF only for the test directory, and the latter
21096         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
21097         seems to suffice by itself.
21098
21099 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21100
21101         alloca: one step towards thread-safety
21102         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
21103         need for a static variable.  All callers changed.  This does not
21104         make the alloca replacement thread-safe, but it's one step.
21105
21106         tests: minor indenting change
21107         * tests/init.sh: Sync from coreutils housekeeping patch
21108         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
21109         to keep lines within 80 columns.
21110
21111 2010-12-28  Jim Meyering  <meyering@redhat.com>
21112
21113         regex: don't infloop on persistent failing calloc
21114         * lib/regexec.c (build_trtable): Return failure indication upon
21115         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21116         In glibc, this was fixed for version 2.13:
21117         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
21118
21119 2010-12-28  Bruno Haible  <bruno@clisp.org>
21120             Paul Eggert <eggert@cs.ucla.edu>
21121
21122         linkat: Make implementation robust against system behaviour variations.
21123         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
21124         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
21125         way, and to -2 if it needs a generic runtime test.
21126         * lib/linkat.c (solaris_optimized_link_immediate,
21127         solaris_optimized_link_follow): New functions.
21128         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
21129         (check_same_link): Use it.
21130
21131 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
21132
21133         New module 'unigbrk/base'.
21134         * modules/unigbrk/base: New file.
21135         * lib/unigbrk.in.h: New file.
21136
21137         New module 'unigbrk/uc-gbrk-prop'.
21138         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
21139         * modules/unigbrk/uc-gbrk-prop: New file.
21140         * lib/unigbrk/gbrkprop.h: New file.
21141         * lib/unigbrk/uc-gbrk-prop.c: New file.
21142
21143         New module 'unigbrk/uc-is-grapheme-break'.
21144         * modules/unigbrk/uc-is-grapheme-break: New file.
21145         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
21146         * lib/unigbrk/uc-is-grapheme-break.c: New file.
21147         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
21148         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
21149         * tests/unigbrk/GraphemeBreakTest.txt: New file.
21150
21151         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
21152
21153 2010-12-27  Bruno Haible  <bruno@clisp.org>
21154
21155         linkat test: Avoid failure on Solaris 11 2010-11.
21156         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
21157
21158 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21159
21160         utimens: work around glibc rounding bug on more platforms
21161         * lib/utimens.c (fdutimens): Work around rounding bug even if
21162         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
21163         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
21164
21165 2010-12-27  Bruno Haible  <bruno@clisp.org>
21166
21167         select tests: Improve comments.
21168         * tests/test-select.c (do_select): Add comments.
21169
21170 2010-12-27  Bruno Haible  <bruno@clisp.org>
21171
21172         select tests: Safer way of handling timeout.
21173         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
21174         at every invocation.
21175
21176 2010-12-27  Bruno Haible  <bruno@clisp.org>
21177
21178         select tests: Use 'bool' where appropriate.
21179         * tests/test-select.c (connect_to_socket): Change argument type to
21180         'bool'.
21181
21182 2010-12-27  Bruno Haible  <bruno@clisp.org>
21183
21184         select tests: Use existing modules.
21185         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
21186         (configure.ac): Don't test for unistd.h.
21187         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
21188         declared in <unistd.h>.
21189
21190 2010-12-27  Bruno Haible  <bruno@clisp.org>
21191
21192         mbrtowc: Work around a Solaris 7 bug.
21193         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
21194         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
21195         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
21196         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
21197         MBRTOWC_NULL_ARG1_BUG.
21198         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
21199         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
21200         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
21201         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
21202
21203 2010-12-27  Jim Meyering  <meyering@redhat.com>
21204
21205         read-file.c: tweak syntax
21206         * lib/read-file.c (fread_file): Remove space after "*" in function
21207         definitions.
21208
21209 2010-12-27  Bruno Haible  <bruno@clisp.org>
21210
21211         times test: Avoid gcc warnings on OSF/1.
21212         * tests/test-times.c (main): Cast printf arguments from clock_t to
21213         'long int'.
21214
21215 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21216
21217         utimens: work around glibc rounding bug on older Linux kernels
21218         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
21219         on Linux with a glibc whose utimes might not work, then work
21220         around a longstanding glibc bug involving rounding rather than
21221         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
21222         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21223
21224 2010-12-26  Bruno Haible  <bruno@clisp.org>
21225
21226         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
21227         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
21228         _GL_CXXALIAS_SYS.
21229         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21230
21231 2010-12-26  Bruno Haible  <bruno@clisp.org>
21232
21233         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
21234         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
21235         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
21236         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
21237         looking for the declaration.
21238         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
21239         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
21240         problem.
21241         * doc/posix-functions/inet_pton.texi: Likewise.
21242
21243 2010-12-26  Bruno Haible  <bruno@clisp.org>
21244
21245         arpa_inet: Use the common idioms with C++ support.
21246         * lib/arpa_inet.in.h: Include c++defs.h.
21247         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
21248         support.
21249         * modules/arpa_inet (Depends-on): Add c++defs.
21250         (Makefile.am): Substitute the contents of c++defs.h.
21251         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
21252         * modules/arpa_inet-c++-tests: New file.
21253         * tests/test-arpa_inet-c++.cc: New file.
21254
21255 2010-12-25  Bruno Haible  <bruno@clisp.org>
21256
21257         Fix more C++ link errors on Solaris 8.
21258         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
21259         $(LIB_EACCESS).
21260         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
21261         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
21262         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
21263         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
21264         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
21265
21266 2010-12-25  Bruno Haible  <bruno@clisp.org>
21267
21268         printf-posix: Fix link error when a non-GCC compiler is used.
21269         * lib/stdio.in.h (printf): When not using GCC, override printf
21270         correctly.
21271         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21272
21273 2010-12-25  Bruno Haible  <bruno@clisp.org>
21274
21275         strerror_r-posix: Update doc.
21276         * doc/posix-functions/strerror_r.texi: Update doc about the return
21277         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
21278
21279 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
21280
21281         utimens: simplify the logic of the previous change
21282         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
21283         This should not affect whether the test succeeds or fails.
21284
21285         utimens: configure better on hosts with NFS clock skew
21286         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
21287         uses the clock of the local host.  It might use the clock of the
21288         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
21289         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21290
21291 2010-12-25  Bruno Haible  <bruno@clisp.org>
21292
21293         ptsname test: Avoid failure on Solaris.
21294         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
21295         open a pseudo-terminal; don't use BSD-style ptys.
21296         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
21297
21298 2010-12-25  Bruno Haible  <bruno@clisp.org>
21299
21300         ptsname: Avoid ERANGE failure on some systems.
21301         * lib/ptsname.c (buffer): Increase size.
21302
21303 2010-12-25  Bruno Haible  <bruno@clisp.org>
21304
21305         rename, renameat: Avoid test failures at NFS mounted locations.
21306         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
21307         so that subsequent mkdir calls succeed.
21308
21309 2010-12-25  Bruno Haible  <bruno@clisp.org>
21310
21311         iswblank: Fix C++ link error on Solaris 8.
21312         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
21313         _GL_FUNCDECL_SYS.
21314
21315 2010-12-25  Bruno Haible  <bruno@clisp.org>
21316
21317         unistd: Fix C++ link error on Solaris 8.
21318         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
21319
21320 2010-12-25  Bruno Haible  <bruno@clisp.org>
21321
21322         readlink doc: Mention an old glibc bug.
21323         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
21324
21325 2010-12-25  Bruno Haible  <bruno@clisp.org>
21326
21327         fcntl-h: Fix for use of C++ on glibc systems.
21328         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21329         also on glibc systems in C++ mode.
21330         Reported by Gary V. Vaughan <gary@gnu.org>.
21331
21332 2010-12-25  Bruno Haible  <bruno@clisp.org>
21333
21334         roundl-ieee: Make it work on OSF/1 5.1 with cc.
21335         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
21336
21337 2010-12-25  Bruno Haible  <bruno@clisp.org>
21338
21339         truncl-ieee: Make it work on OSF/1 5.1 with cc.
21340         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
21341         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
21342         test whether truncl works according to ISO C 99 with IEC 60559.
21343         * m4/truncl-ieee.m4: New file.
21344         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
21345         m4/signbit.m4.
21346         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
21347
21348 2010-12-25  Bruno Haible  <bruno@clisp.org>
21349
21350         ceill-ieee: Make it work on OSF/1 5.1 with cc.
21351         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
21352         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
21353         test whether ceill works according to ISO C 99 with IEC 60559.
21354         * m4/ceill-ieee.m4: New file.
21355         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
21356         m4/signbit.m4.
21357         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
21358
21359 2010-12-25  Bruno Haible  <bruno@clisp.org>
21360
21361         Ensure all prerequisites of <wchar.h> are included.
21362         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
21363         before <wchar.h>.
21364         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21365         gl_MBRLEN_NUL_RETVAL): Likewise.
21366         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21367         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
21368         AC_FUNC_MBRTOWC): Likewise.
21369         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21370         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
21371         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21372         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21373         Likewise.
21374         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21375         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
21376         (gl_WCHAR_H): Improve comments.
21377         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21378
21379 2010-12-25  Bruno Haible  <bruno@clisp.org>
21380
21381         strtok_r: Fix C syntax error in autoconf macro.
21382         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
21383         characters in test program.
21384
21385 2010-12-24  Bruno Haible  <bruno@clisp.org>
21386
21387         ceil, trunc, round: Fix gcc warnings.
21388         * lib/ceil.c (MIN): Undefine before redefining.
21389         * lib/trunc.c (MIN): Likewise.
21390         * lib/round.c (MIN): Likewise.
21391         Include <math.h> first.
21392
21393 2010-12-24  Bruno Haible  <bruno@clisp.org>
21394
21395         select tests: Avoid failures on OSF/1 5.1.
21396         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
21397         failure of closing the last socket; it may fail with ECONNRESET.
21398
21399 2010-12-24  Eric Blake  <eblake@redhat.com>
21400
21401         stdint: avoid HP-UX 10.20 preprocessor bug
21402         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
21403         than #if.
21404         * tests/test-floor2.c (main): Likewise.
21405         Reported by Peter O'Gorman.
21406
21407         pipe: make obsoletion transition easier
21408         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
21409         * modules/pipe (Files): Include revived file.
21410         (Include): Drop reference, to mirror getdate's behavior.
21411
21412 2010-12-24  Bruno Haible  <bruno@clisp.org>
21413
21414         sys_socket: Hide mismatch of declarations on NonStop Kernel.
21415         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
21416         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
21417         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21418
21419 2010-12-24  Bruno Haible  <bruno@clisp.org>
21420
21421         gethostname: Ensure declaration on NonStop Kernel.
21422         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
21423         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21424
21425 2010-12-24  Bruno Haible  <bruno@clisp.org>
21426
21427         sys_select: Ensure all necessary types on NonStop Kernel.
21428         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
21429         include <sys/time.h>.
21430         * doc/posix-headers/sys_select.texi: Mention that it's missing on
21431         NonStop Kernel.
21432         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21433
21434 2010-12-24  Bruno Haible  <bruno@clisp.org>
21435
21436         sys_select: Remove unneeded include.
21437         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
21438         have <sys/select.h>.
21439
21440 2010-12-24  Bruno Haible  <bruno@clisp.org>
21441
21442         gethostname: Provide a fallback for HOST_NAME_MAX.
21443         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
21444         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
21445         instead.
21446         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21447
21448 2010-12-24  Bruno Haible  <bruno@clisp.org>
21449
21450         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
21451         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
21452         (SA_RESTART): Likewise.
21453         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21454
21455 2010-12-24  Bruno Haible  <bruno@clisp.org>
21456
21457         signal: Define NSIG.
21458         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
21459         * tests/test-signal.c (nsig): New variable.
21460         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21461
21462 2010-12-24  Bruno Haible  <bruno@clisp.org>
21463
21464         rename, renameat: Avoid test failures on OSF/1 5.1.
21465         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
21466         alternative error codes.
21467         * tests/test-renameat.c (main): Likewise.
21468
21469 2010-12-24  Bruno Haible  <bruno@clisp.org>
21470
21471         *printf: Detect large precisions bug on Solaris 10/SPARC.
21472         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
21473         by Paul Eggert.
21474         * tests/test-snprintf-posix.h (test_function): Add this test code here
21475         too.
21476         * tests/test-sprintf-posix.h (test_function): Likewise.
21477         * tests/test-vasnprintf-posix.c (test_function): Likewise.
21478         * tests/test-vasprintf-posix.c (test_function): Likewise.
21479         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
21480         around by gnulib.
21481         * doc/posix-functions/printf.texi: Likewise.
21482         * doc/posix-functions/snprintf.texi: Likewise.
21483         * doc/posix-functions/sprintf.texi: Likewise.
21484         * doc/posix-functions/vfprintf.texi: Likewise.
21485         * doc/posix-functions/vprintf.texi: Likewise.
21486         * doc/posix-functions/vsnprintf.texi: Likewise.
21487         * doc/posix-functions/vsprintf.texi: Likewise.
21488         * doc/posix-functions/dprintf.texi: Undo last commit.
21489         * doc/posix-functions/vdprintf.texi: Likewise.
21490
21491 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
21492
21493         tests: port test-fdutimensat.c to Solaris 8
21494         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
21495         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
21496         On Solaris 8, it fails with errno == ENOSYS, because there is no
21497         futimens (so it can't use the fd), and there is no lutimens (so it
21498         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
21499
21500         vsnprintf: make more consistent with snprintf; doc fixes
21501
21502         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
21503         the byte count return problem was promoted from the snprintf-posix
21504         to the snprintf module.
21505         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
21506         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
21507         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
21508         * tests/test-snprintf.c (main): Check the byte count returned.
21509         * tests/test-vsnprintf.c (main): Likewise.
21510
21511 2010-12-23  Eric Blake  <eblake@redhat.com>
21512
21513         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
21514         * modules/sigpipe (License): Relax license.
21515
21516 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
21517
21518         doc: document Solaris printf bug with large float precisions
21519         * doc/posix-functions/dprintf.texi (dprintf):
21520         * doc/posix-functions/fprintf.texi (fprintf):
21521         * doc/posix-functions/printf.texi (printf):
21522         * doc/posix-functions/snprintf.texi (snprintf):
21523         * doc/posix-functions/sprintf.texi (sprintf):
21524         * doc/posix-functions/vdprintf.texi (vdprintf):
21525         * doc/posix-functions/vfprintf.texi (vfprintf):
21526         * doc/posix-functions/vprintf.texi (vprintf):
21527         * doc/posix-functions/vsnprintf.texi (vsnprintf):
21528         * doc/posix-functions/vsprintf.texi (vsprintf):
21529         Mention that these functions mishandle large floating point
21530         precisions on Solaris 10.  The same bug is also present in Solaris
21531         8, and I assume earlier.  This causes "cd gnulib-tests; make
21532         check" to fail on Solaris 8 (and I assume, later) when building
21533         the latest coreutils, in test-vasprintf-posix's call to
21534         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
21535         the wide flavors (e.g., wprintf) so this patch just updates the
21536         documentation for the narrow ones.
21537
21538         test-posixtm.c: add two tests
21539         * tests/test-posixtm.c: Add two tests, to highlight the
21540         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
21541         around this bug; this is merely to document it.
21542
21543 2010-12-22  Bruno Haible  <bruno@clisp.org>
21544
21545         getlogin_r: Work around portability problem on OSF/1.
21546         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
21547         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
21548         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
21549         test for a truncated result.
21550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
21551         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
21552         * modules/getlogin_r (Depends-on): Add memchr.
21553         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
21554
21555 2010-12-22  Bruno Haible  <bruno@clisp.org>
21556
21557         ptsname: Avoid test failure on OSF/1 5.1.
21558         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
21559         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
21560         (same_slave): New function.
21561         (main): Use it to compare ptsname's result with the expected file name.
21562
21563 2010-12-22  Bruno Haible  <bruno@clisp.org>
21564
21565         Port extended stdio modules to HP NonStop Kernel.
21566         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
21567         macros.
21568         * lib/fbufmode.c: Update comments.
21569         * lib/fflush.c: Likewise.
21570         * lib/fpurge.c: Likewise.
21571         * lib/freadable.c: Likewise.
21572         * lib/freadahead.c: Likewise.
21573         * lib/freading.c: Likewise.
21574         * lib/freadptr.c: Likewise.
21575         * lib/freadseek.c: Likewise.
21576         * lib/fseeko.c: Likewise.
21577         * lib/fseterr.c: Likewise.
21578         * lib/fwritable.c: Likewise.
21579         * lib/fwriting.c: Likewise.
21580         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21581
21582 2010-12-22  Bruno Haible  <bruno@clisp.org>
21583
21584         ttyname_r: Work around bug on OSF/1 5.1.
21585         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
21586         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
21587         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
21588         present.
21589         * lib/ttyname_r.c (ttyname_r): Update comments.
21590
21591 2010-12-22  Bruno Haible  <bruno@clisp.org>
21592
21593         round: Implement result sign according to IEEE 754.
21594         * lib/round.c (MIN, MINUS_ZERO): New macros.
21595         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
21596         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
21597         * tests/test-round-ieee.c (main): Likewise.
21598         * tests/test-roundl-ieee.c (main): Likewise.
21599
21600         trunc: Implement result sign according to IEEE 754.
21601         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
21602         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
21603         * tests/test-trunc2.c: Include minus-zero.h.
21604         (MINUS_ZERO): New macro.
21605         (trunc_reference): Keep in sync with lib/trunc.c.
21606         * tests/test-truncf2.c: Include minus-zero.h.
21607         (MINUS_ZERO): New macro.
21608         (truncf_reference): Keep in sync with lib/trunc.c.
21609         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
21610         * tests/test-trunc-ieee.c (main): Likewise.
21611         * tests/test-truncl-ieee.c (main): Likewise.
21612
21613         ceil: Implement result sign according to IEEE 754.
21614         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
21615         (FUNC): Return -0.0 for -1 < x < 0.
21616         * tests/test-ceil2.c: Include minus-zero.h.
21617         (MINUS_ZERO): New macro.
21618         (ceil_reference): Keep in sync with lib/ceil.c.
21619         * tests/test-ceilf2.c: Include minus-zero.h.
21620         (MINUS_ZERO): New macro.
21621         (ceilf_reference): Keep in sync with lib/ceil.c.
21622         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
21623         * tests/test-ceil-ieee.c (main): Likewise.
21624         * tests/test-ceill-ieee.c (main): Likewise.
21625
21626         floor: Implement result sign according to IEEE 754.
21627         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
21628         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
21629         * tests/test-floorf2.c (floorf_reference): Likewise.
21630         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
21631         * tests/test-floor-ieee.c (main): Likewise.
21632         * tests/test-floorl-ieee.c (main): Likewise.
21633
21634 2010-12-22  Bruno Haible  <bruno@clisp.org>
21635
21636         getaddrinfo: Update doc.
21637         * doc/posix-functions/gai_strerror.texi: Return type is also different
21638         on AIX and HP-UX.
21639
21640 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
21641
21642         getaddrinfo, inet_ntop: Update doc for Solaris.
21643         * doc/posix-functions/gai_strerror.texi: Return type is also an
21644         issue on Solaris 9 and earlier.
21645         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
21646         on Solaris 10 and earlier.
21647
21648 2010-12-21  Bruno Haible  <bruno@clisp.org>
21649
21650         New module 'roundl-ieee'.
21651         * modules/roundl-ieee: New file.
21652         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
21653         test whether roundl works according to ISO C 99 with IEC 60559.
21654         * m4/roundl-ieee.m4: New file.
21655         * modules/roundl-ieee-tests: New file.
21656         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
21657         * tests/test-roundl.c (main): Remove signbit tests.
21658         * modules/roundl-tests (Depends-on): Remove signbit.
21659         * doc/posix-functions/roundl.texi: Mention the new module.
21660
21661 2010-12-21  Bruno Haible  <bruno@clisp.org>
21662
21663         New module 'truncl-ieee'.
21664         * modules/truncl-ieee: New file.
21665         * modules/truncl-ieee-tests: New file.
21666         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
21667         * tests/test-truncl.c (main): Remove signbit tests.
21668         * modules/truncl-tests (Depends-on): Remove signbit.
21669         * doc/posix-functions/truncl.texi: Mention the new module.
21670
21671 2010-12-21  Bruno Haible  <bruno@clisp.org>
21672
21673         New module 'ceill-ieee'.
21674         * modules/ceill-ieee: New file.
21675         * modules/ceill-ieee-tests: New file.
21676         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
21677         * tests/test-ceill.c (main): Remove signbit tests.
21678         * modules/ceill-tests (Depends-on): Remove signbit.
21679         * doc/posix-functions/ceill.texi: Mention the new module.
21680
21681 2010-12-21  Bruno Haible  <bruno@clisp.org>
21682
21683         New module 'floorl-ieee'.
21684         * modules/floorl-ieee: New file.
21685         * modules/floorl-ieee-tests: New file.
21686         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
21687         * tests/test-floorl.c (main): Remove signbit tests.
21688         * modules/floorl-tests (Depends-on): Remove signbit.
21689         * doc/posix-functions/floorl.texi: Mention the new module.
21690
21691 2010-12-21  Bruno Haible  <bruno@clisp.org>
21692
21693         New module 'round-ieee'.
21694         * modules/round-ieee: New file.
21695         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
21696         whether round works according to ISO C 99 with IEC 60559.
21697         * m4/round-ieee.m4: New file.
21698         * modules/round-ieee-tests: New file.
21699         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
21700         * tests/test-round1.c (main): Remove signbit tests.
21701         * modules/round-tests (Depends-on): Remove 'signbit'.
21702         * doc/posix-functions/round.texi: Mention the new module.
21703
21704 2010-12-21  Bruno Haible  <bruno@clisp.org>
21705
21706         New module 'trunc-ieee'.
21707         * modules/trunc-ieee: New file.
21708         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
21709         whether trunc works according to ISO C 99 with IEC 60559.
21710         * m4/trunc-ieee.m4: New file.
21711         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
21712         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
21713         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
21714         * modules/trunc-ieee-tests: New file.
21715         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
21716         * tests/test-trunc1.c (main): Remove signbit tests.
21717         * modules/trunc-tests (Depends-on): Remove 'signbit'.
21718         * doc/posix-functions/trunc.texi: Mention the new module.
21719
21720 2010-12-21  Bruno Haible  <bruno@clisp.org>
21721
21722         New module 'ceil-ieee'.
21723         * modules/ceil-ieee: New file.
21724         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
21725         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
21726         ISO C 99 with IEC 60559.
21727         * m4/ceil-ieee.m4: New file.
21728         * modules/ceil (Files): Add lib/ceil.c.
21729         (Depends-on): Add 'float'.
21730         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21731         * lib/math.in.h (ceil): New declaration.
21732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
21733         REPLACE_CEIL.
21734         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
21735         * modules/ceil-ieee-tests: New file.
21736         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
21737         * tests/test-math-c++.cc: Check the signature of 'ceil'.
21738         * doc/posix-functions/ceil.texi: Mention the new module.
21739
21740 2010-12-21  Bruno Haible  <bruno@clisp.org>
21741
21742         New module 'floor-ieee'.
21743         * modules/floor-ieee: New file.
21744         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
21745         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
21746         ISO C 99 with IEC 60559.
21747         * m4/floor-ieee.m4: New file.
21748         * modules/floor (Files): Add lib/floor.c.
21749         (Depends-on): Add 'float'.
21750         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21751         * lib/math.in.h (floor): New declaration.
21752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
21753         REPLACE_FLOOR.
21754         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
21755         * modules/floor-ieee-tests: New file.
21756         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
21757         * tests/test-math-c++.cc: Check the signature of 'floor'.
21758         * doc/posix-functions/floor.texi: Mention the new module.
21759
21760 2010-12-21  Bruno Haible  <bruno@clisp.org>
21761
21762         New module 'roundf-ieee'.
21763         * modules/roundf-ieee: New file.
21764         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
21765         test whether roundf works according to ISO C 99 with IEC 60559.
21766         * m4/roundf-ieee.m4: New file.
21767         * modules/roundf-ieee-tests: New file.
21768         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
21769         * tests/test-roundf1.c (main): Remove signbit tests.
21770         * modules/roundf-tests (Depends-on): Remove 'signbit'.
21771         * doc/posix-functions/roundf.texi: Mention the new module.
21772
21773 2010-12-21  Bruno Haible  <bruno@clisp.org>
21774
21775         New module 'truncf-ieee'.
21776         * modules/truncf-ieee: New file.
21777         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
21778         test whether truncf works according to ISO C 99 with IEC 60559.
21779         * m4/truncf-ieee.m4: New file.
21780         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
21781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
21782         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
21783         * modules/truncf-ieee-tests: New file.
21784         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
21785         * tests/test-truncf1.c (main): Remove signbit tests.
21786         * modules/truncf-tests (Depends-on): Remove 'signbit'.
21787         * doc/posix-functions/truncf.texi: Mention the new module.
21788
21789 2010-12-21  Bruno Haible  <bruno@clisp.org>
21790
21791         New module 'ceilf-ieee'.
21792         * modules/ceilf-ieee: New file.
21793         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
21794         test whether ceilf works according to ISO C 99 with IEC 60559.
21795         * m4/ceilf-ieee.m4: New file.
21796         * modules/ceilf-ieee-tests: New file.
21797         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
21798         * tests/test-ceilf1.c (main): Remove signbit tests.
21799         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
21800         * doc/posix-functions/ceilf.texi: Mention the new module.
21801
21802 2010-12-21  Bruno Haible  <bruno@clisp.org>
21803
21804         New module 'floorf-ieee'.
21805         * modules/floorf-ieee: New file.
21806         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
21807         test whether floorf works according to ISO C 99 with IEC 60559.
21808         * m4/floorf-ieee.m4: New file.
21809         * modules/floorf-ieee-tests: New file.
21810         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
21811         * tests/test-floorf1.c (main): Remove signbit tests.
21812         * modules/floorf-tests (Depends-on): Remove 'signbit'.
21813         * doc/posix-functions/floorf.texi: Mention the new module.
21814
21815 2010-12-21  Bruno Haible  <bruno@clisp.org>
21816
21817         Support for minus zero in autoconf macros.
21818         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
21819         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
21820         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
21821         * tests/minus-zero.h: Update comments.
21822
21823 2010-12-21  Bruno Haible  <bruno@clisp.org>
21824
21825         Tests for module 'ceil'.
21826         * modules/ceil-tests: New file.
21827         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
21828         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
21829
21830 2010-12-21  Bruno Haible  <bruno@clisp.org>
21831
21832         Tests for module 'floor'.
21833         * modules/floor-tests: New file.
21834         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
21835         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
21836
21837 2010-12-21  Bruno Haible  <bruno@clisp.org>
21838
21839         math: Fix indentation.
21840         * lib/math.in.h (floorf): Fix indentation.
21841
21842 2010-12-21  Bruno Haible  <bruno@clisp.org>
21843
21844         Fix cross-compilation guesses on Solaris.
21845         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
21846         not match "solaris2.10".
21847         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21848         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
21849         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
21850
21851 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
21852
21853         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
21854         This fixes a problem observed with the latest coreutils snapshot
21855         that caused a test to fail on Solaris 8.  src/csplit.c's call
21856         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
21857         earlier, instead of returning the number of bytes that would have
21858         been generated; this causes csplit to incorrectly report memory
21859         exhaustion.
21860         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
21861         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
21862         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
21863         comments to match.
21864         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
21865         Fix typo in matching older versions of Solaris: "solaris2.10"
21866         is matched by the shell pattern "solaris2.[0-9]*".  This matters
21867         only for guessing while cross-compiling.
21868         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
21869
21870 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
21871
21872         ftoastr: fix comment again
21873         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
21874         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
21875         Also, simplify example a bit by using flags = 0.
21876
21877 2010-12-20  Bruno Haible  <bruno@clisp.org>
21878
21879         round*, trunc*: Update documentation regarding glibc.
21880         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
21881         * doc/posix-functions/round.texi: Likewise.
21882         * doc/posix-functions/roundl.texi: Likewise.
21883         * doc/posix-functions/truncf.texi: Likewise.
21884         * doc/posix-functions/trunc.texi: Likewise.
21885         * doc/posix-functions/truncl.texi: Likewise.
21886
21887 2010-12-20  Bruno Haible  <bruno@clisp.org>
21888
21889         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
21890         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
21891         * doc/posix-functions/round.texi: Likewise.
21892         * doc/posix-functions/roundl.texi: Likewise.
21893
21894 2010-12-20  Bruno Haible  <bruno@clisp.org>
21895
21896         ttyname_r: Add missing declaration on HP-UX 11.
21897         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
21898         HAVE_TTYNAME_R.
21899         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
21900         declared. Set HAVE_TTYNAME_R always.
21901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21902         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
21903         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
21904         HAVE_TTYNAME_R.
21905         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
21906
21907 2010-12-20  Bruno Haible  <bruno@clisp.org>
21908
21909         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
21910         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
21911         * doc/posix-functions/getlogin_r.texi: Likewise.
21912         * tests/test-getlogin.c: Include <errno.h>.
21913         (main): Avoid test failure on HP-UX 11.11.
21914         * tests/test-getlogin_r.c (main): Likewise.
21915
21916 2010-12-20  Bruno Haible  <bruno@clisp.org>
21917
21918         getlogin_r: Add missing declaration on HP-UX 11.
21919         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
21920         declared also when it exists as a function.
21921         * doc/posix-functions/getlogin_r.texi: Document this workaround.
21922
21923 2010-12-20  Bruno Haible  <bruno@clisp.org>
21924
21925         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
21926         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
21927         through wcrtomb.
21928
21929 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21930
21931         ftoastr: fix comment
21932         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
21933         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
21934
21935 2010-12-19  Bruno Haible  <bruno@clisp.org>
21936
21937         isnan: Ensure it is a macro.
21938         * lib/math.in.h (isnan): Define as a macro if not already a macro.
21939         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
21940         Solaris.
21941
21942 2010-12-19  Bruno Haible  <bruno@clisp.org>
21943
21944         ldexpl test: Fix link error on OSF/1 5.1.
21945         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
21946
21947 2010-12-19  Bruno Haible  <bruno@clisp.org>
21948
21949         wctype: Make it work in C++ mode on OSF/1 5.1.
21950         * lib/wctype.in.h (iswblank): Declare but not define here.
21951         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
21952         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
21953         * modules/wctype (Files): Add lib/iswblank.c.
21954
21955 2010-12-19  Bruno Haible  <bruno@clisp.org>
21956
21957         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
21958         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
21959         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
21960
21961 2010-12-19  Bruno Haible  <bruno@clisp.org>
21962
21963         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
21964         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
21965         _POSIX_PII_SOCKET.
21966         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
21967         * doc/posix-functions/recvfrom.texi: Likewise.
21968         * doc/posix-functions/send.texi: Likewise.
21969         * doc/posix-functions/sendto.texi: Likewise.
21970
21971 2010-12-19  Bruno Haible  <bruno@clisp.org>
21972
21973         tcgetsid: Add missing declaration on OSF/1 5.1.
21974         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
21975         HAVE_TCGETSID.
21976         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
21977         Don't set HAVE_TCGETSID.
21978         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
21979         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
21980         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
21981         HAVE_TCGETSID.
21982         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
21983
21984 2010-12-19  Bruno Haible  <bruno@clisp.org>
21985
21986         stdio: Fix problem with popen() declaration on OSF/1 5.1.
21987         * lib/stdio.in.h: During the include_next statement, let recursive
21988         includes of this file include only the system header file.
21989
21990 2010-12-19  Bruno Haible  <bruno@clisp.org>
21991
21992         iconv_open: Fix regression from 2010-12-04.
21993         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
21994         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
21995
21996 2010-12-19  Bruno Haible  <bruno@clisp.org>
21997
21998         stdbool test: Avoid a gcc warning.
21999         * tests/test-stdbool.c (main): Fail if e1 is false.
22000         Reported by Jim Meyering.
22001
22002 2010-12-19  Jim Meyering  <meyering@redhat.com>
22003
22004         setenv: restore to working order
22005         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22006         mistakenly removed.
22007         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22008         HAVE_SETENV.
22009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22010         HAVE_SETENV.
22011
22012 2010-12-19  Bruno Haible  <bruno@clisp.org>
22013
22014         Document some different function declarations on OSF/1 5.1.
22015         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
22016         * doc/posix-functions/inet_ntop.texi: Likewise.
22017         * doc/posix-functions/gethostname.texi: Likewise.
22018         * lib/unistd.in.h (gethostname): Update comment.
22019
22020 2010-12-19  Bruno Haible  <bruno@clisp.org>
22021
22022         doc: Mention vasprintf-posix module.
22023         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
22024         the 'vasprintf-posix' module.
22025         * doc/glibc-functions/vasprintf.texi: Likewise.
22026
22027 2010-12-19  Bruno Haible  <bruno@clisp.org>
22028
22029         unsetenv: Add missing declaration on OSF/1 5.1.
22030         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
22031         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
22032         Don't set HAVE_UNSETENV. In the test program, set _BSD.
22033         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
22034         not HAVE_UNSETENV.
22035         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
22036         HAVE_UNSETENV.
22037         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
22038
22039 2010-12-19  Bruno Haible  <bruno@clisp.org>
22040
22041         setenv: Add missing declaration on OSF/1 5.1.
22042         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
22043         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
22044         declared. Don't set HAVE_SETENV.
22045         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
22046         not HAVE_SETENV.
22047         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
22048         HAVE_SETENV.
22049         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
22050
22051 2010-12-19  Bruno Haible  <bruno@clisp.org>
22052
22053         nl_langinfo tests: Avoid gcc warning.
22054         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
22055
22056 2010-12-19  Bruno Haible  <bruno@clisp.org>
22057
22058         mknod: Avoid error in C++ mode on OSF/1 with GCC.
22059         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
22060         _GL_CXXALIAS_SYS.
22061
22062 2010-12-19  Bruno Haible  <bruno@clisp.org>
22063
22064         stdbool: Relax test.
22065         * tests/test-stdbool.c (e): Don't require that casts from a variable's
22066         address to 'bool' work in static initializer, for compilers other than
22067         GCC.
22068
22069 2010-12-19  Bruno Haible  <bruno@clisp.org>
22070
22071         ftello: Add missing declaration on OSF/1 5.1.
22072         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
22073         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
22074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
22075         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
22076         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
22077
22078 2010-12-19  Bruno Haible  <bruno@clisp.org>
22079
22080         fseeko: Add missing declaration on OSF/1 5.1.
22081         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
22082         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
22083         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
22084         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
22085         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
22086
22087 2010-12-19  Bruno Haible  <bruno@clisp.org>
22088
22089         fchdir: Add missing declaration on OSF/1 5.1.
22090         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
22091         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
22092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
22093         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
22094         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
22095
22096 2010-12-19  Bruno Haible  <bruno@clisp.org>
22097
22098         relocatable-prog-wrapper: Separate from relocatable-prog.
22099         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
22100         uninstall-relocwrapper rule here.
22101         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
22102         Reported by Ian Beckwith <ianb@erislabs.net>.
22103
22104 2010-12-19  Bruno Haible  <bruno@clisp.org>
22105
22106         unistr/u8-mbsnlen: Add missing dependency.
22107         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
22108         Reported by Ian Beckwith <ianb@erislabs.net>.
22109
22110 2010-12-19  Bruno Haible  <bruno@clisp.org>
22111
22112         iconv: Make it possible again to use this module without 'iconv-h'.
22113         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
22114         if it is not defined.
22115         Reported by Ian Beckwith <ianb@erislabs.net>.
22116
22117 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22118
22119         acl: port to Solaris 8 when copying from tmpfs to ufs
22120         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
22121         error number.  Problem observed on Solaris 8 with latest
22122         coreutils, with "mv A B", where A is on a tmpfs file system and B
22123         is on a ufs file system.  This caused coreutils' mv/part-symlink
22124         test to fail.
22125
22126         tests: set fail=0 at start
22127         * tests/init.sh (setup_): Move fail=0 initialization here ...
22128         (mktempd_): ... from here, so that tests can rely on fail being
22129         set to 0 initially.  This fixes a problem in coreutils; see:
22130         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
22131
22132 2010-12-18  Bruno Haible  <bruno@clisp.org>
22133
22134         memmem-simple: Stylistic changes.
22135         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
22136         Fix preprocessor directive indentation.
22137
22138 2010-12-15  Pádraig Brady <P@draigBrady.com>
22139
22140         memmem, memmem-simple: reorganize and expand empty needle check
22141         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
22142         functional checks to memmem-simple so that one has a fully functional
22143         memmem by using just this module.
22144         Restrict the performance only check to the memmem module.
22145         Also expand the empty needle check to ensure the correct
22146         pointer is returned, not just a non NULL pointer.
22147         * doc/glibc-functions/memmem.texi: Rearrange the portability
22148         documentation to correlate with the rearranged checks.
22149         Clarify exactly how the memmem and memmem-simple modules
22150         relate to each other.
22151
22152 2010-12-15  Pádraig Brady <P@draigBrady.com>
22153             Bruno Haible  <bruno@clisp.org>
22154
22155         Improve cross-compilation guesses for uClibc.
22156         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
22157         that uClibc does not have the glibc bug.
22158         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22159         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
22160
22161 2010-12-14  Eric Blake  <eblake@redhat.com>
22162
22163         configmake: provide fallbacks for oldest supported autotools
22164         * m4/configmake.m4: New file.
22165         * modules/configmake (Files): Ship it.
22166         (configure.ac): Use it to guarantee fallbacks.
22167
22168 2010-12-13  Pádraig Brady <P@draigBrady.com>
22169
22170         read-file: Improve handling of large files
22171         * lib/read-file.c (fread_file): Minimize realloc()s
22172         for regular files, and better manage sizes around SIZE_MAX.
22173
22174 2010-12-13  Eric Blake  <eblake@redhat.com>
22175
22176         cloexec, fcntl: relax license
22177         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
22178         consent from all contributors.
22179         * modules/fcntl (License): Likewise.
22180
22181 2010-12-10  Bruno Haible  <bruno@clisp.org>
22182
22183         Tests for module 'pipe-posix'.
22184         * modules/pipe-posix-tests: New file.
22185         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
22186
22187 2010-12-10  Bruno Haible  <bruno@clisp.org>
22188
22189         pipe-posix: Make it work in C++ mode.
22190         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
22191         (pipe): Use common idiom, not a macro definition.
22192         * lib/pipe.c: New file.
22193         * m4/pipe.m4: New file.
22194         * modules/pipe-posix (Description): Enhance.
22195         (Files): Add lib/pipe.c, m4/pipe.m4.
22196         (configure.ac): Invoke gl_FUNC_PIPE.
22197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
22198         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
22199         * tests/test-unistd-c++.cc: Check the signature of pipe.
22200
22201 2010-12-10  Bruno Haible  <bruno@clisp.org>
22202
22203         Rename module 'pipe' to 'spawn-pipe'.
22204         * modules/spawn-pipe: New file, renamed from modules/pipe.
22205         (Files, configure.ac, Makefile.am): Update.
22206         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
22207         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
22208         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
22209         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
22210         "spawn-pipe.h" instead of "pipe.h".
22211         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
22212         to gl_SPAWN_PIPE.
22213         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
22214         (Files, Makefile.am): Update.
22215         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
22216         Update.
22217         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
22218         Include "spawn-pipe.h" instead of "pipe.h".
22219         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
22220         * lib/javacomp.c: Likewise.
22221         * lib/javaversion.c: Likewise.
22222         * lib/pipe-filter-gi.c: Likewise.
22223         * lib/pipe-filter-ii.c: Likewise.
22224         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
22225         * modules/javacomp (Depends-on): Likewise.
22226         * modules/javaversion (Depends-on): Likewise.
22227         * modules/pipe-filter-gi (Depends-on): Likewise.
22228         * modules/pipe-filter-ii (Depends-on): Likewise.
22229         * MODULES.html.sh (Executing programs): Update.
22230         * NEWS: Mention the change.
22231
22232 2010-12-10  Eric Blake  <eblake@redhat.com>
22233
22234         pipe-posix: new module
22235         * modules/pipe-posix: New file.
22236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
22237         (gl_UNISTD_H): Check for declaration.
22238         * modules/unistd (Makefile.am): Substitute it.
22239         * lib/unistd.in.h (pipe): Provide it for mingw.
22240         * doc/posix-functions/pipe.texi (pipe): Update documentation.
22241         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
22242
22243 2010-12-07  Bruno Haible  <bruno@clisp.org>
22244
22245         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
22246         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
22247         u8_strcmp_gnu.
22248         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
22249
22250 2010-12-06  Bruno Haible  <bruno@clisp.org>
22251
22252         Update internal documentation.
22253         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
22254
22255 2010-12-04  Bruno Haible  <bruno@clisp.org>
22256
22257         Put more information about failed tests into the test return codes.
22258         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
22259         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
22260         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22261         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22262         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
22263         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22264         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22265         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22266         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
22267         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22268         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
22269         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22270         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
22271         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22272         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
22273         returns a bit mask.
22274         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
22275         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
22276         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
22277         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
22278         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22279         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22280         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22281         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22282         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22283         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22284         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22285         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22286         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22287         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22288         * m4/link.m4 (gl_FUNC_LINK): Likewise.
22289         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
22290         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
22291         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
22292         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22293         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
22294         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22295         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22296         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
22297         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22298         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22299         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22300         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
22301         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22302         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22303         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
22304         gl_PRINTF_PRECISION): Likewise.
22305         * m4/regex.m4 (gl_REGEX): Likewise.
22306         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22307         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22308         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
22309         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22310         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22311         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22312         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
22313         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
22314         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22315         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22316         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
22317         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22318         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22319         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22320         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22321         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22322         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22323         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22324         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22325         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
22326         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
22327         enumerated value.
22328         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
22329
22330 2010-12-04  Bruno Haible  <bruno@clisp.org>
22331
22332         Update for Solaris 11 2010-11.
22333         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
22334         Express, released in November 2010.
22335
22336 2010-12-04  Bruno Haible  <bruno@clisp.org>
22337
22338         nproc: Relax license.
22339         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
22340         and Paul Eggert.
22341         Requested by Ludovic Courtès <ludo@gnu.org>.
22342
22343 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
22344
22345         utimecmp: fine-grained src to nearby coarse-grained dest
22346
22347         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
22348         and the source is on a file system with higher-resolution time
22349         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
22350         not work, and the time stamps are close together, the algorithm to
22351         determine the exact resolution from the read-back mtime was buggy:
22352         it had a "!=" where it should have had an "==".  This bug has been
22353         in the code ever since it was introduced to gnulib.
22354         Problem reported by Dan Jacobson in
22355         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
22356
22357 2010-11-30  Bruno Haible  <bruno@clisp.org>
22358
22359         strerror_r-posix: Fix autoconf test.
22360         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
22361
22362 2010-11-28  Bruno Haible  <bruno@clisp.org>
22363             Paul Eggert  <eggert@cs.ucla.edu>
22364
22365         Tests for module 'getdomainname'.
22366         * modules/getdomainname-tests: New file.
22367         * tests/test-getdomainname.c: New file, based on
22368         tests/test-gethostname.c.
22369
22370 2010-11-28  Bruno Haible  <bruno@clisp.org>
22371             Paul Eggert  <eggert@cs.ucla.edu>
22372
22373         getdomainname: Use the system function when possible.
22374         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
22375         (getdomainname): Replace if needed. Provide the declaration if it is
22376         missing. Don't use _GL_CXXALIAS_SYS_CAST.
22377         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
22378         (getdomainname): When the system has getdomainname, call the system
22379         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
22380         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
22381         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
22382         found in libnsl. Look for the declaration also in <netdb.h>. Replace
22383         the function if its second argument is of type 'int' or if it is found
22384         in libnsl.
22385         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
22386         <sys/systeminfo.h> and sysinfo().
22387         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
22388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22389         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
22390         HAVE_GETDOMAINNAME.
22391         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
22392         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
22393         * doc/glibc-functions/getdomainname.texi: Document the problems with
22394         the getdomainname declaration.
22395
22396 2010-11-28  Bruno Haible  <bruno@clisp.org>
22397
22398         sys_socket: Ensure ss_family field on AIX.
22399         * lib/sys_socket.in.h (ss_family): New macro definition.
22400         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
22401         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
22402         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
22403         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
22404         * modules/sys_socket (Makefile.am): Substitute
22405         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
22406         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
22407
22408 2010-11-27  Bruno Haible  <bruno@clisp.org>
22409
22410         readline: Improve configure output.
22411         * m4/readline.m4 (gl_FUNC_READLINE): Make the
22412         "checking for readline..." result understandable.
22413
22414 2010-11-27  Bruno Haible  <bruno@clisp.org>
22415
22416         *printf-posix: Detect a bug on Solaris 10/x86.
22417         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
22418         for floating-point output.
22419         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
22420         directive.
22421         * tests/test-snprintf-posix.h (test_function): Likewise.
22422         * tests/test-sprintf-posix.h (test_function): Likewise.
22423         * tests/test-vasprintf-posix.c (test_function): Likewise.
22424         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
22425         * doc/posix-functions/printf.texi: Likewise.
22426         * doc/posix-functions/snprintf.texi: Likewise.
22427         * doc/posix-functions/sprintf.texi: Likewise.
22428         * doc/posix-functions/vfprintf.texi: Likewise.
22429         * doc/posix-functions/vprintf.texi: Likewise.
22430         * doc/posix-functions/vsnprintf.texi: Likewise.
22431         * doc/posix-functions/vsprintf.texi: Likewise.
22432         * doc/glibc-functions/obstack_printf.texi: Likewise.
22433         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
22434
22435 2010-11-27  Bruno Haible  <bruno@clisp.org>
22436
22437         Fix link error when module libunistring-optional is in use.
22438         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
22439         * modules/striconveha-tests (Makefile.am): Likewise.
22440
22441 2010-11-27  Bruno Haible  <bruno@clisp.org>
22442
22443         regex: Mention link dependencies.
22444         * modules/regex (Link): New section.
22445         * modules/rpmatch (Link): Likewise.
22446         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
22447
22448 2010-11-27  Bruno Haible  <bruno@clisp.org>
22449
22450         ftoastr: Fix compilation error on Solaris.
22451         * lib/ftoastr.c: Include <config.h>.
22452
22453 2010-11-27  Bruno Haible  <bruno@clisp.org>
22454
22455         getloadavg: Update documentation.
22456         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
22457
22458 2010-11-27  Bruno Haible  <bruno@clisp.org>
22459
22460         sys_socket: Fix test whether the functions are declared.
22461         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
22462         not <sys/select.h>.
22463
22464 2010-11-27  Bruno Haible  <bruno@clisp.org>
22465
22466         getpass: Make sure to get system declaration on some platforms.
22467         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
22468         gl_USE_SYSTEM_EXTENSIONS.
22469         * modules/getpass (Depends-on): Add extensions.
22470
22471 2010-11-26  Bruno Haible  <bruno@clisp.org>
22472
22473         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
22474         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
22475         'iconv' module is present.
22476         (ICONV_CONST): New macro.
22477         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
22478         ICONV_CONST.
22479         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
22480         set ICONV_CONST.
22481         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
22482         here.
22483         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
22484         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
22485         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
22486         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
22487         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
22488         present.
22489
22490 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22491
22492         ftoastr: comment fix
22493         * lib/ftoastr.c: "little" -> "little or no" in comment
22494
22495 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
22496
22497         stdint: port to GCC 4.3 + OSX + Octave
22498         On this platform, stdint.h is buggy and defines int64_t to long
22499         long int.  The replacement defined it to long int, causing
22500         problems with C++ style name mangling.  Instead, trust the system
22501         definition if INT64_MAX is defined, and likewise for the unsigned
22502         variant.   Problem reported by Jarno Rajahalme in
22503         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
22504         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
22505         and don't mess with int64_t and INT64_MAX in this case.
22506         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
22507
22508 2010-11-24  Bruno Haible  <bruno@clisp.org>
22509
22510         doc: Corrections regarding MacOS X 10.4 and 10.5.
22511         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
22512         MacOS X.
22513         Reported by Simon Josefsson.
22514
22515 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
22516
22517         Uninstall ".bin" files installed by relocwrapper.
22518         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
22519         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
22520         unless it is already there.
22521
22522 2010-11-21  Bruno Haible  <bruno@clisp.org>
22523
22524         Update for NetBSD 5.0.
22525         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
22526         NetBSD; the test fails on NetBSD 5.0.
22527         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
22528         about NetBSD.
22529
22530 2010-11-21  Bruno Haible  <bruno@clisp.org>
22531
22532         Update for HP-UX 11.23 and HP-UX 11.31.
22533         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
22534         HP-UX.
22535
22536 2010-11-21  Bruno Haible  <bruno@clisp.org>
22537
22538         Update for MacOS X 10.5.
22539         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
22540         MacOS X; the test fails on MacOS X 10.5.8.
22541         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
22542         about MacOS X.
22543
22544 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
22545
22546         bootstrap: add bootstrap_sync option.
22547         See discussion at
22548         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
22549         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
22550         * build-aux/bootstrap: Accept --bootstrap-sync to update
22551         bootstrap if it is not identical to the local gnulib's
22552         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
22553         enable this by default.  Accept --no-bootstrap-sync to disable
22554         it.
22555
22556 2010-11-20  Bruno Haible  <bruno@clisp.org>
22557
22558         Ensure that <features.h> is included before __GLIBC__ is tested.
22559         * lib/printf-parse.h: Include <features.h>.
22560         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
22561         Reported by Mike Frysinger <vapier@gentoo.org>.
22562
22563         Ensure that <features.h> is included before __GLIBC__ is tested.
22564         * lib/wchar.in.h: Include <features.h>.
22565         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
22566         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
22567         Reported by Mike Frysinger <vapier@gentoo.org>.
22568
22569         Ensure that <features.h> is included before __GLIBC__ is tested.
22570         * lib/arpa_inet.in.h: Include <features.h>.
22571         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
22572         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
22573         Reported by Mike Frysinger <vapier@gentoo.org>.
22574
22575         Ensure that <features.h> is included before __GLIBC__ is tested.
22576         * build-aux/link-warning.h: Include <features.h>.
22577         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
22578         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
22579         Reported by Mike Frysinger <vapier@gentoo.org>.
22580
22581         Ensure that <features.h> is included before __GLIBC__ is tested.
22582         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
22583         Reported by Mike Frysinger <vapier@gentoo.org>.
22584
22585 2010-11-20  Bruno Haible  <bruno@clisp.org>
22586
22587         memmem: Fix autoconf test.
22588         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
22589
22590 2010-11-20  Bruno Haible  <bruno@clisp.org>
22591
22592         Port to uClibc.
22593         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
22594         * lib/fcntl.in.h: Likewise.
22595         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
22596         * lib/mbrtowc.c (mbrtowc): Likewise.
22597         * lib/relocatable.c (find_shared_library_fullname): Likewise.
22598         * lib/strerror_r.c: Likewise.
22599         * lib/unistr/u8-strnlen.c: Likewise.
22600         * lib/vasnprintf.c (decimal_point_char): Likewise.
22601         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22602         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22603         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
22604         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
22605         * tests/test-sigaction.c (handler, main): Likewise.
22606         * lib/freading.h: Treat uClibc like a non-glibc platform.
22607         * lib/freading.c: Likewise.
22608         * lib/gettext.h: Likewise.
22609         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
22610         Likewise.
22611         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
22612         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
22613         * lib/propername.c (proper_name_utf8): Likewise.
22614         * lib/spawn.in.h: Likewise.
22615         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
22616         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
22617         mem_cd_iconveh_internal): Likewise.
22618         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
22619         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22620         strstr, strcasestr): Likewise.
22621         * lib/unicodeio.c (unicode_to_mb): Likewise.
22622         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
22623         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
22624         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
22625         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
22626         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
22627         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
22628         * lib/unistr/u8-stpncpy.c: Likewise.
22629         * lib/vasnprintf.c (VASNPRINTF): Likewise.
22630         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
22631         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22632         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22633         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
22634         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
22635         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
22636         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
22637         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
22638         Likewise.
22639         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
22640         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22641         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22642         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22643         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22644         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22645         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22646         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
22647         * tests/test-getopt.h (OPTIND_MIN): Likewise.
22648         * tests/test-striconveha.c (main): Likewise.
22649         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22650         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
22651         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
22652         * doc/posix-functions/getline.texi: Likewise.
22653         Reported by Mike Frysinger <vapier@gentoo.org>.
22654
22655 2010-11-20  Bruno Haible  <bruno@clisp.org>
22656
22657         nproc: Fix condition.
22658         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
22659         HAVE_PTHREAD_AFFINITY_NP.
22660
22661 2010-11-20  Bruno Haible  <bruno@clisp.org>
22662
22663         Fix a comment.
22664         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
22665
22666 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
22667
22668         ftoastr: don't assume snprintf
22669         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
22670         Implement a subset of snprintf here, by using sprintf safely.
22671         * modules/ftoastr (Depends-on): Remove snprintf.
22672
22673 2010-11-19  Jim Meyering  <meyering@redhat.com>
22674
22675         test-rename.h: fix compilation failure
22676         * tests/test-rename.h (test_rename): Add omitted "}".
22677
22678 2010-11-17  Jim Meyering  <meyering@redhat.com>
22679
22680         maint.mk: add a URL discussing the no-@acronym policy
22681         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
22682
22683 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
22684
22685         ftoastr: depend on snprintf, improve comments
22686         * lib/ftoastr.c: Also mention Loitsch's draft.
22687         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
22688         needed in the current implementation, but it might simplify
22689         speeding up the code later.
22690         * modules/ftoastr: Depend on snprintf; this improves portability.
22691         Suggested by Bruno Haible in the same email.
22692
22693         ftoastr: port to hosts lacking strtof and strtold
22694         Problem reported by Bruno Haible in
22695         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
22696         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
22697         environment and strtold (and presumably strtof) are not available.
22698         * modules/ftoastr (Files): Add m4/c-strtod.m4.
22699         (configure.ac): Require gl_C99_STRTOLD.
22700
22701 2010-11-18  Bruno Haible  <bruno@clisp.org>
22702
22703         c-strtold: Avoid link error on AIX 7.
22704         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
22705         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
22706         (gl_C_STRTOLD): Test whether strtold_l exists.
22707         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22708
22709 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
22710
22711         intprops: new macro INT_BITS_STRLEN_BOUND
22712         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
22713         ftoastr.h.  This exposes an internal of intprops.h that was formerly
22714         not exposed.  Also, it uses a slightly tighter bound than before;
22715         though this makes no practical difference, we might as well be as
22716         tight as we easily can.
22717
22718         ftoastr: new module, for lossless conversion of floats to short strings
22719         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
22720         * modules/ftoastr: New files.
22721
22722 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
22723
22724         bootstrap: port to Solaris sed
22725         * build-aux/bootstrap (get_version): Port to Solaris sed.
22726         See Ralf Wildenhues's note in
22727         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
22728
22729 2010-11-14  Jim Meyering  <meyering@redhat.com>
22730
22731         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
22732         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
22733         and move definition closer to sole use.
22734
22735 2010-11-13  Jim Meyering  <meyering@redhat.com>
22736
22737         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
22738         Now we require at least autoconf-2.59, which means the work-around
22739         is no longer needed.
22740         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
22741         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22742         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
22743         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
22744         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22745
22746 2010-11-13  Bruno Haible  <bruno@clisp.org>
22747
22748         rename, renameat: Avoid test failures at NFS mounted locations.
22749         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
22750         functions.
22751         (test_rename): Use assert_nonexistent.
22752         * tests/test-rename.c: Include <dirent.h>.
22753         * tests/test-renameat.c: Likewise.
22754         Reported by Gary V. Vaughan <gary@gnu.org>.
22755
22756         rename, renameat: Document Linux bug with NFS
22757         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
22758         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
22759         * doc/posix-functions/renameat.texi: Likewise.
22760         Suggested by Eric Blake.
22761
22762 2010-11-13  Bruno Haible  <bruno@clisp.org>
22763
22764         rename test: Add comments.
22765         * tests/test-rename.h (test_rename): Add structure and comments.
22766
22767 2010-11-13  Eric Blake  <eblake@redhat.com>
22768
22769         maintainer-makefile: cover a few more files
22770         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
22771         scripts generated within C files, for libvirt.
22772
22773 2010-11-13  Bruno Haible  <bruno@clisp.org>
22774
22775         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
22776         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
22777         character, return the number of bytes that belong together, not always
22778         1.
22779         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
22780         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
22781         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
22782         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
22783         number of bytes of an invalid character.
22784         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
22785         (main): Invoke it.
22786         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
22787         results.
22788         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
22789         malformed byte sequences.
22790         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
22791         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
22792         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
22793         Reported by Ben Pfaff and Paolo Bonzini.
22794
22795 2010-11-13  Bruno Haible  <bruno@clisp.org>
22796
22797         openat: Work around glibc bug with fchownat() and empty file names.
22798         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
22799         (gl_FUNC_FCHOWNAT): Invoke it.
22800         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
22801         * doc/posix-functions/fchownat.texi: Document the glibc bug.
22802         Reported by Gary V. Vaughan <gary@gnu.org>.
22803
22804 2010-11-13  Bruno Haible  <bruno@clisp.org>
22805
22806         openat: Ensure autoconf macro ordering.
22807         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
22808         gl_USE_SYSTEM_EXTENSIONS.
22809         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
22810
22811 2010-11-13  Bruno Haible  <bruno@clisp.org>
22812
22813         Update comments.
22814         * lib/unistr/u8-check.c: Update file name in comments.
22815         * lib/unistr/u8-mblen.c: Likewise.
22816         * lib/unistr/u8-prev.c: Likewise.
22817         * lib/unistr/u8-strmblen.c: Likewise.
22818         * lib/unistr/u8-strmbtouc.c: Likewise.
22819
22820 2010-11-13  Jim Meyering  <meyering@redhat.com>
22821
22822         tests: avoid test failure on Solaris 10 due to lack of PATH export
22823         * tests/test-update-copyright.sh: Don't forget to export PATH.
22824
22825         init.sh: ensure that IFS is defined, just in case...
22826         * tests/init.sh (setup_): Ensure that IFS is defined,
22827         so that saving and restoring it works as expected.  This
22828         appears to be useful at least for an old version of dash
22829         from a long time ago (RH 6).  See here for details:
22830         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
22831
22832         maint.mk: tighten "test a == b" check
22833         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
22834         test to files that contain something like #!/bin/sh.
22835         Without this, coreutils would get two false positives in
22836         the comments of C source files.
22837
22838 2010-11-12  Eric Blake  <eblake@redhat.com>
22839
22840         bootstrap: fix typo in previous attempt
22841         * build-aux/bootstrap (buildreq): Correct the grouping.
22842         Reported by Paul Eggert.
22843
22844         maintainer-makefile: prohibit test x == x
22845         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
22846         Based on a report by Matthias Bolte.
22847
22848         bootstrap: allow FreeBSD gzip
22849         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
22850         which has no '.' and goes to stderr.
22851         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
22852         Reported by Matthias Bolte.
22853
22854         maintainer-makefile: check for i18n setup
22855         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
22856         will likely work.
22857
22858 2010-11-12  Bruno Haible  <bruno@clisp.org>
22859
22860         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
22861         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
22862         * lib/nanosleep.c (nanosleep): Likewise.
22863
22864 2010-11-11  Bruno Haible  <bruno@clisp.org>
22865
22866         fcntl-h: Fix for use of C++ on glibc systems.
22867         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22868         also on glibc systems in C++ mode.
22869         Reported by Gary V. Vaughan <gary@gnu.org>.
22870
22871 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22872
22873         mknod: avoid false failure with dash
22874         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
22875
22876 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
22877
22878         unlink: Fix "is it should" typo in diagnostic.
22879         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
22880         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
22881
22882 2010-11-11  Bruno Haible  <bruno@clisp.org>
22883
22884         Tests for module 'strerror_r-posix'.
22885         * modules/strerror_r-posix-tests: New file.
22886         * tests/test-strerror_r.c: New file.
22887         * tests/test-string-c++.cc: Check the signature of strerror_r.
22888
22889         New module 'strerror_r-posix'.
22890         * lib/string.in.h (strerror_r): New declaration.
22891         * lib/strerror_r.c: New file.
22892         * m4/strerror_r.m4: New file.
22893         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
22894         of strerror_r.
22895         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
22896         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
22897         * modules/strerror_r-posix: New file.
22898         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
22899         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
22900         * doc/posix-functions/strerror_r.texi: Mention the new module and the
22901         portability problems.
22902
22903 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
22904
22905         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
22906         line is also considered for output. Quoted function name in shell
22907         command, so temporary files for functions like MyClass::operator()
22908         are removed correctly without errors.
22909
22910 2010-11-09  Bruno Haible  <bruno@clisp.org>
22911
22912         * doc/posix-functions/strerror.texi: List more failing platforms.
22913
22914         * doc/posix-functions/strerror.texi: Add a comment.
22915
22916 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
22917
22918         fdopendir: fix bug on MacOS X when low on file descriptors
22919
22920         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
22921         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
22922         All callers changed.
22923         (fdopendir): Invoke save_cwd at the top level, not after using
22924         multiple dup() calls to use up file descriptors.  Then retry
22925         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
22926         less than the maximum number of open file descriptors, because
22927         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
22928         on Mac OS X 10.6.4 for tar 1.24
22929         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
22930         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
22931         and for tar 1.25
22932         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
22933
22934 2010-11-07  Bruno Haible  <bruno@clisp.org>
22935
22936         vasnprintf: Support I flag on glibc systems.
22937         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
22938         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
22939         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
22940         snprintf function.
22941         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
22942         glibc systems.
22943         * tests/test-vasnprintf-posix3.c: New file.
22944         * modules/vasnprintf-posix-tests (Files): Add it.
22945         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
22946
22947 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22948
22949         [html] Fix copy/paste bug: Use unique name for compiler warnings.
22950         * MODULES.html.sh: For compiler warnings, use name
22951         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
22952
22953 2010-11-05  Eric Blake  <eblake@redhat.com>
22954
22955         ceil, floor: avoid spurious failure with icc
22956         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
22957         [denormals-as-zero] when optimizing without -mieee-fp option.
22958         * tests/test-floorf2.c (floorf_reference): Likewise.
22959         * tests/test-ceilf1.c (dummy): New function.
22960         (main): Use it to outsmart icc's optimization.
22961         * tests/test-floorf1.c (dummy, main): Likewise.
22962
22963         tests: require working signbit
22964         * modules/ceilf-tests (Depends-on): Add signbit.
22965         * modules/ceill-tests (Depends-on): Likewise.
22966         * modules/floorf-tests (Depends-on): Likewise.
22967         * modules/floorl-tests (Depends-on): Likewise.
22968         * modules/round-tests (Depends-on): Likewise.
22969         * modules/roundf-tests (Depends-on): Likewise.
22970         * modules/roundl-tests (Depends-on): Likewise.
22971         * modules/trunc-tests (Depends-on): Likewise.
22972         * modules/truncf-tests (Depends-on): Likewise.
22973         * modules/truncl-tests (Depends-on): Likewise.
22974
22975         strtod: work around icc bug
22976         * lib/strtod.c (minus_zero): Define to working value.
22977         (strtod): Use it to avoid icc bug.
22978
22979         copysign: enhance tests
22980         * modules/copysign-tests (Files): Add minus-zero.h.
22981         * tests/test-copysign.c (main): Also test zeros.
22982
22983 2010-11-04  Eric Blake  <eblake@redhat.com>
22984
22985         ceil, floor, round, trunc: enhance tests of -0
22986         * tests/test-ceilf1.c (main): Ensure correct sign of result.
22987         * tests/test-ceill.c (main): Likewise.
22988         * tests/test-floorf1.c (main): Likewise.
22989         * tests/test-floorl.c (main): Likewise.
22990         * tests/test-round1.c (main): Likewise.
22991         * tests/test-roundf1.c (main): Likewise.
22992         * tests/test-roundl.c (main): Likewise.
22993         * tests/test-trunc1.c (main): Likewise.
22994         * tests/test-truncf1.c (main): Likewise.
22995         * tests/test-truncl.c (main): Likewise.
22996
22997 2010-11-04  Eric Blake  <eblake@redhat.com>
22998
22999         frexp, tests: work around ICC bug with -zero
23000         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23001         works with more compilers.
23002         * tests/minus-zero.h: New file.
23003         * modules/ceilf-tests (Files): Include it.
23004         * modules/ceill-tests (Files): Likewise.
23005         * modules/floorf-tests (Files): Likewise.
23006         * modules/floorl-tests (Files): Likewise.
23007         * modules/frexp-nolibm-tests (Files): Likewise.
23008         * modules/frexp-tests (Files): Likewise.
23009         * modules/frexpl-nolibm-tests (Files): Likewise.
23010         * modules/frexpl-tests (Files): Likewise.
23011         * modules/isnan-tests (Files): Likewise.
23012         * modules/isnand-nolibm-tests (Files): Likewise.
23013         * modules/isnand-tests (Files): Likewise.
23014         * modules/isnanf-nolibm-tests (Files): Likewise.
23015         * modules/isnanf-tests (Files): Likewise.
23016         * modules/isnanl-nolibm-tests (Files): Likewise.
23017         * modules/isnanl-tests (Files): Likewise.
23018         * modules/round-tests (Files): Likewise.
23019         * modules/roundf-tests (Files): Likewise.
23020         * modules/roundl-tests (Files): Likewise.
23021         * modules/ldexpl-tests (Files): Likewise.
23022         * modules/signbit-tests (Files): Likewise.
23023         * modules/snprintf-posix-tests (Files): Likewise.
23024         * modules/sprintf-posix-tests (Files): Likewise.
23025         * modules/strtod-tests (Files): Likewise.
23026         * modules/trunc-tests (Files): Likewise.
23027         * modules/truncf-tests (Files): Likewise.
23028         * modules/truncl-tests (Files): Likewise.
23029         * modules/vsnprintf-posix-tests (Files): Likewise.
23030         * modules/vsprintf-posix-tests (Files): Likewise.
23031         * modules/vasnprintf-posix-tests (Files): Likewise.
23032         * modules/vasprintf-posix-tests (Files): Likewise.
23033         * tests/test-ceilf1.c (main): Use it.
23034         * tests/test-ceill.c (main): Likewise.
23035         * tests/test-floorf1.c (main): Likewise.
23036         * tests/test-floorl.c (main): Likewise.
23037         * tests/test-frexp.c (main): Likewise.
23038         * tests/test-frexpl.c (main): Likewise.
23039         * tests/test-isnan.c (main): Likewise.
23040         * tests/test-isnand.h (main): Likewise.
23041         * tests/test-isnanf.h (main): Likewise.
23042         * tests/test-isnanl.h (main): Likewise.
23043         * tests/test-ldexpl.c (main): Likewise.
23044         * tests/test-round.c (main): Likewise.
23045         * tests/test-roundf.c (main): Likewise.
23046         * tests/test-roundl.c (main): Likewise.
23047         * tests/test-signbit.c (test_signbitf, test_signbitd)
23048         (test_signbitl): Likewise.
23049         * tests/test-snprintf-posix.h (test_function): Likewise.
23050         * tests/test-sprintf-posix.h (test_function): Likewise.
23051         * tests/test-strtod.c (main): Likewise.
23052         * tests/test-trunc1.c (main): Likewise.
23053         * tests/test-truncf1.c (main): Likewise.
23054         * tests/test-truncl.c (main): Likewise.
23055
23056         isnanl: work around icc bug
23057         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
23058
23059 2010-11-03  Eric Blake  <eblake@redhat.com>
23060
23061         tests: fix compiler warnings
23062         * tests/test-getopt.h (test_getopt): Fix condition.
23063         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23064         * tests/test-pipe2.c (main): Likewise.
23065         * tests/test-quotearg-simple.c (main): Avoid icc warning.
23066
23067         utimens: fix broken m4 test
23068         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
23069
23070 2010-10-28  Bruno Haible  <bruno@clisp.org>
23071
23072         posix_spawn*, getdtablesize: Relax license.
23073         * modules/posix_spawn (License): Change to LGPLv2+.
23074         * modules/posix_spawnp (License): Likewise.
23075         * modules/posix_spawn-internal (License): Likewise.
23076         * modules/posix_spawnattr_init (License): Likewise.
23077         * modules/posix_spawnattr_getflags (License): Likewise.
23078         * modules/posix_spawnattr_setflags (License): Likewise.
23079         * modules/posix_spawnattr_getpgroup (License): Likewise.
23080         * modules/posix_spawnattr_setpgroup (License): Likewise.
23081         * modules/posix_spawnattr_getschedparam (License): Likewise.
23082         * modules/posix_spawnattr_setschedparam (License): Likewise.
23083         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
23084         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
23085         * modules/posix_spawnattr_getsigdefault (License): Likewise.
23086         * modules/posix_spawnattr_setsigdefault (License): Likewise.
23087         * modules/posix_spawnattr_getsigmask (License): Likewise.
23088         * modules/posix_spawnattr_setsigmask (License): Likewise.
23089         * modules/posix_spawnattr_destroy (License): Likewise.
23090         * modules/posix_spawn_file_actions_init (License): Likewise.
23091         * modules/posix_spawn_file_actions_addclose (License): Likewise.
23092         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
23093         * modules/posix_spawn_file_actions_addopen (License): Likewise.
23094         * modules/posix_spawn_file_actions_destroy (License): Likewise.
23095         * modules/getdtablesize (License): Likewise.
23096         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
23097
23098 2010-10-26  Bruno Haible  <bruno@clisp.org>
23099
23100         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
23101         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
23102         Cygwin and mingw.
23103         Suggested by Eric Blake.
23104
23105 2010-10-26  Bruno Haible  <bruno@clisp.org>
23106
23107         stdio: Work around compilation error due to renameat() on Solaris 10.
23108         * lib/stdio.in.h: Include <unistd.h> on Solaris.
23109         * lib/renameat.c: Don't include <unistd.h> here.
23110         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
23111         Reported by Paul Eggert and Eric Blake.
23112
23113 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
23114
23115         renameat: port to Solaris 10, which declares renameat in unistd.h
23116
23117         * lib/renameat.c: Include unistd.h before stdio.h, because
23118         Solaris 10 declares renameat in unistd.h.  Problem encountered
23119         when building GNU tar 1.24 on Solaris 10.
23120
23121 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23122
23123         fdopendir: fix C89 compilation
23124         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
23125         compilers.
23126
23127 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
23128
23129         inttostr: simplify by removing unnecessary redundancy
23130         * lib/anytostr.c: Don't include verify.h.
23131         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
23132         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
23133         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
23134         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
23135         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
23136         Likewise.
23137         * modules/inttostr (Depends-on): Remove 'verify'.
23138
23139 2010-10-23  Bruno Haible  <bruno@clisp.org>
23140
23141         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
23142         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
23143         Reported by Eric Blake.
23144
23145 2010-10-23  Bruno Haible  <bruno@clisp.org>
23146
23147         Tests: Fix LOCALE_JA on MirBSD 10.
23148         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
23149         to an UTF-8 locale.
23150         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
23151         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23152         Reported by Eric Blake.
23153
23154 2010-10-21  Bruno Haible  <bruno@clisp.org>
23155
23156         nl_langinfo test: Avoid test failure on NetBSD 5.
23157         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
23158         Reported by Eric Blake.
23159
23160 2010-10-21  Eric Blake  <eblake@redhat.com>
23161
23162         c-stack: work around libsigsegv 2.8 bug
23163         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
23164         overflow on at least PowerPC64.
23165
23166 2010-10-17  Bruno Haible  <bruno@clisp.org>
23167
23168         userspec: Drop redundant file.
23169         * modules/userspec (Files): Remove lib/inttostr.h.
23170
23171 2010-10-17  Bruno Haible  <bruno@clisp.org>
23172
23173         nl_langinfo tests: Silence some warnings.
23174         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
23175         Reported by Jim Meyering.
23176
23177 2010-10-17  Bruno Haible  <bruno@clisp.org>
23178
23179         Make use of GCC's attribute __alloc_size__.
23180         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
23181         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
23182         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
23183         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
23184         __alloc_size__.
23185         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23186         Suggested by Jim Meyering.
23187
23188 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
23189
23190         bootstrap: anchor .gitignore entries.
23191         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
23192         with...
23193         (insert_vc_ignore): ... this new function, which prepends `/' to
23194         all .gitignore entries before passing them to
23195         insert_sorted_if_absent.
23196
23197 2010-10-16  Bruno Haible  <bruno@clisp.org>
23198
23199         nextafter: Fix configure check.
23200         * modules/nextafter (configure.ac): Correct expected prototype.
23201
23202 2010-10-16  Bruno Haible  <bruno@clisp.org>
23203
23204         termios: Update documentation.
23205         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
23206
23207 2010-10-16  Bruno Haible  <bruno@clisp.org>
23208
23209         tests: Make them compile with TinyCC.
23210         * tests/test-strstr.c (main): Remove parentheses around array
23211         initializer.
23212
23213 2010-10-15  Eric Blake  <eblake@redhat.com>
23214
23215         ignore-value: make header idempotent
23216         * lib/ignore-value.h: Add double-inclusion guards.
23217         Reported by Stefan Berger.
23218
23219 2010-10-15  Jim Meyering  <meyering@redhat.com>
23220
23221         GNUmakefile: handle "stable" target, not "major"
23222         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
23223         lists in maint.mk and announce-gen.  Without this, "make stable"
23224         would fail to ensure that $(VERSION) is up to date.
23225
23226 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
23227
23228         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
23229         & co.
23230
23231 2010-10-14  Bruno Haible  <bruno@clisp.org>
23232
23233         vasnprintf: Don't set errno to 0.
23234         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
23235         block that sets it to 0.
23236         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
23237
23238 2010-10-14  Bruno Haible  <bruno@clisp.org>
23239
23240         socketlib: Fix.
23241         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
23242         gl_PREREQ_SYS_H_WINSOCK2.
23243         Reported by Ian Beckwith <ianb@erislabs.net>.
23244
23245 2010-10-13  Jim Meyering  <meyering@redhat.com>
23246
23247         test-select-stdin.c: avoid warn_unused_result warnings
23248         * tests/test-select-stdin.c: Include "macros.h".
23249         ASSERT that read and fflush succeed.
23250
23251 2010-10-13  Jim Meyering  <meyering@redhat.com>
23252
23253         git-version-gen: do require git-VC'd files in cwd
23254         * build-aux/git-version-gen: Reject a git version string
23255         if there are no commits associated with the current directory.
23256         This avoids an unlikely false-positive (unrelated dir whose parent
23257         repository also contains a tag matching v*), as pointed out
23258         by Giuseppe Scrivano in
23259         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
23260
23261 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23262
23263         argv-iter: omit nonconforming declaration
23264         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
23265         enum arg_iter_err declaration, which doesn't conform to C99.
23266         Solaris 10 cc warns about this.
23267
23268 2010-10-13  Eric Blake  <eblake@redhat.com>
23269
23270         termios: fix compilation on mingw
23271         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
23272         (gl_TERMIOS_H): Adjust it on mingw.
23273         * modules/termios (Makefile.am): Substitute new key.
23274         * lib/termios.in.h (includes): Make include_next conditional.
23275         * doc/posix-headers/termios.texi (termios.h): Update
23276         documentation.
23277         Reported by Daniel P. Berrange.
23278
23279 2010-10-13  Jim Meyering  <meyering@redhat.com>
23280
23281         git-version-gen: don't require that .git/ be in the current dir
23282         * build-aux/git-version-gen: Adjust this script so that it works
23283         when run from any working directory beneath the top-level .git/-
23284         containing directory.  Inspired by a patch from Giuseppe Scrivano,
23285         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
23286
23287         test-select: avoid warn_unused_result warnings
23288         * tests/test-select.c: Include "macros.h".
23289         ASSERT that each call to read, write, and pipe succeeds.
23290         While not technically required, also check each "close".
23291         * modules/select-tests (Files): Add tests/macros.h.
23292
23293         test-symlinkat: remove declaration of unused local
23294         * tests/test-symlinkat.c (main): Remove unused local, "buf".
23295
23296         test-inttostr: avoid shadowing warnings
23297         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
23298         and use malloc rather than the stack for the same reason as
23299         mentioned in the comment justifying the other allocation.
23300
23301 2010-10-11  Bruno Haible  <bruno@clisp.org>
23302
23303         stdlib: Allow multiple gnulib generated replacements to coexist.
23304         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
23305         Reported by Sam Steingold <sds@gnu.org>.
23306
23307 2010-10-11  Jim Meyering  <meyering@redhat.com>
23308
23309         fix a documentation typo
23310         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
23311
23312 2010-10-11  Eric Blake  <eblake@redhat.com>
23313
23314         futimens: work around Solaris 11 bug
23315         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
23316         * tests/test-futimens.h (test_futimens): Enhance, rather than
23317         weaken test.
23318         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23319
23320 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23321
23322         Indentation.
23323         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
23324         higher-level operators more to the left.
23325
23326 2010-10-11  Jim Meyering  <meyering@redhat.com>
23327
23328         test-futimens: avoid unwarranted test failure on Solaris 5.11
23329         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
23330         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
23331         because it tries to dereference the NULL name argument.
23332
23333 2010-10-11  Bruno Haible  <bruno@clisp.org>
23334
23335         Indentation.
23336         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
23337         indentation.
23338
23339 2010-10-11  Jim Meyering  <meyering@redhat.com>
23340
23341         spawn.in.h: make indentation consistent with parentheses
23342         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
23343         Make indentation consistent with parentheses.
23344
23345 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
23346
23347         Fix mismatched parens in previous commit
23348         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
23349         parens.
23350
23351 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23352
23353         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
23354
23355         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
23356         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
23357         * lib/malloca.c: Include "verify.h".
23358         (verify1): Remove, replacing with a verify call.
23359         * lib/relocwrapper.c (verify1): Likewise.
23360         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
23361         Likewise.
23362         * modules/malloca (Depends-on): Add 'verify'.
23363         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
23364         * modules/vasnprintf (Depends-on): Add 'verify'.
23365         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23366         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23367         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23368         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23369         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23370         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23371         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23372
23373         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
23374
23375         Formerly the style was sometimes 2*X - 1, because the C standard
23376         was wrongly thought to disallow ?: in integral constant expressions.
23377         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
23378         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
23379         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23380         * lib/stdint.in.h (_verify_intmax_size): Likewise.
23381         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
23382         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
23383         verify that time_t cannot be floating.
23384
23385 2010-10-08  Eric Blake  <eblake@redhat.com>
23386
23387         time: enforce recent POSIX ruling that time_t is integral
23388         * lib/time.in.h (__time_t_must_be_integral): Detect any
23389         problematic systems, allowing the rest of gnulib to assume POSIX.
23390
23391 2010-10-08  Jim Meyering  <meyering@redhat.com>
23392
23393         fdopendir: fix a bug on systems lacking openat and /proc support
23394         OpenBSD 4.7 is one such system.  The most noticeable effect was
23395         failure of any application making nontrivial use of fts: rm, du,
23396         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
23397           ./rm: traversal failed: `a': Bad file descriptor
23398         Debugging that, you see that even though FD 6 was closed just
23399         prior to the opendir call in fd_clone_opendir, its resulting
23400         dir->dd_fd was 8, rather than the expected value of 6:
23401
23402         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
23403         93                close (fd);
23404         (gdb) n
23405         94                dir = fd_clone_opendir (dupfd);
23406         (gdb) n
23407         95                saved_errno = errno;
23408         (gdb) p dir->dd_fd
23409         $11 = 8
23410
23411         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
23412         The problem is that on OpenBSD, fd_clone_opendir has to resort
23413         to using the old-style save/restore CWD mechanism, due to its
23414         lack of openat/proc support, and *that* would steal the FD (6)
23415         that opendir was supposed to use.
23416
23417         The fix is to squirrel away the desired FD so that save_cwd uses a
23418         different one, and then free the dest FD right before calling opendir.
23419         That guarantees opendir will use the required file descriptor.
23420
23421         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
23422
23423 2010-10-08  Bruno Haible  <bruno@clisp.org>
23424
23425         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
23426         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
23427
23428 2010-10-08  Bruno Haible  <bruno@clisp.org>
23429
23430         nanosleep: Make replacement POSIX compliant.
23431         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
23432         is out of range.
23433         Reported by Jim Meyering.
23434
23435 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
23436
23437         bootstrap: add hook for altering gnulib.mk, for Bison
23438         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
23439         the Bison bootstrapping process can rewrite file names and variables
23440         in this file before later parts of 'bootstrap' use the file.
23441         Bison wants to include lib/gnulib.mk from the top-level makefile,
23442         so it needs the file names in this file to be relative to the top
23443         level, not relative to lib; plus it needs variable names to be
23444         rewritten.
23445         (slurp): Use the new function.
23446
23447         bootstrap: reformat for readability
23448         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
23449
23450 2010-10-08  Eric Blake  <eblake@redhat.com>
23451
23452         docs: update cygwin progress
23453         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
23454         1.7.7.
23455         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
23456         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
23457         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
23458         * doc/posix-functions/carg.texi (carg): Likewise.
23459         * doc/posix-functions/cargf.texi (cargf): Likewise.
23460         * doc/posix-functions/casin.texi (casin): Likewise.
23461         * doc/posix-functions/casinf.texi (casinf): Likewise.
23462         * doc/posix-functions/casinh.texi (casinh): Likewise.
23463         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
23464         * doc/posix-functions/catan.texi (catan): Likewise.
23465         * doc/posix-functions/catanf.texi (catanf): Likewise.
23466         * doc/posix-functions/catanh.texi (catanh): Likewise.
23467         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
23468         * doc/posix-functions/ccos.texi (ccos): Likewise.
23469         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
23470         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
23471         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
23472         * doc/posix-functions/cexp.texi (cexp): Likewise.
23473         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
23474         * doc/posix-functions/cimag.texi (cimag): Likewise.
23475         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
23476         * doc/posix-functions/clog.texi (clog): Likewise.
23477         * doc/posix-functions/clogf.texi (clogf): Likewise.
23478         * doc/posix-functions/conj.texi (conj): Likewise.
23479         * doc/posix-functions/conjf.texi (conjf): Likewise.
23480         * doc/posix-functions/cpow.texi (cpow): Likewise.
23481         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
23482         * doc/posix-functions/cproj.texi (cproj): Likewise.
23483         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
23484         * doc/posix-functions/creal.texi (creal): Likewise.
23485         * doc/posix-functions/crealf.texi (crealf): Likewise.
23486         * doc/posix-functions/csin.texi (csin): Likewise.
23487         * doc/posix-functions/csinf.texi (csinf): Likewise.
23488         * doc/posix-functions/csinh.texi (csinh): Likewise.
23489         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
23490         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
23491         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
23492         * doc/posix-functions/ctan.texi (ctan): Likewise.
23493         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
23494         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
23495         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
23496         * doc/posix-headers/complex.texi (complex.h): Likewise.
23497
23498 2010-10-07  Jim Meyering  <meyering@redhat.com>
23499
23500         parse-datetime: avoid compilation failure on OpenBSD 4.7
23501         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
23502         This works around a compilation failure on OpenBSD 4.7:
23503         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
23504
23505 2010-10-07  Eric Blake  <eblake@redhat.com>
23506
23507         docs: update cygwin progress
23508         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
23509         1.7.6.
23510         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23511         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
23512         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
23513         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
23514         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
23515         Likewise.
23516         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
23517         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
23518         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
23519         Likewise.
23520         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
23521         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
23522         Likewise.
23523         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
23524         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
23525         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
23526         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
23527         Likewise.
23528         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
23529         Likewise.
23530         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
23531
23532         docs: update parse-datetime history
23533         * doc/parse-datetime.texi (Authors of parse_datetime): Better
23534         documentation of this function's history and alternatives.
23535
23536         cygwin: use more robust version check
23537         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
23538         exclude an eventual cygwin 1.9.1.
23539         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23540         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
23541         (gl_FUNC_STRCASESTR): Likewise.
23542         Reported by Bruno Haible.
23543
23544 2010-10-06  Bruno Haible  <bruno@clisp.org>
23545
23546         string, sys_select: Avoid #including large headers unless necessary.
23547         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
23548         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
23549         OSF/1, BeOS, Haiku.
23550         Reported by Jim Meyering.
23551
23552 2010-10-05  Eric Blake  <eblake@redhat.com>
23553
23554         memmem, strstr, strcasestr: fix bug with long periodic needle
23555         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
23556         periodic needle having false positive.
23557         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
23558         and cygwin 1.7.7.
23559         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
23560         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
23561         (gl_FUNC_STRCASESTR): Likewise.
23562         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23563         * tests/test-memmem.c (main): Expose the bug.
23564         * tests/test-strcasestr.c (main): Likewise.
23565         * tests/test-strstr.c (main): Likewise.
23566         * tests/test-c-strcasestr.c (main): Likewise.
23567         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
23568         * doc/posix-functions/strstr.texi (strstr): Likewise.
23569         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23570         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
23571
23572 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23573
23574         parse-datetime: do some more renaming
23575         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
23576         parse_datetime, not get_date.  Mention the renaming.
23577         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
23578         in comments.
23579         * m4/bison.m4: Likewise.
23580
23581 2010-10-05  Eric Blake  <eblake@redhat.com>
23582
23583         parse-datetime: better name than get_date
23584         * NEWS: Reword the deprecation notice.
23585         * modules/get_date: Rename to modules/parse-datetime.
23586         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
23587         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
23588         * lib/get_date.y: Rename to lib/parse-datetime.y.
23589         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
23590         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
23591         * doc/getdate.texi: Provide fallback wrapper.
23592         * lib/getdate.h: Move guts, and wrap...
23593         * lib/parse-datetime.h: ...new file.
23594         * lib/parse-datetime.y (get_date): Rename...
23595         (parse_datetime): ...to this.
23596         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
23597         (gl_PARSE_DATETIME): ...to this.
23598         * doc/posix-functions/getdate.texi (get_date): Provide fallback
23599         documentation.
23600         * modules/getdate (Files): Provide fallback docs and header.
23601         (Notice, Depends-on): Update references.
23602         * tests/test-parse-datetime.c: Likewise.
23603         * DEPENDENCIES: Likewise.
23604         * MODULES.html.sh (Date and time <time.h>): Likewise.
23605         * doc/parse-datetime.texi (Date input formats)
23606         (Authors of parse_datetime): Likewise.
23607         * modules/parse-datetime (Files, configure.ac, Makefile.am)
23608         (Include): Likewise.
23609         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
23610         * gnulib-tool: Likewise.
23611         * m4/bison.m4 (gl_BISON): Likewise.
23612         Suggested by Bruno Haible.
23613
23614 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23615
23616         more ports to Solaris tr, which needs [] around ranges
23617         * gnulib-tool: Solaris tr needs [] around ranges.
23618         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23619         * tests/test-pipe-filter-gi1.c (main): Likewise.
23620         * tests/test-pipe-filter-ii1.c (main): Likewise.
23621
23622 2010-10-05  Eric Blake  <eblake@redhat.com>
23623
23624         bootstrap: fix Solaris regression
23625         * build-aux/bootstrap (check_versions): Solaris tr still needs []
23626         around ranges.
23627         Reported by Pádraig Brady.
23628
23629         bootstrap: work with pkg-config
23630         * build-aux/bootstrap (check_versions): Also transliterate - in
23631         prerequisite name.
23632         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
23633         prerequisites that were already found, to avoid confusion.
23634         Reported by Justin Clift.
23635
23636         faccessat: remove unused wrappers
23637         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
23638         presence of these wrappers dragged in -lgen on Solaris.
23639         Reported by Clemens Brogi; fix suggested by Paul Eggert.
23640
23641 2010-10-05  Jim Meyering  <meyering@redhat.com>
23642
23643         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
23644         * Makefile (sc_pragma_columns): New syntax-check rule.
23645
23646 2010-10-04  Bruno Haible  <bruno@clisp.org>
23647
23648         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
23649         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
23650         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
23651         Reported by Bruce Korb and Eric Blake.
23652
23653 2010-10-04  Bruno Haible  <bruno@clisp.org>
23654
23655         threadlib: Make option --with-libpth-prefix work.
23656         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
23657         use $LIBPTH, not just -lpth.
23658
23659 2010-10-04  Bruno Haible  <bruno@clisp.org>
23660
23661         Avoid line length limitation from HP NonStop system header files.
23662         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
23663         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
23664         * lib/ctype.in.h: Likewise.
23665         * lib/dirent.in.h: Likewise.
23666         * lib/errno.in.h: Likewise.
23667         * lib/fcntl.in.h: Likewise.
23668         * lib/float.in.h: Likewise.
23669         * lib/getopt.in.h: Likewise.
23670         * lib/iconv.in.h: Likewise.
23671         * lib/inttypes.in.h: Likewise.
23672         * lib/langinfo.in.h: Likewise.
23673         * lib/locale.in.h: Likewise.
23674         * lib/math.in.h: Likewise.
23675         * lib/netdb.in.h: Likewise.
23676         * lib/netinet_in.in.h: Likewise.
23677         * lib/poll.in.h: Likewise.
23678         * lib/pthread.in.h: Likewise.
23679         * lib/pty.in.h: Likewise.
23680         * lib/sched.in.h: Likewise.
23681         * lib/se-selinux.in.h: Likewise.
23682         * lib/search.in.h: Likewise.
23683         * lib/signal.in.h: Likewise.
23684         * lib/spawn.in.h: Likewise.
23685         * lib/stdarg.in.h: Likewise.
23686         * lib/stddef.in.h: Likewise.
23687         * lib/stdint.in.h: Likewise.
23688         * lib/stdio.in.h: Likewise.
23689         * lib/stdlib.in.h: Likewise.
23690         * lib/string.in.h: Likewise.
23691         * lib/strings.in.h: Likewise.
23692         * lib/sys_file.in.h: Likewise.
23693         * lib/sys_ioctl.in.h: Likewise.
23694         * lib/sys_select.in.h: Likewise.
23695         * lib/sys_socket.in.h: Likewise.
23696         * lib/sys_stat.in.h: Likewise.
23697         * lib/sys_time.in.h: Likewise.
23698         * lib/sys_times.in.h: Likewise.
23699         * lib/sys_utsname.in.h: Likewise.
23700         * lib/sys_wait.in.h: Likewise.
23701         * lib/sysexits.in.h: Likewise.
23702         * lib/termios.in.h: Likewise.
23703         * lib/time.in.h: Likewise.
23704         * lib/unistd.in.h: Likewise.
23705         * lib/wchar.in.h: Likewise.
23706         * lib/wctype.in.h: Likewise.
23707         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
23708         * modules/ctype (Makefile.am): Likewise.
23709         * modules/dirent (Makefile.am): Likewise.
23710         * modules/errno (Makefile.am): Likewise.
23711         * modules/fcntl-h (Makefile.am): Likewise.
23712         * modules/float (Makefile.am): Likewise.
23713         * modules/getopt-posix (Makefile.am): Likewise.
23714         * modules/iconv-h (Makefile.am): Likewise.
23715         * modules/inttypes (Makefile.am): Likewise.
23716         * modules/langinfo (Makefile.am): Likewise.
23717         * modules/locale (Makefile.am): Likewise.
23718         * modules/math (Makefile.am): Likewise.
23719         * modules/netdb (Makefile.am): Likewise.
23720         * modules/netinet_in (Makefile.am): Likewise.
23721         * modules/poll-h (Makefile.am): Likewise.
23722         * modules/pthread (Makefile.am): Likewise.
23723         * modules/pty (Makefile.am): Likewise.
23724         * modules/sched (Makefile.am): Likewise.
23725         * modules/search (Makefile.am): Likewise.
23726         * modules/selinux-h (Makefile.am): Likewise.
23727         * modules/signal (Makefile.am): Likewise.
23728         * modules/spawn (Makefile.am): Likewise.
23729         * modules/stdarg (Makefile.am): Likewise.
23730         * modules/stddef (Makefile.am): Likewise.
23731         * modules/stdint (Makefile.am): Likewise.
23732         * modules/stdio (Makefile.am): Likewise.
23733         * modules/stdlib (Makefile.am): Likewise.
23734         * modules/string (Makefile.am): Likewise.
23735         * modules/strings (Makefile.am): Likewise.
23736         * modules/sys_file (Makefile.am): Likewise.
23737         * modules/sys_ioctl (Makefile.am): Likewise.
23738         * modules/sys_select (Makefile.am): Likewise.
23739         * modules/sys_socket (Makefile.am): Likewise.
23740         * modules/sys_stat (Makefile.am): Likewise.
23741         * modules/sys_time (Makefile.am): Likewise.
23742         * modules/sys_times (Makefile.am): Likewise.
23743         * modules/sys_utsname (Makefile.am): Likewise.
23744         * modules/sys_wait (Makefile.am): Likewise.
23745         * modules/sysexits (Makefile.am): Likewise.
23746         * modules/termios (Makefile.am): Likewise.
23747         * modules/time (Makefile.am): Likewise.
23748         * modules/unistd (Makefile.am): Likewise.
23749         * modules/wchar (Makefile.am): Likewise.
23750         * modules/wctype (Makefile.am): Likewise.
23751
23752 2010-10-04  Bruno Haible  <bruno@clisp.org>
23753
23754         read-file tests: Avoid a test failure on NonStop Kernel.
23755         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
23756         a regular file.
23757         Reported by Joachim Schmitz <schmitz@hp.com>.
23758
23759 2010-10-03  Bruno Haible  <bruno@clisp.org>
23760
23761         gnulib-tool: Fixes for --create-testdir with --libtool.
23762         * gnulib-tool (func_get_automake_snippet): Don't augment
23763         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
23764         an executable.
23765         (func_create_testdir): Handle module 'alloca' like func_import.
23766         Reported by Bruce Korb <bruce.korb@gmail.com>.
23767
23768 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
23769
23770         Avoid some lines longer than 80 characters.
23771         * lib/stdint.in.h: Break long comment lines.
23772         * lib/math.in.h: Likewise.
23773         (_GL_NUM_UINT_WORDS): New macro, for readability.
23774         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
23775         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
23776         * lib/stdlib.in.h: Likewise.
23777         * lib/spawn.in.h: Likewise.
23778         * lib/sys_socket.in.h: Update an URL.
23779         * lib/sys_stat.in.h: Break long line.
23780
23781 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
23782
23783         Improve pmccabe2html.
23784         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
23785         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
23786         when the sources change. Remove the line in the HTML about "Used
23787         ranges" (which implied that there might be other unused ranges),
23788         rename "Resume" to "Summary" (easier to understand for more users).
23789         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
23790         styles, and some unnecessary blank lines.
23791
23792 2010-10-03  Bruno Haible  <bruno@clisp.org>
23793             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
23794
23795         acl: Add support for ACLs on NonStop Kernel.
23796         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
23797         Check whether the function aclsort() exists.
23798         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
23799         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
23800         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
23801         (acl_nontrivial [HAVE_ACLSORT]: New function.
23802         (file_has_acl): Implement for NonStop Kernel.
23803         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
23804         (qset_acl): Implement for NonStop Kernel.
23805         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
23806         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
23807         (main): Implement for NonStop Kernel.
23808         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
23809         Kernel. Handle this flavor.
23810         * tests/test-set-mode-acl.sh: Likewise.
23811         * tests/test-copy-acl.sh: Likewise.
23812         * tests/test-copy-file.sh: Likewise.
23813
23814 2010-10-03  Bruno Haible  <bruno@clisp.org>
23815
23816         Info about ACLs on NonStop Kernel.
23817         * doc/acl-resources.txt: Add info about NonStop Kernel.
23818         References by Joachim Schmitz <schmitz@hp.com>.
23819
23820 2010-10-02  Bruno Haible  <bruno@clisp.org>
23821
23822         Define missing EDQUOT on NonStop Kernel.
23823         * lib/errno.in.h (EDQUOT): Assign a value if missing.
23824         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
23825         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
23826         missing.
23827         * doc/posix-headers/errno.texi: Mention the NSK bug.
23828         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
23829         Reported by Joachim Schmitz <schmitz@hp.com>.
23830
23831 2010-10-02  Bruno Haible  <bruno@clisp.org>
23832
23833         Update doc for POSIX:2008.
23834         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
23835         Update URL of POSIX specification.
23836
23837 2010-10-02  Bruno Haible  <bruno@clisp.org>
23838
23839         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
23840         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
23841         from gnulib, not from Automake.
23842
23843 2010-10-02  Bruno Haible  <bruno@clisp.org>
23844
23845         New module 'system-posix'.
23846         * modules/system-posix: New file.
23847         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
23848         module is present.
23849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
23850         GNULIB_SYSTEM_POSIX.
23851         * modules/stdlib (Depends-on): Remove sys_wait.
23852         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
23853         * doc/posix-functions/system.texi: Mention the new module.
23854         * doc/posix-headers/stdlib.texi: Likewise.
23855         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
23856         define test_sys_wait_macros to a no-op.
23857         Reported by Sam Steingold <sds@gnu.org>.
23858
23859 2010-09-30  Bruno Haible  <bruno@clisp.org>
23860
23861         More renaming from 'getdate' to 'get_date'.
23862         * doc/get_date.texi: Renamed from doc/getdate.texi.
23863         * modules/get_date (Files): Update.
23864         * MODULES.html.sh (Date and time <time.h>): Update.
23865         * DEPENDENCIES: Update.
23866         * gnulib-tool: Update comment.
23867         * m4/bison.m4 (gl_BISON): Likewise.
23868         * m4/get_date.m4 (gl_GET_DATE): Likewise.
23869
23870 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
23871
23872         bootstrap: support ACLOCAL_FLAGS during aclocal
23873         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
23874         can add additional -I dir for third-party .m4 files.
23875
23876 2010-09-30  Eric Blake  <eblake@redhat.com>
23877
23878         bootstrap: use glibtoolize on MacOS
23879         * build-aux/bootstrap (check_versions): Convert libtool into
23880         libtoolize.
23881         (tool search): Move libtool check earlier, and look for
23882         glibtoolize for MacOS.
23883         (gnulib_tool_options): Auto-add --libtool when appropriate.
23884         Reported by Justin Clift.
23885
23886         poll: fix typo that broke test on MacOS
23887         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
23888         Reported by Justin Clift.
23889
23890         getdate: rename to get_date
23891         Note: getdate.h is not renamed, to minimize client impact.
23892         * modules/getdate: Mark obsolete.  Move old contents...
23893         * modules/get_date: ...to new module name.
23894         * modules/getdate-tests: Move...
23895         * modules/get_date-tests: ...here.
23896         * m4/getdate.m4: Move...
23897         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
23898         * lib/getdate.y: Move...
23899         * lib/get_date.y: ...here.
23900         * tests/test-getdate.c: Move...
23901         * tests/test-get_date.c: ...here.
23902         * doc/posix-functions/getdate.texi (getdate): Update name.
23903         * NEWS: Mention the change.
23904
23905 2010-09-29  Bruno Haible  <bruno@clisp.org>
23906
23907         Separate the module 'waitpid' from the module 'sys_wait'.
23908         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
23909         present.
23910         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
23911         gl_MODULE_INDICATOR_FOR_TESTS.
23912         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
23913         * modules/sys_wait (Depends-on): Remove waitpid.
23914         (Makefile.am): Substitute GNULIB_WAITPID.
23915         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
23916         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
23917         signature only if the 'waitpid' module is present.
23918         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
23919         * NEWS: Mention the change.
23920         * modules/grantpt (Depends-on): Add waitpid.
23921         * modules/wait-process (Depends-on): Likewise.
23922
23923 2010-09-29  Bruno Haible  <bruno@clisp.org>
23924
23925         More tests for module 'sys_wait'.
23926         * modules/sys_wait-c++-tests: New file.
23927         * tests/test-sys_wait-c++.cc: New file.
23928         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
23929         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
23930
23931 2010-09-29  Bruno Haible  <bruno@clisp.org>
23932
23933         New module 'waitpid'.
23934         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
23935         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
23936         Don't include <process.h>.
23937         (waitpid): Declare only, using modern idiom.
23938         * m4/waitpid.m4: New file.
23939         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
23940         * modules/waitpid: New file.
23941         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
23942         (Makefile.am): Update.
23943         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
23944
23945 2010-09-28  Bruno Haible  <bruno@clisp.org>
23946
23947         poll: Assume ANSI C.
23948         * lib/poll.c (poll): Use an ANSI C declaration.
23949
23950 2010-09-28  Bruno Haible  <bruno@clisp.org>
23951
23952         poll-h: Create poll.h on all platforms.
23953         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
23954         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
23955         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
23956         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
23957         (gl_REPLACE_POLL_H): Don't set POLL_H.
23958         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
23959         * modules/poll-h (Depends-on): Add include_next.
23960         (Makefile.am): Create poll.h unconditionally. Substitute also
23961         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
23962
23963 2010-09-28  Bruno Haible  <bruno@clisp.org>
23964
23965         Tests for module 'poll-h'.
23966         * modules/poll-h-c++-tests: New file.
23967         * tests/test-poll-h-c++.cc: New file.
23968
23969         Tests for module 'poll-h'.
23970         * modules/poll-h-tests: New file.
23971         * tests/test-poll-h.c: New file.
23972
23973 2010-09-28  Bruno Haible  <bruno@clisp.org>
23974
23975         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
23976         * modules/poll-h (Depends-on): Add 'extensions'.
23977
23978 2010-09-28  Bruno Haible  <bruno@clisp.org>
23979
23980         New module 'poll-h'.
23981         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
23982         (poll): Use modern idiom.
23983         * modules/poll-h: New file.
23984         * modules/poll (Files): Remove lib/poll.in.h.
23985         (Depends-on): Add poll-h.
23986         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
23987         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
23988         * m4/poll_h.m4: New file.
23989         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
23990         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
23991         and invoke gl_REPLACE_POLL_H.
23992         * lib/poll.c: Use common idiom.
23993         * tests/test-poll.c: Likewise.
23994         * doc/posix-headers/poll.texi: Mention the poll-h module.
23995         Suggested by Eric Blake.
23996
23997 2010-09-26  Bruno Haible  <bruno@clisp.org>
23998
23999         sys_wait: Implement WSTOPSIG.
24000         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24001         Reported by Simon Josefsson.
24002
24003 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24004
24005         stdlib, sys_wait: Avoid compilation error on mingw.
24006         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24007
24008 2010-09-26  Bruno Haible  <bruno@clisp.org>
24009
24010         stdlib tests: Avoid code duplication.
24011         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
24012         * modules/sys_wait-tests (Files): Likewise.
24013         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
24014         * tests/test-stdlib.c: Include test-sys_wait.h.
24015         (main): Invoke test_sys_wait_macros.
24016         * tests/test-sys_wait.c: Include test-sys_wait.h.
24017         (main): Invoke test_sys_wait_macros.
24018
24019 2010-09-25  Simon Josefsson  <simon@josefsson.org>
24020
24021         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
24022         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
24023         sure Windows sockets are working before calling getaddrinfo.
24024         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
24025         * doc/gnulib.texi (Windows sockets): Fix typo.
24026
24027 2010-09-25  Bruno Haible  <bruno@clisp.org>
24028
24029         Tests for module 'regex-quote'.
24030         * modules/regex-quote-tests: New file.
24031         * tests/test-regex-quote.c: New file.
24032
24033         New module 'regex-quote'.
24034         * lib/regex-quote.h: New file.
24035         * lib/regex-quote.c: New file.
24036         * modules/regex-quote: New file.
24037         Suggested by Reuben Thomas <rrt@sc3d.org>.
24038
24039 2010-09-24  Bruno Haible  <bruno@clisp.org>
24040
24041         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
24042         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
24043
24044 2010-09-23  Bruno Haible  <bruno@clisp.org>
24045
24046         setenv: Relax license.
24047         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
24048         Blake.
24049         Requested by Eric Blake.
24050
24051 2010-09-22  Bruno Haible  <bruno@clisp.org>
24052
24053         termios: Relax license.
24054         * modules/termios (License): Change to LGPLv2+.
24055         Requested by Eric Blake.
24056
24057 2010-09-22  Bruno Haible  <bruno@clisp.org>
24058
24059         threadlib: Allow the package to change the default to 'no'.
24060         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
24061         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
24062         Reported by Paul Eggert.
24063
24064 2010-09-22  Pádraig Brady  <P@draigbrady.com>
24065             Bruno Haible  <bruno@clisp.org>
24066
24067         Fix endless loop in mbmemcasecoll.
24068         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
24069         byte.
24070         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
24071
24072 2010-09-22  Bruno Haible  <bruno@clisp.org>
24073
24074         Tests for module 'memcoll'.
24075         * modules/memcoll-tests: New file.
24076         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
24077
24078         memcoll, xmemcoll: Clarify size vs. length.
24079         * modules/memcoll.c (memcoll0): Clarify specification.
24080         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
24081         passed to collate_error.
24082
24083 2010-09-22  Bruno Haible  <bruno@clisp.org>
24084
24085         Tests for module 'memcasecmp'.
24086         * modules/memcasecmp-tests: New file.
24087         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
24088
24089 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24090
24091         * lib/pthread.in.h: Add split double-inclusion guard, and include
24092         system <pthread.h> if there is one.  Use @@-style as in other
24093         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
24094         pthread.h doesn't.
24095         (pthread_mutexattr_destroy, pthread_mutexattr_init):
24096         (pthread_mutexattr_settype, pthread_mutex_trylock):
24097         New static inline functions, if there's no system <pthread.h>.
24098         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
24099         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
24100         Approximate with mutexes if the system lacks spinlocks, as in
24101         MacOS.
24102         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
24103         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
24104         @@-style.  Check for spinlocks separately.
24105         (gl_PTHREAD_DEFAULTS): New macro.
24106         * modules/pthread: Redo to use a more typical style for in.h files.
24107
24108 2010-09-21  Eric Blake  <eblake@redhat.com>
24109
24110         net_if: enhance tests
24111         * tests/test-net_if.c (main): Move signature checks earlier.
24112         Print failures to stderr.
24113         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
24114         Document the bug that we do not yet fix.
24115
24116 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24117
24118         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
24119         about gnulib, not GSS.
24120
24121 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24122
24123         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
24124         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
24125         for Emacs.
24126         * build-aux/pmccabe2html: Make Makefile.am example code more
24127         cut-and-paste friendly.
24128
24129 2010-09-21  Simon Josefsson  <simon@josefsson.org>
24130
24131         * tests/test-net_if.c: New file.
24132         * modules/net_if-tests: New file.
24133
24134 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
24135
24136         pthread: add pthread_spin_destroy
24137         * lib/pthread.in.h (pthread_spin_destroy): New function.
24138
24139 2010-09-19  Bruno Haible  <bruno@clisp.org>
24140
24141         gnulib-tool: Fix --help output.
24142         * gnulib-tool (func_usage): Fix help message.
24143         Reported by Reuben Thomas <rrt@sc3d.org>.
24144
24145 2010-09-18  Jim Meyering  <meyering@redhat.com>
24146
24147         maint.mk: avoid unexpanded \n in two diagnostics
24148         * top/maint.mk (sc_prohibit_always_true_header_tests):
24149         Don't use a literal \n in a halt=... assignment.  It would not be
24150         expanded, and the two \n bytes would appear in the diagnostic output
24151         rather than the desired newline.  Use halt=$$(printf ... instead.
24152         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24153
24154 2010-09-18  Bruno Haible  <bruno@clisp.org>
24155
24156         netinet_in: Doc tweak.
24157         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
24158         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24159
24160 2010-09-18  Jim Meyering  <meyering@redhat.com>
24161
24162         init.sh: correct an outdated comment
24163         * tests/init.sh (create_exe_shims_):  s/function/alias/
24164
24165         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
24166         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
24167         a file named "*.exe" is removed between the glob expansion and the
24168         processing of that oddly named file.
24169
24170 2010-09-17  Eric Blake  <eblake@redhat.com>
24171
24172         mirbsd: add some more support
24173         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
24174         in BSD family.
24175         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
24176         devices as OpenBSD.
24177         * m4/host-os.m4 (mirbsd): Add MirBSD.
24178
24179         tests: fix unportable assumption on sys/wait.h
24180         * tests/test-sys_wait.c (main): Relax test.
24181         * tests/test-stdlib.c (main): Likewise.
24182
24183         init.sh: accomodate directory with no .exes
24184         * tests/init.sh: Accomodate directory containing only scripts.
24185
24186         tests: avoid compiler warning
24187         * tests/test-stdlib.c (main): Use the variable.
24188
24189         fdutimens, fdutimensat: update signature, again
24190         * lib/utimens.h (gl_futimens): Delete, and move signature...
24191         (fdutimens): ...here.
24192         (fdutimensat): Rearrange signature.
24193         (lutimensat): Rename variable for clarity.
24194         * lib/fdutimensat.c (fdutimensat): Update signature.
24195         * lib/utimens.c (fdutimens): Likewise.
24196         (gl_futimens): Delete.
24197         (utimens, lutimens): Update callers.
24198         * lib/futimens.c (futimens): Likewise.
24199         * tests/test-fdutimensat.c: Likewise.
24200         * tests/test-utimens.c: Likewise.
24201         * tests/test-futimens.h: Update comment.
24202         * NEWS: Mention this.
24203         Suggested by Paul Eggert.
24204
24205 2010-09-17  Bruno Haible  <bruno@clisp.org>
24206
24207         Take over the maintenance of some older macros from Autoconf.
24208         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
24209         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
24210         GNU Autoconf.
24211         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
24212         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
24213
24214 2010-09-17  Eric Blake  <eblake@redhat.com>
24215
24216         fdutimensat: drop atflag validation
24217         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
24218         with valid fd, to close a race scenario where futimens is
24219         unsupported and FILE was replaced by a symlink.
24220         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
24221         accordingly.
24222         Suggested by Paul Eggert.
24223
24224 2010-09-16  Bruno Haible  <bruno@clisp.org>
24225
24226         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
24227         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
24228
24229 2010-09-16  Bruno Haible  <bruno@clisp.org>
24230
24231         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
24232         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
24233         login_tty exists.
24234         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24235
24236 2010-09-16  Bruno Haible  <bruno@clisp.org>
24237
24238         login_tty: Make the replacement code work on BSD systems.
24239         * lib/login_tty.c: Include <sys/ioctl.h>.
24240         (login_tty): Use ioctl TIOCSCTTY when available.
24241         * modules/login_tty (Depends-on): Add sys_ioctl.
24242         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24243
24244 2010-09-16  Bruno Haible  <bruno@clisp.org>
24245
24246         login_tty: Stricter unit test.
24247         * modules/login_tty-tests (Depends-on): Add tcgetsid.
24248         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
24249         and tcgetsid() after login_tty.
24250         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24251
24252 2010-09-16  Bruno Haible  <bruno@clisp.org>
24253
24254         New module 'tcgetsid'.
24255         * lib/tcgetsid.c: New file.
24256         * m4/tcgetsid.m4: New file.
24257         * modules/tcgetsid: New file.
24258         * modules/termios (Depends-on): Add c++defs, warn-on-use.
24259         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
24260         GNULIB_TCGETSID, HAVE_TCGETSID.
24261         * lib/termios.in.h: Include <sys/types.h>.
24262         (tcgetsid): New declaration.
24263         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
24264         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
24265         * doc/posix-functions/tcgetsid.texi: Mention the new module.
24266         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
24267
24268 2010-09-16  Bruno Haible  <bruno@clisp.org>
24269
24270         Tests for module 'termios'.
24271         * modules/termios-c++-tests: New file.
24272         * modules/termios-tests: New file.
24273         * tests/test-termios-c++.cc: New file.
24274         * tests/test-termios.c: New file.
24275
24276         New module 'termios'.
24277         * modules/termios: New file.
24278         * lib/termios.in.h: New file.
24279         * m4/termios_h.m4: New file.
24280         * doc/posix-headers/termios.texi: Mention the new module.
24281
24282 2010-09-16  Eric Blake  <eblake@redhat.com>
24283
24284         fdutimensat: add an atflag parameter
24285         * lib/fdutimensat.c (fdutimensat): Add new parameter.
24286         * lib/utimens.h (fdutimensat): Update prototype.
24287         * tests/test-fdutimensat.c: Adjust test to match.
24288         * NEWS: Document the change.
24289         Suggested by Paul Eggert.
24290
24291 2010-09-16  Bruno Haible  <bruno@clisp.org>
24292
24293         Fix typos in comments.
24294         * lib/striconveh.h: Fix typo in comment.
24295         * lib/login_tty.c (login_tty): Likewise.
24296
24297 2010-09-15  Bruno Haible  <bruno@clisp.org>
24298
24299         stdlib: clarify MirBSD WEXITSTATUS bug
24300         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
24301         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24302
24303 2010-09-15  Eric Blake  <eblake@redhat.com>
24304
24305         stdlib: work around MirBSD WEXITSTATUS bug
24306         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
24307         * modules/stdlib (Depends-on): Add sys_wait.
24308         * tests/test-sys_wait.c (main): Enhance test.
24309         * tests/test-stdlib.c (main): Likewise.
24310         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
24311
24312         docs: mention MacOS issue with WEXITSTATUS(constant)
24313         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
24314         issue.
24315         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24316
24317         strnlen: add tests
24318         * modules/strnlen-tests: New file.
24319         * tests/test-strnlen.c: Likewise.
24320
24321 2010-09-14  Bruno Haible  <bruno@clisp.org>
24322
24323         unistr/base: Avoid link errors when module 'libunistring' is also used.
24324         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
24325         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
24326         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
24327         Declare also when HAVE_LIBUNISTRING is set.
24328         Reported by Pádraig Brady <P@draigbrady.com>.
24329
24330 2010-09-14  Eric Blake  <eblake@redhat.com>
24331
24332         test-rawmemchr: make more robust
24333         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
24334         (Depends-on, configure.ac): Add needed prerequisites to use it.
24335         * modules/memchr-tests (Files, Depends-on, configure.ac):
24336         Likewise, to avoid implicit reliance on memchr module prereqs.
24337         * tests/test-memchr.c (main): Ensure proper masking.
24338         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
24339         reads.
24340
24341         memchr: detect glibc Alpha bug
24342         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
24343         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
24344         Alpha.
24345         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
24346         * tests/test-memchr.c (main): Enhance test.
24347         Reported by Nelson H. F. Beebe.
24348
24349 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24350
24351         fts, getcwd, glob: audit for dirfd returning -1
24352         * lib/fts.c (opendir): Remove #define; no longer used.
24353         (opendirat): New arg PDIR_FD.  All callers changed.
24354         (fts_build, _opendir2): Use new opendirat to avoid the need for
24355         dirfd, or for checking whether dirfd returns a negative value.
24356         Don't use opendir; always use openat followed by fdopendir.
24357         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
24358         it.
24359         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
24360         returns -1 here.
24361         * modules/fts (Depends-on): Remove dirfd.
24362         * modules/getcwd (Depends-on): Likewise.
24363
24364 2010-09-13  Eric Blake  <eblake@redhat.com>
24365
24366         float: fix broken MirBSD header
24367         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
24368         * doc/posix-headers/float.texi (float.h): Document it.
24369
24370 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24371
24372         fts: use O_NOFOLLOW to avoid race condition when opening a directory
24373         * lib/fts.c (opendirat): New arg extra_flags.
24374         (__opendir2): Use it to avoid following symlinks when opening
24375         a directory, if symlinks are not supposed to be followed.  See
24376         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
24377
24378         fdopendir: preserve argument fd before returning
24379         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
24380         (fdopendir_with_dup, fd_clone_opendir): New static functions.
24381         (fdopendir): Use them, arranging for FD to be open to the same
24382         directory that it was when it started.  (It might be temporarily
24383         closed while fdopendir is running, so this not thread- or
24384         signal-safe.)  Be careful to do the right thing even when file
24385         descriptors are scarce and dup fails with errno == EMFILE.  See
24386         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
24387
24388 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
24389
24390         regex: Pass the system regex if its only problem is 32-bit regoff_t.
24391         * NEWS: Document change.
24392         * m4/regex.m4: Disable test for regoff_t size.
24393
24394 2010-09-13  Jim Meyering  <meyering@redhat.com>
24395
24396         fts: don't operate on an invalid file descriptor after failed dup
24397         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
24398         negative file descriptor.
24399
24400 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
24401
24402         savedir: add streamsavedir, deprecate fdsavedir
24403         * NEWS: Mention deprecation of fdsavedir.
24404         * lib/savedir.c (streamsavedir): New extern function, whose name
24405         ends in "savedir" to be consistent with the others.  This differs
24406         from savedirstream in that it doesn't close its argument.  The
24407         next version of GNU tar will use this instead of fdsavedir, to
24408         avoid some race conditions and conserve file descriptors.
24409         (savedirstream): Reimplement as a wrapper around streamsavedir.
24410         (fdsavedir): Add a comment deprecating this function.  As far as
24411         I know, only GNU tar used it, and GNU tar doesn't need it any more.
24412         * lib/savedir.h (streamsavedir): New decl.
24413         (fdsavedir): Add a comment deprecating this.
24414
24415 2010-09-10  Bruno Haible  <bruno@clisp.org>
24416
24417         langinfo: Fix last commit.
24418         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
24419         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
24420         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24421
24422 2010-09-10  Bruno Haible  <bruno@clisp.org>
24423
24424         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
24425         * lib/progreloc.c (O_EXEC): Define fallback.
24426
24427 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
24428
24429         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
24430         * NEWS: Document recent changes to fcntl-h.
24431         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
24432         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
24433         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
24434         Similarly for O_SEARCH; this last was already true, but not documented.
24435         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
24436         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
24437         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
24438         Likewise.
24439         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
24440         is zero, not whether it is defined.
24441         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
24442         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
24443         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
24444
24445 2010-09-10  Bruno Haible  <bruno@clisp.org>
24446
24447         langinfo, nl_langinfo: Fix for IRIX 5.3.
24448         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
24449         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
24450         HAVE_LANGINFO_YESEXPR.
24451         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
24452         HAVE_LANGINFO_YESEXPR.
24453         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
24454         HAVE_LANGINFO_T_FMT_AMPM is 0.
24455         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
24456         HAVE_LANGINFO_YESEXPR is 0.
24457         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
24458         NOEXPR.
24459         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
24460         * doc/posix-functions/nl_langinfo.texi: Likewise.
24461         Reported by Eric Blake.
24462
24463 2010-09-10  Bruno Haible  <bruno@clisp.org>
24464
24465         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
24466         * doc/glibc-functions/login_tty.texi: Mention the include file problem
24467         on FreeBSD 8.0 and OpenBSD 4.6.
24468         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
24469         * m4/pty_h.m4 (gl_PTY_H): Likewise.
24470         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
24471         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
24472         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
24473         ac_includes_default.
24474         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24475
24476 2010-09-09  Eric Blake  <eblake@redhat.com>
24477
24478         strsignal: work around NetBSD bug
24479         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
24480         * lib/string.in.h (includes): Likewise.
24481         * doc/posix-functions/strsignal.texi (strsignal): Document the
24482         bug.
24483         Reported by Nelson H. F. Beebe.
24484
24485         gnulib-tool: work with NetBSD /bin/sh
24486         * gnulib-tool (func_cache_var, func_cache_lookup_module)
24487         (func_get_description, func_get_comment, func_get_status)
24488         (func_get_notice, func_get_applicability, func_get_filelist)
24489         (func_get_dependencies, func_get_autoconf_early_snippet)
24490         (func_get_autoconf_snippet, func_get_automake_snippet)
24491         (func_get_include_directive, func_get_link_directive)
24492         (func_get_license, func_get_maintainer, func_import): Avoid
24493         shell syntax errors from parsing syntax extensions.
24494
24495 2010-09-09  Bruno Haible  <bruno@clisp.org>
24496
24497         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
24498         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
24499         a reliable way to determine whether the 'alias' command works.
24500
24501 2010-09-08  Jim Meyering  <meyering@redhat.com>
24502
24503         init.sh: penalize a set-x-impaired shell; don't disqualify it
24504         * tests/init.sh: Too many shells corrupt application stderr when
24505         you set -x, so we can't afford to disqualify them, since at least
24506         on Irix-6.5, that would disqualify all bourne shells.
24507         Instead, use a two-pass approach.
24508         On the first pass, try to find a shell that meets the stricter
24509         condition that set -x does not corrupt stderr.
24510         If no shell meets the stricter condition, retest each candidate
24511         shell, but without that extra condition.  Finally, when
24512         VERBOSE=yes is requested and set -x might cause trouble, simply
24513         issue a warning and refrain from enabling debug output.
24514
24515 2010-09-08  Eric Blake  <eblake@redhat.com>
24516
24517         unsetenv: fix OpenBSD bug
24518         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
24519         * doc/posix-functions/unsetenv.texi (unsetenv): Update
24520         documentation.
24521         Reported by Jim Meyering.
24522
24523         strtod: work around IRIX 6.5 bug
24524         * lib/strtod.c (strtod): Reparse number on shorter string if
24525         exponent parse was invalid.
24526         * tests/test-strtod.c (main): Add check for "0x1p 2".
24527         Reported by Tom G. Christensen.
24528
24529         getopt: optimize previous patch
24530         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
24531         empty variable.  Speed up awk script.
24532         Reported by Paolo Bonzini.
24533
24534 2010-09-08  Jim Meyering  <meyering@redhat.com>
24535
24536         test.sh: disqualify shells for which set -x corrupts stderr
24537         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
24538         and OpenBSD 4.7.  They make it so with "set -x", environment settings
24539         appear in stderr output.  For example, this command:
24540             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
24541         prints "P=1" on those two systems:
24542
24543 2010-09-08  Bruno Haible  <bruno@clisp.org>
24544
24545         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
24546         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
24547         commands, because some shells ignore redirections when there is an
24548         error in the command lookup.
24549         Reported by Eric Blake.
24550
24551 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
24552
24553         * lib/regex.h: Fix a mention of `regex_compile' (should be
24554         `re_compile_pattern').
24555         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
24556         (re_set_registers): Correct name of parameter in comment.
24557
24558         * doc/regex.texi: Add documentation for missing syntax flags.
24559         Remove commented-out documentation of defunct syntax option
24560         RE_NO_EMPTY_ALTS.
24561         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
24562         Add documentation of re_set_registers.
24563         Document trick to re-use a pattern buffer by setting fastmap manually.
24564         Update documentation of struct re_pattern_buffer per public members.
24565         Uncomment documentation of equivalence class operators and
24566         collating symbol operators, since they are now implemented,
24567         Explain leftmost-longest matching in relation to alternatives.
24568         Tidy documentation of substring matching.
24569         Remove POSIX documentation, which is done better in
24570         glibc, and refer the reader there. Keep BSD API documentation, as
24571         that is not readily available elsewhere.
24572
24573 2010-09-07  Eric Blake  <eblake@redhat.com>
24574
24575         getopt: handle POSIXLY_CORRECT set but not exported
24576         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
24577         export state of POSIXLY_CORRECT, due to bash set -o posix.
24578         Reported by Dustin J. Mitchell.
24579
24580 2010-09-05  Bruno Haible  <bruno@clisp.org>
24581
24582         gnulib-tool: Highlight the changed options.
24583         * gnulib-tool (func_usage): Display the --import, --add-import,
24584         --remove-import explanations in bold font.
24585
24586 2010-09-06  Karl Berry  <karl@gnu.org>
24587
24588         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
24589
24590 2010-09-05  Bruno Haible  <bruno@clisp.org>
24591
24592         uniwidth/width: Update comment.
24593         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
24594         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
24595
24596 2010-09-05  Bruno Haible  <bruno@clisp.org>
24597
24598         isinf, isnan: Relax license.
24599         * modules/isinf (License): Change from GPL to LGPL, with consent from
24600         Ben Pfaff.
24601         * modules/isnan (License): Likewise.
24602         Requested by Ludovic Courtès.
24603
24604 2010-09-04  Bruno Haible  <bruno@clisp.org>
24605
24606         gnulib-tool: Help migration from --import to --add-import or --update.
24607         * gnulib-tool: Emit a verbose error message when --import is used
24608         without any module name.
24609
24610 2010-09-04  Bruno Haible  <bruno@clisp.org>
24611
24612         Update doc about gnulib-tool.
24613         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
24614         'gnulib-tool --update' in more detail.
24615         Reported by Eric Blake.
24616
24617 2010-09-04  Bruno Haible  <bruno@clisp.org>
24618
24619         gnulib-tool: Change --import. New options --add/remove-import.
24620         * gnulib-tool: New options --add-import, --remove-import.
24621         (func_usage): Document them.
24622         (have_associative): Define always.
24623         (func_import): In import mode, don't merge the specified settings with
24624         the cached settings. Implement remove-import mode.
24625         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
24626         Explain when to use them versus --import.
24627         (Simple update): Use --add-import instead of --import.
24628         * NEWS: Mention the change.
24629
24630 2010-09-04  Bruno Haible  <bruno@clisp.org>
24631
24632         * doc/gnulib-tool.texi (Initial import): Update paragraph about
24633         separate gnulib.mk.
24634
24635 2010-09-04  Bruno Haible  <bruno@clisp.org>
24636
24637         gnulib-tool: Don't talk about CVS any more.
24638         * gnulib-tool (func_usage, func_import): Write "version control"
24639         instead of CVS.
24640
24641 2010-09-04  Jim Meyering  <meyering@redhat.com>
24642
24643         maint.mk: avoid obscure sc_copyright_check failure in coreutils
24644         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
24645         false positives (whose names may be ill-chosen) when searching
24646         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
24647         would cause a false-positive.
24648
24649         avoid coreutils "make distcheck" failure
24650         Coreutils tests with an absolute build directory name that contains
24651         a space.  Not quoting this directory name caused a failure.
24652         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
24653         * tests/test-vc-list-files-cvs.sh: Likewise.
24654
24655 2010-09-04  Bruno Haible  <bruno@clisp.org>
24656
24657         gnulib-tool: Avoid error when run in a package without Makefile.am.
24658         * gnulib-tool: When collecting the m4dirs in a package that does not
24659         have a Makefile.am, eliminate those directories that contain no
24660         gnulib-cache.m4. Fix expression that counts these directories.
24661
24662 2010-09-04  Bruno Haible  <bruno@clisp.org>
24663
24664         update-copyright test: Improve output when perl is missing or too old.
24665         * tests/test-update-copyright.sh: Move test of Perl version down after
24666         the test whether Perl exists. Provide an explanation relating Perl's
24667         error message to Automake's SKIP: message.
24668
24669 2010-09-04  Bruno Haible  <bruno@clisp.org>
24670
24671         Don't augment PATH in TESTS_ENVIRONMENT.
24672         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
24673         set abs_aux_dir instead of augmenting PATH.
24674         * modules/vc-list-files-tests (Makefile.am): Likewise.
24675         * tests/test-update-copyright.sh: Augment PATH here.
24676         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
24677         path_prepend_.
24678         * tests/test-vc-list-files-git.sh: Likewise.
24679
24680 2010-09-04  Jim Meyering  <meyering@redhat.com>
24681
24682         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
24683         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
24684
24685 2010-09-04  Bruno Haible  <bruno@clisp.org>
24686
24687         strdup: Fix compilation error in C++ mode.
24688         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
24689         the macro.
24690
24691 2010-09-04  Bruno Haible  <bruno@clisp.org>
24692
24693         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
24694         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
24695         macro into a function.
24696         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24697
24698 2010-09-04  Bruno Haible  <bruno@clisp.org>
24699
24700         Set PATH_SEPARATOR the same way autoconf does.
24701         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
24702         the value of PATH_SEPARATOR the same way autoconf-generated configure
24703         scripts do.
24704         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
24705         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
24706
24707 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24708
24709         Set PATH_SEPARATOR the same way autoconf does.
24710         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
24711         the same way autoconf-generated configure scripts do.
24712         * posix-modules: Likewise.
24713
24714 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
24715
24716         hash: fix safe_hasher const typo
24717         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
24718         const; otherwise, there is a type error later.
24719
24720 2010-09-02  Jim Meyering  <meyering@redhat.com>
24721
24722         test-update-copyright.sh: require perl 5.8.0
24723         * tests/test-update-copyright.sh: Require 5.8.0,
24724         which Tom G. Christensen has confirmed is adequate,
24725         while 5.6.1 is not.
24726
24727 2010-09-02  Eric Blake  <eblake@redhat.com>
24728
24729         tests: init.sh improvements for re-exec'ing with zsh
24730         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
24731         -vx through shell re-exec.
24732         Reported by Tom G. Christensen.
24733
24734         wctype: fix typo in previous commit
24735         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
24736         Reported by Ludovic Courtès.
24737
24738 2010-09-02  Jim Meyering  <meyering@redhat.com>
24739
24740         test-update-copyright.sh: skip test if Perl is too old
24741         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
24742         Reported by Tom G. Christensen.
24743
24744 2010-09-02  Bruno Haible  <bruno@clisp.org>
24745
24746         wctype: Avoid compilation error on IRIX 6.5.30.
24747         * lib/wctype.in.h (iswblank): Declare with a replacement if
24748         REPLACE_ISWBLANK is set.
24749         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
24750         declared. Set REPLACE_ISWBLANK.
24751         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
24752         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
24753         * doc/posix-headers/wctype.texi: Likewise.
24754         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24755
24756 2010-09-01  Bruno Haible  <bruno@clisp.org>
24757
24758         New module 'socketlib'.
24759         * modules/socketlib: New file.
24760         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
24761         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
24762         * modules/sockets (Depends-on): Add socketlib.
24763         Suggested by Sam Steingold <sds@gnu.org>.
24764
24765 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24766
24767         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
24768
24769         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
24770         when one needs search access to a directory but not read access.
24771         On systems where it is available, it works in some cases where
24772         O_RDONLY does not, namely on directories that are searchable but
24773         not readable, and which need only to be searchable.  If O_SEARCH
24774         is not available, fall back to the traditional method of using
24775         O_RDONLY.
24776
24777         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
24778         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
24779         when opening a directory that needs only to be searchable.
24780         * lib/chdir-safer.c (chdir_no_follow): Likewise.
24781         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
24782         * lib/openat-proc.c (openat_proc_name): Likewise.
24783         * lib/openat.c (openat_needs_fchdir): Likewise.
24784         * lib/save-cwd.c (save_cwd): Likewise.
24785         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
24786
24787 2010-08-28  Bruno Haible  <bruno@clisp.org>
24788
24789         New module 'host-cpu-c-abi'.
24790         * modules/host-cpu-c-abi: New file.
24791         * m4/host-cpu-c-abi.m4: New file, based on part of
24792         clisp/src/m4/general.m4.
24793         Requested by Sam Steingold <sds@gnu.org>.
24794
24795 2010-08-31  Eric Blake  <eblake@redhat.com>
24796         and Jim Meyering  <meyering@redhat.com>
24797
24798         hash: factor, and guard against misbehaving hasher function
24799         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
24800         of table->hasher's return value.  Also protect against a hash value
24801         so large that adding it to table->bucket results in a NULL pointer.
24802         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
24803         Use it in place of open-coded check-and-abort.
24804
24805 2010-08-30  Bruno Haible  <bruno@clisp.org>
24806
24807         hash: silence spurious clang warning
24808         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
24809         Reported by Eric Blake.
24810
24811 2010-08-30  Eric Blake  <eblake@redhat.com>
24812
24813         strstr, memmem, strcasestr: avoid leaked shell message
24814         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
24815         FreeBSD.
24816         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24817         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24818
24819         tests: silence clang warning
24820         * tests/test-malloca.c (do_allocation): Avoid dead store.
24821
24822 2010-08-29  Bruno Haible  <bruno@clisp.org>
24823
24824         gettext: Fix recent mistake.
24825         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
24826
24827 2010-08-29  Bruno Haible  <bruno@clisp.org>
24828
24829         selinux-h: Offer a --without-selinux option.
24830         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
24831         --without-selinux was specified, skip all tests and define
24832         HAVE_SELINUX_SELINUX_H to 0.
24833         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
24834         set LIB_SELINUX to empty.
24835         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
24836         gl_LIBSELINUX. If --without-selinux was specified, replace
24837         selinux/context.h.
24838         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
24839
24840 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24841             Bruno Haible  <bruno@clisp.org>
24842
24843         Make the module 'realloc-gnu' work again on AIX and OSF/1.
24844         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
24845         of HAVE_REALLOC.
24846         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
24847         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
24848         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
24849         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
24850
24851 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24852             Bruno Haible  <bruno@clisp.org>
24853
24854         Make the module 'calloc-gnu' work again on AIX and OSF/1.
24855         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
24856         HAVE_CALLOC.
24857         * lib/xmalloc.c: Update accordingly.
24858         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
24859         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
24860         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
24861
24862 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24863             Bruno Haible  <bruno@clisp.org>
24864
24865         Make the module 'malloc-gnu' work again on AIX and OSF/1.
24866         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
24867         HAVE_MALLOC.
24868         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
24869         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
24870         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
24871
24872 2010-08-29  Bruno Haible  <bruno@clisp.org>
24873
24874         Update modules list.
24875         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
24876         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
24877         (String handling <string.h>): Add astrxfrm.
24878         (File system functions): Add readlinkat.
24879
24880 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24881
24882         Tests for module 'realloc-gnu'.
24883         * modules/realloc-gnu-tests: New file.
24884         * tests/test-realloc-gnu.c: New file.
24885
24886         Tests for module 'calloc-gnu'.
24887         * modules/calloc-gnu-tests: New file.
24888         * tests/test-calloc-gnu.c: New file.
24889
24890         Tests for module 'malloc-gnu'.
24891         * modules/malloc-gnu-tests: New file.
24892         * tests/test-malloc-gnu.c: New file.
24893
24894 2010-08-28  Bruno Haible  <bruno@clisp.org>
24895
24896         Rename module 'realloc' -> 'realloc-gnu'.
24897         * modules/realloc-gnu: New file, copied from modules/realloc.
24898         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
24899         obsolete.
24900         * modules/mgetgroups (Depends-on): Update.
24901         * doc/posix-functions/realloc.texi: Update.
24902         * NEWS: Mention the change.
24903
24904         Rename module 'calloc' -> 'calloc-gnu'.
24905         * modules/calloc-gnu: New file, copied from modules/calloc.
24906         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
24907         obsolete.
24908         * doc/posix-functions/calloc.texi: Update.
24909         * NEWS: Mention the change.
24910
24911         Rename module 'malloc' -> 'malloc-gnu'.
24912         * modules/malloc-gnu: New file, copied from modules/malloc.
24913         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
24914         obsolete.
24915         * modules/argp (Depends-on): Update.
24916         * modules/regex (Depends-on): Update.
24917         * doc/posix-functions/malloc.texi: Update.
24918         * NEWS: Mention the change.
24919
24920 2010-08-28  Eric Blake  <eblake@redhat.com>
24921
24922         pread, pwrite: add missing dependency
24923         * modules/pread (Depends-on): Add extensions.
24924         * modules/pwrite (Depends-on): Likewise.
24925
24926 2010-08-28  Bruno Haible  <bruno@clisp.org>
24927
24928         unistr/u*-strchr: Fix tests dependencies.
24929         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
24930         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
24931         Reported by Ian Beckwith <ianb@erislabs.net>.
24932
24933 2010-08-28  Bruno Haible  <bruno@clisp.org>
24934
24935         read-file: Don't occupy too much unused memory.
24936         * lib/read-file.c (fread_file): Shrink the buffer at the end.
24937
24938 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
24939             Eric Blake  <eblake@redhat.com>
24940             Bruno Haible  <bruno@clisp.org>
24941
24942         read-file: Avoid memory reallocations with regular files.
24943         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
24944         (fread_file): With regular files, use the remaining length as the
24945         initial buffer size.  Check against overflow.
24946         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
24947         sys_stat.
24948
24949 2010-08-28  Bruno Haible  <bruno@clisp.org>
24950
24951         ftello: Relax license.
24952         * modules/ftello (License): Relax to LGPLv2+.
24953         Reported by Eric Blake.
24954
24955 2010-08-28  Bruno Haible  <bruno@clisp.org>
24956
24957         Avoid relocwrapper link errors due to gnulib replacement functions.
24958         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
24959         function.
24960         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24961
24962 2010-08-28  Bruno Haible  <bruno@clisp.org>
24963
24964         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
24965         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
24966         defined.
24967         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
24968         Suggested by Eric Blake.
24969
24970 2010-08-28  Bruno Haible  <bruno@clisp.org>
24971
24972         sys_socket, netdb: Ensure socklen_t gets defined.
24973         * modules/sys_socket (Depends-on): Add socklen.
24974         * modules/netdb (Depends-on): Likewise.
24975         * modules/getaddrinfo (Depends-on): Remove socklen.
24976         * modules/getsockopt (Depends-on): Likewise.
24977         * modules/setsockopt (Depends-on): Likewise.
24978         * tests/test-sys_socket.c: Check that socklen_t is defined.
24979         * tests/test-netdb.c: Likewise.
24980         * m4/socklen.m4: Update comments.
24981         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24982
24983 2010-08-27  Eric Blake  <eblake@redhat.com>
24984
24985         login_tty: add missing dependency
24986         * modules/login_tty (Depends-on): Add pty.
24987
24988 2010-08-26  Eric Blake  <eblake@redhat.com>
24989
24990         lib-symbol-versions: fix m4 quoting
24991         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
24992         format for AC_LINK_IFELSE.
24993
24994         glob: fix compile test
24995         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
24996
24997         btowc: fix missing file
24998         * modules/btowc (Files): Also ship locale-fr.m4.
24999
25000         lseek: fix link test
25001         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25002         AC_LINK_IFELSE.
25003
25004         include_next: silence autoconf 2.68 warning
25005         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25006         AC_COMPILE_IFELSE as special.
25007         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25008         autoconf < 2.68.
25009
25010         acl: fix compilation test
25011         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
25012         AC_COMPILE_IFELSE.
25013
25014 2010-08-26  Bruno Haible  <bruno@clisp.org>
25015
25016         Modernize AC_TRY_RUN invocations.
25017         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
25018         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25019         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
25020         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
25021         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
25022         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25023         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25024         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25025         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25026         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25027         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25028         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25029         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25030         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25031         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25032         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25033         gl_MBRLEN_NUL_RETVAL): Likewise.
25034         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25035         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25036         Likewise.
25037         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25038         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25039         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25040         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25041         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
25042         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
25043         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
25044         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25045         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
25046         Likewise.
25047         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25048         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
25049         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25050         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25051         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25052         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25053         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25054         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
25055         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25056         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25057
25058 2010-08-26  Bruno Haible  <bruno@clisp.org>
25059
25060         Modernize AC_TRY_LINK invocations.
25061         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
25062         AC_TRY_LINK.
25063         * m4/argp.m4 (gl_ARGP): Likewise.
25064         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
25065         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25066         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
25067         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25068         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25069         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
25070         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
25071         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
25072         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25073         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25074         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25075         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
25076         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
25077         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25078         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25079         * m4/hostent.m4 (gl_HOSTENT): Likewise.
25080         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25081         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
25082         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25083         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
25084         Likewise.
25085         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
25086         Likewise.
25087         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
25088         Likewise.
25089         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25090         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
25091         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
25092         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25093         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
25094         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25095         * m4/servent.m4 (gl_SERVENT): Likewise.
25096         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
25097         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
25098         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
25099         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
25100         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25101         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
25102         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25103         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25104         * modules/tsearch-tests (configure.ac): Likewise.
25105
25106 2010-08-26  Bruno Haible  <bruno@clisp.org>
25107
25108         Modernize AC_TRY_COMPILE invocations.
25109         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
25110         AC_TRY_COMPILE.
25111         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
25112         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
25113         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25114         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
25115         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25116         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25117         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25118         * m4/lock.m4 (gl_LOCK): Likewise.
25119         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
25120         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25121         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
25122         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25123         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25124         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
25125         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25126         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
25127         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25128         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25129         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25130         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25131         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
25132         extraneous semicolon.
25133
25134 2010-08-26  Jim Meyering  <meyering@redhat.com>
25135
25136         stat-time: relax license LGPL
25137         * modules/stat-time (License): Change from GPL to LGPL,
25138         with consent from all contributors, for use in libguile.
25139         Requested by Ludovic Courtès.
25140
25141 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
25142
25143         poll: return immediately on POLLHUP.
25144         * lib/poll.c (poll): Always set timeout before wait_timeout is
25145         computed.
25146
25147 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25148
25149         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
25150         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
25151         rmdir ("dir/.//"), unlinkat.
25152
25153 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25154
25155         stdbool: avoid spurious failure with modern xlc
25156         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25157
25158 2010-08-24  Bruno Haible  <bruno@clisp.org>
25159
25160         getloadavg: simplify code
25161         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
25162         gl_have_func. Update comments.
25163
25164 2010-08-24  Eric Blake  <eblake@redhat.com>
25165
25166         getloadavg: don't define SVR4 on cygwin
25167         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
25168         only define SVR4 when -lkvm is required.
25169         Reported by Yaakov Selkowitz.
25170
25171 2010-08-24  Bruno Haible  <bruno@clisp.org>
25172
25173         priv-set: fix comment
25174         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
25175
25176 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25177
25178         priv-set: fix comments
25179         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
25180         to match code, as suggested by David Bartley in:
25181         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
25182
25183 2010-08-23  Eric Blake  <eblake@redhat.com>
25184
25185         stdbool: avoid rejecting clang
25186         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25187         * tests/test-stdbool.c: Enable more tests if using the system
25188         <stdbool.h> instead of the gnulib replacement.
25189         (main): Move xlc bug test to a runtime test for all compilers.
25190         Reported by Anders Kaseorg.
25191
25192         argz: fix shell quoting issue
25193         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
25194         Reported by Charles Wilson.
25195
25196 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
25197             Erik Faye-Lund <kusmabite@gmail.com>
25198
25199         poll, select: handle ERROR_BROKEN_PIPE.
25200         * lib/poll.c (win32_compute_revents): Return POLLHUP when
25201         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25202         * lib/select.c (win32_compute_revents): Do not mark a pipe
25203         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25204
25205 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
25206
25207         fts: allow compilation with C++
25208         * lib/fts_.h: Specify extern "C" linkage with C++.
25209
25210 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25211
25212         Fix gnulib-tool sed script de-commentation for AIX sed.
25213         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
25214         sed.
25215
25216 2010-08-17  Eric Blake  <eblake@redhat.com>
25217
25218         test-stddef: test for (some) offsetof bugs
25219         * tests/test-stddef.c: Enhance test to ensure correct type of
25220         offsetof.
25221         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
25222         that we are not fixing at this time.
25223
25224 2010-08-15  Bruno Haible  <bruno@clisp.org>
25225
25226         stpncpy: Allow stpncpy to be defined as a macro.
25227         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
25228         if it's already correctly declared.
25229         * lib/string.in.h (stpncpy): Undefine before redefining.
25230         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
25231
25232 2010-08-14  Bruno Haible  <bruno@clisp.org>
25233
25234         Rename module 'memxfrm' to 'amemxfrm'.
25235         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
25236         (amemxfrm): Renamed from memxfrm.
25237         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
25238         (amemxfrm): Renamed from memxfrm.
25239         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
25240         * NEWS: Mention the change.
25241         * MODULES.html.sh (String handling <string.h>): Update.
25242         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
25243         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
25244         * lib/unicase/u16-casexfrm.c: Likewise.
25245         * lib/unicase/u32-casexfrm.c: Likewise.
25246         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
25247         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
25248         * lib/uninorm/u16-normxfrm.c: Likewise.
25249         * lib/uninorm/u32-normxfrm.c: Likewise.
25250         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
25251         memxfrm.
25252         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
25253         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
25254         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
25255         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
25256         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
25257         Suggested by Paul Eggert.
25258
25259 2010-08-14  Bruno Haible  <bruno@clisp.org>
25260
25261         Tests for module 'astrxfrm'.
25262         * modules/astrxfrm-tests: New file.
25263         * tests/test-astrxfrm.c: New file.
25264
25265         New module 'astrxfrm'.
25266         * lib/astrxfrm.h: New file.
25267         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
25268         * modules/astrxfrm: New file.
25269
25270 2010-08-14  Reuben Thomas <rrt@sc3d.org>
25271
25272         regex: Tweak doc.
25273         * doc/regex.texi (Overview): Don't mention regex.c.
25274         (GNU Regular Expression Compiling): Likewise.
25275         (Match-end-of-line Operator): Mention 'not_eol'.
25276
25277 2010-08-14  Brian Gough  <bjg@gnu.org>
25278             Bruno Haible  <bruno@clisp.org>
25279
25280         git-merge-changelog: add doc relating to use with bzr and hg.
25281         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
25282
25283 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
25284
25285         pthread: fix pthread.h creation for srcdir != builddir
25286         * modules/pthread (Makefile.am): Fix the rule to work also in a
25287         non-srcdir build.
25288
25289 2010-08-13  Karl Berry  <karl@gnu.org>
25290
25291         * doc/regex.texi (Predefined Syntaxes): @smallexample.
25292         * doc/posix-*/*: force line break before @url of POSIX
25293         specifications.
25294         Suggested by Werner Lemberg.
25295
25296 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25297
25298         strtod: fix const diagnostic
25299         * lib/strtod.c (strtod): Don't assign const char * to char *,
25300         as this elicits a warning from GCC when warnings are enabled.
25301
25302 2010-08-10  Pádraig Brady <P@draigbrady.com>
25303         and Eric Blake  <eblake@redhat.com>
25304
25305         copy-acl: ignore ENOTSUP on HP-UX
25306         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
25307         so that it is available for HP-UX.
25308         * lib/copy-acl.c (qcopy_acl): Use it.
25309         Reported by Patrick M. Callahan.
25310
25311 2010-08-10  Eric Blake  <eblake@redhat.com>
25312
25313         open, chown: relax license
25314         * modules/open (License): Change to LGPLv2+, with consent by all
25315         authors, for use in augeas.
25316         * modules/chown (License): Likewise.
25317         * modules/lchown (Likewise): Likewise.
25318         Requested by Adam Stokes.
25319
25320 2010-08-09  Karl Berry  <karl@gnu.org>
25321
25322         * build-aux/ar-lib: new file, import from Automake.
25323         * config/srclist.txt: autocheck for updates.
25324
25325 2010-08-09  Eric Blake  <eblake@redhat.com>
25326
25327         readlinkat: adjust client modules
25328         * modules/areadlinkat (Depends-on): Use readlinkat, not
25329         symlinkat.
25330         * modules/areadlinkat-with-size (Depends-on): Likewise.
25331
25332         mknod: be more vocal about danger of running tests as root
25333         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
25334         root, since that is just asking for problems.
25335         Suggested by Bruno Haible, based on a report by Rainer Tammer.
25336
25337         readlinkat: split into its own module
25338         * modules/symlinkat: Split readlinkat...
25339         * modules/readlinkat: ...into separate module.
25340         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
25341         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
25342         * lib/symlinkat.c (readlinkat): Move...
25343         * lib/readlinkat.c: ...into new file.
25344         * modules/symlinkat-tests: Split readlinkat test...
25345         * modules/readlinkat-tests: ...into separate module.
25346         * tests/test-symlinkat.c: Split...
25347         * tests/test-readlinkat.c: ...into new file.
25348         * NEWS: Document the split.
25349         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25350         * lib/unistd.in.h (readlinkat): Likewise.
25351         Suggested by Bruno Haible.
25352
25353 2010-08-08  Bruno Haible  <bruno@clisp.org>
25354
25355         memxfrm: Speed up.
25356         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
25357         that usually only one call to strxfrm is necessary for each string
25358         part.
25359         Reported by Paul Eggert <eggert@cs.ucla.edu>.
25360
25361 2010-08-07  Karl Berry  <karl@gnu.org>
25362
25363         * doc/posix-headers/limits.texi,
25364         * doc/posix-functions/malloc.texi,
25365         * doc/posix-functions/strsignal.texi: missing @item.
25366         * doc/ld-version-script.texi: spurious leading i.
25367         * doc/regex.texi (Interval Operators): no commas inside @var.
25368
25369 2010-08-01  Bruno Haible  <bruno@clisp.org>
25370
25371         Integrate the regex documentation.
25372         * doc/gnulib.texi: Define 'cn' index.
25373         (Regular expressions): New a chapter that includes regex.texi and
25374         regexprops-generic.texi.
25375         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
25376         syntax.
25377
25378         Whitespace cleanup.
25379         * doc/regex.texi: Remove trailing spaces.
25380
25381         Add regex documentation.
25382         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
25383         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
25384         Written by Kathy A. Hargreaves and Karl Berry.
25385
25386 2010-08-01  Bruno Haible  <bruno@clisp.org>
25387
25388         link: Update documentation.
25389         * doc/posix-functions/link.texi: Update regarding Solaris.
25390
25391 2010-07-31  Bruno Haible  <bruno@clisp.org>
25392
25393         Update modules list.
25394         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
25395         (String handling <string.h>): Add memcmp2, memxfrm.
25396         (Container data structures): Add xlist, xsublist, xoset.
25397         (Core language properties): Add alignof, unused-parameter.
25398         (Process control, Numeric conversion functions <stdlib.h>): Renamed
25399         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
25400         (Unibyte characters <ctype.h>): New section.
25401         (String handling <string.h>): New section.
25402         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
25403         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
25404         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
25405         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
25406         tan, tanh, tanl, y0, y1, yn.
25407         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
25408         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
25409         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
25410         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
25411         unlockpt, vdprintf, vdprintf-posix.
25412         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
25413         (File system functions): Add concat-filename, sys_file, sys_ioctl,
25414         xconcat-filename.
25415         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
25416         getdtablesize, pipe2, pipe2-safer.
25417         (Security): New section.
25418         (Networking functions): Add accept4.
25419         (Signal handling): Add sigpipe.
25420         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
25421         mbmemcasecoll.
25422         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
25423         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
25424         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
25425         pipe-filter-ii.
25426         (Misc): Add argp-version-etc, login_tty, parse-duration.
25427
25428 2010-07-31  Bruno Haible  <bruno@clisp.org>
25429
25430         Improve doc in MODULES.html.
25431         * modules/linkat (Description): Add the word "function".
25432         * modules/mkfifo (Description): Likewise.
25433         * modules/mknod (Description): Likewise.
25434         * modules/remove (Description): Likewise.
25435         * modules/renameat (Description): Likewise.
25436         * modules/stat (Description): Likewise.
25437         * modules/symlink (Description): Likewise.
25438         * modules/unlink (Description): Likewise.
25439
25440 2010-07-31  Bruno Haible  <bruno@clisp.org>
25441
25442         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
25443         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
25444         option --enable/disable-c++ instead of --enable/disable-cxx.
25445         * NEWS: Mention the change.
25446
25447 2010-07-31  Bruno Haible  <bruno@clisp.org>
25448
25449         readlink, areadlink: Relax test a bit.
25450         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
25451         alternative to ENOTDIR.
25452         * tests/test-areadlink.h (test_areadlink): Likewise.
25453         Reported by Rainer Tammer.
25454
25455 2010-07-31  Bruno Haible  <bruno@clisp.org>
25456
25457         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
25458         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
25459         character, perform the search using U_STRCHR.
25460         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
25461         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
25462         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
25463         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
25464         Suggested by Paolo Bonzini.
25465
25466 2010-07-31  Bruno Haible  <bruno@clisp.org>
25467
25468         unistr/u*-strstr: Fix dependencies.
25469         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
25470         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
25471         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
25472
25473 2010-07-31  Bruno Haible  <bruno@clisp.org>
25474
25475         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
25476         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
25477         the beginning of the loop.
25478         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
25479         cases in 'switch' statement.
25480
25481         unistr/u8-strchr: Fix several bugs.
25482         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
25483         the string. When not found, return NULL, not a pointer near the end.
25484
25485         More tests for unistr/u8-strchr.
25486         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
25487         that the function does not read past the first occurrence of the byte
25488         being searched.
25489         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
25490         * tests/unistr/test-u16-strchr.c (main): New function.
25491         * tests/unistr/test-u32-strchr.c (main): New function.
25492
25493 2010-07-31  Bruno Haible  <bruno@clisp.org>
25494
25495         posix-modules: Ignore backup files of documentation files.
25496         * posix-modules: grep only through files named *.texi.
25497
25498 2010-07-31  Bruno Haible  <bruno@clisp.org>
25499
25500         symlinkat: Fix documentation.
25501         * doc/posix-functions/readlinkat.texi: Fix module name.
25502
25503 2010-07-31  Bruno Haible  <bruno@clisp.org>
25504
25505         fchownat: Replace also when chown has the trailing slash bug.
25506         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
25507         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
25508         introduced on 2010-04-10.
25509         Reported by Rainer Tammer.
25510
25511 2010-07-31  Bruno Haible  <bruno@clisp.org>
25512
25513         linkat: Work around AIX 7.1 bug.
25514         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
25515         whether linkat handles trailing slash correctly. If not, replace linkat
25516         and define LINKAT_TRAILING_SLASH_BUG.
25517         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
25518         check whether (fd1,file1) points to a directory if file1 or file2 ends
25519         in a slash. Code taken from lib/link.c.
25520         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
25521         Reported by Rainer Tammer.
25522
25523 2010-07-31  Bruno Haible  <bruno@clisp.org>
25524
25525         Correctly determine whether pow is available in libc on AIX 7 with xlc.
25526         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
25527         This disables an xlc optimization that was causing wrong test results.
25528         Reported by Rainer Tammer.
25529
25530 2010-07-31  Bruno Haible  <bruno@clisp.org>
25531
25532         iconv: Work around AIX 6.1..7.1 bug.
25533         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
25534         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
25535         cross-compiling, guess no on all versions of AIX.
25536         Reported by Rainer Tammer.
25537
25538 2010-07-31  Bruno Haible  <bruno@clisp.org>
25539
25540         readlink: Relax test a bit.
25541         * tests/test-readlink.h (test_readlink): Allow different errno value
25542         when readlink is called with a file name that ends in / and refers to
25543         a file.
25544         Suggested by Eric Blake.
25545         Reported by Rainer Tammer.
25546
25547 2010-07-31  Bruno Haible  <bruno@clisp.org>
25548
25549         copysign: Does not require -lm on glibc systems.
25550         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
25551         gl_COMMON_DOUBLE_MATHFUNC.
25552         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
25553
25554 2010-07-31  Bruno Haible  <bruno@clisp.org>
25555
25556         duplocale: Work around AIX 7.1 bug.
25557         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
25558         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
25559         * lib/duplocale.c (rpl_duplocale): Update comment.
25560         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
25561         Reported by Rainer Tammer.
25562
25563 2010-07-30  Bruno Haible  <bruno@clisp.org>
25564
25565         dirfd: Avoid link error on AIX 7.1.
25566         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
25567         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
25568         exist, set REPLACE_DIRFD.
25569         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
25570         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
25571         * doc/posix-functions/dirfd.texi: Update.
25572         Reported by Rainer Tammer.
25573
25574 2010-07-30  Eric Blake  <eblake@redhat.com>
25575
25576         strtod: next round of AIX fixes
25577         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
25578         exponent.
25579         * tests/test-strtod.c (main): Enhance tests.
25580         * doc/posix-functions/strtod.texi (strtod): Document next bug.
25581         Reported by Rainer Tammer.
25582
25583         futimens: fix configure check
25584         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
25585         Reported by Bruno Haible.
25586
25587 2010-07-30  Bruno Haible  <bruno@clisp.org>
25588
25589         getline: Update regarding AIX.
25590         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
25591         Reported by Rainer Tammer.
25592
25593 2010-07-30  Bruno Haible  <bruno@clisp.org>
25594
25595         wcwidth: Drop replacement on AIX 7.
25596         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
25597         AIX 7.
25598         Reported by Rainer Tammer.
25599
25600 2010-07-30  Bruno Haible  <bruno@clisp.org>
25601
25602         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
25603         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
25604         a 'char *'.
25605         Reported by Rainer Tammer.
25606
25607 2010-07-30  Bruno Haible  <bruno@clisp.org>
25608
25609         unlink: Update regarding AIX.
25610         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
25611         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
25612         Reported by Rainer Tammer.
25613
25614 2010-07-30  Bruno Haible  <bruno@clisp.org>
25615
25616         symlink: Update regarding AIX.
25617         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
25618         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
25619         Reported by Rainer Tammer.
25620
25621 2010-07-30  Bruno Haible  <bruno@clisp.org>
25622
25623         strndup: Update regarding AIX.
25624         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
25625         AIX 7.
25626         Reported by Rainer Tammer.
25627
25628 2010-07-30  Bruno Haible  <bruno@clisp.org>
25629
25630         stat: Update regarding AIX.
25631         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
25632         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
25633         Reported by Rainer Tammer.
25634
25635 2010-07-30  Bruno Haible  <bruno@clisp.org>
25636
25637         truncl: Fix autoconf test.
25638         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
25639         whether truncl works.
25640         Reported by Rainer Tammer.
25641
25642 2010-07-30  Bruno Haible  <bruno@clisp.org>
25643
25644         round: Update regarding AIX.
25645         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
25646         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
25647         Reported by Rainer Tammer.
25648
25649 2010-07-30  Bruno Haible  <bruno@clisp.org>
25650
25651         rename: Update regarding AIX.
25652         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
25653         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
25654         Reported by Rainer Tammer.
25655
25656 2010-07-30  Bruno Haible  <bruno@clisp.org>
25657
25658         printf.m4: Update regarding AIX.
25659         * m4/printf.m4: Update comments regarding AIX.
25660         Reported by Rainer Tammer.
25661
25662 2010-07-30  Bruno Haible  <bruno@clisp.org>
25663
25664         iconv: Update regarding AIX.
25665         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
25666         AIX 7.
25667         Reported by Rainer Tammer.
25668
25669 2010-07-30  Bruno Haible  <bruno@clisp.org>
25670
25671         getopt: Update regarding AIX.
25672         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
25673         no on AIX.
25674         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
25675         Reported by Rainer Tammer.
25676
25677 2010-07-30  Bruno Haible  <bruno@clisp.org>
25678
25679         ldexpl; Update regarding AIX.
25680         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
25681         on AIX 7.
25682         Reported by Rainer Tammer.
25683
25684 2010-07-30  Bruno Haible  <bruno@clisp.org>
25685
25686         frexpl: Update regarding AIX.
25687         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
25688         on AIX 7.
25689         Reported by Rainer Tammer.
25690
25691 2010-07-30  Bruno Haible  <bruno@clisp.org>
25692
25693         open, fopen: Update regarding AIX.
25694         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
25695         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25696         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
25697         * doc/posix-functions/fopen.texi: Likewise.
25698         Reported by Rainer Tammer.
25699
25700 2010-07-30  Bruno Haible  <bruno@clisp.org>
25701
25702         chown: Update doc regarding AIX.
25703         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
25704         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
25705         Reported by Rainer Tammer.
25706
25707 2010-07-30  Eric Blake  <eblake@redhat.com>
25708
25709         strtod: fix bug in replacement function on AIX
25710         * lib/strtod.c (strtod): Special case broken "0x" parse in
25711         underlying strtod.
25712         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
25713         * doc/posix-functions/strtod.texi (strtod): Likewise.
25714         Reported by Rainer Tammer.
25715
25716 2010-07-30  Bruno Haible  <bruno@clisp.org>
25717
25718         mbrlen: Fix cross-compilation guess for AIX.
25719         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
25720         guess. Leftover from 2008-12-22.
25721
25722 2010-07-30  Bruno Haible  <bruno@clisp.org>
25723
25724         mbrtowc: Fix cross-compilation guess for AIX.
25725         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
25726         guess. Leftover from 2008-12-21.
25727
25728 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
25729
25730         init.sh: work around trap limitation of some shells
25731         * tests/init.sh (setup_): Move exit trap outside of shell function.
25732
25733 2010-07-29  Eric Blake  <eblake@redhat.com>
25734
25735         strtod: aid debugging
25736         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
25737         understanding why strtod is rejected.
25738
25739 2010-07-28  Bruno Haible  <bruno@clisp.org>
25740
25741         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
25742         * lib/unistr/u8-chr.c: Include <string.h>.
25743         * tests/unistr/test-u8-chr.c: Likewise.
25744         * tests/unistr/test-u16-chr.c: Likewise.
25745         * tests/unistr/test-u32-chr.c: Likewise.
25746         * tests/unistr/test-u8-strchr.c: Likewise.
25747         * tests/unistr/test-u16-strchr.c: Likewise.
25748         * tests/unistr/test-u32-strchr.c: Likewise.
25749         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
25750         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
25751         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
25752         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
25753
25754 2010-07-28  Bruno Haible  <bruno@clisp.org>
25755
25756         Use spaces for indentation, not tabs.
25757         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
25758
25759 2010-07-27  Bruno Haible  <bruno@clisp.org>
25760
25761         mbspcasecmp: Fix function specification.
25762         * lib/string.in.h (mbspcasecmp): Fix specification comment.
25763         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
25764         Reported by Eric Blake <eblake@redhat.com>.
25765
25766 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
25767
25768         timespec: use cast and not conditional, as truncation isn't possible
25769         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
25770         instead of a conditional.  Comment about the situation in more detail.
25771         This undoes most of the 2009-10-29 patch.
25772
25773 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
25774
25775         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
25776         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
25777         * lib/unistr/u8-strchr.c: Likewise.
25778         * modules/unistr/u8-chr: Depend on memchr.
25779
25780         unistr/u*-strchr: add tests
25781         * modules/unistr/u8-strchr-tests: New file.
25782         * modules/unistr/u16-strchr-tests: New file.
25783         * modules/unistr/u32-strchr-tests: New file.
25784         * tests/unistr/test-strchr.h: New file.
25785         * tests/unistr/test-u8-strchr.c: New file.
25786         * tests/unistr/test-u16-strchr.c: New file.
25787         * tests/unistr/test-u32-strchr.c: New file.
25788
25789         unistr/u*-chr: test multibyte sequences more
25790         * tests/unistr/test-chr.h: Do complete testing of the characters in the
25791         test vector.
25792         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
25793         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
25794         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
25795
25796         unistr/u*-chr: test multibyte sequences
25797         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
25798
25799         unistr/u*-chr: prepare for multibyte tests
25800         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
25801         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
25802         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
25803         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
25804         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
25805         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
25806
25807 2010-07-18  Bruno Haible  <bruno@clisp.org>
25808
25809         unistr/u8-strchr: Optimize non-ASCII argument case.
25810         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
25811         because the first byte often matches anyway.
25812         Reported by Pádraig Brady <P@draigbrady.com>.
25813
25814 2010-07-15  Karl Berry  <karl@gnu.org>
25815
25816         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
25817
25818 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
25819
25820         getcwd: on Solaris, work better if ancestors are inaccessible
25821         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
25822         buffer and size, try again with a large buffer.  This works better
25823         on Solaris, since its getcwd succeeds even if the path to the root
25824         is inaccessible, and this is helpful in common cases such as .zfs
25825         hidden directories.  Problem reported by J Chapman Flack in
25826         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
25827         Use system getcwd if it's declared, not merely if it's partly
25828         working; use the partly-working test only to avoid needless effort
25829         if the system getcwd fails.
25830         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
25831         comment that was already obsolete and is now even more obsolete.
25832         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
25833         now might call strdup.
25834
25835 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
25836
25837         pthread: Add enough so that coreutils/src/sort.c compiles.
25838         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
25839         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
25840         gnulib. Include <sched.h> and <time.h>, as per POSIX.
25841         Include <sys/types.h>, in case it defines pthread_t.
25842         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
25843         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
25844         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
25845         (pthread_rwlockattr_t, pthread_spinlock_t):
25846         New typedefs, if HAVE_PTHREAD_T is not defined.
25847         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
25848         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
25849         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
25850         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
25851         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
25852         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
25853         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
25854         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
25855         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
25856         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
25857         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
25858         New macros.
25859         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
25860         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
25861         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
25862         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
25863         (pthread_spin_unlock): New dummy functions.
25864         (pthread_create): Return EAGAIN; don't set errno.
25865         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
25866         require AC_C_INLINE.
25867         * modules/pthread (Depends-on): Add sched, time.
25868         (pthread.h): Use AM_V_GEN.
25869
25870 2010-07-13  Bruno Haible  <bruno@clisp.org>
25871
25872         striconveh: Don't malloc memory if the result buffer is sufficient.
25873         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
25874         buffer if its size is sufficient.
25875         Reported by Ludovic Courtès <ludo@gnu.org>.
25876
25877 2010-07-13  Bruno Haible  <bruno@clisp.org>
25878
25879         strtod: Add safety check.
25880         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
25881
25882 2010-07-12  Bruno Haible  <bruno@clisp.org>
25883
25884         Unify tests that set gl_cv_func_ldexpl_no_libm.
25885         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
25886         gl_FUNC_LDEXPL.
25887         (gl_FUNC_LDEXPL): Invoke it.
25888         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
25889
25890 2010-07-12  Bruno Haible  <bruno@clisp.org>
25891
25892         Unify tests that set gl_cv_func_ldexp_no_libm.
25893         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
25894         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
25895         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
25896         (configure.ac): Simply invoke gl_FUNC_LDEXP.
25897         * modules/strtod (Files): Add m4/ldexp.m4.
25898
25899 2010-07-12  Bruno Haible  <bruno@clisp.org>
25900
25901         Unify tests that set gl_cv_func_frexpl_no_libm.
25902         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
25903         gl_FUNC_FREXPL_NO_LIBM.
25904         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
25905         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
25906
25907 2010-07-12  Bruno Haible  <bruno@clisp.org>
25908
25909         Unify tests that set gl_cv_func_frexp_no_libm.
25910         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
25911         gl_FUNC_FREXP_NO_LIBM.
25912         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
25913         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25914
25915 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
25916
25917         memcoll: clarify sizes versus lengths, document better, and tweak perf
25918         * lib/memcoll.c (strcoll_loop, memcoll0):
25919         Improve quality of descriptive comments.  Name variables
25920         consistently as to whether they are lengths (which do not include
25921         terminating null) versus sizes (which do).
25922         * lib/xmemcoll.c (xmemcoll0): Likewise.
25923         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
25924         returned when s1size == 0; this is easier to compile and saves
25925         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
25926
25927 2010-07-12  Bruno Haible  <bruno@clisp.org>
25928
25929         Tests for module '_Exit'.
25930         * modules/_Exit-tests: New file.
25931         * tests/test-_Exit.sh: New file.
25932         * tests/test-_Exit.c: New file.
25933
25934         New module '_Exit'.
25935         * lib/stdlib.in.h (__attribute__): New macro.
25936         (_Exit): New declaration.
25937         * lib/_Exit.c: New file.
25938         * m4/_Exit.m4: New file.
25939         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
25940         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
25941         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
25942         * modules/_Exit: New file.
25943         * tests/test-stdlib-c++.cc (_Exit): Check signature.
25944         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
25945
25946 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
25947
25948         strtod: make it more-accurate typically, and don't require libm
25949         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
25950         Include limits.h.  Don't include string.h.
25951         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
25952         (locale_isspace): New function, so that no casts are needed to
25953         check whether *s is a space.
25954         (ldexp): Provide an unused dummy if not available.
25955         (scale_radix_exp, parse_number, underlying_strtod): New functions.
25956         (strtod): Use them.  This implementation prefers to use the
25957         underlying strtod if available, falling back on our own code
25958         only to fix known bugs.  This is more likely to produce an
25959         accurate result.  Also, it avoids the use of libm functions.
25960         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
25961         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
25962         was absent, but it caused a test failure with coreutils.
25963         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
25964         with libm.
25965         * modules/strtod (Makefile.am, Link): libm is no longer needed.
25966         * modules/strtod-tests (Makefile.am): Likewise.
25967
25968 2010-07-11  Pádraig Brady  <P@draigBrady.com>
25969             Bruno Haible  <bruno@clisp.org>
25970
25971         unistr/u8-strchr: Optimize ASCII argument case.
25972         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
25973
25974 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
25975
25976         (x)memcoll: minor tweaks
25977         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
25978         is after the type that it qualifies.
25979         (memcoll0): Likewise.
25980         * lib/memcoll.h (memcoll0): Likewise.
25981         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
25982         * lib/xmemcoll.h (xmemcoll0): Likewise.
25983         * lib/memcoll.c (memcoll0): Correct the comment.  This function
25984         differs from memcoll in that the NUL byte is part of the argument.
25985         Omit the abort-checks, as performance is a real issue here.  Plus,
25986         the checks were wrong anyway (an off-by-one error).  Omit local
25987         variable 'diff', as it's a bit clearer that way.
25988         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
25989         no longer needed.
25990
25991 2010-07-08  Chen Guo <chenguo4@yahoo.com>
25992
25993         (x)memcoll: speedup when input is known to be NUL delimited
25994         * lib/memcoll.c: Include stdlib.
25995         (memcoll0): New function.
25996         (strcoll_loop): New function, refactored for use in both memcoll
25997         and memcoll0.
25998         * lib/memcoll.h (memcoll0): Add prototype.
25999         * lib/xmemcoll.c (xmemcoll0): New function.
26000         (collate_error): New function, refactored for use in both xmemcoll
26001         and xmemcoll0.
26002         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26003         * m4/memcoll.m4: add inline invocation.
26004
26005 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26006
26007         * build-aux/bootstrap: Remove any local translations
26008         from the translation project synchronization directory,
26009         so that local only translations are not distributed.
26010
26011 2010-07-04  Bruno Haible  <bruno@clisp.org>
26012
26013         fsusage: Clarify which code applies to which platforms.
26014         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
26015         platform.
26016         * lib/fsusage.c (get_fs_usage): Likewise.
26017
26018 2010-07-04  Bruno Haible  <bruno@clisp.org>
26019
26020         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
26021         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
26022         Reported by Martin Lambers <marlam@marlam.de>.
26023
26024 2010-07-04  Jim Meyering  <meyering@redhat.com>
26025
26026         hash: once again explicitly disallow insertion of NULL
26027         * lib/hash.c (hash_insert0): Reinstate just-removed test:
26028         inserting a NULL pointer cannot work with these functions.
26029         Add a comment with details.
26030         This reverts part of the 2010-07-01 commit, 5bef1a35
26031         "hash: extend module to deal with non-pointer keys".
26032
26033 2010-07-01  Bruno Haible  <bruno@clisp.org>
26034
26035         stdbool: Update doc.
26036         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
26037         Info from Christian Weisgerber <naddy@mips.inka.de>.
26038
26039 2010-07-01  Jim Meyering  <meyering@redhat.com>
26040
26041         hash: extend module to deal with non-pointer keys
26042         * lib/hash.c (hash_insert0): New interface, much like hash_insert
26043         but that allows insertion of non-pointer entries.
26044         Do not disallow an ENTRY value of NULL.
26045         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
26046         * lib/hash.h (hash_insert0): Declare.
26047
26048 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26049
26050         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
26051         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
26052         not present (i.e. with autoconf 2.59 and when using gettextize, not
26053         gnulib), require AC_GNU_SOURCE instead.
26054
26055 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
26056
26057         idpriv-drop: Fix tests.
26058         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
26059         not to the test-idpriv-droptemp program.
26060
26061 2010-06-29  Bruno Haible  <bruno@clisp.org>
26062
26063         string: Fix syntax error with g++ 2.96.
26064         * lib/string.in.h (__pure__): Remove definition.
26065         (_GL_ATTRIBUTE_PURE): New macro.
26066         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
26067         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
26068         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26069
26070 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
26071
26072         unitypes: Fix bug introduced on 2010-05-18.
26073         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
26074
26075 2010-06-22  Eric Blake  <eblake@redhat.com>
26076
26077         memmem: slight optimization
26078         * lib/str-two-way.h (critical_factorization): Update comments.
26079         Reduce work during factorization phase.
26080         Reported by Carlos Bueno <carlos@bueno.org>.
26081
26082 2010-06-21  Bruno Haible  <bruno@clisp.org>
26083
26084         Fix HAVE_CALLOC_POSIX misnomer.
26085         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
26086         !HAVE_CALLOC_POSIX.
26087         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
26088         HAVE_CALLOC_POSIX.
26089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
26090         instead of HAVE_CALLOC_POSIX.
26091         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
26092         HAVE_CALLOC_POSIX.
26093
26094         Use modern idiom for calloc() replacement.
26095         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
26096         AC_FUNC_CALLOC.
26097         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
26098         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
26099         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26100         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
26101         (gl_REPLACE_CALLOC): New macro.
26102
26103 2010-06-21  Bruno Haible  <bruno@clisp.org>
26104
26105         Fix HAVE_REALLOC_POSIX misnomer.
26106         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
26107         !HAVE_REALLOC_POSIX.
26108         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
26109         HAVE_REALLOC_POSIX.
26110         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
26111         instead of HAVE_REALLOC_POSIX.
26112         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
26113         HAVE_REALLOC_POSIX.
26114
26115         Use modern idiom for realloc() replacement.
26116         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
26117         AC_FUNC_REALLOC.
26118         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
26119         Autoconf's AC_FUNC_REALLOC.
26120         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26121         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
26122         (gl_REPLACE_REALLOC): New macro.
26123         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26124
26125 2010-06-21  Bruno Haible  <bruno@clisp.org>
26126
26127         Fix HAVE_MALLOC_POSIX misnomer.
26128         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
26129         !HAVE_MALLOC_POSIX.
26130         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
26131         HAVE_MALLOC_POSIX.
26132         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
26133         instead of HAVE_MALLOC_POSIX.
26134         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
26135         HAVE_MALLOC_POSIX.
26136
26137         Use modern idiom for malloc() replacement.
26138         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
26139         AC_FUNC_MALLOC.
26140         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
26141         Autoconf's AC_FUNC_MALLOC.
26142         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26143         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
26144         (gl_REPLACE_MALLOC): New macro.
26145         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26146
26147 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
26148
26149         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
26150         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
26151         This macro takes 3 arguments, not 4.
26152
26153 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
26154
26155         ipv6: fix detection under mingw
26156         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
26157         in6_addr.
26158
26159 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
26160
26161         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
26162         that strtod() works when cross-compiling to a glibc version known
26163         to work.
26164
26165 2010-06-15  Bruno Haible  <bruno@clisp.org>
26166
26167         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
26168
26169 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
26170
26171         select: Correct timeout.
26172         * lib/select.c (rpl_select): Compute wait_timeout correctly.
26173
26174 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26175
26176         git-version-gen: init shell var to avoid env var influence
26177         * build-aux/git-version-gen (v): Init shell var to empty.
26178
26179 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
26180
26181         priv-set: Don't assume that priv.h exists merely because getppriv does.
26182         See Jan Andersen's bug report about AIX 5L in
26183         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
26184         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
26185         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
26186         * lib/priv-set.h: Likewise.
26187         * tests/test-priv-set.c: Likewise.
26188
26189 2010-06-13  Bruno Haible  <bruno@clisp.org>
26190
26191         relocatable: Make it easier to test whether to install wrappers.
26192         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
26193         RELOCATABLE_VIA_WRAPPER.
26194
26195 2010-06-13  Bruno Haible  <bruno@clisp.org>
26196
26197         gnulib-tool: Display specified modules and dependencies differently.
26198         * gnulib-tool (func_show_module_list): New function.
26199         (func_import, func_create_testdir): Invoke it.
26200         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26201
26202 2010-06-13  Bruno Haible  <bruno@clisp.org>
26203
26204         gnulib-tool: Align code of func_import and func_create_testdir.
26205         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
26206         specified_modules.
26207
26208 2010-06-12  Jim Meyering  <meyering@redhat.com>
26209
26210         test-inttostr: avoid spurious failure on Solaris 9
26211         * tests/test-inttostr.c (main): Skip the test when snprintf fails
26212         to accept "%ju".  Reported by Bruno Haible.
26213
26214 2010-06-11  Jim Meyering  <meyering@redhat.com>
26215
26216         test-sys_socket: mark variables as used more readably
26217         * tests/test-sys_socket.c (main): Mark otherwise unused variables
26218         as "used" explicitly via (void) statement casts.  This is more
26219         readable than using them in an artificial return expression.
26220         Suggestion from Bruno Haible.
26221
26222 2010-06-11  Bruno Haible  <bruno@clisp.org>
26223
26224         Avoid some more warnings from "gcc -Wwrite-strings".
26225         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
26226         to 'const char *'.
26227         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
26228         * tests/test-c-strcasestr.c (main): Likewise.
26229         * tests/test-mbscasestr1.c (main): Likewise.
26230         * tests/test-mbscasestr2.c (main): Likewise.
26231         * tests/test-memmem.c (main): Likewise.
26232         * tests/test-strstr.c (main): Likewise.
26233         * tests/test-strcasestr.c (main): Likewise.
26234
26235 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26236
26237         init.sh: change framework_failure_ to fail with status 99, not 1
26238         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
26239         automake's parallel-tests rule that this is an unexpected failure,
26240         even if the test is listed in XFAIL_TESTS.
26241
26242 2010-06-11  Jim Meyering  <meyering@redhat.com>
26243
26244         test-inttostr: avoid warnings about 4-6KB literal strings
26245         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
26246         Include "macros.h", for its definition of ASSERT.
26247         (CK): s/assert/ASSERT/
26248         * modules/inttostr-tests (Files): Add macros.h.
26249
26250         init.sh: don't use $ME_ or skip_ before they are defined
26251         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
26252         their first uses.  Also hoist their companions: warn_, fail_,
26253         framework_failure_, $stderr_fileno.  Prompted by a patch from
26254         Stefano Lattarini.
26255
26256         test-sys_socket: avoid set-but-not-used warnings from gcc
26257         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
26258         avoid warning about set-but-not-used variables.
26259
26260         test-xvasprintf: avoid 'const' discard warnings
26261         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
26262         "const" when assigning from literal strings.
26263         (test_xasprintf): Add "void" in function argument list to placate
26264         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
26265
26266         tests: avoid compilation warnings in argmatch and exclude tests...
26267         in packages that define ARGMATCH_DIE_DECL, like coreutils.
26268         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
26269         Since it always exits, declare with the "noreturn" attribute.
26270         * tests/test-argmatch.c: Likewise.
26271
26272         tests: avoid 'const' discard warnings in mbsstr tests
26273         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
26274         * tests/test-mbsstr2.c (main): Likewise.
26275
26276         test-verify: avoid warning from gcc's -Wmissing-declarations
26277         * tests/test-verify.c (function): Declare to be static.
26278
26279         test-inttostr.c: include <string.h> for use of strcmp
26280         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
26281
26282         test-linkat: avoid failed assertion on "other" architectures
26283         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
26284         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
26285         sparc: https://bugs.launchpad.net/bugs/591968
26286
26287 2010-06-11  Jim Meyering  <meyering@redhat.com>
26288
26289         printf.m4: avoid autoconf's "Expanded Before Required" warning
26290         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
26291         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
26292         autoconf warning.
26293
26294 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
26295
26296         Replacement header templates are now named with ".in", not "_".
26297         * doc/gnulib-intro.texi: Correct.
26298
26299 2010-06-10  Jim Meyering  <meyering@redhat.com>
26300
26301         inttostr-tests: depend on snprintf, not snprintf-posix
26302         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
26303         snprintf-posix, to avoid this aclocal failure:
26304           missing file gnulib-tests/vasnprintf.c
26305           configure.ac:45: error: expected source file, required through \
26306           AC_LIBSOURCES, not found
26307
26308 2010-06-10  Jim Meyering  <meyering@redhat.com>
26309
26310         inttostr: add a new function, inttostr, and tests
26311         The namesake function was not available.  The existence of the
26312         template file, inttostr.c makes its addition nontrivial.
26313         * lib/anytostr.c: Rename from inttostr.c.
26314         (anytostr): Rename from inttostr.
26315         * lib/inttostr.c: New file.
26316         * modules/inttostr (Files): Add anytostr.c.
26317         (Makefile.am): Set lib_SOURCES instead of ...
26318         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
26319         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
26320         * lib/offtostr.c: Likewise.
26321         * lib/uinttostr.c: Likewise.
26322         * lib/umaxtostr.c: Likewise.
26323         * modules/inttostr-tests: New file.
26324         * tests/test-inttostr.c: New file.  Test these functions.
26325
26326 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
26327             Bruno Haible  <bruno@clisp.org>
26328
26329         Add "Extending Gnulib" chapter to manual.
26330         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
26331         chapter.
26332         (Extending Gnulib): New chapter.
26333         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
26334         chapter.
26335
26336 2010-06-09  Bruno Haible  <bruno@clisp.org>
26337
26338         Avoid relocwrapper link errors due to gnulib replacement functions.
26339         * lib/areadlink.c: Use the system's malloc, realloc functions.
26340         (areadlink): Set errno to ENOMEM explicitly.
26341         * modules/areadlink (Depends-on): Remove malloc-posix.
26342         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26343
26344 2010-06-09  Bruno Haible  <bruno@clisp.org>
26345
26346         Avoid relocwrapper link errors due to gnulib replacement functions.
26347         * lib/canonicalize-lgpl.c: Use the system's malloc function.
26348         * lib/malloca.c: Likewise.
26349         * lib/relocatable.c: Likewise.
26350         * lib/progreloc.c: Use the system's malloc, sprintf functions.
26351         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
26352         * lib/setenv.c: Use the system's malloc, realloc functions.
26353         * lib/strerror.c: Use the system's sprintf function.
26354         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26355
26356 2010-06-04  Bruno Haible  <bruno@clisp.org>
26357
26358         Prefer documented low-level autoconf macro names.
26359         * m4/lib-link.m4: Use m4_translit instead of translit.
26360         * m4/environ.m4: Likewise.
26361         * m4/mathfunc.m4: Likewise.
26362         * m4/onceonly.m4: Likewise.
26363         * m4/stdint.m4: Likewise.
26364         Suggested by Eric Blake.
26365
26366 2010-06-04  Martin Lambers  <marlam@marlam.de>
26367             Bruno Haible  <bruno@clisp.org>
26368
26369         havelib: Allow library names with '+' characters.
26370         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26371         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
26372
26373 2010-06-09  Bruno Haible  <bruno@clisp.org>
26374
26375         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
26376         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
26377         realloc failed.
26378
26379 2010-06-08  Peter Simons  <simons@cryp.to>
26380
26381         maint.mk: make the news-check rule more configurable
26382         * top/maint.mk (news-check-lines-spec): New variable.
26383         (news-check): Use "sed -n 1,10p" in place of "head".
26384
26385 2010-06-07  Jim Meyering  <meyering@redhat.com>
26386
26387         do-release-commit-and-tag: fix typo in --help
26388         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
26389
26390         regex: avoid new dead-code warning with gcc-4.6.0
26391         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
26392         if-block containing a while-loop.  It's been unused for at least
26393         5 years.
26394
26395 2010-06-05  Bruno Haible  <bruno@clisp.org>
26396
26397         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
26398         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
26399
26400 2010-06-04  Bruno Haible  <bruno@clisp.org>
26401
26402         Update to GNU gettext 0.18.1.
26403         * modules/gettext (configure.ac): Require gettext infrastructure from
26404         version 0.18.1.
26405
26406 2010-06-03  Bruno Haible  <bruno@clisp.org>
26407
26408         Don't use AC_LIBOBJ with file names in subdirectories.
26409         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
26410         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
26411         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
26412         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
26413         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
26414         gl_LIBUNISTRING_LIBSOURCE.
26415         (Makefile.am): Augment lib_SOURCES here, conditionally.
26416         * NEWS: Drop requirement for Automake option 'subdir-objects'.
26417
26418 2010-06-03  Bruno Haible  <bruno@clisp.org>
26419
26420         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
26421         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
26422         expansion does not end with a newline.
26423         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
26424         unnecessary newline.
26425
26426 2010-06-03  Bruno Haible  <bruno@clisp.org>
26427
26428         Reduce dependencies.
26429         * tests/test-quotearg.h: New file, extracted from
26430         tests/test-quotearg.c.
26431         * tests/test-quotearg-simple.c: New file, extracted from
26432         tests/test-quotearg.c.
26433         * tests/test-quotearg.c: Don't include <ctype.h>.
26434         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
26435         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
26436         use_quote_double_quotes, use_quotearg_colon): Moved to
26437         tests/test-quotearg.h.
26438         (results_g, flag_results, custom_quotes, custom_results): Moved
26439         to tests/test-quotearg-simple.c.
26440         (main): Moved the part that does not depend on gettext to
26441         tests/test-quotearg-simple.c. Return 77 if the test cannot be
26442         performed.
26443         * modules/quotearg-simple: New file.
26444         * modules/quotearg-simple-tests: New file.
26445         * modules/quotearg (Depends-on): Add quotearg-simple.
26446         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
26447         (Files): Add tests/test-quotearg.h.
26448         Reported by Paolo Bonzini.
26449
26450 2010-06-03  Bruno Haible  <bruno@clisp.org>
26451
26452         Reduce dependencies.
26453         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
26454
26455 2010-06-03  Bruno Haible  <bruno@clisp.org>
26456
26457         time: Undefine more broken macros.
26458         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
26459         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
26460         Reported by Eric Blake.
26461
26462 2010-06-03  Bruno Haible  <bruno@clisp.org>
26463
26464         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
26465         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
26466         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
26467         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
26468         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
26469         Reported by Ludovic Courtès <ludo@gnu.org>.
26470
26471 2010-06-02  Eric Blake  <eblake@redhat.com>
26472
26473         time: work with mingw + pthreads-win32 library
26474         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
26475         if timespec is defined only in pthread.h.
26476         * modules/time (Makefile.am): Substitute it.
26477         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
26478         <pthread.h>, when needed.
26479         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
26480         from the library.
26481
26482 2010-05-31  Bruno Haible  <bruno@clisp.org>
26483
26484         Avoid expanding two macros in the wrong order.
26485         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
26486         gl_LIBUNISTRING if it is defined.
26487         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
26488         autoconf >= 2.64.
26489         Reported by Ludovic Courtès <ludo@gnu.org>.
26490
26491 2010-05-27  Jim Meyering  <meyering@redhat.com>
26492
26493         maint.mk: also prohibit "#undef" of always-defined symbols
26494         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
26495         Allow more than one space before the symbol name.
26496         (sc_prohibit_always-defined_macros): Use grep's -E, now that
26497         the regexp uses alternation.
26498
26499 2010-05-26  Eric Blake  <eblake@redhat.com>
26500
26501         maint.mk: avoid echo -e
26502         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
26503         Convert all uses of echo -* to printf.
26504         Reported by Matthias Bolte.
26505
26506 2010-05-25  Bruno Haible  <bruno@clisp.org>
26507
26508         Update to GNU gettext 0.18, part 2.
26509         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
26510         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
26511
26512 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26513
26514         Add missing include in test-pwrite.c.
26515         * tests/test-pwrite.c: Include string.h, for strcmp.
26516
26517 2010-05-24  Bruno Haible  <bruno@clisp.org>
26518
26519         * NEWS: Mention requirement for Automake option 'subdir-objects'.
26520
26521 2010-05-24  Bruno Haible  <bruno@clisp.org>
26522
26523         Don't use conversion with transliteration in u{8,16,32}_strcoll.
26524         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
26525         iconveh_error argument.
26526         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
26527         U_STRCONV_TO_LOCALE.
26528         * lib/unistr/u16-strcoll.c: Likewise.
26529         * lib/unistr/u32-strcoll.c: Likewise.
26530         * modules/unistr/u8-strcoll (Depends-on): Add
26531         uniconv/u8-strconv-to-enc, localcharset. Remove
26532         uniconv/u8-strconv-to-locale.
26533         (configure.ac): Bump version number.
26534         * modules/unistr/u16-strcoll (Depends-on): Add
26535         uniconv/u16-strconv-to-enc, localcharset. Remove
26536         uniconv/u16-strconv-to-locale.
26537         (configure.ac): Bump version number.
26538         * modules/unistr/u32-strcoll (Depends-on): Add
26539         uniconv/u32-strconv-to-enc, localcharset. Remove
26540         uniconv/u32-strconv-to-locale.
26541         (configure.ac): Bump version number.
26542
26543 2010-05-24  Bruno Haible  <bruno@clisp.org>
26544
26545         Avoid a test failure on NetBSD 5.0.
26546         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
26547         an iconv() bug.
26548
26549 2010-05-24  Bruno Haible  <bruno@clisp.org>
26550
26551         Adjust #include directive style.
26552         * modules/regex (Includes): Recommend to write <regex.h>.
26553
26554 2010-05-24  Bruno Haible  <bruno@clisp.org>
26555
26556         regex: Don't require alloca.
26557         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
26558         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
26559         only inside if (0).
26560
26561 2010-05-23  Jim Meyering  <meyering@redhat.com>
26562
26563         test-renameat.c: include <sys/stat.h>
26564         * tests/test-renameat.c: Include <sys/stat.h>; required for
26565         definition of S_IS* macros.
26566
26567 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
26568
26569         Update maintainer documentation for 'relocatable-prog' module.
26570         * doc/relocatable-maint.texi: Update.
26571         Comments by Bruno Haible.
26572
26573 2010-05-23  Bruno Haible  <bruno@clisp.org>
26574
26575         git-merge-changelog: Enable --split-merged-entry by default.
26576         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
26577         (usage): Don't mention this option any more.
26578         Reported by Ralf Wildenhues.
26579
26580 2010-05-23  Jim Meyering  <meyering@redhat.com>
26581
26582         test-pwrite: do not leave behind a test file named "out"
26583         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
26584         The trivial-looking use of init.sh is really necessary.
26585         It ensures that the temporary file, "out", is created in
26586         a temporary directory, and removed upon termination.
26587         * tests/test-pwrite.sh: Re-add file.
26588         * modules/pwrite-tests: Reference it.
26589
26590 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26591
26592         Fix output redirection buglet in init.sh.
26593         * tests/init.sh: Fix redirection of stderr.
26594
26595 2010-05-20  Simon Josefsson  <simon@josefsson.org>
26596
26597         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
26598
26599 2010-05-17  Simon Josefsson  <simon@josefsson.org>
26600
26601         * modules/valgrind-tests: New file.
26602         * m4/valgrind-tests.m4: New file.
26603         * doc/valgrind-tests.texi: New file.
26604         * doc/gnulib.texi (Running self-tests under valgrind): New
26605         section.
26606
26607 2010-05-19  Bruno Haible  <bruno@clisp.org>
26608
26609         Clean up dead code in recent commit.
26610         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
26611         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
26612         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
26613         Suggested by Paolo Bonzini.
26614
26615 2010-05-19  Bruno Haible  <bruno@clisp.org>
26616
26617         Avoid valgrind error reports from libunistring.
26618         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
26619         * modules/libunistring (Files): Add it.
26620         * modules/libunistring-optional (Files): Likewise.
26621
26622 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
26623             Bruno Haible  <bruno@clisp.org>
26624
26625         New module 'libunistring-optional'.
26626         * modules/libunistring-optional: New file.
26627         * m4/libunistring-base.m4: New file.
26628         * m4/libunistring-optional.m4: New file.
26629         * lib/unicase.in.h: Renamed from lib/unicase.h.
26630         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
26631         * lib/unictype.in.h: Renamed from lib/unictype.h.
26632         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
26633         * lib/uniname.in.h: Renamed from lib/uniname.h.
26634         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
26635         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
26636         * lib/unistr.in.h: Renamed from lib/unistr.h.
26637         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
26638         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
26639         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
26640         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
26641         gl_LIBUNISTRING. If the library was found, determine the installed
26642         version and set LIBUNISTRING_VERSION.
26643         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
26644         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
26645         handle a configuration option --with-included-libunistring.
26646         * modules/libunistring (Files): Add m4/absolute-header.m4.
26647         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
26648         Add m4/libunistring-base.m4.
26649         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26650         (Makefile.am): Build unicase.h from unicase.in.h.
26651         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
26652         Add m4/libunistring-base.m4.
26653         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26654         (Makefile.am): Build uniconv.h from uniconv.in.h.
26655         * modules/unictype/base (Files): Use unictype.in.h instead of
26656         unictype.h. Add m4/libunistring-base.m4.
26657         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26658         (Makefile.am): Build unictype.h from unictype.in.h.
26659         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
26660         Add m4/libunistring-base.m4.
26661         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26662         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
26663         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
26664         Add m4/libunistring-base.m4.
26665         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26666         (Makefile.am): Build uniname.h from uniname.in.h.
26667         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
26668         Add m4/libunistring-base.m4.
26669         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26670         (Makefile.am): Build uninorm.h from uninorm.in.h.
26671         * modules/unistdio/base (Files): Use unistdio.in.h instead of
26672         unistdio.h. Add m4/libunistring-base.m4.
26673         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26674         (Makefile.am): Build unistdio.h from unistdio.in.h.
26675         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
26676         Add m4/libunistring-base.m4.
26677         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26678         (Makefile.am): Build unistr.h from unistr.in.h.
26679         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
26680         Add m4/libunistring-base.m4.
26681         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26682         (Makefile.am): Build unitypes.h from unitypes.in.h.
26683         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
26684         Add m4/libunistring-base.m4.
26685         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26686         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
26687         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
26688         uniwidth.h. Add m4/libunistring-base.m4.
26689         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26690         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
26691         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
26692         instead of augmenting lib_SOURCES.
26693         * modules/unicase/empty-suffix-context: Likewise.
26694         * modules/unicase/locale-language: Likewise.
26695         * modules/unicase/tolower: Likewise.
26696         * modules/unicase/totitle: Likewise.
26697         * modules/unicase/toupper: Likewise.
26698         * modules/unicase/u8-casecmp: Likewise.
26699         * modules/unicase/u8-casecoll: Likewise.
26700         * modules/unicase/u8-casefold: Likewise.
26701         * modules/unicase/u8-casexfrm: Likewise.
26702         * modules/unicase/u8-ct-casefold: Likewise.
26703         * modules/unicase/u8-ct-tolower: Likewise.
26704         * modules/unicase/u8-ct-totitle: Likewise.
26705         * modules/unicase/u8-ct-toupper: Likewise.
26706         * modules/unicase/u8-is-cased: Likewise.
26707         * modules/unicase/u8-is-casefolded: Likewise.
26708         * modules/unicase/u8-is-lowercase: Likewise.
26709         * modules/unicase/u8-is-titlecase: Likewise.
26710         * modules/unicase/u8-is-uppercase: Likewise.
26711         * modules/unicase/u8-prefix-context: Likewise.
26712         * modules/unicase/u8-suffix-context: Likewise.
26713         * modules/unicase/u8-tolower: Likewise.
26714         * modules/unicase/u8-totitle: Likewise.
26715         * modules/unicase/u8-toupper: Likewise.
26716         * modules/unicase/u16-casecmp: Likewise.
26717         * modules/unicase/u16-casecoll: Likewise.
26718         * modules/unicase/u16-casefold: Likewise.
26719         * modules/unicase/u16-casexfrm: Likewise.
26720         * modules/unicase/u16-ct-casefold: Likewise.
26721         * modules/unicase/u16-ct-tolower: Likewise.
26722         * modules/unicase/u16-ct-totitle: Likewise.
26723         * modules/unicase/u16-ct-toupper: Likewise.
26724         * modules/unicase/u16-is-cased: Likewise.
26725         * modules/unicase/u16-is-casefolded: Likewise.
26726         * modules/unicase/u16-is-lowercase: Likewise.
26727         * modules/unicase/u16-is-titlecase: Likewise.
26728         * modules/unicase/u16-is-uppercase: Likewise.
26729         * modules/unicase/u16-prefix-context: Likewise.
26730         * modules/unicase/u16-suffix-context: Likewise.
26731         * modules/unicase/u16-tolower: Likewise.
26732         * modules/unicase/u16-totitle: Likewise.
26733         * modules/unicase/u16-toupper: Likewise.
26734         * modules/unicase/u32-casecmp: Likewise.
26735         * modules/unicase/u32-casecoll: Likewise.
26736         * modules/unicase/u32-casefold: Likewise.
26737         * modules/unicase/u32-casexfrm: Likewise.
26738         * modules/unicase/u32-ct-casefold: Likewise.
26739         * modules/unicase/u32-ct-tolower: Likewise.
26740         * modules/unicase/u32-ct-totitle: Likewise.
26741         * modules/unicase/u32-ct-toupper: Likewise.
26742         * modules/unicase/u32-is-cased: Likewise.
26743         * modules/unicase/u32-is-casefolded: Likewise.
26744         * modules/unicase/u32-is-lowercase: Likewise.
26745         * modules/unicase/u32-is-titlecase: Likewise.
26746         * modules/unicase/u32-is-uppercase: Likewise.
26747         * modules/unicase/u32-prefix-context: Likewise.
26748         * modules/unicase/u32-suffix-context: Likewise.
26749         * modules/unicase/u32-tolower: Likewise.
26750         * modules/unicase/u32-totitle: Likewise.
26751         * modules/unicase/u32-toupper: Likewise.
26752         * modules/unicase/ulc-casecmp: Likewise.
26753         * modules/unicase/ulc-casecoll: Likewise.
26754         * modules/unicase/ulc-casexfrm: Likewise.
26755         * modules/uniconv/u8-conv-from-enc: Likewise.
26756         * modules/uniconv/u8-conv-to-enc: Likewise.
26757         * modules/uniconv/u8-strconv-from-enc: Likewise.
26758         * modules/uniconv/u8-strconv-from-locale: Likewise.
26759         * modules/uniconv/u8-strconv-to-enc: Likewise.
26760         * modules/uniconv/u8-strconv-to-locale: Likewise.
26761         * modules/uniconv/u16-conv-from-enc: Likewise.
26762         * modules/uniconv/u16-conv-to-enc: Likewise.
26763         * modules/uniconv/u16-strconv-from-enc: Likewise.
26764         * modules/uniconv/u16-strconv-from-locale: Likewise.
26765         * modules/uniconv/u16-strconv-to-enc: Likewise.
26766         * modules/uniconv/u16-strconv-to-locale: Likewise.
26767         * modules/uniconv/u32-conv-from-enc: Likewise.
26768         * modules/uniconv/u32-conv-to-enc: Likewise.
26769         * modules/uniconv/u32-strconv-from-enc: Likewise.
26770         * modules/uniconv/u32-strconv-from-locale: Likewise.
26771         * modules/uniconv/u32-strconv-to-enc: Likewise.
26772         * modules/uniconv/u32-strconv-to-locale: Likewise.
26773         * modules/unictype/bidicategory-byname: Likewise.
26774         * modules/unictype/bidicategory-name: Likewise.
26775         * modules/unictype/bidicategory-of: Likewise.
26776         * modules/unictype/bidicategory-test: Likewise.
26777         * modules/unictype/block-list: Likewise.
26778         * modules/unictype/block-test: Likewise.
26779         * modules/unictype/category-C: Likewise.
26780         * modules/unictype/category-Cc: Likewise.
26781         * modules/unictype/category-Cf: Likewise.
26782         * modules/unictype/category-Cn: Likewise.
26783         * modules/unictype/category-Co: Likewise.
26784         * modules/unictype/category-Cs: Likewise.
26785         * modules/unictype/category-L: Likewise.
26786         * modules/unictype/category-Ll: Likewise.
26787         * modules/unictype/category-Lm: Likewise.
26788         * modules/unictype/category-Lo: Likewise.
26789         * modules/unictype/category-Lt: Likewise.
26790         * modules/unictype/category-Lu: Likewise.
26791         * modules/unictype/category-M: Likewise.
26792         * modules/unictype/category-Mc: Likewise.
26793         * modules/unictype/category-Me: Likewise.
26794         * modules/unictype/category-Mn: Likewise.
26795         * modules/unictype/category-N: Likewise.
26796         * modules/unictype/category-Nd: Likewise.
26797         * modules/unictype/category-Nl: Likewise.
26798         * modules/unictype/category-No: Likewise.
26799         * modules/unictype/category-P: Likewise.
26800         * modules/unictype/category-Pc: Likewise.
26801         * modules/unictype/category-Pd: Likewise.
26802         * modules/unictype/category-Pe: Likewise.
26803         * modules/unictype/category-Pf: Likewise.
26804         * modules/unictype/category-Pi: Likewise.
26805         * modules/unictype/category-Po: Likewise.
26806         * modules/unictype/category-Ps: Likewise.
26807         * modules/unictype/category-S: Likewise.
26808         * modules/unictype/category-Sc: Likewise.
26809         * modules/unictype/category-Sk: Likewise.
26810         * modules/unictype/category-Sm: Likewise.
26811         * modules/unictype/category-So: Likewise.
26812         * modules/unictype/category-Z: Likewise.
26813         * modules/unictype/category-Zl: Likewise.
26814         * modules/unictype/category-Zp: Likewise.
26815         * modules/unictype/category-Zs: Likewise.
26816         * modules/unictype/category-and: Likewise.
26817         * modules/unictype/category-and-not: Likewise.
26818         * modules/unictype/category-byname: Likewise.
26819         * modules/unictype/category-name: Likewise.
26820         * modules/unictype/category-none: Likewise.
26821         * modules/unictype/category-of: Likewise.
26822         * modules/unictype/category-or: Likewise.
26823         * modules/unictype/category-test: Likewise.
26824         * modules/unictype/combining-class: Likewise.
26825         * modules/unictype/ctype-alnum: Likewise.
26826         * modules/unictype/ctype-alpha: Likewise.
26827         * modules/unictype/ctype-blank: Likewise.
26828         * modules/unictype/ctype-cntrl: Likewise.
26829         * modules/unictype/ctype-digit: Likewise.
26830         * modules/unictype/ctype-graph: Likewise.
26831         * modules/unictype/ctype-lower: Likewise.
26832         * modules/unictype/ctype-print: Likewise.
26833         * modules/unictype/ctype-punct: Likewise.
26834         * modules/unictype/ctype-space: Likewise.
26835         * modules/unictype/ctype-upper: Likewise.
26836         * modules/unictype/ctype-xdigit: Likewise.
26837         * modules/unictype/decimal-digit: Likewise.
26838         * modules/unictype/digit: Likewise.
26839         * modules/unictype/mirror: Likewise.
26840         * modules/unictype/numeric: Likewise.
26841         * modules/unictype/property-alphabetic: Likewise.
26842         * modules/unictype/property-ascii-hex-digit: Likewise.
26843         * modules/unictype/property-bidi-arabic-digit: Likewise.
26844         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
26845         * modules/unictype/property-bidi-block-separator: Likewise.
26846         * modules/unictype/property-bidi-boundary-neutral: Likewise.
26847         * modules/unictype/property-bidi-common-separator: Likewise.
26848         * modules/unictype/property-bidi-control: Likewise.
26849         * modules/unictype/property-bidi-embedding-or-override: Likewise.
26850         * modules/unictype/property-bidi-eur-num-separator: Likewise.
26851         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
26852         * modules/unictype/property-bidi-european-digit: Likewise.
26853         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
26854         * modules/unictype/property-bidi-left-to-right: Likewise.
26855         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
26856         * modules/unictype/property-bidi-other-neutral: Likewise.
26857         * modules/unictype/property-bidi-pdf: Likewise.
26858         * modules/unictype/property-bidi-segment-separator: Likewise.
26859         * modules/unictype/property-bidi-whitespace: Likewise.
26860         * modules/unictype/property-byname: Likewise.
26861         * modules/unictype/property-combining: Likewise.
26862         * modules/unictype/property-composite: Likewise.
26863         * modules/unictype/property-currency-symbol: Likewise.
26864         * modules/unictype/property-dash: Likewise.
26865         * modules/unictype/property-decimal-digit: Likewise.
26866         * modules/unictype/property-default-ignorable-code-point: Likewise.
26867         * modules/unictype/property-deprecated: Likewise.
26868         * modules/unictype/property-diacritic: Likewise.
26869         * modules/unictype/property-extender: Likewise.
26870         * modules/unictype/property-format-control: Likewise.
26871         * modules/unictype/property-grapheme-base: Likewise.
26872         * modules/unictype/property-grapheme-extend: Likewise.
26873         * modules/unictype/property-grapheme-link: Likewise.
26874         * modules/unictype/property-hex-digit: Likewise.
26875         * modules/unictype/property-hyphen: Likewise.
26876         * modules/unictype/property-id-continue: Likewise.
26877         * modules/unictype/property-id-start: Likewise.
26878         * modules/unictype/property-ideographic: Likewise.
26879         * modules/unictype/property-ids-binary-operator: Likewise.
26880         * modules/unictype/property-ids-trinary-operator: Likewise.
26881         * modules/unictype/property-ignorable-control: Likewise.
26882         * modules/unictype/property-iso-control: Likewise.
26883         * modules/unictype/property-join-control: Likewise.
26884         * modules/unictype/property-left-of-pair: Likewise.
26885         * modules/unictype/property-line-separator: Likewise.
26886         * modules/unictype/property-logical-order-exception: Likewise.
26887         * modules/unictype/property-lowercase: Likewise.
26888         * modules/unictype/property-math: Likewise.
26889         * modules/unictype/property-non-break: Likewise.
26890         * modules/unictype/property-not-a-character: Likewise.
26891         * modules/unictype/property-numeric: Likewise.
26892         * modules/unictype/property-other-alphabetic: Likewise.
26893         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
26894         * modules/unictype/property-other-grapheme-extend: Likewise.
26895         * modules/unictype/property-other-id-continue: Likewise.
26896         * modules/unictype/property-other-id-start: Likewise.
26897         * modules/unictype/property-other-lowercase: Likewise.
26898         * modules/unictype/property-other-math: Likewise.
26899         * modules/unictype/property-other-uppercase: Likewise.
26900         * modules/unictype/property-paired-punctuation: Likewise.
26901         * modules/unictype/property-paragraph-separator: Likewise.
26902         * modules/unictype/property-pattern-syntax: Likewise.
26903         * modules/unictype/property-pattern-white-space: Likewise.
26904         * modules/unictype/property-private-use: Likewise.
26905         * modules/unictype/property-punctuation: Likewise.
26906         * modules/unictype/property-quotation-mark: Likewise.
26907         * modules/unictype/property-radical: Likewise.
26908         * modules/unictype/property-sentence-terminal: Likewise.
26909         * modules/unictype/property-soft-dotted: Likewise.
26910         * modules/unictype/property-space: Likewise.
26911         * modules/unictype/property-terminal-punctuation: Likewise.
26912         * modules/unictype/property-test: Likewise.
26913         * modules/unictype/property-titlecase: Likewise.
26914         * modules/unictype/property-unassigned-code-value: Likewise.
26915         * modules/unictype/property-unified-ideograph: Likewise.
26916         * modules/unictype/property-uppercase: Likewise.
26917         * modules/unictype/property-variation-selector: Likewise.
26918         * modules/unictype/property-white-space: Likewise.
26919         * modules/unictype/property-xid-continue: Likewise.
26920         * modules/unictype/property-xid-start: Likewise.
26921         * modules/unictype/property-zero-width: Likewise.
26922         * modules/unictype/scripts: Likewise.
26923         * modules/unictype/syntax-c-ident: Likewise.
26924         * modules/unictype/syntax-c-whitespace: Likewise.
26925         * modules/unictype/syntax-java-ident: Likewise.
26926         * modules/unictype/syntax-java-whitespace: Likewise.
26927         * modules/unilbrk/u8-possible-linebreaks: Likewise.
26928         * modules/unilbrk/u8-width-linebreaks: Likewise.
26929         * modules/unilbrk/u16-possible-linebreaks: Likewise.
26930         * modules/unilbrk/u16-width-linebreaks: Likewise.
26931         * modules/unilbrk/u32-possible-linebreaks: Likewise.
26932         * modules/unilbrk/u32-width-linebreaks: Likewise.
26933         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
26934         * modules/unilbrk/ulc-width-linebreaks: Likewise.
26935         * modules/uniname/uniname: Likewise.
26936         * modules/uninorm/canonical-decomposition: Likewise.
26937         * modules/uninorm/composition: Likewise.
26938         * modules/uninorm/decomposing-form: Likewise.
26939         * modules/uninorm/decomposition: Likewise.
26940         * modules/uninorm/filter: Likewise.
26941         * modules/uninorm/nfc: Likewise.
26942         * modules/uninorm/nfd: Likewise.
26943         * modules/uninorm/nfkc: Likewise.
26944         * modules/uninorm/nfkd: Likewise.
26945         * modules/uninorm/u8-normalize: Likewise.
26946         * modules/uninorm/u8-normcmp: Likewise.
26947         * modules/uninorm/u8-normcoll: Likewise.
26948         * modules/uninorm/u8-normxfrm: Likewise.
26949         * modules/uninorm/u16-normalize: Likewise.
26950         * modules/uninorm/u16-normcmp: Likewise.
26951         * modules/uninorm/u16-normcoll: Likewise.
26952         * modules/uninorm/u16-normxfrm: Likewise.
26953         * modules/uninorm/u32-normalize: Likewise.
26954         * modules/uninorm/u32-normcmp: Likewise.
26955         * modules/uninorm/u32-normcoll: Likewise.
26956         * modules/uninorm/u32-normxfrm: Likewise.
26957         * modules/unistdio/u8-asnprintf: Likewise.
26958         * modules/unistdio/u8-asprintf: Likewise.
26959         * modules/unistdio/u8-snprintf: Likewise.
26960         * modules/unistdio/u8-sprintf: Likewise.
26961         * modules/unistdio/u8-u8-asnprintf: Likewise.
26962         * modules/unistdio/u8-u8-asprintf: Likewise.
26963         * modules/unistdio/u8-u8-snprintf: Likewise.
26964         * modules/unistdio/u8-u8-sprintf: Likewise.
26965         * modules/unistdio/u8-u8-vasnprintf: Likewise.
26966         * modules/unistdio/u8-u8-vasprintf: Likewise.
26967         * modules/unistdio/u8-u8-vsnprintf: Likewise.
26968         * modules/unistdio/u8-u8-vsprintf: Likewise.
26969         * modules/unistdio/u8-vasnprintf: Likewise.
26970         * modules/unistdio/u8-vasprintf: Likewise.
26971         * modules/unistdio/u8-vsnprintf: Likewise.
26972         * modules/unistdio/u8-vsprintf: Likewise.
26973         * modules/unistdio/u16-asnprintf: Likewise.
26974         * modules/unistdio/u16-asprintf: Likewise.
26975         * modules/unistdio/u16-snprintf: Likewise.
26976         * modules/unistdio/u16-sprintf: Likewise.
26977         * modules/unistdio/u16-u16-asnprintf: Likewise.
26978         * modules/unistdio/u16-u16-asprintf: Likewise.
26979         * modules/unistdio/u16-u16-snprintf: Likewise.
26980         * modules/unistdio/u16-u16-sprintf: Likewise.
26981         * modules/unistdio/u16-u16-vasnprintf: Likewise.
26982         * modules/unistdio/u16-u16-vasprintf: Likewise.
26983         * modules/unistdio/u16-u16-vsnprintf: Likewise.
26984         * modules/unistdio/u16-u16-vsprintf: Likewise.
26985         * modules/unistdio/u16-vasnprintf: Likewise.
26986         * modules/unistdio/u16-vasprintf: Likewise.
26987         * modules/unistdio/u16-vsnprintf: Likewise.
26988         * modules/unistdio/u16-vsprintf: Likewise.
26989         * modules/unistdio/u32-asnprintf: Likewise.
26990         * modules/unistdio/u32-asprintf: Likewise.
26991         * modules/unistdio/u32-snprintf: Likewise.
26992         * modules/unistdio/u32-sprintf: Likewise.
26993         * modules/unistdio/u32-u32-asnprintf: Likewise.
26994         * modules/unistdio/u32-u32-asprintf: Likewise.
26995         * modules/unistdio/u32-u32-snprintf: Likewise.
26996         * modules/unistdio/u32-u32-sprintf: Likewise.
26997         * modules/unistdio/u32-u32-vasnprintf: Likewise.
26998         * modules/unistdio/u32-u32-vasprintf: Likewise.
26999         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27000         * modules/unistdio/u32-u32-vsprintf: Likewise.
27001         * modules/unistdio/u32-vasnprintf: Likewise.
27002         * modules/unistdio/u32-vasprintf: Likewise.
27003         * modules/unistdio/u32-vsnprintf: Likewise.
27004         * modules/unistdio/u32-vsprintf: Likewise.
27005         * modules/unistdio/ulc-asnprintf: Likewise.
27006         * modules/unistdio/ulc-asprintf: Likewise.
27007         * modules/unistdio/ulc-fprintf: Likewise.
27008         * modules/unistdio/ulc-snprintf: Likewise.
27009         * modules/unistdio/ulc-sprintf: Likewise.
27010         * modules/unistdio/ulc-vasnprintf: Likewise.
27011         * modules/unistdio/ulc-vasprintf: Likewise.
27012         * modules/unistdio/ulc-vfprintf: Likewise.
27013         * modules/unistdio/ulc-vsnprintf: Likewise.
27014         * modules/unistdio/ulc-vsprintf: Likewise.
27015         * modules/unistr/u8-check: Likewise.
27016         * modules/unistr/u8-chr: Likewise.
27017         * modules/unistr/u8-cmp: Likewise.
27018         * modules/unistr/u8-cmp2: Likewise.
27019         * modules/unistr/u8-cpy: Likewise.
27020         * modules/unistr/u8-cpy-alloc: Likewise.
27021         * modules/unistr/u8-endswith: Likewise.
27022         * modules/unistr/u8-mblen: Likewise.
27023         * modules/unistr/u8-mbsnlen: Likewise.
27024         * modules/unistr/u8-mbtouc: Likewise.
27025         * modules/unistr/u8-mbtouc-unsafe: Likewise.
27026         * modules/unistr/u8-mbtoucr: Likewise.
27027         * modules/unistr/u8-move: Likewise.
27028         * modules/unistr/u8-next: Likewise.
27029         * modules/unistr/u8-prev: Likewise.
27030         * modules/unistr/u8-set: Likewise.
27031         * modules/unistr/u8-startswith: Likewise.
27032         * modules/unistr/u8-stpcpy: Likewise.
27033         * modules/unistr/u8-stpncpy: Likewise.
27034         * modules/unistr/u8-strcat: Likewise.
27035         * modules/unistr/u8-strchr: Likewise.
27036         * modules/unistr/u8-strcmp: Likewise.
27037         * modules/unistr/u8-strcoll: Likewise.
27038         * modules/unistr/u8-strcpy: Likewise.
27039         * modules/unistr/u8-strcspn: Likewise.
27040         * modules/unistr/u8-strdup: Likewise.
27041         * modules/unistr/u8-strlen: Likewise.
27042         * modules/unistr/u8-strmblen: Likewise.
27043         * modules/unistr/u8-strmbtouc: Likewise.
27044         * modules/unistr/u8-strncat: Likewise.
27045         * modules/unistr/u8-strncmp: Likewise.
27046         * modules/unistr/u8-strncpy: Likewise.
27047         * modules/unistr/u8-strnlen: Likewise.
27048         * modules/unistr/u8-strpbrk: Likewise.
27049         * modules/unistr/u8-strrchr: Likewise.
27050         * modules/unistr/u8-strspn: Likewise.
27051         * modules/unistr/u8-strstr: Likewise.
27052         * modules/unistr/u8-strtok: Likewise.
27053         * modules/unistr/u8-to-u16: Likewise.
27054         * modules/unistr/u8-to-u32: Likewise.
27055         * modules/unistr/u8-uctomb: Likewise.
27056         * modules/unistr/u16-check: Likewise.
27057         * modules/unistr/u16-chr: Likewise.
27058         * modules/unistr/u16-cmp: Likewise.
27059         * modules/unistr/u16-cmp2: Likewise.
27060         * modules/unistr/u16-cpy: Likewise.
27061         * modules/unistr/u16-cpy-alloc: Likewise.
27062         * modules/unistr/u16-endswith: Likewise.
27063         * modules/unistr/u16-mblen: Likewise.
27064         * modules/unistr/u16-mbsnlen: Likewise.
27065         * modules/unistr/u16-mbtouc: Likewise.
27066         * modules/unistr/u16-mbtouc-unsafe: Likewise.
27067         * modules/unistr/u16-mbtoucr: Likewise.
27068         * modules/unistr/u16-move: Likewise.
27069         * modules/unistr/u16-next: Likewise.
27070         * modules/unistr/u16-prev: Likewise.
27071         * modules/unistr/u16-set: Likewise.
27072         * modules/unistr/u16-startswith: Likewise.
27073         * modules/unistr/u16-stpcpy: Likewise.
27074         * modules/unistr/u16-stpncpy: Likewise.
27075         * modules/unistr/u16-strcat: Likewise.
27076         * modules/unistr/u16-strchr: Likewise.
27077         * modules/unistr/u16-strcmp: Likewise.
27078         * modules/unistr/u16-strcoll: Likewise.
27079         * modules/unistr/u16-strcpy: Likewise.
27080         * modules/unistr/u16-strcspn: Likewise.
27081         * modules/unistr/u16-strdup: Likewise.
27082         * modules/unistr/u16-strlen: Likewise.
27083         * modules/unistr/u16-strmblen: Likewise.
27084         * modules/unistr/u16-strmbtouc: Likewise.
27085         * modules/unistr/u16-strncat: Likewise.
27086         * modules/unistr/u16-strncmp: Likewise.
27087         * modules/unistr/u16-strncpy: Likewise.
27088         * modules/unistr/u16-strnlen: Likewise.
27089         * modules/unistr/u16-strpbrk: Likewise.
27090         * modules/unistr/u16-strrchr: Likewise.
27091         * modules/unistr/u16-strspn: Likewise.
27092         * modules/unistr/u16-strstr: Likewise.
27093         * modules/unistr/u16-strtok: Likewise.
27094         * modules/unistr/u16-to-u32: Likewise.
27095         * modules/unistr/u16-to-u8: Likewise.
27096         * modules/unistr/u16-uctomb: Likewise.
27097         * modules/unistr/u32-check: Likewise.
27098         * modules/unistr/u32-chr: Likewise.
27099         * modules/unistr/u32-cmp: Likewise.
27100         * modules/unistr/u32-cmp2: Likewise.
27101         * modules/unistr/u32-cpy: Likewise.
27102         * modules/unistr/u32-cpy-alloc: Likewise.
27103         * modules/unistr/u32-endswith: Likewise.
27104         * modules/unistr/u32-mblen: Likewise.
27105         * modules/unistr/u32-mbsnlen: Likewise.
27106         * modules/unistr/u32-mbtouc: Likewise.
27107         * modules/unistr/u32-mbtouc-unsafe: Likewise.
27108         * modules/unistr/u32-mbtoucr: Likewise.
27109         * modules/unistr/u32-move: Likewise.
27110         * modules/unistr/u32-next: Likewise.
27111         * modules/unistr/u32-prev: Likewise.
27112         * modules/unistr/u32-set: Likewise.
27113         * modules/unistr/u32-startswith: Likewise.
27114         * modules/unistr/u32-stpcpy: Likewise.
27115         * modules/unistr/u32-stpncpy: Likewise.
27116         * modules/unistr/u32-strcat: Likewise.
27117         * modules/unistr/u32-strchr: Likewise.
27118         * modules/unistr/u32-strcmp: Likewise.
27119         * modules/unistr/u32-strcoll: Likewise.
27120         * modules/unistr/u32-strcpy: Likewise.
27121         * modules/unistr/u32-strcspn: Likewise.
27122         * modules/unistr/u32-strdup: Likewise.
27123         * modules/unistr/u32-strlen: Likewise.
27124         * modules/unistr/u32-strmblen: Likewise.
27125         * modules/unistr/u32-strmbtouc: Likewise.
27126         * modules/unistr/u32-strncat: Likewise.
27127         * modules/unistr/u32-strncmp: Likewise.
27128         * modules/unistr/u32-strncpy: Likewise.
27129         * modules/unistr/u32-strnlen: Likewise.
27130         * modules/unistr/u32-strpbrk: Likewise.
27131         * modules/unistr/u32-strrchr: Likewise.
27132         * modules/unistr/u32-strspn: Likewise.
27133         * modules/unistr/u32-strstr: Likewise.
27134         * modules/unistr/u32-strtok: Likewise.
27135         * modules/unistr/u32-to-u16: Likewise.
27136         * modules/unistr/u32-to-u8: Likewise.
27137         * modules/unistr/u32-uctomb: Likewise.
27138         * modules/uniwbrk/u8-wordbreaks: Likewise.
27139         * modules/uniwbrk/u16-wordbreaks: Likewise.
27140         * modules/uniwbrk/u32-wordbreaks: Likewise.
27141         * modules/uniwbrk/ulc-wordbreaks: Likewise.
27142         * modules/uniwbrk/wordbreak-property: Likewise.
27143         * modules/uniwidth/u8-strwidth: Likewise.
27144         * modules/uniwidth/u8-width: Likewise.
27145         * modules/uniwidth/u16-strwidth: Likewise.
27146         * modules/uniwidth/u16-width: Likewise.
27147         * modules/uniwidth/u32-strwidth: Likewise.
27148         * modules/uniwidth/u32-width: Likewise.
27149         * modules/uniwidth/width: Likewise.
27150         * modules/unicase/cased-tests (Makefile.am): Link all test programs
27151         with $(LIBUNISTRING).
27152         * modules/unicase/ignorable-tests: Likewise.
27153         * modules/unicase/locale-language-tests: Likewise.
27154         * modules/unicase/tolower-tests: Likewise.
27155         * modules/unicase/totitle-tests: Likewise.
27156         * modules/unicase/toupper-tests: Likewise.
27157         * modules/unicase/u8-casecmp-tests: Likewise.
27158         * modules/unicase/u8-casecoll-tests: Likewise.
27159         * modules/unicase/u8-casefold-tests: Likewise.
27160         * modules/unicase/u8-is-cased-tests: Likewise.
27161         * modules/unicase/u8-is-casefolded-tests: Likewise.
27162         * modules/unicase/u8-is-lowercase-tests: Likewise.
27163         * modules/unicase/u8-is-titlecase-tests: Likewise.
27164         * modules/unicase/u8-is-uppercase-tests: Likewise.
27165         * modules/unicase/u8-tolower-tests: Likewise.
27166         * modules/unicase/u8-totitle-tests: Likewise.
27167         * modules/unicase/u8-toupper-tests: Likewise.
27168         * modules/unicase/u16-casecmp-tests: Likewise.
27169         * modules/unicase/u16-casecoll-tests: Likewise.
27170         * modules/unicase/u16-casefold-tests: Likewise.
27171         * modules/unicase/u16-is-cased-tests: Likewise.
27172         * modules/unicase/u16-is-casefolded-tests: Likewise.
27173         * modules/unicase/u16-is-lowercase-tests: Likewise.
27174         * modules/unicase/u16-is-titlecase-tests: Likewise.
27175         * modules/unicase/u16-is-uppercase-tests: Likewise.
27176         * modules/unicase/u16-tolower-tests: Likewise.
27177         * modules/unicase/u16-totitle-tests: Likewise.
27178         * modules/unicase/u16-toupper-tests: Likewise.
27179         * modules/unicase/u32-casecmp-tests: Likewise.
27180         * modules/unicase/u32-casecoll-tests: Likewise.
27181         * modules/unicase/u32-casefold-tests: Likewise.
27182         * modules/unicase/u32-is-cased-tests: Likewise.
27183         * modules/unicase/u32-is-casefolded-tests: Likewise.
27184         * modules/unicase/u32-is-lowercase-tests: Likewise.
27185         * modules/unicase/u32-is-titlecase-tests: Likewise.
27186         * modules/unicase/u32-is-uppercase-tests: Likewise.
27187         * modules/unicase/u32-tolower-tests: Likewise.
27188         * modules/unicase/u32-totitle-tests: Likewise.
27189         * modules/unicase/u32-toupper-tests: Likewise.
27190         * modules/unicase/ulc-casecmp-tests: Likewise.
27191         * modules/unicase/ulc-casecoll-tests: Likewise.
27192         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
27193         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
27194         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
27195         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
27196         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
27197         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
27198         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
27199         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
27200         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
27201         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
27202         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
27203         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
27204         * modules/unictype/bidicategory-byname-tests: Likewise.
27205         * modules/unictype/bidicategory-name-tests: Likewise.
27206         * modules/unictype/bidicategory-of-tests: Likewise.
27207         * modules/unictype/bidicategory-test-tests: Likewise.
27208         * modules/unictype/block-list-tests: Likewise.
27209         * modules/unictype/block-of-tests: Likewise.
27210         * modules/unictype/block-test-tests: Likewise.
27211         * modules/unictype/category-C-tests: Likewise.
27212         * modules/unictype/category-Cc-tests: Likewise.
27213         * modules/unictype/category-Cf-tests: Likewise.
27214         * modules/unictype/category-Cn-tests: Likewise.
27215         * modules/unictype/category-Co-tests: Likewise.
27216         * modules/unictype/category-Cs-tests: Likewise.
27217         * modules/unictype/category-L-tests: Likewise.
27218         * modules/unictype/category-Ll-tests: Likewise.
27219         * modules/unictype/category-Lm-tests: Likewise.
27220         * modules/unictype/category-Lo-tests: Likewise.
27221         * modules/unictype/category-Lt-tests: Likewise.
27222         * modules/unictype/category-Lu-tests: Likewise.
27223         * modules/unictype/category-M-tests: Likewise.
27224         * modules/unictype/category-Mc-tests: Likewise.
27225         * modules/unictype/category-Me-tests: Likewise.
27226         * modules/unictype/category-Mn-tests: Likewise.
27227         * modules/unictype/category-N-tests: Likewise.
27228         * modules/unictype/category-Nd-tests: Likewise.
27229         * modules/unictype/category-Nl-tests: Likewise.
27230         * modules/unictype/category-No-tests: Likewise.
27231         * modules/unictype/category-P-tests: Likewise.
27232         * modules/unictype/category-Pc-tests: Likewise.
27233         * modules/unictype/category-Pd-tests: Likewise.
27234         * modules/unictype/category-Pe-tests: Likewise.
27235         * modules/unictype/category-Pf-tests: Likewise.
27236         * modules/unictype/category-Pi-tests: Likewise.
27237         * modules/unictype/category-Po-tests: Likewise.
27238         * modules/unictype/category-Ps-tests: Likewise.
27239         * modules/unictype/category-S-tests: Likewise.
27240         * modules/unictype/category-Sc-tests: Likewise.
27241         * modules/unictype/category-Sk-tests: Likewise.
27242         * modules/unictype/category-Sm-tests: Likewise.
27243         * modules/unictype/category-So-tests: Likewise.
27244         * modules/unictype/category-Z-tests: Likewise.
27245         * modules/unictype/category-Zl-tests: Likewise.
27246         * modules/unictype/category-Zp-tests: Likewise.
27247         * modules/unictype/category-Zs-tests: Likewise.
27248         * modules/unictype/category-and-not-tests: Likewise.
27249         * modules/unictype/category-and-tests: Likewise.
27250         * modules/unictype/category-byname-tests: Likewise.
27251         * modules/unictype/category-name-tests: Likewise.
27252         * modules/unictype/category-none-tests: Likewise.
27253         * modules/unictype/category-of-tests: Likewise.
27254         * modules/unictype/category-or-tests: Likewise.
27255         * modules/unictype/category-test-withtable-tests: Likewise.
27256         * modules/unictype/combining-class-tests: Likewise.
27257         * modules/unictype/ctype-alnum-tests: Likewise.
27258         * modules/unictype/ctype-alpha-tests: Likewise.
27259         * modules/unictype/ctype-blank-tests: Likewise.
27260         * modules/unictype/ctype-cntrl-tests: Likewise.
27261         * modules/unictype/ctype-digit-tests: Likewise.
27262         * modules/unictype/ctype-graph-tests: Likewise.
27263         * modules/unictype/ctype-lower-tests: Likewise.
27264         * modules/unictype/ctype-print-tests: Likewise.
27265         * modules/unictype/ctype-punct-tests: Likewise.
27266         * modules/unictype/ctype-space-tests: Likewise.
27267         * modules/unictype/ctype-upper-tests: Likewise.
27268         * modules/unictype/ctype-xdigit-tests: Likewise.
27269         * modules/unictype/decimal-digit-tests: Likewise.
27270         * modules/unictype/digit-tests: Likewise.
27271         * modules/unictype/mirror-tests: Likewise.
27272         * modules/unictype/numeric-tests: Likewise.
27273         * modules/unictype/property-alphabetic-tests: Likewise.
27274         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
27275         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
27276         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
27277         * modules/unictype/property-bidi-block-separator-tests: Likewise.
27278         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
27279         * modules/unictype/property-bidi-common-separator-tests: Likewise.
27280         * modules/unictype/property-bidi-control-tests: Likewise.
27281         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
27282         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
27283         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
27284         * modules/unictype/property-bidi-european-digit-tests: Likewise.
27285         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
27286         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
27287         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
27288         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
27289         * modules/unictype/property-bidi-pdf-tests: Likewise.
27290         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
27291         * modules/unictype/property-bidi-whitespace-tests: Likewise.
27292         * modules/unictype/property-byname-tests: Likewise.
27293         * modules/unictype/property-combining-tests: Likewise.
27294         * modules/unictype/property-composite-tests: Likewise.
27295         * modules/unictype/property-currency-symbol-tests: Likewise.
27296         * modules/unictype/property-dash-tests: Likewise.
27297         * modules/unictype/property-decimal-digit-tests: Likewise.
27298         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
27299         * modules/unictype/property-deprecated-tests: Likewise.
27300         * modules/unictype/property-diacritic-tests: Likewise.
27301         * modules/unictype/property-extender-tests: Likewise.
27302         * modules/unictype/property-format-control-tests: Likewise.
27303         * modules/unictype/property-grapheme-base-tests: Likewise.
27304         * modules/unictype/property-grapheme-extend-tests: Likewise.
27305         * modules/unictype/property-grapheme-link-tests: Likewise.
27306         * modules/unictype/property-hex-digit-tests: Likewise.
27307         * modules/unictype/property-hyphen-tests: Likewise.
27308         * modules/unictype/property-id-continue-tests: Likewise.
27309         * modules/unictype/property-id-start-tests: Likewise.
27310         * modules/unictype/property-ideographic-tests: Likewise.
27311         * modules/unictype/property-ids-binary-operator-tests: Likewise.
27312         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
27313         * modules/unictype/property-ignorable-control-tests: Likewise.
27314         * modules/unictype/property-iso-control-tests: Likewise.
27315         * modules/unictype/property-join-control-tests: Likewise.
27316         * modules/unictype/property-left-of-pair-tests: Likewise.
27317         * modules/unictype/property-line-separator-tests: Likewise.
27318         * modules/unictype/property-logical-order-exception-tests: Likewise.
27319         * modules/unictype/property-lowercase-tests: Likewise.
27320         * modules/unictype/property-math-tests: Likewise.
27321         * modules/unictype/property-non-break-tests: Likewise.
27322         * modules/unictype/property-not-a-character-tests: Likewise.
27323         * modules/unictype/property-numeric-tests: Likewise.
27324         * modules/unictype/property-other-alphabetic-tests: Likewise.
27325         * modules/unictype/property-other-default-ignorable-code-point-tests:
27326         Likewise.
27327         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
27328         * modules/unictype/property-other-id-continue-tests: Likewise.
27329         * modules/unictype/property-other-id-start-tests: Likewise.
27330         * modules/unictype/property-other-lowercase-tests: Likewise.
27331         * modules/unictype/property-other-math-tests: Likewise.
27332         * modules/unictype/property-other-uppercase-tests: Likewise.
27333         * modules/unictype/property-paired-punctuation-tests: Likewise.
27334         * modules/unictype/property-paragraph-separator-tests: Likewise.
27335         * modules/unictype/property-pattern-syntax-tests: Likewise.
27336         * modules/unictype/property-pattern-white-space-tests: Likewise.
27337         * modules/unictype/property-private-use-tests: Likewise.
27338         * modules/unictype/property-punctuation-tests: Likewise.
27339         * modules/unictype/property-quotation-mark-tests: Likewise.
27340         * modules/unictype/property-radical-tests: Likewise.
27341         * modules/unictype/property-sentence-terminal-tests: Likewise.
27342         * modules/unictype/property-soft-dotted-tests: Likewise.
27343         * modules/unictype/property-space-tests: Likewise.
27344         * modules/unictype/property-terminal-punctuation-tests: Likewise.
27345         * modules/unictype/property-test-tests: Likewise.
27346         * modules/unictype/property-titlecase-tests: Likewise.
27347         * modules/unictype/property-unassigned-code-value-tests: Likewise.
27348         * modules/unictype/property-unified-ideograph-tests: Likewise.
27349         * modules/unictype/property-uppercase-tests: Likewise.
27350         * modules/unictype/property-variation-selector-tests: Likewise.
27351         * modules/unictype/property-white-space-tests: Likewise.
27352         * modules/unictype/property-xid-continue-tests: Likewise.
27353         * modules/unictype/property-xid-start-tests: Likewise.
27354         * modules/unictype/property-zero-width-tests: Likewise.
27355         * modules/unictype/scripts-tests: Likewise.
27356         * modules/unictype/syntax-c-ident-tests: Likewise.
27357         * modules/unictype/syntax-c-whitespace-tests: Likewise.
27358         * modules/unictype/syntax-java-ident-tests: Likewise.
27359         * modules/unictype/syntax-java-whitespace-tests: Likewise.
27360         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
27361         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
27362         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
27363         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
27364         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
27365         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
27366         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
27367         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
27368         * modules/uniname/uniname-tests: Likewise.
27369         * modules/uninorm/canonical-decomposition-tests: Likewise.
27370         * modules/uninorm/compat-decomposition-tests: Likewise.
27371         * modules/uninorm/composition-tests: Likewise.
27372         * modules/uninorm/decomposing-form-tests: Likewise.
27373         * modules/uninorm/decomposition-tests: Likewise.
27374         * modules/uninorm/filter-tests: Likewise.
27375         * modules/uninorm/nfc-tests: Likewise.
27376         * modules/uninorm/nfd-tests: Likewise.
27377         * modules/uninorm/nfkc-tests: Likewise.
27378         * modules/uninorm/nfkd-tests: Likewise.
27379         * modules/uninorm/u8-normcmp-tests: Likewise.
27380         * modules/uninorm/u8-normcoll-tests: Likewise.
27381         * modules/uninorm/u16-normcmp-tests: Likewise.
27382         * modules/uninorm/u16-normcoll-tests: Likewise.
27383         * modules/uninorm/u32-normcmp-tests: Likewise.
27384         * modules/uninorm/u32-normcoll-tests: Likewise.
27385         * modules/unistdio/u8-asnprintf-tests: Likewise.
27386         * modules/unistdio/u8-vasnprintf-tests: Likewise.
27387         * modules/unistdio/u8-vasprintf-tests: Likewise.
27388         * modules/unistdio/u8-vsnprintf-tests: Likewise.
27389         * modules/unistdio/u8-vsprintf-tests: Likewise.
27390         * modules/unistdio/u16-asnprintf-tests: Likewise.
27391         * modules/unistdio/u16-vasnprintf-tests: Likewise.
27392         * modules/unistdio/u16-vasprintf-tests: Likewise.
27393         * modules/unistdio/u16-vsnprintf-tests: Likewise.
27394         * modules/unistdio/u16-vsprintf-tests: Likewise.
27395         * modules/unistdio/u32-asnprintf-tests: Likewise.
27396         * modules/unistdio/u32-vasnprintf-tests: Likewise.
27397         * modules/unistdio/u32-vasprintf-tests: Likewise.
27398         * modules/unistdio/u32-vsnprintf-tests: Likewise.
27399         * modules/unistdio/u32-vsprintf-tests: Likewise.
27400         * modules/unistdio/ulc-asnprintf-tests: Likewise.
27401         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
27402         * modules/unistdio/ulc-vasprintf-tests: Likewise.
27403         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
27404         * modules/unistdio/ulc-vsprintf-tests: Likewise.
27405         * modules/unistr/u8-check-tests: Likewise.
27406         * modules/unistr/u8-chr-tests: Likewise.
27407         * modules/unistr/u8-cmp-tests: Likewise.
27408         * modules/unistr/u8-cmp2-tests: Likewise.
27409         * modules/unistr/u8-cpy-alloc-tests: Likewise.
27410         * modules/unistr/u8-cpy-tests: Likewise.
27411         * modules/unistr/u8-mblen-tests: Likewise.
27412         * modules/unistr/u8-mbsnlen-tests: Likewise.
27413         * modules/unistr/u8-mbtouc-tests: Likewise.
27414         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
27415         * modules/unistr/u8-mbtoucr-tests: Likewise.
27416         * modules/unistr/u8-move-tests: Likewise.
27417         * modules/unistr/u8-next-tests: Likewise.
27418         * modules/unistr/u8-prev-tests: Likewise.
27419         * modules/unistr/u8-set-tests: Likewise.
27420         * modules/unistr/u8-stpcpy-tests: Likewise.
27421         * modules/unistr/u8-stpncpy-tests: Likewise.
27422         * modules/unistr/u8-strcat-tests: Likewise.
27423         * modules/unistr/u8-strcmp-tests: Likewise.
27424         * modules/unistr/u8-strcoll-tests: Likewise.
27425         * modules/unistr/u8-strcpy-tests: Likewise.
27426         * modules/unistr/u8-strdup-tests: Likewise.
27427         * modules/unistr/u8-strlen-tests: Likewise.
27428         * modules/unistr/u8-strmblen-tests: Likewise.
27429         * modules/unistr/u8-strmbtouc-tests: Likewise.
27430         * modules/unistr/u8-strncat-tests: Likewise.
27431         * modules/unistr/u8-strncmp-tests: Likewise.
27432         * modules/unistr/u8-strncpy-tests: Likewise.
27433         * modules/unistr/u8-strnlen-tests: Likewise.
27434         * modules/unistr/u8-to-u16-tests: Likewise.
27435         * modules/unistr/u8-to-u32-tests: Likewise.
27436         * modules/unistr/u8-uctomb-tests: Likewise.
27437         * modules/unistr/u16-check-tests: Likewise.
27438         * modules/unistr/u16-chr-tests: Likewise.
27439         * modules/unistr/u16-cmp-tests: Likewise.
27440         * modules/unistr/u16-cmp2-tests: Likewise.
27441         * modules/unistr/u16-cpy-alloc-tests: Likewise.
27442         * modules/unistr/u16-cpy-tests: Likewise.
27443         * modules/unistr/u16-mblen-tests: Likewise.
27444         * modules/unistr/u16-mbsnlen-tests: Likewise.
27445         * modules/unistr/u16-mbtouc-tests: Likewise.
27446         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
27447         * modules/unistr/u16-mbtoucr-tests: Likewise.
27448         * modules/unistr/u16-move-tests: Likewise.
27449         * modules/unistr/u16-next-tests: Likewise.
27450         * modules/unistr/u16-prev-tests: Likewise.
27451         * modules/unistr/u16-set-tests: Likewise.
27452         * modules/unistr/u16-stpcpy-tests: Likewise.
27453         * modules/unistr/u16-stpncpy-tests: Likewise.
27454         * modules/unistr/u16-strcat-tests: Likewise.
27455         * modules/unistr/u16-strcmp-tests: Likewise.
27456         * modules/unistr/u16-strcoll-tests: Likewise.
27457         * modules/unistr/u16-strcpy-tests: Likewise.
27458         * modules/unistr/u16-strdup-tests: Likewise.
27459         * modules/unistr/u16-strlen-tests: Likewise.
27460         * modules/unistr/u16-strmblen-tests: Likewise.
27461         * modules/unistr/u16-strmbtouc-tests: Likewise.
27462         * modules/unistr/u16-strncat-tests: Likewise.
27463         * modules/unistr/u16-strncmp-tests: Likewise.
27464         * modules/unistr/u16-strncpy-tests: Likewise.
27465         * modules/unistr/u16-strnlen-tests: Likewise.
27466         * modules/unistr/u16-to-u32-tests: Likewise.
27467         * modules/unistr/u16-to-u8-tests: Likewise.
27468         * modules/unistr/u16-uctomb-tests: Likewise.
27469         * modules/unistr/u32-check-tests: Likewise.
27470         * modules/unistr/u32-chr-tests: Likewise.
27471         * modules/unistr/u32-cmp-tests: Likewise.
27472         * modules/unistr/u32-cmp2-tests: Likewise.
27473         * modules/unistr/u32-cpy-alloc-tests: Likewise.
27474         * modules/unistr/u32-cpy-tests: Likewise.
27475         * modules/unistr/u32-mblen-tests: Likewise.
27476         * modules/unistr/u32-mbsnlen-tests: Likewise.
27477         * modules/unistr/u32-mbtouc-tests: Likewise.
27478         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
27479         * modules/unistr/u32-mbtoucr-tests: Likewise.
27480         * modules/unistr/u32-move-tests: Likewise.
27481         * modules/unistr/u32-next-tests: Likewise.
27482         * modules/unistr/u32-prev-tests: Likewise.
27483         * modules/unistr/u32-set-tests: Likewise.
27484         * modules/unistr/u32-stpcpy-tests: Likewise.
27485         * modules/unistr/u32-stpncpy-tests: Likewise.
27486         * modules/unistr/u32-strcat-tests: Likewise.
27487         * modules/unistr/u32-strcmp-tests: Likewise.
27488         * modules/unistr/u32-strcoll-tests: Likewise.
27489         * modules/unistr/u32-strcpy-tests: Likewise.
27490         * modules/unistr/u32-strdup-tests: Likewise.
27491         * modules/unistr/u32-strlen-tests: Likewise.
27492         * modules/unistr/u32-strmblen-tests: Likewise.
27493         * modules/unistr/u32-strmbtouc-tests: Likewise.
27494         * modules/unistr/u32-strncat-tests: Likewise.
27495         * modules/unistr/u32-strncmp-tests: Likewise.
27496         * modules/unistr/u32-strncpy-tests: Likewise.
27497         * modules/unistr/u32-strnlen-tests: Likewise.
27498         * modules/unistr/u32-to-u16-tests: Likewise.
27499         * modules/unistr/u32-to-u8-tests: Likewise.
27500         * modules/unistr/u32-uctomb-tests: Likewise.
27501         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
27502         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
27503         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
27504         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
27505         * modules/uniwidth/u8-strwidth-tests: Likewise.
27506         * modules/uniwidth/u8-width-tests: Likewise.
27507         * modules/uniwidth/u16-strwidth-tests: Likewise.
27508         * modules/uniwidth/u16-width-tests: Likewise.
27509         * modules/uniwidth/u32-strwidth-tests: Likewise.
27510         * modules/uniwidth/u32-width-tests: Likewise.
27511         * modules/uniwidth/width-tests: Likewise.
27512
27513 2010-05-18  Richard Jones  <rjones@redhat.com>
27514
27515         doc: users.txt: list hivex
27516         * users.txt: Add hivex.
27517
27518 2010-05-18  Richard Jones  <rjones@redhat.com>
27519
27520         doc: users.txt: list febootstrap
27521         * users.txt: Add febootstrap.
27522
27523 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
27524
27525         bootstrap: fix an error when gnulib is not used as a git submodule
27526         * build-aux/bootstrap (gnulib_path): If its length is zero then
27527         assign "gnulib" to it.
27528         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
27529
27530 2010-05-16  Bruno Haible  <bruno@clisp.org>
27531
27532         Avoid autoconf warnings about AM_ICONV.
27533         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
27534         2.64.
27535
27536 2010-05-16  Bruno Haible  <bruno@clisp.org>
27537
27538         absolute-header: Make the macro usable in more situations.
27539         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
27540         from gl_ABSOLUTE_HEADER.
27541         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
27542
27543 2010-05-16  James Youngman  <jay@gnu.org>
27544
27545         doc: update users.txt
27546         * users.txt: Add CSSC.
27547
27548 2010-05-16  Jim Meyering  <meyering@redhat.com>
27549
27550         init.sh: fix an error in the previous change; add more comments
27551         * tests/init.sh: Compare exit code in loop against 9, not 2.
27552         Patch by Bruno Haible.
27553         Make the two tests more similar by adding an empty "then" clause.
27554         Add comments.
27555
27556         init.sh: avoid unnecessary shell re-exec
27557         * tests/init.sh: Improve the re-exec-required check to first test the
27558         current shell.  If it passes the test, do not search for a shell that
27559         does pass, and do not re-exec.  This test is particularly contorted to
27560         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
27561         of $(...) evokes a syntax error and causes immediate shell exit with
27562         status 2.  Bruno Haible reported that the re-exec made it impossible
27563         to single-step through any init.sh-using script.
27564
27565 2010-05-16  Bruno Haible  <bruno@clisp.org>
27566
27567         Fix collision between gnulib's and libintl's printf replacements.
27568         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
27569         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
27570         (printf): When using GNU C, map the __printf__ function to rpl_printf
27571         via __asm__. When not using GNU C, define rpl_printf instead of
27572         __printf__.
27573         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
27574         commit.
27575         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
27576         commit.
27577         * m4/asm-underscore.m4: New file.
27578         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
27579         * modules/stdio (Files): Add m4/asm-underscore.m4.
27580         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
27581         Reported by Ben Pfaff.
27582
27583 2010-05-16  Bruno Haible  <bruno@clisp.org>
27584
27585         verify: Avoid skipping the test on openSUSE 11.0.
27586         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
27587
27588 2010-05-13  Bruno Haible  <bruno@clisp.org>
27589
27590         Avoid useless warnings from G++.
27591         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
27592         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
27593         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27594
27595 2010-05-11  Jim Meyering  <meyering@redhat.com>
27596
27597         maint.mk: tweak preceding change
27598         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
27599         regexps tighter by anchoring at EOL, and make the new group "shy"
27600         for slightly decreased overhead.
27601
27602 2010-05-11  Eric Blake  <eblake@redhat.com>
27603
27604         maint.mk: gnulib doesn't guarantee NSIG
27605         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
27606
27607 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
27608
27609         test-pwrite.c: Remove unused variable declaration.
27610         * tests/test-pwrite.c (main): Remove read_buf declaration.
27611
27612         Remove useless test-pwrite.sh file.
27613         * tests/test-pwrite.sh: Delete file.
27614         * modules/pwrite-tests: Remove references.
27615         Reported by Bruno Haible.
27616
27617 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
27618
27619         init.sh: fix a typo
27620         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
27621
27622 2010-05-10  Jim Meyering  <meyering@redhat.com>
27623
27624         maint.mk: avoid using a temporary file in the always-defined-macros check
27625         * top/maint.mk (.re-defmac): Remove rule.
27626         (gl_trap_): Remove definition.
27627         (sc_prohibit_always-defined_macros): Rewrite not to create and
27628         depend on a temporary file.  Instead, depend on GNU grep's ability
27629         to read a list of regular expressions from stdin when given "-f -".
27630
27631 2010-05-09  Bruno Haible  <bruno@clisp.org>
27632
27633         Update to GNU gettext 0.18, part 1.
27634         * m4/gettext.m4: Update to GNU gettext 0.18.
27635         * m4/intl.m4: Likewise.
27636         * m4/po.m4: Likewise.
27637         * modules/gettext (Files): Add m4/fcntl-o.m4.
27638         (configure.ac): Require gettext infrastructure from version 0.18.
27639
27640 2010-05-09  Jim Meyering  <meyering@redhat.com>
27641
27642         init.sh: enable MALLOC_PERTURB_
27643         * tests/init.sh: Enable glibc's malloc-perturbing option.
27644
27645         maint.mk: improve sc_cross_check_PATH_usage_in_tests
27646         With my recent change in init.sh from the two-line form:
27647             -#   : ${srcdir=.}
27648             -#   . "$srcdir/init.sh"; path_prepend_ .
27649             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
27650         I noticed that using the one-line form would cause this test
27651         to fail with a false-positive, or to stop working altogether,
27652         depending on whether help-version changed or all the tests did.
27653         * top/maint.mk (_hv_regex): Remove this definition.
27654         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
27655         (_hv_regex_strong): Use a stronger regex to check for conformance.
27656         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
27657         Give a separate diagnostic for lack of conforming use.
27658
27659         maint.mk: prohibit definition of symbols defined by gnulib
27660         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
27661         definition of symbols defined by gnulib.
27662
27663 2010-05-09  Bruno Haible  <bruno@clisp.org>
27664
27665         acl: Avoid test failure on Cygwin-hosted mingw.
27666         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
27667
27668 2010-05-09  Bruno Haible  <bruno@clisp.org>
27669
27670         error: Use system's fcntl function.
27671         * lib/error.c (fcntl): Undefine.
27672
27673 2010-05-09  Jim Meyering  <meyering@redhat.com>
27674
27675         verify: adjust formatting to be more consistent
27676         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
27677         argument-list '('s, and after one comma.
27678
27679 2010-05-09  Bruno Haible  <bruno@clisp.org>
27680
27681         error: More reliable output on mingw.
27682         * lib/error.c: Include <windows.h>.
27683         (is_open): New function.
27684         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
27685         defined.
27686
27687 2010-05-09  Bruno Haible  <bruno@clisp.org>
27688
27689         vasnprintf: Fix syntax errors in libintl build on mingw.
27690         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
27691         pad_ourselves and prec_ourselves after use.
27692
27693 2010-05-08  Bruno Haible  <bruno@clisp.org>
27694
27695         * lib/config.charset: Update comments for Cygwin 1.7.
27696         * lib/localcharset.c: Likewise.
27697
27698 2010-05-07  Jim Meyering  <meyering@redhat.com>
27699
27700         init.sh: improve comments
27701         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
27702         . "${srcdir=.}/init.sh"; path_prepend_ .
27703         Add a note about path_prepend_ and the alternative of using
27704         TESTS_ENVIRONMENT.
27705
27706 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
27707
27708         exclude: Unescape hashed patterns in wildcard mode.
27709         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
27710         to the hash list.
27711         * tests/test-exclude8.sh: New test case.
27712         * modules/exclude-tests: Add new test.
27713
27714 2010-05-05  Eric Blake  <eblake@redhat.com>
27715
27716         verify: automate tests
27717         * modules/verify-tests: New module.
27718         * tests/test-verify.sh: New file.
27719         * tests/test-verify.c: Guard each negative test with a unique id.
27720         Also avoid warning about unused left hand of comma expressions.
27721
27722 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
27723
27724         Further improvements to verify.h, suggested by Eric Blake.
27725         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
27726         the GL_* versions, to avoid collision with OpenGL.
27727         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
27728         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
27729         than testing merely whether it's defined.
27730
27731         Modify verify.h to pacify gcc -Wredundant_decls.
27732         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
27733         These use the prefix "GL_" since they're likely to be useful elsewhere.
27734         We may need to break them out into a different .h file.
27735         (__COUNTER__): Define to 0 if the compiler doesn't support it.
27736         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
27737         of verify_function__.
27738
27739 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
27740
27741         Tests for module pwrite.
27742         * modules/pwrite-tests: New file.
27743         * tests/test-pwrite.sh: New file.
27744         * tests/test-pwrite.c: New file.
27745
27746         New module pwrite.
27747         * lib/unistd.in.h (pwrite): New declaration.
27748         * lib/pwrite.c: New file, from glibc with modifications.
27749         * m4/pwrite.m4: New file.
27750         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
27751         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
27752         REPLACE_PWRITE.
27753         * modules/pwrite: New file.
27754         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
27755         REPLACE_PWRITE.
27756         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
27757         * doc/posix-functions/pwrite.texi: Mention the new module.
27758
27759 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
27760
27761         pread: Update documentation.
27762         * doc/posix-functions/pread.texi: Mention the 'pread' module.
27763
27764 2010-05-04  Eric Blake  <eblake@redhat.com>
27765
27766         docs: update cygwin progress
27767         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
27768         this bug.
27769         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
27770         Added in cygwin 1.7.2.
27771         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
27772         Likewise.
27773         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
27774         Likewise.
27775         * doc/glibc-functions/dup3.texi (dup3): Likewise.
27776         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
27777         * doc/glibc-functions/accept4.texi (accept4): Likewise.
27778         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
27779         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
27780         Mention nproc module.
27781         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
27782         bug in cygwin 1.7.5 addition.
27783         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
27784         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
27785         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
27786         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
27787         1.7.5.
27788         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
27789         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
27790         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
27791         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
27792         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
27793         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
27794         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
27795         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
27796         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
27797         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
27798         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
27799         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
27800         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
27801         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
27802         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
27803         Likewise.
27804         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
27805         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
27806         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
27807         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
27808         Likewise.
27809         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
27810         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
27811         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
27812         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
27813         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
27814         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
27815         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
27816         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
27817         Likewise.
27818         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
27819         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
27820         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
27821         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
27822         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
27823         Likewise.
27824         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
27825         Likewise.
27826         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
27827         Likewise.
27828         * doc/glibc-functions/xdrrec_endofrecord.texi
27829         (xdrrec_endofrecord): Likewise.
27830         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
27831         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
27832         Likewise.
27833         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
27834         Likewise.
27835
27836 2010-05-04  Jim Meyering  <meyering@redhat.com>
27837
27838         gendocs.sh: make its "-s FILE" option more useful
27839         * build-aux/gendocs.sh: When honoring the -s FILE option, update
27840         $PACKAGE to reflect the probably-different basename of "FILE".
27841
27842 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
27843
27844         bootstrap: don't ignore download_po_files failure
27845         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
27846         failure.
27847
27848 2010-05-03  Jim Meyering  <meyering@redhat.com>
27849
27850         maint.mk: allow to pass options to gendocs.sh
27851         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
27852         (gendocs_options_): New overridable variable.
27853
27854         gnu-web-doc-update: don't ignore configure or build failure
27855         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
27856
27857         announce-gen: backslash-escape '@'s in --help output
27858         * build-aux/announce-gen: Fix syntax errors.
27859
27860         maint.mk, announce-gen: allow project-specific announcement mail headers
27861         * top/maint.mk (translation_project_): Define default.
27862         (announcement_Cc_, announcement_mail_headers_): Likewise.
27863         (announcement): Invoke announce-gen with new --mail-headers option.
27864         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
27865
27866         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
27867         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
27868         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
27869         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
27870         line in the "err2" output file when running "make check" in verbose
27871         mode (i.e., with set -x enabled).
27872
27873 2010-05-03  Bruno Haible  <bruno@clisp.org>
27874
27875         wctob: Fix for weird platforms.
27876         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
27877         argument value.
27878
27879 2010-05-03  Jim Meyering  <meyering@redhat.com>
27880
27881         maint.mk: prohibit unwarranted use of <strings.h>
27882         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
27883         strings.h in a file that does not also use strcasecmp, strncasecmp,
27884         ffs or ffsll.
27885
27886         maint.mk: remove obsolete comments
27887         * top/maint.mk: Remove stale, commented-out rules.
27888
27889 2010-05-02  Bruno Haible  <bruno@clisp.org>
27890
27891         wcwidth: Declare also when it's aliased.
27892         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
27893         macro.
27894
27895 2010-05-02  Bruno Haible  <bruno@clisp.org>
27896
27897         Fix regression from 2010-04-25.
27898         * gnulib-tool (func_modules_transitive_closure): Check the status of
27899         all modules, not only of the tests that are of the form foo-tests where
27900         foo is a module.
27901
27902 2010-05-02  Bruno Haible  <bruno@clisp.org>
27903
27904         wctob: Work around nasty Cygwin 1.7.2 bug.
27905         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
27906         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
27907
27908 2010-05-01  Bruno Haible  <bruno@clisp.org>
27909
27910         fpurge: Sharper test.
27911         * tests/test-fpurge.c (main): Add one more ftell check.
27912         * modules/fpurge-tests (Depends-on): Add ftell.
27913         Suggested by Eric Blake.
27914
27915 2010-05-01  Bruno Haible  <bruno@clisp.org>
27916
27917         ftello: Another test.
27918         * tests/test-ftello3.c: New file.
27919         * modules/ftello-tests (Files): Add it.
27920         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
27921         MOSTLYCLEANFILES.
27922
27923         ftell: Another test.
27924         * tests/test-ftell3.c: New file.
27925         * modules/ftell-tests (Files): Add it.
27926         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
27927         MOSTLYCLEANFILES.
27928
27929 2010-05-01  Bruno Haible  <bruno@clisp.org>
27930
27931         ftell, ftello: Work around Solaris bug.
27932         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
27933         * lib/ftello.c: Include stdio-impl.h.
27934         (ftello): On Solaris, when _IOWRT is set, compute the result without
27935         looking at _IOREAD.
27936         * modules/ftello (Files): Add lib/stdio-impl.h.
27937         * doc/posix-functions/ftell.texi: Mention Solaris bug.
27938         * doc/posix-functions/ftello.texi: Likewise.
27939         Reported by Eric Blake.
27940
27941 2010-05-01  Bruno Haible  <bruno@clisp.org>
27942
27943         freading: Adapt to special meaning of _IOREAD flag on Solaris.
27944         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
27945         the _IOWRT flag is also set.
27946
27947 2010-05-01  Bruno Haible  <bruno@clisp.org>
27948
27949         Fix doc about a HP-UX stdio bug.
27950         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
27951         * doc/posix-functions/ftello.texi: Likewise.
27952
27953 2010-05-01  Bruno Haible  <bruno@clisp.org>
27954
27955         lseek test: Fix failure on Solaris.
27956         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
27957         output.
27958
27959 2010-04-30  Jim Meyering  <meyering@redhat.com>
27960
27961         bootstrap: don't ignore failure to generate po*/Makevars
27962         * build-aux/bootstrap (with_gettext): Don't ignore failure
27963         to create po/Makevars or runtime-po/Makevars.
27964
27965 2010-04-29  Eric Blake  <eblake@redhat.com>
27966
27967         headers: relax license to LGPLv2+
27968         * modules/fcntl-h (License): Relax license.
27969         * modules/getopt-posix (License): Likewise.
27970         * modules/locale (License): Likewise.
27971         * modules/math (License): Likewise.
27972         * modules/pty (License): Likewise.
27973         * modules/sched (License): Likewise.
27974         * modules/search (License): Likewise.
27975         * modules/spawn (License): Likewise.
27976         * modules/stdarg (License): Likewise.
27977         * modules/sysexits (License): Likewise.
27978
27979 2010-04-29  Jim Meyering  <meyering@redhat.com>
27980
27981         inttypes: relax license to LGPLv2+
27982         * modules/inttypes (License): Relax license.
27983
27984 2010-04-29  Simon Josefsson  <simon@josefsson.org>
27985
27986         * top/maint.mk (indent): Run twice to produce idempotent results.
27987
27988 2010-04-28  Bruno Haible  <bruno@clisp.org>
27989
27990         getdate: Generate getdate.c in the source directory.
27991         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
27992         MOSTLYCLEANFILES.
27993         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
27994
27995 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
27996
27997         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
27998         is not declared as a const *; avoid warnings in that case.
27999
28000 2010-04-28  Eric Blake  <eblake@redhat.com>
28001
28002         canonicalize-lgpl: avoid compiler warning
28003         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28004         declaration' / 'extraneous semicolon' warning with some compilers.
28005         Reported by Andreas Gruenbacher.
28006
28007 2010-04-28  Jim Meyering  <meyering@redhat.com>
28008
28009         init.sh: ensure a more reliable exit status when exiting via trap
28010         * tests/init.sh (setup_): Don't rely on $? in signal handler.
28011         Inspired by patches from Dmitry V. Levin.
28012         Also trap on signal 3 (SIGQUIT).
28013
28014 2010-04-27  Bruno Haible  <bruno@clisp.org>
28015
28016         Update doc about utimes().
28017         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
28018         'utimens' module.
28019         Reported by Andreas Gruenbacher <agruen@suse.de>.
28020
28021 2010-04-27  Eric Blake  <eblake@redhat.com>
28022
28023         full-read, full-write: relax license
28024         * modules/full-read (License): Drop to LGPLv2+.
28025         * modules/full-write (License): Likewise.
28026         * modules/safe-read (License): Likewise.
28027         * modules/safe-write (License): Likewise.
28028
28029         pthread: mention library for linking
28030         * modules/pthread (Link): Mention $(LIB_PTHREAD).
28031
28032 2010-04-27  Jim Meyering  <meyering@redhat.com>
28033
28034         maint.mk: fix a bug introduced in last change
28035         * top/maint.mk (gl_assured_headers_): Now that all names are on
28036         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
28037         is not anchored to end of word, it should be adequate.
28038
28039         maint.mk: avoid side-effect in latest syntax-check
28040         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
28041         to run commands via $(shell...), and hence to incur cost only when
28042         the new rule is actually run.
28043
28044         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
28045         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
28046         and use that to create a regexp used to detect all #if HAVE_..._H uses.
28047         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
28048         (gl_assured_headers_, az_, AZ_): Define.
28049         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
28050
28051 2010-04-26  Jim Meyering  <jim@meyering.net>
28052             Bruno Haible  <bruno@clisp.org>
28053
28054         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
28055         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
28056         Prompted by an exchange with Gilles Espinasse.
28057
28058 2010-04-26  Jim Meyering  <meyering@redhat.com>
28059
28060         git-version-gen: aesthetic tweak
28061         * build-aux/git-version-gen: Use "$nl" rather than a literal,
28062         so that the command remains on a single line.
28063
28064 2010-04-26  Eric Blake  <eblake@redhat.com>
28065
28066         git-version-gen: allow use on EBCDIC hosts
28067         * build-aux/git-version-gen (dirty): Use literal rather than tying
28068         ourselves to ascii.
28069         Reported by Steve Goetze.
28070
28071 2010-04-25  Bruno Haible  <bruno@clisp.org>
28072
28073         netdb: Add support for GNULIB_POSIXCHECK.
28074         * lib/netdb.in.h: Include warn-on-use.h.
28075         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
28076         functions are used when GNULIB_POSIXCHECK is defined and the
28077         getaddrinfo module is not in use.
28078         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
28079         freeaddrinfo, gai_strerror, getnameinfo are declared.
28080         * modules/netdb (Depends-on): Add warn-on-use.
28081         (Makefile.am): Include warn-on-use.h in netdb.h.
28082
28083 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
28084
28085         build: avoid "make check" failure without .git/ directory
28086         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
28087         there is no .git/ directory.
28088
28089 2010-04-25  Bruno Haible  <bruno@clisp.org>
28090
28091         ptsname: Fix misuse of ttyname_r.
28092         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
28093         of errno.
28094
28095 2010-04-25  Bruno Haible  <bruno@clisp.org>
28096
28097         ttyname_r: Make it work on Solaris 10.
28098         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
28099         if the system function has the POSIX declaration. Test whether the
28100         function fails if the buffer is less than 128 bytes large.
28101         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
28102         system's ttyname_r function. Provide a reasonably large buffer.
28103         * modules/ttyname_r (Depends-on): Add extensions.
28104         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
28105
28106 2010-04-25  Bruno Haible  <bruno@clisp.org>
28107
28108         Use the 'extensions' module for some more functions on Solaris.
28109         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
28110         module.
28111         * doc/posix-functions/ctime_r.texi: Likewise.
28112         * doc/posix-functions/getgrgid_r.texi: Likewise.
28113         * doc/posix-functions/getgrnam_r.texi: Likewise.
28114         * doc/posix-functions/getpwnam_r.texi: Likewise.
28115         * doc/posix-functions/getpwuid_r.texi: Likewise.
28116         * doc/posix-functions/readdir_r.texi: Likewise.
28117         * doc/posix-functions/sigwait.texi: Likewise.
28118         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
28119         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
28120
28121 2010-04-25  Bruno Haible  <bruno@clisp.org>
28122
28123         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
28124         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
28125         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
28126         * lib/ttyname_r.c: Include <limits.h>.
28127         (ttyname_r): Define using the system's ttyname_r function, if it exists
28128         and not on Solaris.
28129         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
28130         set.
28131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
28132         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
28133         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
28134         Reported by Simon Josefsson.
28135
28136 2010-04-25  Bruno Haible  <bruno@clisp.org>
28137
28138         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
28139         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
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/getlogin_r.texi: Likewise.
28144         * doc/posix-functions/getpwnam_r.texi: Likewise.
28145         * doc/posix-functions/getpwuid_r.texi: Likewise.
28146         * doc/posix-functions/readdir_r.texi: Likewise.
28147         * doc/posix-functions/sigwait.texi: Likewise.
28148         * doc/posix-functions/ttyname_r.texi: Likewise.
28149         Reported by Simon Josefsson.
28150
28151 2010-04-25  Bruno Haible  <bruno@clisp.org>
28152
28153         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
28154         * gnulib-tool (func_usage): Document that --with-*-tests options apply
28155         also to --create-testdir.
28156         (func_acceptable): Don't consider the status of *-tests modules here.
28157         (func_modules_transitive_closure): Consider it here, before including a
28158         test module.
28159         (func_import, func_create_testdir): Set inc_all_direct_tests,
28160         inc_all_indirect_tests.
28161         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
28162         --create-testdir and --create-megatestdir.
28163
28164 2010-04-25  Bruno Haible  <bruno@clisp.org>
28165
28166         gnulib-tool: Add --without-*-tests options.
28167         * gnulib-tool (func_usage): Document the --without-*-tests options.
28168         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
28169         excl_unportable_tests): New variables.
28170         Fail if they are specified with --import or --update.
28171         (func_acceptable): Respect the excl_*_tests variables.
28172         (func_import): Set the excl_*_tests variables to empty.
28173
28174 2010-04-25  Simon Josefsson  <simon@josefsson.org>
28175             Bruno Haible  <bruno@clisp.org>
28176
28177         Work around a MacOS X 10.4 bug with openpty.
28178         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
28179         * tests/test-openpty.c (main): Close the master side explicitly.
28180
28181 2010-04-25  Bruno Haible  <bruno@clisp.org>
28182
28183         strnlen: Fix a C++ test error on MacOS X and Solaris.
28184         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
28185         the function is not declared.
28186         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
28187         Simon Josefsson.
28188
28189 2010-04-24  Bruno Haible  <bruno@clisp.org>
28190
28191         Avoid a gcc warning.
28192         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
28193         of correct type for %08lx directive.
28194         Reported by Eric Blake.
28195
28196 2010-04-24  Bruno Haible  <bruno@clisp.org>
28197
28198         vasnprintf: Correct errno value in case of out-of-memory.
28199         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
28200         or sprintf. Use the errno value from SNPRINTF or sprintf.
28201         Reported by Ian Beckwith <ianb@erislabs.net>.
28202
28203 2010-04-24  Bruno Haible  <bruno@clisp.org>
28204
28205         ansi-c++-opt: Find correct compiler when cross-compiling.
28206         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
28207         AC_CHECK_PROGS.
28208         Reported by Simon Josefsson.
28209
28210 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
28211
28212         vc-list-files: Add support for subversion
28213         * build-aux/vc-list-files: Use "svn list" to generate the list of
28214         files controlled by subversion.
28215
28216 2010-04-23  Jim Meyering  <meyering@redhat.com>
28217
28218         vc-list-files tests: convert to use init.sh
28219         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
28220         path_prepend_.
28221         Use Exit, not exit.
28222         Use skip_ rather than open coding it.
28223         Remove trap set-up and compare definitions.
28224         * tests/test-vc-list-files-git.sh: Likewise.
28225         * modules/vc-list-files-tests (Files): Add tests/init.sh.
28226
28227 2010-04-22  Simon Josefsson  <simon@josefsson.org>
28228
28229         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
28230         backup files.
28231
28232 2010-04-21  Simon Josefsson  <simon@josefsson.org>
28233
28234         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
28235
28236 2010-04-20  Eric Blake  <eblake@redhat.com>
28237
28238         tests: be robust to ignored SIGPIPE
28239         * tests/test-select-in.sh: Consume all output.
28240         * tests/test-lseek.sh: Check correct exit status, while avoiding
28241         EPIPE.
28242
28243 2010-04-20  Simon Josefsson  <simon@josefsson.org>
28244             Bruno Haible  <bruno@clisp.org>
28245
28246         visibility: Don't use -fvisibility if it leads to a warning.
28247         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
28248         yes, don't pretend that visibility works if it leads to a warning.
28249         Reported by Mike Gran <spk121@yahoo.com>.
28250
28251 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
28252
28253         * build-aux/bootstrap: Use "git -h" for testing for supported options
28254         instead of "git --help".  The short-form option only shows a summary,
28255         and doesn't layout the full man page.  Grep for the full option name
28256         in the summary, too.
28257
28258 2010-04-19  Bruno Haible  <bruno@clisp.org>
28259
28260         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
28261         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
28262         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
28263         mention of RELOCATABLE_STRIP.
28264         Reported by Sylvain Beucler <beuc@beuc.net>.
28265
28266 2010-04-19  Bruno Haible  <bruno@clisp.org>
28267
28268         * lib/diffseq.h: Fix typo in comment.
28269         Reported by Eric Blake.
28270
28271 2010-04-19  Bruno Haible  <bruno@clisp.org>
28272
28273         ioctl: Move autoconf macro to a .m4 file.
28274         * m4/ioctl.m4: New file, extracted from modules/ioctl.
28275         * modules/ioctl (Files): Add it.
28276         (configure.ac): Simply invoke gl_FUNC_IOCTL.
28277         Reported by Ian Beckwith <ianb@erislabs.net>.
28278
28279 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
28280             Bruno Haible  <bruno@clisp.org>
28281
28282         diffseq: Accommodate use-case with abstract arrays.
28283         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
28284         is not defined.
28285         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
28286         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
28287
28288 2010-04-18  Bruno Haible  <bruno@clisp.org>
28289
28290         * doc/posix-headers/stdbool.texi: More precise wording.
28291
28292 2010-04-17  Jim Meyering  <meyering@redhat.com>
28293
28294         maint.mk: use gnu-style indentation in an embedded perl script
28295         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
28296         Rename variable: s/two/last_two_bytes/
28297
28298 2010-04-16  Eric Blake  <eblake@redhat.com>
28299
28300         test-stdbool: skip test that fails with Solaris CC
28301         * tests/test-stdbool.c (f): Skip test that causes compilation
28302         error under buggy C++ compiler.
28303         * lib/stdbool.in.h: Document the limitation.
28304         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
28305
28306         setenv: allow compilation with C++
28307         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
28308         register keyword.
28309
28310         stdint: allow test to pass with C++
28311         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
28312
28313         getopt: allow compilation with C++
28314         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
28315         struct.
28316         * lib/getopt.c (_getopt_internal_r): Use correct type.
28317         Reported by Dagobert Michelson, via Joel E. Denny.
28318
28319 2010-04-16  Bruno Haible  <bruno@clisp.org>
28320
28321         Override netdb.h always.
28322         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
28323         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
28324         Reported by Ludovic Courtès <ludo@gnu.org>.
28325
28326 2010-04-15  Bruno Haible  <bruno@clisp.org>
28327
28328         openpty: Fix mistake from 2010-03-21.
28329         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
28330         Reported by Simon Josefsson.
28331
28332 2010-04-15  Eric Blake  <eblake@redhat.com>
28333
28334         test-forkpty: fix expected signature
28335         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
28336         Reported by Simon Josefsson.
28337
28338 2010-04-15  Jim Meyering  <meyering@redhat.com>
28339
28340         maint.mk: texinfo_suffix_re_: correct the default regexp
28341         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
28342
28343         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
28344         make it configurable via texinfo_suffix_re_.
28345
28346 2010-04-14  Eric Blake  <eblake@redhat.com>
28347
28348         strtok_r: relax license to LGPLv2+
28349         * modules/strtok_r (License): Relax license.
28350         Reported by Matthias Bolte.
28351
28352 2010-04-14  Simon Josefsson  <simon@josefsson.org>
28353
28354         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
28355         version 1.4.4 by default instead of requiring the libgcrypt
28356         version used during build.  This makes it possible to use the
28357         application with older but still binary compatible libgcrypt
28358         versions.
28359
28360 2010-04-13  Eric Blake  <eblake@redhat.com>
28361
28362         getopt-gnu: match recent glibc fixes and posix ruling
28363         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
28364         '+' handling, when requesting extensions.
28365         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
28366         'W;' handling.
28367         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
28368         * doc/posix-functions/getopt.texi (getopt): Document this.
28369         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
28370         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28371         Likewise.
28372
28373         getopt: merge bug fixes from glibc
28374         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
28375         diagnostics.  Honor '+:' correctly.  Reject ';'.
28376
28377         getopt-posix: detect MacOS bug
28378         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
28379         optind when missing a required argument.
28380         * doc/posix-functions/getopt.texi (getopt): Document the bug.
28381         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
28382         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28383         Likewise.
28384
28385         getopt-posix: avoid spurious failure on Solaris
28386         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
28387         an indicator that setting optind=1 is sufficient for reset.
28388
28389         getopt-posix: avoid spurious failure on FreeBSD
28390         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
28391         in POSIX mode, since the m4 test uses it.
28392
28393         gnulib-tool: silence warning on BSD sh
28394         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
28395
28396 2010-04-13  Jim Meyering  <meyering@redhat.com>
28397
28398         doc: users.txt: GNU patch now uses gnulib
28399         * users.txt: Add patch.
28400
28401 2010-04-12  Jim Meyering  <meyering@redhat.com>
28402
28403         maint.mk: generate more concise timing data for syntax-check rules
28404         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
28405         " done" from each line that reports a syntax-check test duration.
28406
28407 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
28408
28409         git-version-gen: use "git update-index..." rather than "git status"
28410         * build-aux/git-version-gen: Use git update-index --refresh, not
28411         "git status".  With some versions of git, "git status" would fail
28412         to update the index and result in an unwarranted "-dirty" suffix.
28413
28414 2010-04-11  Jim Meyering  <meyering@redhat.com>
28415
28416         openat: correct formatting (no semantic change)
28417         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
28418         Suggested by Bruno Haible.
28419
28420 2010-04-11  Bruno Haible  <bruno@clisp.org>
28421
28422         Stricter declaration checking in testdirs.
28423         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28424         If for_tests is true, augment AM_CPPFLAGS to define
28425         GNULIB_STRICT_CHECKING.
28426         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
28427         GNULIB_STRICT_CHECKING is defined, verify that the function is
28428         declared.
28429
28430 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
28431             Bruno Haible  <bruno@clisp.org>
28432
28433         libunistring: Improve configure output.
28434         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
28435         Don't say "consider installing GNU libunistring" when checking again
28436         with libiconv.
28437
28438 2010-04-11  Bruno Haible  <bruno@clisp.org>
28439
28440         libunistring: Correct value of $LTLIBUNISTRING.
28441         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
28442         correct the value of $LTLIBUNISTRING.
28443
28444 2010-04-11  Bruno Haible  <bruno@clisp.org>
28445
28446         havelib: Add static libraries to LIBS in the right order.
28447         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
28448         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
28449
28450 2010-04-11  Bruno Haible  <bruno@clisp.org>
28451
28452         libunistring: Detect libunistring also when it depends on libiconv.
28453         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
28454         the second AC_LIB_HAVE_LINKFLAGS invocation.
28455
28456 2010-04-11  James Youngman  <jay@gnu.org>
28457
28458         close-stream: declare local scalars to be "const"
28459         * lib/close-stream.c (close_stream): Make boolean variables const
28460         to document the fact that we set but do not change them.
28461
28462 2010-04-11  Bruno Haible  <bruno@clisp.org>
28463
28464         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
28465
28466 2010-04-11  Jim Meyering  <meyering@redhat.com>
28467
28468         maint.mk: don't include dist-check.mk
28469         * top/maint.mk: Remove bogus include directive.
28470
28471         maint.mk: improve empty-line-at-EOF check
28472         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
28473         solution, rather than tail+Perl-based one.  The latter would read
28474         a few kilobytes from the end of each file, and did not handle empty
28475         files properly.
28476
28477         maint.mk: print the elapsed time for each syntax-check rule
28478         * top/maint.mk (sc_m_rules_): Save start time in a file.
28479         (sc_z_rules_): New rules: remove temp file and print elapsed time.
28480         (local-check): Interpose the .z rules
28481
28482 2010-04-11  Jim Meyering  <meyering@redhat.com>
28483
28484         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
28485         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
28486         empty file with one that ends in an empty line.
28487
28488 2010-04-10  Bruno Haible  <bruno@clisp.org>
28489
28490         mkdir: Make it work on mingw64.
28491         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
28492         * lib/mkdir.c: Update comment.
28493         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
28494
28495 2010-04-10  Bruno Haible  <bruno@clisp.org>
28496
28497         Don't override improved macro from newer autoconf.
28498         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
28499         autoconf >= 2.62.
28500         Reported by Joel E. Denny <jdenny@clemson.edu>.
28501
28502 2010-04-10  Jim Meyering  <meyering@redhat.com>
28503
28504         maint.mk: new syntax-check rule: prohibit empty lines at end of file
28505         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
28506
28507         maint.mk: correct a diagnostic
28508         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
28509         in diagnostic; now use $prohibit.
28510
28511 2010-04-10  Bruno Haible  <address@hidden>
28512
28513         fchownat: Fix a C++ test error on Solaris 8.
28514         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
28515         the function does not exist.
28516
28517 2010-04-10  Bruno Haible  <bruno@clisp.org>
28518
28519         vasnprintf: Add more tests.
28520         * tests/test-vasnprintf-posix.c: Include <errno.h>.
28521         (test_function): Test converting an invalid wide string.
28522
28523         vasnprintf: Correct handling of unconvertible wide string arguments.
28524         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
28525         VASNPRINTF.
28526         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
28527         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
28528         smaller than the expected maximum need for the directive. Set errno to
28529         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
28530         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
28531         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
28532         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
28533         * modules/vasnprintf (Files): Add m4/printf.m4.
28534         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28535
28536 2010-04-10  Bruno Haible  <bruno@clisp.org>
28537
28538         vasnprintf: Fix crash in %ls directive.
28539         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
28540         string is passed as argument to %ls, with no precision and no width.
28541         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28542
28543 2010-04-10  Bruno Haible  <bruno@clisp.org>
28544
28545         vasnprintf: Fix multiple test failures on mingw.
28546         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
28547         _snprintf, or snwprintf, not _snwprintf.
28548
28549 2010-04-10  Bruno Haible  <bruno@clisp.org>
28550
28551         write: Fix a C++ test error on mingw.
28552         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
28553
28554 2010-04-10  Bruno Haible  <bruno@clisp.org>
28555
28556         vasnprintf test: Reduce code duplication.
28557         * tests/test-vasnprintf.c (test_function): New function, extracted from
28558         test_vasnprintf.
28559         (test_vasnprintf, test_asnprintf): Invoke it.
28560
28561 2010-04-10  Bruno Haible  <bruno@clisp.org>
28562
28563         strnlen: Fix warning in C++ mode on MacOS X.
28564         * lib/string.in.h (strnlen): Use the modern idiom.
28565         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
28566         defining strnlen as a macro already in <config.h>.
28567         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28568         REPLACE_STRNLEN.
28569         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
28570         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28571
28572 2010-04-08  James Youngman  <jay@gnu.org>
28573
28574         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
28575         the example.
28576
28577 2010-04-09  Jim Meyering  <meyering@redhat.com>
28578
28579         maint.mk: print better diagnostic when there is no $(_hv_file)
28580         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
28581         announce that when $(_hv_file) (aka help-version) does not exist.
28582
28583         init.sh: run tr in the "C" locale to avoid multibyte interpretation
28584         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
28585         not try to interpret its random input bytes.  Jarno Rajahalme reported
28586         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
28587         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
28588         (mktempd_): Likewise, just in case.
28589
28590         ftruncate: add two years to projected module removal date: 2012
28591         * m4/ftruncate.m4: Adjust comments.
28592
28593         ftruncate: mark module as obsolete; even MinGW provides it, now
28594         * modules/ftruncate (Status): Obsolete.
28595         (Notice): Say that.
28596         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
28597         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
28598
28599 2010-04-08  Bruno Haible  <bruno@clisp.org>
28600
28601         Fix side effects from tests-related modules.
28602         * modules/dprintf-posix (Comment): New section.
28603         * modules/fprintf-posix (Comment): Likewise.
28604         * modules/obstack-printf-posix (Comment): Likewise.
28605         * modules/printf-posix (Comment): Likewise.
28606         * modules/snprintf-posix (Comment): Likewise.
28607         * modules/sprintf-posix (Comment): Likewise.
28608         * modules/vasnprintf-posix (Comment): Likewise.
28609         * modules/vasprintf-posix (Comment): Likewise.
28610         * modules/vdprintf-posix (Comment): Likewise.
28611         * modules/vfprintf-posix (Comment): Likewise.
28612         * modules/vprintf-posix (Comment): Likewise.
28613         * modules/vsnprintf-posix (Comment): Likewise.
28614         * modules/vsprintf-posix (Comment): Likewise.
28615         * modules/xprintf-posix (Comment): Likewise.
28616         * modules/xvasprintf-posix (Comment): Likewise.
28617         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
28618         * modules/floorf-tests (Depends-on): Likewise.
28619         * modules/round-tests (Depends-on): Likewise.
28620         * modules/roundf-tests (Depends-on): Likewise.
28621         * modules/trunc-tests (Depends-on): Likewise.
28622         * modules/truncf-tests (Depends-on): Likewise.
28623         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
28624         'fprintf-posix' module is not present.
28625         * tests/test-floorf2.c (check): Likewise.
28626         * tests/test-trunc2.c (check): Likewise.
28627         * tests/test-truncf2.c (check): Likewise.
28628         * tests/test-round2.c (equal): Likewise.
28629         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28630
28631 2010-04-07  Karl Berry  <karl@gnu.org>
28632
28633         * config/srclist.txt,
28634         * config/srclistvars.sh,
28635         * config/srclist-update: doc fixes.
28636
28637 2010-04-07  Jim Meyering  <meyering@redhat.com>
28638
28639         maint.mk: add a PATH crosschecking syntax-check rule
28640         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
28641         Useful if you use a test like the one in help-version (coreutils,
28642         diffutils, grep, gzip) that ensures $(VERSION) matches what is
28643         printed by prog --version.
28644
28645 2010-04-06  Bruno Haible  <bruno@clisp.org>
28646
28647         Fix link error on mingw.
28648         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
28649         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
28650
28651 2010-04-06  Bruno Haible  <bruno@clisp.org>
28652
28653         Assume rmdir exists.
28654         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
28655
28656 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
28657
28658         doc: update users.txt
28659         * users.txt: Add gcal.
28660
28661 2010-04-06  Jim Meyering  <meyering@redhat.com>
28662
28663         init.sh: simply unset TMPDIR rather than risking env -i
28664         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
28665         although it probably works fine on all Unix-based systems, some
28666         systems (Cygwin?) cannot tolerate a totally cleared environment.
28667         Suggestion from Eric Blake.
28668
28669 2010-04-06  Jim Meyering  <meyering@redhat.com>
28670
28671         init.sh: portability fix: use env's POSIX-specified -i option not -u
28672         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
28673         than unportable env -u.  Solaris 5.11's env lacks support for -u.
28674
28675 2010-04-05  Bruno Haible  <bruno@clisp.org>
28676
28677         btowc: Work around Cygwin 1.7.2 bug.
28678         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
28679         does not map NUL to 0.
28680         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
28681
28682 2010-04-05  Bruno Haible  <bruno@clisp.org>
28683
28684         Make the multithread modules work on Cygwin 1.7.2.
28685         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
28686         imported symbols can be declared weak, so that it returns "no" on
28687         Cygwin 1.7.2.
28688
28689 2010-04-05  Bruno Haible  <bruno@clisp.org>
28690
28691         Use the module 'strncat'.
28692         * modules/unistr/u8-strncat (Depends-on): Add strncat.
28693
28694         Tests for module 'strncat'.
28695         * modules/strncat-tests: New file.
28696         * tests/test-strncat.c: New file.
28697
28698         New module 'strncat'.
28699         * lib/string.in.h (strncat): New declaration.
28700         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
28701         * m4/strncat.m4: New file, based on m4/memchr.m4.
28702         * modules/strncat: New file.
28703         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
28704         is declared.
28705         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
28706         REPLACE_STRNCAT.
28707         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
28708         REPLACE_STRNCAT.
28709         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
28710         module.
28711         * tests/test-string-c++.cc: Check signature of strncat.
28712
28713 2010-04-05  Jim Meyering  <meyering@redhat.com>
28714
28715         xstrtoumax-tests: convert to use init.sh
28716         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
28717         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28718         Use Exit, not exit.
28719         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28720
28721         xstrtoimax-tests: convert to use init.sh
28722         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
28723         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28724         Use Exit, not exit.
28725         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28726
28727 2010-04-05  Bruno Haible  <bruno@clisp.org>
28728
28729         sys_socket: Avoid #define replacements in C++ mode.
28730         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
28731         warning to the function if possible, rather than #defining the symbol
28732         to a dysfunctional alias.
28733
28734 2010-04-05  Bruno Haible  <bruno@clisp.org>
28735
28736         fseeko: Fix C++ test error on mingw.
28737         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
28738         gl_FUNC_FSEEKO.
28739         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
28740         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
28741         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
28742         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
28743
28744 2010-04-05  Bruno Haible  <bruno@clisp.org>
28745
28746         duplocale: Improve test output.
28747         * tests/test-duplocale.c (main): Print reason for skipped test.
28748
28749 2010-04-05  Bruno Haible  <bruno@clisp.org>
28750
28751         Assume rmdir exists.
28752         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
28753         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
28754
28755 2010-04-05  Bruno Haible  <bruno@clisp.org>
28756
28757         Fix link error on Solaris 8 with cc.
28758         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
28759
28760 2010-04-05  Bruno Haible  <bruno@clisp.org>
28761
28762         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
28763         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
28764
28765 2010-04-05  Bruno Haible  <bruno@clisp.org>
28766
28767         vasprintf: Update documentation.
28768         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
28769
28770 2010-04-05  Bruno Haible  <bruno@clisp.org>
28771
28772         ptsname: Improve test.
28773         * tests/test-ptsname.c (main): Also try the various master names of BSD
28774         systems.
28775
28776 2010-04-05  Bruno Haible  <bruno@clisp.org>
28777
28778         memchr: Avoid a possible C++ test error.
28779         * lib/string.in.h (memchr): Provide declaration if function is missing.
28780         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
28781         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
28782         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
28783         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
28784
28785 2010-04-05  Bruno Haible  <bruno@clisp.org>
28786
28787         strtok_r: Improve idiom.
28788         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
28789         AC_LIBOBJ is used.
28790
28791 2010-04-05  Bruno Haible  <bruno@clisp.org>
28792
28793         strdup: Improve idiom.
28794         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
28795         AC_LIBOBJ is used.
28796         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
28797         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
28798         when AC_LIBOBJ is used.
28799
28800 2010-04-05  Bruno Haible  <bruno@clisp.org>
28801
28802         mbsinit, mbrtowc, wcrtomb: Improve idioms.
28803         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
28804         don't set REPLACE_MBSINIT to 1.
28805         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
28806         don't set REPLACE_MBRTOWC to 1.
28807         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
28808         exist, don't set REPLACE_MBSRTOWCS to 1.
28809         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
28810         exist, don't set REPLACE_MBSNRTOWCS to 1.
28811         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
28812         don't set REPLACE_WCRTOMB to 1.
28813         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
28814         exist, don't set REPLACE_WCSRTOMBS to 1.
28815         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
28816         exist, don't set REPLACE_WCSNRTOMBS to 1.
28817
28818 2010-04-05  Bruno Haible  <bruno@clisp.org>
28819
28820         ldexpl: Improve idiom.
28821         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
28822         make sure to set HAVE_DECL_LDEXPL to 0.
28823
28824 2010-04-05  Jim Meyering  <meyering@redhat.com>
28825
28826         xstrtol-tests: convert to use init.sh
28827         * modules/xstrtol-tests (Files): Add tests/init.sh.
28828         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28829         Use Exit, not exit.
28830         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28831
28832         atexit-tests: convert to use init.sh
28833         * modules/atexit-tests (Files): Add tests/init.sh.
28834         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28835         Use Exit, not exit.
28836         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28837
28838         init.sh: fix typo
28839         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
28840
28841         init.sh: make it easier for a test script to write to the tty, ...
28842         when using automake's parallel-tests mode.
28843         * tests/init.sh (stderr_fileno_): Define overridable variable.
28844         (warn_): New function, to use it.
28845         (fail_, skip_, framework_failure_): Use warn_.
28846
28847 2010-04-04  Bruno Haible  <bruno@clisp.org>
28848
28849         btowc: Avoid warning.
28850         * lib/btowc.c: Include <stdlib.h>.
28851         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
28852
28853 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
28854             Bruno Haible  <bruno@clisp.org>
28855
28856         wchar: Port to NetBSD 1.5.
28857         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
28858         * lib/wctype.in.h (WEOF): Likewise.
28859
28860 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
28861             Bruno Haible  <bruno@clisp.org>
28862
28863         Port extended stdio to NetBSD 1.5.
28864         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
28865         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
28866         older.
28867
28868 2010-04-04  Bruno Haible  <bruno@clisp.org>
28869
28870         string: Remove unused substitution.
28871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
28872         HAVE_DECL_STRERROR.
28873         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
28874
28875 2010-04-04  Bruno Haible  <bruno@clisp.org>
28876
28877         strtod: Avoid a possible C++ test error.
28878         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
28879         set REPLACE_STRTOD.
28880
28881 2010-04-04  Bruno Haible  <bruno@clisp.org>
28882
28883         strerror: Update documentation.
28884         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
28885
28886 2010-04-04  Bruno Haible  <bruno@clisp.org>
28887
28888         stdio: Fix some C++ test errors on Solaris 8 with GCC.
28889         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
28890         _GL_CXXALIAS_SYS_CAST.
28891
28892 2010-04-04  Bruno Haible  <bruno@clisp.org>
28893
28894         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
28895         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
28896         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
28897         REPLACE_FREXPL to 1.
28898         * doc/posix-functions/frexpl.texi: Update documentation.
28899
28900 2010-04-04  Bruno Haible  <bruno@clisp.org>
28901
28902         math: Fix some C++ test errors on Solaris 8 and Cygwin.
28903         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
28904
28905 2010-04-04  Bruno Haible  <bruno@clisp.org>
28906
28907         Implement nanosleep for native Windows.
28908         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
28909
28910 2010-04-04  Bruno Haible  <bruno@clisp.org>
28911
28912         math: Fix some C++ test errors on Solaris 8.
28913         * lib/math.in.h (truncf, trunc): Use simpler idiom.
28914
28915 2010-04-04  Bruno Haible  <bruno@clisp.org>
28916
28917         math: Fix some C++ test errors on Cygwin.
28918         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
28919         truncl): Provide declaration if the system does not have it.
28920         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
28921         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
28922         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
28923         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
28924         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
28925         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
28926         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
28927         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
28928         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
28929         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
28930         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
28931         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
28932         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
28933         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
28934         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
28935         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
28936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
28937         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
28938         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
28939         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
28940         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
28941         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
28942
28943 2010-04-04  Bruno Haible  <bruno@clisp.org>
28944
28945         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
28946         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
28947         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
28948         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28949         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
28950         * m4/isinf.m4 (gl_ISINF): Likewise.
28951         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28952
28953 2010-04-04  Bruno Haible  <bruno@clisp.org>
28954
28955         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
28956         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28957
28958 2010-04-04  Bruno Haible  <bruno@clisp.org>
28959
28960         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
28961         * modules/tmpfile (configure.ac): Update.
28962
28963         tmpfile: Fix C++ test error on mingw.
28964         * lib/stdio.in.h (tmpfile): New declaration.
28965         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
28966         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
28967         * modules/tmpfile (Depends-on): Add stdio.
28968         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
28969         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
28970         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
28971         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
28972         REPLACE_TMPFILE.
28973         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
28974
28975 2010-04-04  Bruno Haible  <bruno@clisp.org>
28976
28977         ioctl: Fix C++ test error on mingw.
28978         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
28979         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
28980         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
28981
28982 2010-04-03  Bruno Haible  <bruno@clisp.org>
28983
28984         wcwidth: Fix C++ test error on mingw.
28985         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
28986         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
28987         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
28988
28989 2010-04-03  Bruno Haible  <bruno@clisp.org>
28990
28991         nanosleep: Fix C++ test error on mingw.
28992         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
28993         * lib/time.in.h (nanosleep): Use modern idiom.
28994         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
28995         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
28996         REPLACE_NANOSLEEP to 1.
28997         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
28998         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
28999
29000 2010-04-03  Bruno Haible  <bruno@clisp.org>
29001
29002         strptime: Fix C++ test error on mingw.
29003         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29004         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29005         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29006         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29007         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29008         not REPLACE_STRPTIME.
29009         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29010         REPLACE_STRPTIME.
29011
29012 2010-04-03  Bruno Haible  <bruno@clisp.org>
29013
29014         timegm: Fix C++ test error on mingw.
29015         * lib/time.in.h (timegm): Use modern idiom.
29016         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
29017         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
29018         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
29019         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
29020
29021 2010-04-03  Bruno Haible  <bruno@clisp.org>
29022
29023         timegm: Assume declaration if function exists.
29024         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
29025         if it exists. Don't clobber ac_cv_func_timegm.
29026
29027 2010-04-03  Bruno Haible  <bruno@clisp.org>
29028
29029         time_r: Fix C++ test error on mingw.
29030         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
29031         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
29032         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
29033         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
29034         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
29035
29036 2010-04-03  Bruno Haible  <bruno@clisp.org>
29037
29038         time_r: Minor updates.
29039         * modules/time_r (Description): Mention the provided functions.
29040         * lib/time_r.c: Don't include <string.h>.
29041         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
29042         * doc/posix-functions/localtime_r.texi: Likewise.
29043
29044 2010-04-03  Bruno Haible  <bruno@clisp.org>
29045
29046         time: Fix regression introduced on 2010-03-08.
29047         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
29048         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
29049
29050 2010-04-03  Jim Meyering  <meyering@redhat.com>
29051
29052         maint.mk: don't silently disable project-specific syntax-check rules
29053         * top/maint.mk (_prohibit_regexp): Define, to help people realize
29054         that they need to convert their project-specific syntax-check rules
29055         to use the new _sc_search_regexp.
29056
29057 2010-04-03  Bruno Haible  <bruno@clisp.org>
29058
29059         fchdir: Fix regression introduced on 2010-03-08.
29060         * lib/unistd.in.h (fchdir): Fix declaration.
29061         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
29062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
29063         REPLACE_FCHDIR.
29064         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
29065         REPLACE_FCHDIR.
29066
29067 2010-04-03  Bruno Haible  <bruno@clisp.org>
29068
29069         getpagesize: Fix C++ test error on mingw.
29070         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
29071         system does not declare the function.
29072         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
29073         declared.
29074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29075         HAVE_DECL_GETPAGESIZE.
29076         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
29077
29078 2010-04-03  Bruno Haible  <bruno@clisp.org>
29079
29080         stdio: Make C++ tests work on mingw.
29081         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
29082         does not declare the function.
29083
29084 2010-04-03  Bruno Haible  <bruno@clisp.org>
29085
29086         ftello: Fix C++ test error on mingw.
29087         * lib/stdio.in.h (ftello): Use modern idiom.
29088         * lib/ftello.c (ftello): Renamed from rpl_ftello.
29089         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
29090         is missing and that it needs to be replaced.
29091         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
29092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
29093         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
29094
29095 2010-04-03  Bruno Haible  <bruno@clisp.org>
29096
29097         fseeko: Fix C++ test error on mingw.
29098         * lib/stdio.in.h (fseeko): Use modern idiom.
29099         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
29100         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
29101         is missing and that it needs to be replaced.
29102         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
29103         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
29104         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
29105
29106 2010-04-03  Bruno Haible  <bruno@clisp.org>
29107
29108         mkstemp: Fix C++ test error on mingw.
29109         * lib/stdlib.in.h (mkstemp): Use modern idiom.
29110         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
29111         function is missing and that it needs to be replaced.
29112         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
29113         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
29114
29115 2010-04-03  Bruno Haible  <bruno@clisp.org>
29116
29117         stpncpy: Fix C++ test error on mingw.
29118         * lib/string.in.h (stpncpy): Use modern idiom.
29119         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
29120         function is missing and that it needs to be replaced.
29121         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29122         REPLACE_STPNCPY.
29123         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
29124
29125 2010-04-03  Bruno Haible  <bruno@clisp.org>
29126
29127         sys_stat: Fix C++ test error on mingw.
29128         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
29129         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
29130
29131 2010-04-03  Bruno Haible  <bruno@clisp.org>
29132
29133         pty: Update doc.
29134         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
29135
29136 2010-04-03  Bruno Haible  <bruno@clisp.org>
29137
29138         unistd: Fix C++ test error on mingw.
29139         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
29140
29141 2010-04-03  Bruno Haible  <bruno@clisp.org>
29142
29143         Update doc regarding mingw.
29144         * doc/glibc-functions/openpty.texi: Update regarding mingw.
29145         * doc/glibc-functions/login_tty.texi: Likewise.
29146         * doc/glibc-functions/forkpty.texi: Likewise.
29147
29148 2010-04-03  Bruno Haible  <bruno@clisp.org>
29149
29150         stdlib: Avoid compilation failure of c-strtold on mingw.
29151         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
29152
29153 2010-04-03  Bruno Haible  <bruno@clisp.org>
29154
29155         locale: Make C++ tests work on Cygwin and mingw.
29156         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
29157         cannot provide the function.
29158         Reported by Simon Josefsson.
29159
29160 2010-04-03  Bruno Haible  <bruno@clisp.org>
29161
29162         localename: Port to MacOS X 10.6.
29163         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
29164         memory layout of the locales in MacOS X 10.6 as well.
29165         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
29166
29167 2010-04-02  Bruno Haible  <bruno@clisp.org>
29168
29169         gnulib-tool: Ensure that long-running tests are executed last.
29170         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
29171         running tests after the one for the other tests.
29172
29173 2010-04-02  Bruno Haible  <bruno@clisp.org>
29174
29175         gnulib-tool: Ensure the tests in the main directory are executed first.
29176         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
29177         start with the current directory.
29178
29179 2010-04-02  Bruno Haible  <bruno@clisp.org>
29180
29181         Tests for module 'havelib', moved here from GNU gettext.
29182         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
29183         modifications.
29184         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
29185         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
29186         with modifications.
29187         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
29188         modifications.
29189         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
29190         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
29191         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
29192         with modifications.
29193         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
29194         with modifications.
29195         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
29196         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
29197         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
29198         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
29199         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
29200         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
29201         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
29202         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
29203         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
29204         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
29205         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
29206         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
29207         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
29208         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
29209         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
29210         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
29211         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
29212         with modifications.
29213         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
29214         with modifications.
29215         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
29216         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
29217         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
29218         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
29219         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
29220         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
29221         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
29222         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
29223         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
29224         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
29225         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
29226         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
29227         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
29228         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
29229         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
29230         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
29231         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
29232         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
29233         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
29234         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
29235         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
29236         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
29237         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
29238         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
29239         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
29240         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
29241         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
29242         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
29243         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
29244         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
29245         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
29246         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
29247         * tests/havelib/rpathx/rpathx.c: New file, from
29248         gettext/autoconf-lib-link.
29249         * tests/havelib/rpathx/Makefile.am: New file, from
29250         gettext/autoconf-lib-link.
29251         * tests/havelib/rpathx/configure.ac: New file, from
29252         gettext/autoconf-lib-link with modifications.
29253         * tests/havelib/rpathy/rpathy.c: New file, from
29254         gettext/autoconf-lib-link.
29255         * tests/havelib/rpathy/Makefile.am: New file, from
29256         gettext/autoconf-lib-link.
29257         * tests/havelib/rpathy/configure.ac: New file, from
29258         gettext/autoconf-lib-link with modifications.
29259         * tests/havelib/rpathz/rpathz.c: New file, from
29260         gettext/autoconf-lib-link.
29261         * tests/havelib/rpathz/Makefile.am: New file, from
29262         gettext/autoconf-lib-link.
29263         * tests/havelib/rpathz/configure.ac: New file, from
29264         gettext/autoconf-lib-link with modifications.
29265         * tests/havelib/rpathlx/usex.c: New file, from
29266         gettext/autoconf-lib-link.
29267         * tests/havelib/rpathlx/Makefile.am: New file, from
29268         gettext/autoconf-lib-link.
29269         * tests/havelib/rpathlx/configure.ac: New file, from
29270         gettext/autoconf-lib-link with modifications.
29271         * tests/havelib/rpathly/usey.c: New file, from
29272         gettext/autoconf-lib-link.
29273         * tests/havelib/rpathly/Makefile.am: New file, from
29274         gettext/autoconf-lib-link.
29275         * tests/havelib/rpathly/configure.ac: New file, from
29276         gettext/autoconf-lib-link with modifications.
29277         * tests/havelib/rpathlz/usez.c: New file, from
29278         gettext/autoconf-lib-link.
29279         * tests/havelib/rpathlz/Makefile.am: New file, from
29280         gettext/autoconf-lib-link.
29281         * tests/havelib/rpathlz/configure.ac: New file, from
29282         gettext/autoconf-lib-link with modifications.
29283         * tests/havelib/rpathlyx/usey.c: New file, from
29284         gettext/autoconf-lib-link.
29285         * tests/havelib/rpathlyx/Makefile.am: New file, from
29286         gettext/autoconf-lib-link.
29287         * tests/havelib/rpathlyx/configure.ac: New file, from
29288         gettext/autoconf-lib-link with modifications.
29289         * tests/havelib/rpathlzyx/usez.c: New file, from
29290         gettext/autoconf-lib-link.
29291         * tests/havelib/rpathlzyx/Makefile.am: New file, from
29292         gettext/autoconf-lib-link.
29293         * tests/havelib/rpathlzyx/configure.ac: New file, from
29294         gettext/autoconf-lib-link with modifications.
29295         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
29296         with modifications.
29297
29298 2010-04-02  Bruno Haible  <bruno@clisp.org>
29299
29300         gnulib-tool: Create distributed built sources also for the tests.
29301         * gnulib-tool (func_create_testdir): Also generate distributed built
29302         sources in the tests directory.
29303
29304 2010-04-02  Bruno Haible  <bruno@clisp.org>
29305
29306         gnulib-tool: Obey user's environment variables.
29307         * gnulib-tool (func_create_testdir): When creating built sources,
29308         respect the environment variables for autoconf, automake, etc. given by
29309         the user.
29310
29311 2010-04-02  Bruno Haible  <bruno@clisp.org>
29312
29313         gnulib-tool: Provide the value of --m4-base to modules.
29314         * gnulib-tool (func_import, func_create_testdir): Emit a definition
29315         of gl_m4_base.
29316
29317 2010-04-02  Eric Blake  <eblake@redhat.com>
29318
29319         maint.mk: fix some fallout
29320         * NEWS: Document the incompatible change, and its effect on cfg.mk.
29321         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
29322
29323 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
29324
29325         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
29326         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
29327         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
29328         (sc_cast_of_x_alloc_return_value): Likewise.
29329         (sc_cast_of_alloca_return_value): Likewise.
29330         (sc_space_tab): Likewise.
29331         (sc_prohibit_atoi_atof): Likewise.
29332         (sc_prohibit_magic_number_exit): Likewise.
29333         (sc_error_exit_success): Likewise.
29334         (sc_file_system): Likewise.
29335         (sc_prohibit_have_config_h): Likewise.
29336         (sc_require_config_h): Likewise.
29337         (sc_prohibit_HAVE_MBRTOWC): Likewise.
29338         (sc_obsolete_symbols): Likewise.
29339         (sc_changelog): Likewise.
29340         (sc_program_name): Likewise.
29341         (sc_the_the): Likewise.
29342         (sc_trailing_blank): Likewise.
29343         (sc_two_space_separator_in_usage): Likewise.
29344         (sc_useless_cpp_parens): Likewise.
29345         (sc_GPL_version): Likewise.
29346         (sc_GFDL_version): Likewise.
29347         (sc_texinfo_acronym): Likewise.
29348         (sc_prohibit_cvs_keyword): Likewise.
29349         (sc_prohibit_stat_st_blocks): Likewise.
29350         (sc_prohibit_S_IS_definition): Likewise.
29351         (sc_redundant_const): Likewise.
29352         (sc_makefile_TAB_only_indentation): Likewise.
29353         (sc_m4_quote_check): Likewise.
29354         (sc_makefile_path_separator_check): Likewise.
29355         (sc_copyright_check): Likewise.
29356         (sc_Wundef_boolean): Likewise.
29357         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29358
29359         maint.mk: match 0 or more whitespace-before-function-call '('
29360         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
29361         that have zero or two-and-more spaces between the function name
29362         and the open parenthesis.
29363         (sc_error_message_warn_fatal): Likewise.
29364         (sc_error_message_uppercase): Likewise.
29365         (sc_error_message_period): Likewise.
29366
29367 2010-03-31  Eric Blake  <eblake@redhat.com>
29368
29369         maint.mk: check for [ as well as test
29370         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
29371         Based on a libvirt report by Matthias Bolte.
29372
29373         gnumakefile: don't squelch _version output
29374         * top/GNUmakefile (_version): Create one-shot dependency rather
29375         than using $(shell) when version must be regenerated.
29376         (_autoreconf): Run verbosely, by default.
29377
29378         sys_time: avoid compiler warnings
29379         * lib/sys_time.in.h (includes): Ensure gcc pragma is
29380         unconditional, fixing regression from 2010-03-29.
29381         Reported by Simon Josefsson.
29382
29383 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
29384
29385         maint.mk: s/_header_without_use/_sc_header_without_use/
29386         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
29387         (sc_prohibit_assert_without_use): Use the new name.
29388         (sc_prohibit_close_stream_without_use): Likewise.
29389         (sc_prohibit_getopt_without_use): Likewise.
29390         (sc_prohibit_quotearg_without_use): Likewise.
29391         (sc_prohibit_quote_without_use): Likewise.
29392         (sc_prohibit_long_options_without_use): Likewise.
29393         (sc_prohibit_inttostr_without_use): Likewise.
29394         (sc_prohibit_ignore_value_without_use): Likewise.
29395         (sc_prohibit_error_without_use): Likewise.
29396         (sc_prohibit_xalloc_without_use): Likewise.
29397         (sc_prohibit_hash_without_use): Likewise.
29398         (sc_prohibit_hash_pjw_without_use): Likewise.
29399         (sc_prohibit_safe_read_without_use): Likewise.
29400         (sc_prohibit_argmatch_without_use): Likewise.
29401         (sc_prohibit_canonicalize_without_use): Likewise.
29402         (sc_prohibit_root_dev_ino_without_use): Likewise.
29403         (sc_prohibit_openat_without_use): Likewise.
29404         (sc_prohibit_c_ctype_without_use): Likewise.
29405         (sc_prohibit_signal_without_use): Likewise.
29406         (sc_prohibit_intprops_without_use): Likewise.
29407
29408 2010-03-30  Eric Blake  <eblake@redhat.com>
29409
29410         maint: improve module indicators
29411         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
29412         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
29413         columns, and avoid extra macro expansion.
29414
29415         fdopendir: work around FreeBSD bug
29416         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
29417         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
29418         * modules/dirent (Makefile.am): Substitute it.
29419         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
29420         declaration.
29421         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
29422         fix.
29423         Reported by Christian Weisgerber <naddy@mips.inka.de>.
29424
29425 2010-03-29  Bruno Haible  <bruno@clisp.org>
29426
29427         Emit #pragma system_header after the inclusion guard, not before.
29428         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
29429         guard that spans the entire file, not before. This enables an
29430         optimization in GCC's preprocessor.
29431         * lib/ctype.in.h: Likewise.
29432         * lib/dirent.in.h: Likewise.
29433         * lib/errno.in.h: Likewise.
29434         * lib/float.in.h: Likewise.
29435         * lib/getopt.in.h: Likewise.
29436         * lib/iconv.in.h: Likewise.
29437         * lib/langinfo.in.h: Likewise.
29438         * lib/locale.in.h: Likewise.
29439         * lib/math.in.h: Likewise.
29440         * lib/netdb.in.h: Likewise.
29441         * lib/netinet_in.in.h: Likewise.
29442         * lib/pty.in.h: Likewise.
29443         * lib/sched.in.h: Likewise.
29444         * lib/se-selinux.in.h: Likewise.
29445         * lib/search.in.h: Likewise.
29446         * lib/spawn.in.h: Likewise.
29447         * lib/stdarg.in.h: Likewise.
29448         * lib/stdint.in.h: Likewise.
29449         * lib/string.in.h: Likewise.
29450         * lib/strings.in.h: Likewise.
29451         * lib/sys_file.in.h: Likewise.
29452         * lib/sys_ioctl.in.h: Likewise.
29453         * lib/sys_time.in.h: Likewise.
29454         * lib/sys_times.in.h: Likewise.
29455         * lib/sys_utsname.in.h: Likewise.
29456         * lib/sys_wait.in.h: Likewise.
29457         * lib/sysexits.in.h: Likewise.
29458         * lib/wctype.in.h: Likewise.
29459
29460 2010-03-28  James Youngman  <jay@gnu.org>
29461
29462         save-cwd: don't leak a file descriptor when the caller execs.
29463         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
29464         saved file descriptor.
29465         * modules/save-cwd (Depends-on): Depend on cloexec.
29466
29467 2010-03-29  Bruno Haible  <bruno@clisp.org>
29468
29469         Remove vestiges of fts-lgpl module.
29470         * lib/fts_.h: Assume GNULIB_FTS is 1.
29471         * lib/fts.c: Likewise.
29472         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
29473
29474 2010-03-28  Bruno Haible  <bruno@clisp.org>
29475
29476         Fix definition of tests witness macro.
29477         * gnulib-tool (func_import): Fix definition of witness macro.
29478
29479 2010-03-28  Bruno Haible  <bruno@clisp.org>
29480
29481         Fix ioctl's protoype on glibc systems.
29482         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
29483         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
29484         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
29485         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
29486         signature. If not, arrange to replace the ioctl function.
29487         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29488         REPLACE_IOCTL.
29489         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
29490         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
29491         Reported by Ludovic Courtès <ludo@gnu.org>.
29492
29493 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
29494
29495         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
29496         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
29497         made it so grep -r --include=GLOB* ... did not work.
29498
29499 2010-03-26  Jim Meyering  <meyering@redhat.com>
29500             Eric Blake  <eblake@redhat.com>
29501
29502         maint.mk: prohibit use of test's -o and -a operators
29503         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
29504
29505 2010-03-28  Bruno Haible  <bruno@clisp.org>
29506
29507         Remove unused GNULIB_XYZ macro definitions.
29508         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
29509         invocation.
29510
29511 2010-03-28  Bruno Haible  <bruno@clisp.org>
29512
29513         Mark privileged tests modules.
29514         * modules/idpriv-drop-tests (Status): New section.
29515         * modules/idpriv-droptemp-tests (Status): New section.
29516
29517 2010-03-28  Bruno Haible  <bruno@clisp.org>
29518
29519         Split C++ tests into separate tests modules.
29520         * modules/dirent-c++-tests: New file, extracted from
29521         modules/dirent-tests.
29522         * modules/dirent-tests: Depend on it.
29523         * modules/fcntl-h-c++-tests: New file, extracted from
29524         modules/fcntl-h-tests.
29525         * modules/fcntl-h-tests: Depend on it.
29526         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
29527         * modules/glob-tests: Depend on it.
29528         * modules/iconv-h-c++-tests: New file, extracted from
29529         modules/iconv-h-tests.
29530         * modules/iconv-h-tests: Depend on it.
29531         * modules/langinfo-c++-tests: New file, extracted from
29532         modules/langinfo-tests.
29533         * modules/langinfo-tests: Depend on it.
29534         * modules/locale-c++-tests: New file, extracted from
29535         modules/locale-tests.
29536         * modules/locale-tests: Depend on it.
29537         * modules/math-c++-tests: New file, extracted from modules/math-tests.
29538         * modules/math-tests: Depend on it.
29539         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
29540         * modules/pty-tests: Depend on it.
29541         * modules/search-c++-tests: New file, extracted from
29542         modules/search-tests.
29543         * modules/search-tests: Depend on it.
29544         * modules/signal-c++-tests: New file, extracted from
29545         modules/signal-tests.
29546         * modules/signal-tests: Depend on it.
29547         * modules/spawn-c++-tests: New file, extracted from
29548         modules/spawn-tests.
29549         * modules/spawn-tests: Depend on it.
29550         * modules/stdio-c++-tests: New file, extracted from
29551         modules/stdio-tests.
29552         * modules/stdio-tests: Depend on it.
29553         * modules/stdlib-c++-tests: New file, extracted from
29554         modules/stdlib-tests.
29555         * modules/stdlib-tests: Depend on it.
29556         * modules/string-c++-tests: New file, extracted from
29557         modules/string-tests.
29558         * modules/string-tests: Depend on it.
29559         * modules/sys_ioctl-c++-tests: New file, extracted from
29560         modules/sys_ioctl-tests.
29561         * modules/sys_ioctl-tests: Depend on it.
29562         * modules/sys_select-c++-tests: New file, extracted from
29563         modules/sys_select-tests.
29564         * modules/sys_select-tests: Depend on it.
29565         * modules/sys_socket-c++-tests: New file, extracted from
29566         modules/sys_socket-tests.
29567         * modules/sys_socket-tests: Depend on it.
29568         * modules/sys_stat-c++-tests: New file, extracted from
29569         modules/sys_stat-tests.
29570         * modules/sys_stat-tests: Depend on it.
29571         * modules/sys_time-c++-tests: New file, extracted from
29572         modules/sys_time-tests.
29573         * modules/sys_time-tests: Depend on it.
29574         * modules/time-c++-tests: New file, extracted from modules/time-tests.
29575         * modules/time-tests: Depend on it.
29576         * modules/unistd-c++-tests: New file, extracted from
29577         modules/unistd-tests.
29578         * modules/unistd-tests: Depend on it.
29579         * modules/wchar-c++-tests: New file, extracted from
29580         modules/wchar-tests.
29581         * modules/wchar-tests: Depend on it.
29582         * modules/wctype-c++-tests: New file, extracted from
29583         modules/wctype-tests.
29584         * modules/wctype-tests: Depend on it.
29585         Reported by Simon Josefsson.
29586
29587 2010-03-28  Bruno Haible  <bruno@clisp.org>
29588
29589         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
29590         * gnulib-tool (func_exists_module): New function, extracted from
29591         func_verify_module.
29592         (func_verify_module): Use it.
29593         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
29594         'foo' only if 'foo' exists.
29595         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
29596         module.
29597
29598 2010-03-28  Bruno Haible  <bruno@clisp.org>
29599
29600         gnulib-tool: Add support for special categories of tests.
29601         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
29602         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
29603         (func_usage): Document them.
29604         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
29605         inc_unportable_tests, inc_all_tests): New variables.
29606         (func_acceptable): Consider these variables.
29607         (func_modules_transitive_closure): Make it work when the 'Status' field
29608         consists of multiple words.
29609         (func_import): Store and restore the values of inc_cxx_tests,
29610         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
29611         inc_all_tests in gnulib-comp.m4.
29612         (func_create_testdir): Set inc_all_tests to true.
29613         * doc/gnulib.texi (Extra tests modules): New section.
29614         Suggested by Jim Meyering.
29615
29616 2010-03-28  Bruno Haible  <bruno@clisp.org>
29617
29618         ansi-c++-opt: Allow turning off the C++ build by default.
29619         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
29620         gl_CXX_CHOICE_DEFAULT_NO is defined.
29621         Requested by Eric Blake.
29622
29623 2010-03-28  Bruno Haible  <bruno@clisp.org>
29624
29625         unistd: Avoid #define replacements in C++ mode.
29626         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
29627         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
29628         setsockopt, shutdown, select): In C++, attach a warning to the function
29629         if possible, rather than #defining the symbol to a dysfunctional alias.
29630         Reported by John W. Eaton <jwe@gnu.org>.
29631
29632 2010-03-28  Bruno Haible  <bruno@clisp.org>
29633
29634         Fix link errors on mingw.
29635         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
29636         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
29637         $(LIBSOCKET).
29638         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
29639         $(LIBSOCKET).
29640
29641 2010-03-28  Bruno Haible  <bruno@clisp.org>
29642             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29643
29644         lib-ignore: Determine different options for different compilers.
29645         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
29646         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
29647         Add comments.
29648         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
29649         * NEWS: Mention the change.
29650
29651 2010-03-27  Bruno Haible  <bruno@clisp.org>
29652
29653         Remove unused GNULIB_XYZ macro definitions.
29654         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
29655         * modules/fseek (configure.ac): Likewise.
29656         * modules/ioctl (configure.ac): Likewise.
29657         * modules/open (configure.ac): Likewise.
29658         * modules/stdlib-safer (configure.ac): Likewise.
29659
29660 2010-03-27  Bruno Haible  <bruno@clisp.org>
29661
29662         Add a remark about certain modules.
29663         * modules/malloc (Comment): New section.
29664         * modules/realloc (Comment): Likewise.
29665         * modules/sigpipe (Comment): Likewise.
29666
29667 2010-03-27  Bruno Haible  <bruno@clisp.org>
29668
29669         Resolve conflict between the two kinds of module indicators.
29670         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
29671         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
29672         * modules/canonicalize (configure.ac): Invoke
29673         gl_MODULE_INDICATOR_FOR_TESTS.
29674         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
29675         GNULIB_XYZ.
29676         * tests/test-dirent-c++.cc: Likewise.
29677         * tests/test-dirent-safer.c: Likewise.
29678         * tests/test-dup2.c: Likewise.
29679         * tests/test-fchdir.c: Likewise.
29680         * tests/test-fcntl-h-c++.cc: Likewise.
29681         * tests/test-getopt.c: Likewise.
29682         * tests/test-getopt.h: Likewise.
29683         * tests/test-langinfo-c++.cc: Likewise.
29684         * tests/test-locale-c++.cc: Likewise.
29685         * tests/test-math-c++.cc: Likewise.
29686         * tests/test-pty-c++.cc: Likewise.
29687         * tests/test-search-c++.cc: Likewise.
29688         * tests/test-signal-c++.cc: Likewise.
29689         * tests/test-spawn-c++.cc: Likewise.
29690         * tests/test-stdio-c++.cc: Likewise.
29691         * tests/test-stdlib-c++.cc: Likewise.
29692         * tests/test-string-c++.cc: Likewise.
29693         * tests/test-sys_ioctl-c++.cc: Likewise.
29694         * tests/test-sys_select-c++.cc: Likewise.
29695         * tests/test-sys_socket-c++.cc: Likewise.
29696         * tests/test-sys_stat-c++.cc: Likewise.
29697         * tests/test-sys_time-c++.cc: Likewise.
29698         * tests/test-time-c++.cc: Likewise.
29699         * tests/test-unistd-c++.cc: Likewise.
29700         * tests/test-wchar-c++.cc: Likewise.
29701         * tests/uninorm/test-u8-nfc.c: Likewise.
29702         * tests/uninorm/test-u8-nfd.c: Likewise.
29703         * tests/uninorm/test-u8-nfkc.c: Likewise.
29704         * tests/uninorm/test-u8-nfkd.c: Likewise.
29705         * tests/uninorm/test-u16-nfc.c: Likewise.
29706         * tests/uninorm/test-u16-nfd.c: Likewise.
29707         * tests/uninorm/test-u16-nfkc.c: Likewise.
29708         * tests/uninorm/test-u16-nfkd.c: Likewise.
29709         * tests/uninorm/test-u32-nfc.c: Likewise.
29710         * tests/uninorm/test-u32-nfc-big.c: Likewise.
29711         * tests/uninorm/test-u32-nfd.c: Likewise.
29712         * tests/uninorm/test-u32-nfd-big.c: Likewise.
29713         * tests/uninorm/test-u32-nfkc.c: Likewise.
29714         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
29715         * tests/uninorm/test-u32-nfkd.c: Likewise.
29716         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
29717         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29718
29719 2010-03-27  Bruno Haible  <bruno@clisp.org>
29720
29721         Distinguish two kinds of module indicators.
29722         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
29723         gl_MODULE_INDICATOR.
29724         (gl_MODULE_INDICATOR): New macro.
29725         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
29726         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
29727         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
29728         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
29729         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
29730         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
29731         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
29732         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
29733         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
29734         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
29735         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
29736         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
29737         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
29738         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
29739         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
29740         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
29741         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
29742         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
29743         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
29744         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
29745         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
29746         * modules/cloexec (configure.ac): Likewise.
29747         * modules/getopt-gnu (configure.ac): Likewise.
29748         * modules/uninorm/u8-normalize (configure.ac): Likewise.
29749         * modules/uninorm/u16-normalize (configure.ac): Likewise.
29750         * modules/uninorm/u32-normalize (configure.ac): Likewise.
29751         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
29752
29753 2010-03-27  Bruno Haible  <bruno@clisp.org>
29754
29755         New module description field 'Comment'.
29756         * gnulib-tool: New option --extract-comment.
29757         (func_usage): Document it.
29758         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
29759         (func_get_comment): New function.
29760         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
29761
29762 2010-03-27  Bruno Haible  <bruno@clisp.org>
29763
29764         Addendum to 2010-02-07 commit.
29765         * gnulib-tool (func_usage): Document --extract-applicability option.
29766
29767 2010-03-27  Bruno Haible  <bruno@clisp.org>
29768
29769         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
29770         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
29771         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
29772         rather than link errors.
29773
29774 2010-03-27  Bruno Haible  <bruno@clisp.org>
29775
29776         Avoid side effects from tests-related modules on the compilation of lib.
29777         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
29778         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
29779         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
29780         parameter. Emit into AM_CPPFLAGS a definition of the designated C
29781         macro.
29782         (func_import): Define a witness macro. Assign it a value that depends
29783         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
29784         tests-related modules.
29785         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
29786         Reported by Jim Meyering.
29787
29788 2010-03-27  Bruno Haible  <bruno@clisp.org>
29789
29790         Factorize common .m4 code.
29791         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
29792         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
29793         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
29794         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
29795         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
29796         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
29797         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
29798         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
29799         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
29800         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
29801         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
29802         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
29803         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
29804         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
29805         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
29806         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
29807         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
29808         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
29809         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
29810         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
29811         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
29812         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
29813         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
29814         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
29815         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
29816         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
29817         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
29818         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
29819         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
29820         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
29821         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
29822         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
29823
29824 2010-03-27  Bruno Haible  <bruno@clisp.org>
29825
29826         Fix a compilation error on Cygwin with g++ >= 4.3.
29827         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
29828         if it is undefined or if we alias it to chmod.
29829         (lstat): Don't warn about the use of this function if it is undefined
29830         or if we alias it to stat.
29831         Reported by Simon Josefsson.
29832
29833 2010-03-27  Bruno Haible  <bruno@clisp.org>
29834
29835         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
29836         * modules/getlogin (configure.ac): Update.
29837
29838         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
29839         * modules/getlogin_r (configure.ac): Update.
29840
29841         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
29842         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
29843         * modules/inet_ntop (configure.ac): Update.
29844
29845         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
29846         * modules/inet_pton (configure.ac): Update.
29847
29848         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
29849         * modules/mbslen (configure.ac): Update.
29850
29851         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
29852         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
29853         * modules/forkpty (configure.ac): Update.
29854         * modules/openpty (configure.ac): Update.
29855
29856 2010-03-26  Simon Josefsson  <simon@josefsson.org>
29857
29858         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
29859         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
29860
29861 2010-03-25  Eric Blake  <eblake@redhat.com>
29862
29863         maint: use pragma consistently across replacement headers
29864         * lib/ctype.in.h (system_header): Hoist for consistent placement.
29865         * lib/dirent.in.h (system_header): Likewise.
29866         * lib/errno.in.h (system_header): Likewise.
29867         * lib/float.in.h (system_header): Likewise.
29868         * lib/getopt.in.h (system_header): Likewise.
29869         * lib/iconv.in.h (system_header): Likewise.
29870         * lib/inttypes.in.h (system_header): Likewise.
29871         * lib/langinfo.in.h (system_header): Likewise.
29872         * lib/locale.in.h (system_header): Likewise.
29873         * lib/math.in.h (system_header): Likewise.
29874         * lib/netdb.in.h (system_header): Likewise.
29875         * lib/netinet_in.in.h (system_header): Likewise.
29876         * lib/pty.in.h (system_header): Likewise.
29877         * lib/sched.in.h (system_header): Likewise.
29878         * lib/se-selinux.in.h (system_header): Likewise.
29879         * lib/search.in.h (system_header): Likewise.
29880         * lib/spawn.in.h (system_header): Likewise.
29881         * lib/stdarg.in.h (system_header): Likewise.
29882         * lib/stdint.in.h (system_header): Likewise.
29883         * lib/string.in.h (system_header): Likewise.
29884         * lib/strings.in.h (system_header): Likewise.
29885         * lib/sys_file.in.h (system_header): Likewise.
29886         * lib/sys_ioctl.in.h (system_header): Likewise.
29887         * lib/sys_socket.in.h (system_header): Likewise.
29888         * lib/sys_times.in.h (system_header): Likewise.
29889         * lib/sys_utsname.in.h (system_header): Likewise.
29890         * lib/sys_wait.in.h (system_header): Likewise.
29891         * lib/sysexits.in.h (system_header): Likewise.
29892         * lib/unistd.in.h (system_header): Likewise.
29893         * lib/wctype.in.h (system_header): Likewise.
29894
29895         arpa/inet: fix mingw compilation warning
29896         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
29897         Reported by Matthew Bolte.
29898
29899 2010-03-25  Bruno Haible  <bruno@clisp.org>
29900
29901         Avoid collision between gnulib wrapper and libintl wrapper.
29902         * lib/printf.c (printf): Don't define if a printf wrapper is already
29903         defined in intl/printf.c.
29904         Reported by Michel Boaventura <michel@michelboaventura.com>.
29905
29906 2010-03-25  Bruno Haible  <bruno@clisp.org>
29907
29908         Use ANSI C.
29909         * lib/readutmp.h (getutent): Provide ANSI C prototype.
29910
29911 2010-03-25  Bruno Haible  <bruno@clisp.org>
29912
29913         Minor formatting changes.
29914         * lib/acosl.c: Insert space before function argument list.
29915         * lib/argz.c: Likewise.
29916         * lib/asinl.c: Likewise.
29917         * lib/expl.c: Likewise.
29918         * lib/gen-uni-tables.c: Likewise.
29919         * lib/gettext.h: Likewise.
29920         * lib/glthread/lock.h: Likewise.
29921         * lib/tanl.c: Likewise.
29922         * lib/uniname/uniname.c: Likewise.
29923         * tests/test-idpriv-drop.c: Likewise.
29924         * tests/test-idpriv-droptemp.c: Likewise.
29925         * tests/test-lock.c: Likewise.
29926         * tests/test-tls.c: Likewise.
29927         * lib/argp-help.c: Insert space before function-like macro argument
29928         list.
29929         * lib/memcmp.c: Likewise.
29930         * tests/test-base64.c: Likewise.
29931         * lib/localename.c: Insert space before sizeof's argument list.
29932         * lib/safe-alloc.h: Likewise.
29933         * lib/file-set.h: Insert space before macro argument list.
29934         * tests/test-argp.c: Likewise.
29935         * lib/argp-namefrob.h: Insert space before function parameter list.
29936         * lib/getaddrinfo.c: Likewise.
29937         * lib/netdb.in.h: Likewise.
29938         * lib/parse-duration.h: Likewise.
29939         * lib/parse-duration.c: Likewise.
29940         * lib/poll.c: Likewise.
29941         * lib/select.c: Likewise.
29942         * lib/trim.h: Likewise.
29943         * tests/test-usleep.c: Likewise.
29944         * lib/ldexpl.c: Insert space before function parameter list and before
29945         function argument list.
29946         * lib/logl.c: Likewise.
29947         * lib/sqrtl.c: Likewise.
29948         * lib/trim.c: Likewise.
29949         * lib/cosl.c: Use GNU style indentation. Insert space before function
29950         argument list.
29951         * lib/sinl.c: Likewise.
29952         * lib/tsearch.c: Insert space after 'for'.
29953         Reported by Jim Meyering.
29954
29955 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
29956
29957         * maint.mk (sc_Wundef_boolean): Check for the presence of the
29958         config header before grepping, as it's not present before
29959         autoreconf/configure are run.  Reported by Simon Josefsson.
29960
29961 2010-03-23  Bruno Haible  <bruno@clisp.org>
29962
29963         pt_chown: Make it work with automake < 1.11.
29964         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
29965         Reported by Simon Josefsson.
29966
29967 2010-03-23  Bruno Haible  <bruno@clisp.org>
29968
29969         pt_chown: Don't depend on GPLed modules.
29970         * lib/pt_chown.c: Don't include idpriv.h.
29971         (main): Don't drop privileges.
29972         * modules/pt_chown (Depends-on): Remove idpriv-drop.
29973         Reported by Simon Josefsson.
29974
29975 2010-03-24  Simon Josefsson  <simon@josefsson.org>
29976
29977         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
29978         suggestions from karl@freefriends.org (Karl Berry).
29979
29980 2010-03-22  Eric Blake  <eblake@redhat.com>
29981
29982         gethostname: further tweaks
29983         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
29984         are overriding gethostname.
29985         Suggested by Bruno Haible.
29986
29987 2010-03-21  Bruno Haible  <bruno@clisp.org>
29988
29989         Fix comments.
29990         * lib/forkpty.c (rpl_forkpty): Fix comment.
29991         * lib/openpty.c (rpl_openpty): Likewise.
29992         Reported by Eric Blake.
29993
29994 2010-03-22  Eric Blake  <eblake@redhat.com>
29995
29996         gethostname: fix build on mingw
29997         * lib/unistd.in.h (includes): Work around fact that mingw
29998         <winsock2.h> re-includes <unistd.h>, by avoiding any
29999         redeclarations if we are being included by <winsock2.h>.
30000         Reported by Matthias Bolte.
30001
30002 2010-03-21  Bruno Haible  <bruno@clisp.org>
30003
30004         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30005         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30006         modifications.
30007         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30008         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30009         provide the replacement.
30010         * modules/forkpty (Depends-on): Add openpty, login_tty.
30011         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
30012         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
30013         * doc/glibc-functions/forkpty.texi: More supported platforms.
30014         * config/srclist.txt: Add forkpty.c (commented).
30015
30016 2010-03-21  Bruno Haible  <bruno@clisp.org>
30017
30018         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
30019         (Makefile.am): Verify that PTY_LIB is defined.
30020
30021         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
30022
30023 2010-03-21  Bruno Haible  <bruno@clisp.org>
30024
30025         Tests for module 'login_tty'.
30026         * modules/login_tty-tests: New file.
30027         * tests/test-login_tty.c: New file.
30028
30029         New module 'login_tty'.
30030         * lib/login_tty.c: New file.
30031         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
30032         * modules/login_tty: New file.
30033         * doc/glibc-functions/login_tty.texi: Mention the new module.
30034
30035 2010-03-21  Bruno Haible  <bruno@clisp.org>
30036
30037         login_tty: Documentation.
30038         * doc/glibc-functions/login_tty.texi: New file.
30039         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
30040
30041 2010-03-21  Bruno Haible  <bruno@clisp.org>
30042
30043         pty: Consistent macro naming.
30044         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
30045         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
30046         * modules/pty (configure.ac): Update.
30047
30048 2010-03-21  Bruno Haible  <bruno@clisp.org>
30049
30050         Tests for openpty: Make stricter.
30051         * tests/test-openpty.c (main): Add test of canonical processing and
30052         erase.
30053         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
30054
30055         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30056         * lib/openpty.c (openpty): New replacement function.
30057         * lib/pty.in.h: Include <termios.h>.
30058         (openpty): Update declaration. Add comments.
30059         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
30060         is not declared, arrange to provide the replacement. Check for _getpty
30061         and posix_openpt.
30062         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
30063         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
30064         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
30065         * modules/pty-tests (test_pty_c___LDADD): New variable.
30066         * doc/glibc-functions/openpty.texi: More supported platforms.
30067
30068 2010-03-21  Bruno Haible  <bruno@clisp.org>
30069
30070         setenv: Tweaks.
30071         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
30072         the test program.
30073         * doc/posix-functions/setenv.texi: Update platforms list.
30074
30075 2010-03-21  Bruno Haible  <bruno@clisp.org>
30076
30077         New module 'unlockpt'.
30078         * lib/unlockpt.c: New file, from glibc with modifications.
30079         * m4/unlockpt.m4: New file.
30080         * modules/unlockpt: New file.
30081         * lib/stdlib.in.h (unlockpt): New declaration.
30082         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
30083         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
30084         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
30085         HAVE_UNLOCKPT.
30086         * doc/posix-functions/unlockpt.texi: Mention the new module.
30087         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
30088         * config/srclist.txt: Add unlockpt.c (commented).
30089
30090 2010-03-21  Jim Meyering  <meyering@redhat.com>
30091
30092         maint.mk: prohibit inclusion of "intprops.h" without use
30093         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
30094
30095 2010-03-21  Bruno Haible  <bruno@clisp.org>
30096
30097         New module 'grantpt'.
30098         * lib/grantpt.c: New file, from glibc with modifications.
30099         * m4/grantpt.m4: New file.
30100         * modules/grantpt: New file.
30101         * lib/stdlib.in.h (grantpt): New declaration.
30102         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
30103         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
30104         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
30105         HAVE_GRANTPT.
30106         * doc/posix-functions/grantpt.texi: Mention the new module.
30107         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
30108         * config/srclist.txt: Add grantpt.c (commented).
30109
30110 2010-03-21  Bruno Haible  <bruno@clisp.org>
30111
30112         New module 'pt_chown'.
30113         * lib/pt_chown.c: New file, from glibc with modifications.
30114         * lib/pty-private.h: New file, from glibc with modifications.
30115         * modules/pt_chown: New file.
30116         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
30117
30118 2010-03-21  Bruno Haible  <bruno@clisp.org>
30119
30120         Tests for module 'ptsname'.
30121         * modules/ptsname-tests: New file.
30122         * tests/test-ptsname.c: New file.
30123
30124         New module 'ptsname'.
30125         * lib/ptsname.c: New file, from glibc with modifications.
30126         * m4/ptsname.m4: New file.
30127         * modules/ptsname: New file.
30128         * lib/stdlib.in.h (ptsname): New declaration.
30129         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
30130         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
30131         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
30132         HAVE_PTSNAME.
30133         * doc/posix-functions/ptsname.texi: Mention the new module.
30134         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
30135         * config/srclist.txt: Add ptsname.c (commented).
30136
30137 2010-03-21  Bruno Haible  <bruno@clisp.org>
30138
30139         Tests for module 'ttyname_r'.
30140         * modules/ttyname_r-tests: New file.
30141         * tests/test-ttyname_r.c: New file.
30142
30143         New module 'ttyname_r'.
30144         * lib/ttyname_r.c: New file.
30145         * m4/ttyname_r.m4: New file.
30146         * modules/ttyname_r: New file.
30147         * lib/unistd.in.h (ttyname_r): New declaration.
30148         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
30149         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
30150         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
30151         HAVE_TTYNAME_R.
30152         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
30153         * doc/posix-functions/ttyname_r.texi: Mention the new module.
30154
30155 2010-03-20  Bruno Haible  <bruno@clisp.org>
30156
30157         signal: Undefine macro definitions in C++ mode.
30158         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
30159         sigfillset): Undefine macro definitions from the system header in C++
30160         mode.
30161         Reported by John W. Eaton <jwe@gnu.org>.
30162
30163 2010-03-20  Bruno Haible  <bruno@clisp.org>
30164
30165         Ensure no #include statements inside extern "C" { ... }.
30166         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
30167         contain #include statements.
30168         * lib/time.in.h: Likewise.
30169
30170 2010-03-20  Bruno Haible  <bruno@clisp.org>
30171
30172         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
30173         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
30174         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
30175         Reported by John W. Eaton <jwe@gnu.org>.
30176
30177 2010-03-20  Bruno Haible  <bruno@clisp.org>
30178
30179         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
30180         Reported by Jim Meyering.
30181
30182 2010-03-20  Bruno Haible  <bruno@clisp.org>
30183
30184         pipe: Set errno upon failure.
30185         * lib/pipe.h: Specify that when -1 is returned, errno is set.
30186         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
30187         errno value in error message.
30188
30189 2010-03-20  Bruno Haible  <bruno@clisp.org>
30190             Jim Meyering  <meyering@redhat.com>
30191
30192         lchown: Avoid "unused variable" warning.
30193         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
30194
30195 2010-03-20  Bruno Haible  <bruno@clisp.org>
30196
30197         Work around unlink() bug on MacOS X 10.5.6.
30198         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
30199         attempting to unlink a parent directory.
30200         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
30201         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
30202         activate for the replacement function.
30203         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
30204
30205 2010-03-20  Bruno Haible  <bruno@clisp.org>
30206
30207         Fix link errors on Solaris 8.
30208         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
30209         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
30210
30211 2010-03-19  Jim Meyering  <meyering@redhat.com>
30212
30213         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
30214         The _LIBC implementation of build_range_exp correctly honors the
30215         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
30216         However, the non-_LIBC implementation would ignore that syntax-bit
30217         flag and return REG_ERANGE unconditionally.
30218         This change makes it honor that flag.
30219         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
30220         Make two pointer parameters "const".
30221         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
30222         (parse_bracket_exp): Update caller.
30223
30224         regex.m4: correct the reversed range endpoint ([b-a]) test
30225         * m4/regex.m4: When requiring that [b-a] evoke failure,
30226         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
30227         test pass once again for x86-based systems.
30228
30229 2010-03-19  Bruno Haible  <bruno@clisp.org>
30230
30231         scandir: Fix link error on Solaris 8.
30232         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
30233         macros.
30234
30235 2010-03-19  Bruno Haible  <bruno@clisp.org>
30236
30237         getusershell: Fix documentation.
30238         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
30239         module.
30240         * doc/glibc-functions/setusershell.texi: Likewise.
30241
30242         getusershell: Provide declaration, missing on Solaris 9.
30243         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
30244         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
30245         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
30246         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
30247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30248         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
30249         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
30250         HAVE_GETUSERSHELL.
30251         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
30252
30253 2010-03-19  Bruno Haible  <bruno@clisp.org>
30254
30255         wctype: Provide iswblank function.
30256         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
30257         exists and is fine.
30258         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
30259         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
30260         * tests/test-wctype.c (main): Re-enable the iswblank tests.
30261         * doc/posix-functions/iswblank.texi: Update.
30262
30263 2010-03-19  Bruno Haible  <bruno@clisp.org>
30264
30265         Tests of module 'pty' in C++ mode.
30266         * modules/pty-tests: New file.
30267         * tests/test-pty-c++.cc: New file.
30268         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30269
30270 2010-03-19  Eric Blake  <eblake@redhat.com>
30271
30272         logb: fix documentation
30273         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
30274         1.5 declaration bug.
30275
30276         forkpty, openpty: prefer glibc's const-safe prototype
30277         * lib/forkpty.c (rpl_forkpty): New file.
30278         * lib/openpty.c (rpl_openpty): Likewise.
30279         * modules/forkpty (Files): Distribute it.
30280         * modules/openpty (Files): Likewise.
30281         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
30282         check...
30283         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
30284         replacement for for non-const BSD signature.
30285         * modules/pty (Makefile.am): Substitute witnesses.
30286         * lib/pty.in.h (forkpty, openpty): Declare replacements.
30287         * tests/test-forkpty.c: Update signature check.
30288         * tests/test-openpty.c: Likewise.
30289         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
30290         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30291
30292         forkpty, openpty: split functions into new modules
30293         * modules/pty (Makefile.am): Substitute new witnesses.
30294         (Libraries): Move library detection...
30295         * modules/forkpty: ...into new module.
30296         * modules/openpty: Another new module.
30297         * modules/pty-tests: Rename and split...
30298         * modules/forkpty-tests: ...to this...
30299         * modules/openpty-tests: ...and this.
30300         * tests/test-pty.c: Rename and split...
30301         * tests/test-forkpty.c: ...to this...
30302         * tests/test-openpty.c: ...and this.
30303         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
30304         (gl_PTY): Split library searching...
30305         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
30306         (gl_FORKPTY, gl_OPENPTY): New macros.
30307         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
30308         * NEWS: Mention the split.
30309         * MODULES.html.sh (Misc): Document the modules.
30310         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
30311         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30312
30313         pty: improve replacement header
30314         * lib/pty.in.h: New file.
30315         * modules/pty (Files): Ship it.
30316         (Makefile.am): Always build replacement.
30317         * m4/pty.m4: Rename...
30318         * m4/pty_h.m4: ...to this.
30319         (gl_PTY): Modernize setting of witness macros; update check of
30320         forkpty to take proper advantage of cache.
30321         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
30322
30323         getopt: avoid compiler warning
30324         * lib/getopt.c (attribute_hidden): Remove unused macro.
30325
30326 2010-03-18  Bruno Haible  <bruno@clisp.org>
30327
30328         Fix link errors on Solaris 8.
30329         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
30330         * modules/search-tests (test_search_c___LDADD): Likewise.
30331         * modules/signal-tests (test_signal_c___LDADD): Likewise.
30332         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
30333         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
30334         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
30335         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
30336         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
30337         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
30338
30339 2010-03-18  Bruno Haible  <bruno@clisp.org>
30340
30341         Fix bug introduced on 2010-03-14.
30342         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
30343         (gl_SPAWN_H): Require it.
30344         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
30345         Reported by Simon Josefsson.
30346
30347 2010-03-18  Bruno Haible  <bruno@clisp.org>
30348
30349         Fix typo introduced on 2009-12-31.
30350         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
30351         posix_spawn_file_actions_adddup2.
30352
30353 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
30354         and Eric Blake  <eblake@redhat.com>
30355
30356         test-vc-list-files-git: make more robust
30357         * tests/test-vc-list-files-git.sh: Unset problematic environment
30358         variables.  Chain commands together.
30359
30360 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
30361
30362         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
30363         `AC_CHECK_DECL' invocation.
30364
30365 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
30366
30367         * lib/inttostr.c (inttostr): Make sure the invocation of verify
30368         appears before executable statements. Suggested by Petr Sumbera
30369         <Petr.Sumbera@Sun.COM>.
30370
30371 2010-03-14  Bruno Haible  <bruno@clisp.org>
30372
30373         * tests/test-flock.c (test_exclusive): Comment out a test that causes
30374         portability problems. Instead use a simpler test.
30375         (main): Check that invalid arguments are rejected only on Linux.
30376
30377 2010-03-14  Bruno Haible  <bruno@clisp.org>
30378
30379         Fix bug introduced on 2009-12-31.
30380         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30381         gl_PREREQ_SYS_H_WINSOCK2 always.
30382         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
30383         SYS_SOCKET_H variable.
30384         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
30385         Update comments.
30386         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
30387         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30388         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30389         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30390         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
30391
30392 2010-03-14  Bruno Haible  <bruno@clisp.org>
30393
30394         Fix values returned by sinl, cosl.
30395         * lib/trigl.h: Add specification comments.
30396         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
30397         that combines the values from the precomputed table with the values of
30398         the Chebyshev polynomials.
30399
30400 2010-03-14  Bruno Haible  <bruno@clisp.org>
30401
30402         Fix compilation error when modules 'posix_spawn[p]' are not used.
30403         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
30404         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
30405
30406 2010-03-14  Bruno Haible  <bruno@clisp.org>
30407
30408         Fix compilation error on mingw when module 'time_r' is not used.
30409         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
30410         is 1.
30411         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
30412         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
30413         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
30414         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
30415
30416 2010-03-14  Bruno Haible  <bruno@clisp.org>
30417
30418         Fix compilation error with Sun C.
30419         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
30420         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
30421         instead of GCC specific ULONG_LONG_MAX.
30422         * lib/xstrtoll.c: Likewise.
30423         * lib/xstrtoull.c: Likewise.
30424
30425 2010-03-13  Bruno Haible  <bruno@clisp.org>
30426
30427         Allow the user to disable C++ code and tests.
30428         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
30429         (gl_PROG_ANSI_CXX): Require it.
30430
30431 2010-03-13  Bruno Haible  <bruno@clisp.org>
30432
30433         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
30434         cases.
30435
30436 2010-03-13  Bruno Haible  <bruno@clisp.org>
30437
30438         Test that gnulib does not break the standard C++ headers.
30439         * tests/test-locale-c++2.cc: New file.
30440         * modules/locale-tests (Files): Add it.
30441         (Makefile.am): Compile it for test-locale-c++.
30442         * tests/test-math-c++2.cc: New file.
30443         * modules/math-tests (Files): Add it.
30444         (Makefile.am): Compile it for test-math-c++.
30445         * tests/test-signal-c++2.cc: New file.
30446         * modules/signal-tests (Files): Add it.
30447         (Makefile.am): Compile it for test-signal-c++.
30448         * tests/test-stdio-c++2.cc: New file.
30449         * modules/stdio-tests (Files): Add it.
30450         (Makefile.am): Compile it for test-stdio-c++.
30451         * tests/test-stdlib-c++2.cc: New file.
30452         * modules/stdlib-tests (Files): Add it.
30453         (Makefile.am): Compile it for test-stdlib-c++.
30454         * tests/test-string-c++2.cc: New file.
30455         * modules/string-tests (Files): Add it.
30456         (Makefile.am): Compile it for test-string-c++.
30457         * tests/test-time-c++2.cc: New file.
30458         * modules/time-tests (Files): Add it.
30459         (Makefile.am): Compile it for test-time-c++.
30460         Reported by John W. Eaton <jwe@gnu.org>.
30461
30462 2010-03-13  Bruno Haible  <bruno@clisp.org>
30463
30464         * gnulib-tool (func_usage): Clarify which options are available for
30465         --create-testdir and --create-megatestdir.
30466
30467 2010-03-13  Bruno Haible  <bruno@clisp.org>
30468
30469         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
30470         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
30471         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
30472         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
30473         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
30474         when appropriate.
30475         Reported by Jim Meyering.
30476
30477 2010-03-12  Simon Josefsson  <simon@josefsson.org>
30478
30479         * gnulib-tool (func_import): Explain origin of code.
30480
30481 2010-03-12  Bruno Haible  <bruno@clisp.org>
30482
30483         Fix problem with automake's definition of CXXLINK.
30484         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
30485         Reported by Simon Josefsson and Ludovic Courtès.
30486
30487 2010-03-12  Bruno Haible  <bruno@clisp.org>
30488
30489         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
30490         stable releases.
30491
30492 2010-03-11  Bruno Haible  <bruno@clisp.org>
30493
30494         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
30495         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
30496         whether the system provides one variant or multiple variants of the
30497         function.
30498         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
30499         C++ compilers.
30500         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
30501         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
30502         Reported by Jim Meyering.
30503
30504 2010-03-09  Simon Josefsson  <simon@josefsson.org>
30505
30506         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
30507
30508 2010-03-08  Bruno Haible  <bruno@clisp.org>
30509
30510         gnulib-tool: Add support for --libtool in --create-testdir.
30511         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
30512         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
30513
30514 2010-03-08  Eric Blake  <eblake@redhat.com>
30515
30516         gnulib-tool.texi: mention possibility of git submodule
30517         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
30518         submodules.
30519         * doc/.gitignore: Ignore another generated file.
30520
30521 2010-03-08  Karl Berry  <karl@gnu.org>
30522
30523         * doc/gnulib-tool.texi (VCS Issues): Mention third option
30524         of committing gnulib files while skipping others.
30525
30526 2010-03-07  Bruno Haible  <bruno@clisp.org>
30527
30528         Tests of module 'wctype' in C++ mode.
30529         * tests/test-wctype-c++.cc: New file.
30530         * modules/wctype-tests (Files): Add it and tests/signature.h.
30531         (Depends-on): Add ansi-c++-opt.
30532         (Makefile.am): Arrange to compile and run test-wctype-c++.
30533
30534         Tests of module 'wchar' in C++ mode.
30535         * tests/test-wchar-c++.cc: New file.
30536         * modules/wchar-tests (Files): Add it and tests/signature.h.
30537         (Depends-on): Add ansi-c++-opt.
30538         (Makefile.am): Arrange to compile and run test-wchar-c++.
30539         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
30540         gl_MODULE_INDICATOR.
30541
30542         Tests of module 'unistd' in C++ mode.
30543         * tests/test-unistd-c++.cc: New file.
30544         * modules/unistd-tests (Files): Add it and tests/signature.h.
30545         (Depends-on): Add ansi-c++-opt.
30546         (Makefile.am): Arrange to compile and run test-unistd-c++.
30547         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
30548         gl_MODULE_INDICATOR.
30549
30550         Tests of module 'time' in C++ mode.
30551         * tests/test-time-c++.cc: New file.
30552         * modules/time-tests (Files): Add it and tests/signature.h.
30553         (Depends-on): Add ansi-c++-opt.
30554         (Makefile.am): Arrange to compile and run test-time-c++.
30555         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30556
30557         Tests of module 'sys_time' in C++ mode.
30558         * tests/test-sys_time-c++.cc: New file.
30559         * modules/sys_time-tests (Files): Add it and tests/signature.h.
30560         (Depends-on): Add ansi-c++-opt.
30561         (Makefile.am): Arrange to compile and run test-sys_time-c++.
30562         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
30563         gl_MODULE_INDICATOR.
30564
30565         Tests of module 'sys_stat' in C++ mode.
30566         * tests/test-sys_stat-c++.cc: New file.
30567         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
30568         (Depends-on): Add ansi-c++-opt.
30569         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
30570         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
30571         gl_MODULE_INDICATOR.
30572
30573         Tests of module 'sys_socket' in C++ mode.
30574         * tests/test-sys_socket-c++.cc: New file.
30575         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
30576         (Depends-on): Add ansi-c++-opt.
30577         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
30578         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
30579         gl_MODULE_INDICATOR.
30580
30581         Tests of module 'sys_select' in C++ mode.
30582         * tests/test-sys_select-c++.cc: New file.
30583         * modules/sys_select-tests (Files): Add it and tests/signature.h.
30584         (Depends-on): Add ansi-c++-opt.
30585         (Makefile.am): Arrange to compile and run test-sys_select-c++.
30586         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
30587         gl_MODULE_INDICATOR.
30588
30589         Tests of module 'sys_ioctl' in C++ mode.
30590         * tests/test-sys_ioctl-c++.cc: New file.
30591         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
30592         (Depends-on): Add ansi-c++-opt.
30593         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
30594         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
30595         gl_MODULE_INDICATOR.
30596
30597         Tests of module 'string' in C++ mode.
30598         * tests/test-string-c++.cc: New file.
30599         * modules/string-tests (Files): Add it and tests/signature.h.
30600         (Depends-on): Add ansi-c++-opt.
30601         (Makefile.am): Arrange to compile and run test-string-c++.
30602         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
30603         gl_MODULE_INDICATOR.
30604
30605         Tests of module 'stdlib' in C++ mode.
30606         * tests/test-stdlib-c++.cc: New file.
30607         * modules/stdlib-tests (Files): Add it and tests/signature.h.
30608         (Depends-on): Add ansi-c++-opt.
30609         (Makefile.am): Arrange to compile and run test-stdlib-c++.
30610         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
30611         gl_MODULE_INDICATOR.
30612
30613         Tests of module 'stdio' in C++ mode.
30614         * tests/test-stdio-c++.cc: New file.
30615         * modules/stdio-tests (Files): Add it and tests/signature.h.
30616         (Depends-on): Add ansi-c++-opt.
30617         (Makefile.am): Arrange to compile and run test-stdio-c++.
30618         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
30619         gl_MODULE_INDICATOR.
30620
30621         Tests of module 'spawn' in C++ mode.
30622         * tests/test-spawn-c++.cc: New file.
30623         * modules/spawn-tests (Files): Add it and tests/signature.h.
30624         (Depends-on): Add ansi-c++-opt.
30625         (Makefile.am): Arrange to compile and run test-spawn-c++.
30626         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
30627         gl_MODULE_INDICATOR.
30628
30629         Tests of module 'signal' in C++ mode.
30630         * tests/test-signal-c++.cc: New file.
30631         * modules/signal-tests (Files): Add it and tests/signature.h.
30632         (Depends-on): Add ansi-c++-opt.
30633         (Makefile.am): Arrange to compile and run test-signal-c++.
30634         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
30635         gl_MODULE_INDICATOR.
30636
30637         Tests of module 'search' in C++ mode.
30638         * tests/test-search-c++.cc: New file.
30639         * modules/search-tests (Files): Add it and tests/signature.h.
30640         (Depends-on): Add ansi-c++-opt.
30641         (Makefile.am): Arrange to compile and run test-search-c++.
30642         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
30643         gl_MODULE_INDICATOR.
30644
30645         Tests of module 'math' in C++ mode.
30646         * tests/test-math-c++.cc: New file.
30647         * modules/math-tests (Files): Add it and tests/signature.h.
30648         (Depends-on): Add ansi-c++-opt.
30649         (Makefile.am): Arrange to compile and run test-math-c++.
30650         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30651
30652         Tests of module 'locale' in C++ mode.
30653         * tests/test-locale-c++.cc: New file.
30654         * modules/locale-tests (Files): Add it and tests/signature.h.
30655         (Depends-on): Add ansi-c++-opt.
30656         (Makefile.am): Arrange to compile and run test-locale-c++.
30657         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
30658         gl_MODULE_INDICATOR.
30659
30660         Tests of module 'langinfo' in C++ mode.
30661         * tests/test-langinfo-c++.cc: New file.
30662         * modules/langinfo-tests (Files): Add it and tests/signature.h.
30663         (Depends-on): Add ansi-c++-opt.
30664         (Makefile.am): Arrange to compile and run test-langinfo-c++.
30665         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
30666         gl_MODULE_INDICATOR.
30667
30668         Tests of module 'iconv-h' in C++ mode.
30669         * tests/test-iconv-h-c++.cc: New file.
30670         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
30671         (Depends-on): Add ansi-c++-opt.
30672         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
30673
30674         Tests of module 'glob' in C++ mode.
30675         * tests/test-glob-c++.cc: New file.
30676         * modules/glob-tests (Files): Add it.
30677         (Depends-on): Add ansi-c++-opt.
30678         (Makefile.am): Arrange to compile and run test-glob-c++.
30679
30680         Tests of module 'fcntl-h' in C++ mode.
30681         * tests/test-fcntl-h-c++.cc: New file.
30682         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
30683         (Depends-on): Add ansi-c++-opt.
30684         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
30685         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
30686         gl_MODULE_INDICATOR.
30687
30688         Tests of module 'dirent' in C++ mode.
30689         * tests/test-dirent-c++.cc: New file.
30690         * modules/dirent-tests (Files): Add it and tests/signature.h.
30691         (Depends-on): Add ansi-c++-opt.
30692         (Makefile.am): Arrange to compile and run test-dirent-c++.
30693         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30694         gl_MODULE_INDICATOR.
30695
30696         New module 'ansi-c++-opt'.
30697         * modules/ansi-c++-opt: New file.
30698         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
30699
30700         Document C++ namespace mode.
30701         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
30702
30703         wctype: Avoid #define replacements in C++ mode.
30704         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
30705         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
30706         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
30707         In C++, define a namespaced alias symbol.
30708         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
30709         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
30710         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
30711         rule.
30712
30713         wchar: Avoid #define replacements in C++ mode.
30714         * lib/wchar.in.h: Include c++defs.h.
30715         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
30716         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
30717         symbol.
30718         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
30719         * modules/wchar (Depends-on): Add c++defs.
30720         (Makefile.am): Update wchar.h rule.
30721
30722         unistd: Avoid #define replacements in C++ mode.
30723         * lib/unistd.in.h: Include c++defs.h.
30724         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
30725         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
30726         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
30727         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
30728         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
30729         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
30730         symbol.
30731         (environ): Update.
30732         * modules/unistd (Depends-on): Add c++defs.
30733         (Makefile.am): Update unistd.h rule.
30734
30735         time: Avoid #define replacements in C++ mode.
30736         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
30737         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
30738         define a namespaced alias symbol.
30739         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
30740         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
30741         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
30742         * modules/time (Depends-on): Add c++defs, warn-on-use.
30743         (Makefile.am): Update time.h rule.
30744         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
30745         * modules/nanosleep (configure.ac): Likewise.
30746         * modules/strptime (configure.ac): Likewise.
30747         * modules/timegm (configure.ac): Likewise.
30748
30749         sys_time: Avoid #define replacements in C++ mode.
30750         * lib/sys_time.in.h: Include c++defs.h.
30751         (gettimeofday): In C++, define a namespaced alias symbol.
30752         * modules/sys_time (Depends-on): Add c++defs.
30753         (Makefile.am): Update sys/time.h rule.
30754
30755         sys_stat: Avoid #define replacements in C++ mode.
30756         * lib/sys_stat.in.h: Include c++defs.h.
30757         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
30758         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
30759         namespaced alias symbol.
30760         In C++, define a namespaced alias symbol.
30761         * modules/sys_stat (Depends-on): Add c++defs.
30762         (Makefile.am): Update sys/stat.h rule.
30763
30764         sys_socket: Avoid #define replacements in C++ mode.
30765         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
30766         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
30767         definitions also when the system has a <sys/socket.h>.
30768         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
30769         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
30770         In C++, define a namespaced alias symbol.
30771         * modules/sys_socket (Depends-on): Add c++defs.
30772         (Makefile.am): Update sys/socket.h rule.
30773
30774         sys_select: Avoid #define replacements in C++ mode.
30775         * lib/sys_select.in.h: Include c++defs.h. Enable the function
30776         definitions also when the system has a <sys/select.h>.
30777         (select): In C++, define a namespaced alias symbol.
30778         * modules/sys_select (Depends-on): Add c++defs.
30779         (Makefile.am): Update sys/select.h rule.
30780
30781         sys_ioctl: Avoid #define replacements in C++ mode.
30782         * lib/sys_ioctl.in.h: Include c++defs.h.
30783         (ioctl): In C++, define a namespaced alias symbol.
30784         * modules/sys_ioctl (Depends-on): Add c++defs.
30785         (Makefile.am): Update sys/ioctl.h rule.
30786
30787         string: Avoid #define replacements in C++ mode.
30788         * lib/string.in.h: Include c++defs.h.
30789         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
30790         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
30791         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
30792         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
30793         strsignal, strverscmp): In C++, define a namespaced alias symbol.
30794         * modules/string (Depends-on): Add c++defs.
30795         (Makefile.am): Update string.h rule.
30796
30797         stdlib: Avoid #define replacements in C++ mode.
30798         * lib/stdlib.in.h: Include c++defs.h.
30799         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
30800         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
30801         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
30802         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
30803         symbol.
30804         * modules/stdlib (Depends-on): Add c++defs.
30805         (Makefile.am): Update stdlib.h rule.
30806
30807         stdio: Avoid #define replacements in C++ mode.
30808         * lib/stdio.in.h: Include c++defs.h.
30809         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
30810         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
30811         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
30812         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
30813         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
30814         namespaced alias symbol.
30815         * modules/stdio (Depends-on): Add c++defs.
30816         (Makefile.am): Update stdio.h rule.
30817
30818         spawn: Avoid #define replacements in C++ mode.
30819         * lib/spawn.in.h: Include c++defs.h.
30820         (posix_spawn, posix_spawnp, posix_spawnattr_init,
30821         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
30822         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
30823         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
30824         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
30825         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
30826         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
30827         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
30828         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
30829         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
30830         In C++, define a namespaced alias symbol.
30831         * modules/spawn (Depends-on): Add c++defs.
30832         (Makefile.am): Update spawn.h rule.
30833
30834         signal: Avoid #define replacements in C++ mode.
30835         * lib/signal.in.h: Include c++defs.h.
30836         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
30837         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
30838         namespaced alias symbol.
30839         * modules/signal (Depends-on): Add c++defs.
30840         (Makefile.am): Update signal.h rule.
30841
30842         search: Avoid #define replacements in C++ mode.
30843         * lib/search.in.h: Include c++defs.h.
30844         (_gl_search_compar_fn, _gl_search_action_fn): New types.
30845         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
30846         symbol.
30847         * modules/search (Depends-on): Add c++defs.
30848         (Makefile.am): Update search.h rule.
30849
30850         math: Avoid #define replacements in C++ mode.
30851         * lib/math.in.h: Include c++defs.h.
30852         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
30853         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
30854         trunc, truncl): In C++, define a namespaced alias symbol.
30855         * modules/math (Depends-on): Add c++defs.
30856         (Makefile.am): Update math.h rule.
30857
30858         locale: Avoid #define replacements in C++ mode.
30859         * lib/locale.in.h: Include c++defs.h.
30860         (duplocale): In C++, define a namespaced alias symbol.
30861         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
30862         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
30863         * modules/locale (Depends-on): Add c++defs.
30864         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
30865
30866         langinfo: Avoid #define replacements in C++ mode.
30867         * lib/langinfo.in.h: Include c++defs.h.
30868         (nl_langinfo): In C++, define a namespaced alias symbol.
30869         * modules/langinfo (Depends-on): Add c++defs.
30870         (Makefile.am): Update langinfo.h rule.
30871
30872         iconv-h: Avoid #define replacements in C++ mode.
30873         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
30874         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
30875         symbol.
30876         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
30877         whenever iconv is present.
30878         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
30879         (Makefile.am): Update iconv.h rule.
30880
30881         glob: Avoid #define replacements in C++ mode.
30882         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
30883         (_gl_glob_errfunc_fn): New type.
30884         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
30885         symbol.
30886         * modules/glob (Depends-on): Add c++defs, warn-on-use.
30887         (Makefile.am): Update glob.h rule.
30888
30889         fcntl-h: Avoid #define replacements in C++ mode.
30890         * lib/fcntl.in.h: Include c++defs.h.
30891         (fcntl, open, openat): In C++, define a namespaced alias symbol.
30892         * modules/fcntl-h (Depends-on): Add c++defs.
30893         (Makefile.am): Update fcntl.h rule.
30894
30895         dirent: Avoid #define replacements in C++ mode.
30896         * lib/dirent.in.h: Include c++defs.h.
30897         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
30898         namespaced alias symbol.
30899         (dirfd): Update declaration.
30900         * modules/dirent (Depends-on): Add c++defs.
30901         (Makefile.am): Update dirent.h rule.
30902
30903         ctype: Make it usable in C++ code.
30904         * lib/ctype.in.h: Include c++defs.h.
30905         (isblank): Declare as extern "C".
30906         * modules/ctype (Depends-on): Add c++defs.
30907         (Makefile.am): Update ctype.h rule.
30908
30909         New module 'c++defs'.
30910         * modules/c++defs: New file.
30911         * build-aux/c++defs.h: New file.
30912         Reported by John W. Eaton <jwe@gnu.org>.
30913
30914 2010-03-07  Bruno Haible  <bruno@clisp.org>
30915
30916         logb: Provide missing declaration for Cygwin.
30917         * lib/math.in.h (logb): New declaration.
30918         * m4/logb.m4: New file.
30919         * modules/logb (Files): Add m4/logb.m4.
30920         (Depends-on): Add math.
30921         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
30922         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
30923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
30924         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
30925         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
30926
30927 2010-03-07  Bruno Haible  <bruno@clisp.org>
30928
30929         Fix test-cond link error.
30930         * tests/test-cond.c: Include <stdio.h>.
30931
30932 2010-03-07  Bruno Haible  <bruno@clisp.org>
30933
30934         Fix test-dirent-safer link error.
30935         * modules/dirent-safer-tests (Makefile.am): Define
30936         test_dirent_safer_LDADD.
30937
30938 2010-03-07  Bruno Haible  <bruno@clisp.org>
30939
30940         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
30941         among default module list.
30942
30943 2010-03-07  Bruno Haible  <bruno@clisp.org>
30944
30945         Fix link error on platforms with GNU libiconv.
30946         * modules/unistr/u8-strcoll-tests (Makefile): Define
30947         test_u8_strcoll_LDADD.
30948         * modules/unistr/u16-strcoll-tests (Makefile): Define
30949         test_u16_strcoll_LDADD.
30950         * modules/unistr/u32-strcoll-tests (Makefile): Define
30951         test_u32_strcoll_LDADD.
30952
30953 2010-03-07  Bruno Haible  <bruno@clisp.org>
30954
30955         Use POSIX declarations for socket functions.
30956         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
30957         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
30958         rpl_sendto): Change declaration to match POSIX.
30959         * lib/connect.c (rpl_connect): Likewise.
30960         * lib/accept.c (rpl_accept): Likewise.
30961         * lib/bind.c (rpl_bind): Likewise.
30962         * lib/getpeername.c (rpl_getpeername): Likewise.
30963         * lib/getsockname.c (rpl_getsockname): Likewise.
30964         * lib/recv.c (rpl_recv): Likewise.
30965         * lib/send.c (rpl_send): Likewise.
30966         * lib/recvfrom.c (rpl_recvfrom): Likewise.
30967         * lib/sendto.c (rpl_sendto): Likewise.
30968
30969 2010-03-06  Bruno Haible  <bruno@clisp.org>
30970
30971         Clarify access, euidaccess, faccessat.
30972         * doc/posix-functions/faccessat.texi: Mention security problem under
30973         "Other problems", not "Portability problems".
30974         * doc/posix-functions/access.texi: Likewise. Mention a related security
30975         problem.
30976         * doc/glibc-functions/euidaccess.texi: Mention security problems.
30977         * lib/euidaccess.c: Add comments about platforms.
30978         * lib/unistd.in.h (access, euidaccess): Add warnings.
30979
30980 2010-03-07  Bruno Haible  <bruno@clisp.org>
30981
30982         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
30983         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
30984         (POSIX_SPAWN_SETSCHEDULER): Likewise.
30985         (POSIX_SPAWN_USEVFORK): Define in a way that works when
30986         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
30987         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
30988         declare when POSIX_SPAWN_SETSCHEDULER is zero.
30989         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
30990         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
30991         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
30992         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
30993         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
30994         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
30995         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
30996         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
30997         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
30998         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
30999         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31000         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31001         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31002         Likewise.
31003         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31004         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31005         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31006         Likewise.
31007         * tests/test-spawn.c (main): Make it work when
31008         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31009
31010 2010-03-07  Bruno Haible  <bruno@clisp.org>
31011
31012         Fix incorrect Makefile.am generation in German locale.
31013         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31014         Execute sed command with character range in C locale.
31015
31016 2010-03-06  Bruno Haible  <bruno@clisp.org>
31017
31018         Tests for module 'iconv-h'.
31019         * modules/iconv-h-tests: New file.
31020         * tests/test-iconv-h.c: New file.
31021
31022         New module 'iconv-h'.
31023         * modules/iconv-h: New file.
31024         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
31025         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
31026         (configure.ac): Remove gl_ICONV_H.
31027         (Makefile.am): Remove rule for iconv.h.
31028
31029 2010-03-06  Bruno Haible  <bruno@clisp.org>
31030
31031         More consistent naming of *.m4 files.
31032         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
31033         * modules/wctype (Files): Update.
31034
31035         More consistent naming of *.m4 files.
31036         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
31037         * modules/wchar (Files): Update.
31038
31039 2010-03-06  Jim Meyering  <meyering@redhat.com>
31040
31041         euidaccess: relax license to LGPLv2+
31042         * modules/euidaccess (License): Relax to LGPLv2+.
31043
31044 2010-03-06  Bruno Haible  <bruno@clisp.org>
31045
31046         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
31047         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
31048         (Makefile.am): Augment lib_SOURCES instead.
31049
31050 2010-03-04  Jim Meyering  <meyering@redhat.com>
31051
31052         utime: remove obsolete module
31053         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
31054         unnecessary for years, and has been marked as obsolete for 10 months.
31055         * modules/utime: Remove file.
31056         * lib/utime.c: Remove file.
31057         * m4/utime.m4: Remove file.
31058         * m4/utimes-null.m4: Remove file.
31059         * doc/posix-functions/utime.texi (utime): Remove reference to
31060         the module.  Move the sole "fixed by gnulib" item into the
31061         "problems not fixed by Gnulib" list.
31062         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
31063
31064 2010-03-05  Simon Josefsson  <simon@josefsson.org>
31065
31066         * modules/exit (License): Relax license to LGPLv2+.
31067         (Status): Mark as obsolete.
31068         * NEWS: Mention deprecated 'exit' module.
31069         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
31070         of now obsolete 'exit'.
31071
31072 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31073
31074         fts-lgpl: remove unused module
31075         * modules/fts-lgpl: Remove.
31076         * MODULES.html.sh (func_all_modules): Adjust.
31077         * check-module (find_included_lib_files): Adjust.
31078         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
31079
31080 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
31081
31082         copy-acl: enhance Solaris ACL error handling
31083         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
31084         * lib/set-mode-acl.c (qset_acl): Likewise.
31085
31086 2010-03-02  Bruno Haible  <bruno@clisp.org>
31087
31088         spawn: Don't override the system defined values on FreeBSD 8.
31089         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
31090         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
31091         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
31092         if HAVE_POSIX_SPAWN is 1.
31093         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
31094
31095 2010-03-01  Bruno Haible  <bruno@clisp.org>
31096
31097         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
31098         regarding Automake.
31099
31100 2010-02-25  Bruno Haible  <bruno@clisp.org>
31101
31102         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
31103         * gnulib-tool: Define 'echo' as a function only before the ksh alias
31104         setting, not afterwards.
31105         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
31106
31107 2010-02-24  Eric Blake  <eblake@redhat.com>
31108
31109         bootstrap, git-version-gen: use timestamp
31110         * build-aux/git-version-gen (scriptversion): Force UTC.
31111         * build-aux/bootstrap (scriptversion): New variable.
31112
31113         bootstrap: allow older git
31114         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
31115         older than 1.6.4.  Requested by the libvirt project.
31116
31117 2010-02-23  Eric Blake  <eblake@redhat.com>
31118
31119         warn-on-use: work with old autoconf
31120         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
31121         AS_VAR semantics of autoconf 2.60.
31122         Reported by Bruno Haible.
31123
31124         bootstrap: improve some comments
31125         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
31126         clarification comments.
31127
31128         gettimeofday: provide correct function
31129         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
31130         when replacement is declared, otherwise provide gettimeofday.
31131         Reported by Michael Goffioul.
31132
31133 2010-02-23  Jim Meyering  <meyering@redhat.com>
31134
31135         lib-ignore: relax license to "unlimited", not LGPLv2+
31136         * modules/lib-ignore (License): Relax to "unlimited".
31137
31138 2010-02-23  Jim Meyering  <meyering@redhat.com>
31139
31140         lib-ignore: relax license to LGPLv2+
31141         * modules/lib-ignore (License): Relax to LGPLv2+.
31142
31143 2010-02-22  Eric Blake  <eblake@redhat.com>
31144
31145         lseek: avoid bash 3.2 broken pipe bug
31146         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
31147         warning from bash 3.2.
31148         Reported by Ben Pfaff, with analysis from Bruno Haible.
31149
31150         bootstrap: support non-FSF copyright holder
31151         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
31152         bootstrap.conf override of COPYRIGHT_HOLDER.
31153         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
31154
31155         bootstrap: interoperate with gettext 0.14.1
31156         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
31157
31158         bootstrap: allow for alternate submodule location
31159         * build-aux/bootstrap (gnulib_path): New variable; use instead of
31160         hardcoding submodule location.
31161         (gnulib_mk): Allow direct use of Makefile.am.
31162
31163         bootstrap: use GNULIB_SRCDIR to reduce disk usage
31164         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
31165         rather than reconfiguring where the submodule points.
31166
31167         gettimeofday: restore support for platforms that lack function
31168         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
31169         replacement if function is missing.
31170         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
31171         * modules/sys_time (Makefile.am): Substitute it.
31172         * lib/sys_time.in.h (gettimeofday): Check it.
31173         Reported by Michael Goffioul.
31174
31175 2010-02-21  Bruno Haible  <bruno@clisp.org>
31176
31177         * lib/stdio.in.h (obstack_printf): Fix typo.
31178
31179 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
31180
31181         vc-list-files: use bzr ls's -R option
31182         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
31183         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
31184
31185 2010-02-21  Jim Meyering  <meyering@redhat.com>
31186
31187         init.sh: fix EXEEXT shims to work also for names like test-prog
31188         * tests/init.sh: Re-exec a better shell, when needed.
31189         If the current shell lacks support for posix $(...), an init.sh-using
31190         test will now try to find a shell that supports that.  If EXEEXT is
31191         nonempty, we also require support for hyphen-in-alias-name and shell
31192         substitutions like ${var#glob}.  Failure to find such a shell results
31193         in a skipped test.
31194
31195 2010-02-21  Bruno Haible  <bruno@clisp.org>
31196
31197         Really work around around "broken pipe" error message from bash 3.2.
31198         * gnulib-tool (func_reset_sigpipe): Remove function.
31199         (echo): In bash 3.2, define to a function that uses printf.
31200         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
31201
31202 2010-02-20  Bruno Haible  <bruno@clisp.org>
31203
31204         Restore support for automake 1.9.6 with autoconf 2.61.
31205         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
31206         Reported by James Youngman <jay@gnu.org>.
31207
31208 2010-02-20  Bruno Haible  <bruno@clisp.org>
31209
31210         Improve *printf warning condition.
31211         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
31212         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
31213         and the function is overridden due to SIGPIPE emulation.
31214
31215 2010-02-20  Bruno Haible  <bruno@clisp.org>
31216
31217         * lib/stdio.in.h: Tweak comments.
31218
31219 2010-02-19  Bruno Haible  <bruno@clisp.org>
31220
31221         Make it easier to find modules. New gnulib-tool option '--find'.
31222         * gnulib-tool: New option --find.
31223         (func_usage): Document it.
31224         (func_sanitize_modulelist): New function, extracted from
31225         func_all_modules.
31226         (func_all_modules): Invoke it.
31227         * doc/gnulib-tool.texi (Which modules?): New node.
31228
31229 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
31230
31231         * lib/sys_select.in.h: Provide select replacement even if
31232         sys/select.h exists on a system, for Interix.
31233
31234 2010-02-18  Jim Meyering  <meyering@redhat.com>
31235
31236         init.sh: don't use $(...) just yet
31237         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
31238         to accommodate e.g., Solaris' /bin/sh.
31239
31240 2010-02-17  Bruno Haible  <bruno@clisp.org>
31241
31242         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
31243         Reported by Ludovic Courtès <ludo@gnu.org>.
31244
31245 2010-02-16  Simon Josefsson  <simon@josefsson.org>
31246
31247         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
31248         linking with -lintl.
31249
31250 2010-02-17  Simon Josefsson  <simon@josefsson.org>
31251
31252         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
31253         if not provided by the system's netdb.h.  Reported by
31254         ludo@gnu.org (Ludovic Courtès).
31255
31256 2010-02-15  Jim Meyering  <meyering@redhat.com>
31257
31258         init.sh: improve portability and efficiency
31259         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
31260         "dummy" in a for loop.
31261         Use '!', not '^' to select the complement of a character set used
31262         in a "case" statement.
31263         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
31264         Suggestions from Eric Blake.
31265
31266         init.sh: automatically accommodate programs with the .exe suffix
31267         Automatically arrange for an invocation of "prog" to execute the
31268         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
31269         may use the simpler "prog", yet still work when built on a system
31270         that requires specifying the added suffix.
31271         Do this by constructing a function named "prog" that invokes
31272         "prog.exe" for each .exe file in selected directories.
31273         * tests/init.sh (find_exe_basenames_): New function.
31274         (create_exe_shim_functions_): New function.
31275         (path_prepend_): Use it.
31276
31277         maint.mk: mark syntax-check sc_*.m rules as .PHONY
31278         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
31279         "make -t syntax-check" doesn't create a ton of sc_*.m files.
31280
31281 2010-02-14  Jim Meyering  <meyering@redhat.com>
31282
31283         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
31284         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
31285         (sc_prohibit_hash_pjw_without_use): New rule.
31286
31287         maint.mk: allow the default upload destination dir to be overridden
31288         * top/maint.mk (upload_dest_dir_): Define with a default that
31289         preserves the status quo.
31290         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
31291         Reported by Peter Simons.
31292
31293         maint.mk: prohibit inclusion of "hash.h" without_use
31294         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
31295
31296 2010-02-10  Jim Meyering  <meyering@redhat.com>
31297
31298         maint.mk: prohibit inclusion of "ignore-value.h" without_use
31299         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
31300
31301 2010-02-09  Eric Blake  <ebb9@byu.net>
31302         and Bruno Haible  <bruno@clisp.org>
31303
31304         obstack-printf-posix: ensure declaration
31305         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
31306         extracted from gl_FUNC_OBSTACK_PRINTF.
31307         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
31308         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
31309         Likewise.
31310         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
31311         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
31312         0.
31313
31314 2010-02-08  Bruno Haible  <bruno@clisp.org>
31315
31316         gnulib-tool: Fix typo in 2010-02-07 commit.
31317         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
31318         Reported by Eric Blake.
31319
31320 2010-02-07  Bruno Haible  <bruno@clisp.org>
31321
31322         gnulib-tool: Fix up caching patches.
31323         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
31324         option --no-cache. Use associative arrays when supported by the shell.
31325         (sed_comments): New variable.
31326         (modcache): Renamed from do_cache.
31327         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
31328         abbreviate unnecessarily.
31329         (have_associative): New variable.
31330         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
31331         way also for ksh and zsh.
31332         (func_init_sed_convert_to_cache_statements): New function, extracted
31333         from func_cache_lookup_module. Add support for associative arrays.
31334         Don't set the c_MODULE_cached variable here. Ignore all lines before
31335         the first field header. Remove only the final newline, not all trailing
31336         newlines. Support empty fields correctly. Limit the use of 'eval' to
31337         assignments.
31338         (func_get_description, func_get_status, func_get_notice,
31339         func_get_applicability, func_get_filelist, func_get_dependencies,
31340         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
31341         func_get_automake_snippet, func_get_include_directive,
31342         func_get_link_directive, func_get_license, func_get_maintainer):
31343         Update documentation. List the unoptimized code first. Add support for
31344         associative arrays. Limit the use of 'eval' to assignments.
31345         (func_get_applicability): Undo stylistic pessimisations.
31346         (func_get_automake_snippet, func_get_include_directive): Reduce code
31347         duplication.
31348         (func_modules_transitive_closure, func_modules_add_dummy,
31349         func_modules_notice, func_modules_to_filelist, func_add_file,
31350         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
31351         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
31352         func_create_testdir, func_create_megatestdir): Update documentation.
31353
31354 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31355
31356         * gnulib-tool (func_cache_lookup_module): Store the module name
31357         belonging to the cache variable; error out if two different
31358         module names map to the same cache variable name.
31359
31360 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31361
31362         gnulib-tool: Make caching optional.
31363         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
31364         Update matching short versions of --no-changelog.
31365         (func_usage): Update.
31366         (sed_extract_cache_prog): Renamed from ...
31367         (sed_extract_prog): ... this; revert to old extraction script.
31368         (func_get_description, func_get_status)
31369         (func_get_notice, func_get_applicability, func_get_filelist)
31370         (func_get_dependencies, func_get_autoconf_early_snippet)
31371         (func_get_autoconf_snippet, func_get_automake_snippet)
31372         (func_get_include_directive, func_get_link_directive)
31373         (func_get_license, func_get_maintainer): If $do_cache is false,
31374         use old, non-caching extraction scripts.
31375         Suggestion by Bruno Haible.
31376
31377 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31378
31379         gnulib-tool: cache module metainformation.
31380         * gnulib-tool (sed_extract_prog): Match newline before each
31381         header, and rewrite header to a shell variable suffix.
31382         (func_cache_var, func_cache_lookup_module): New functions,
31383         to turn a module name into a cache variable prefix, and to
31384         look up and cache module metainformation.
31385         (func_get_description, func_get_status)
31386         (func_get_notice, func_get_applicability, func_get_filelist)
31387         (func_get_dependencies, func_get_autoconf_early_snippet)
31388         (func_get_autoconf_snippet, func_get_automake_snippet)
31389         (func_get_include_directive, func_get_link_directive)
31390         (func_get_license, func_get_maintainer): Use
31391         func_cache_lookup_module.
31392
31393 2010-02-07  Bruno Haible  <bruno@clisp.org>
31394
31395         fnctl: Fix missing dependency.
31396         * modules/fcntl (Depends-on): Add getdtablesize.
31397         Reported by John W. Eaton <jwe@gnu.org>.
31398
31399 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31400
31401         Argp: fix recognition of short alias options.
31402
31403         * lib/argp-parse.c (convert_options): Fix improper use of
31404         `|' between character values.
31405         * tests/test-argp.c (group1_option): New alias option
31406         --read (-r).
31407         (group1_parser): Special handling for 'r'.
31408         (test15): New test case.
31409         (test_fun): Add test15.
31410         * tests/test-argp-2.sh: Update expected --help and --usage
31411         outputs.
31412
31413 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31414
31415         * tests/test-argp.c: Fix indentation.
31416
31417 2010-02-04  Eric Blake  <ebb9@byu.net>
31418
31419         gettimeofday: expose type of second argument
31420         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
31421         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
31422         * tests/test-gettimeofday.c: Use it to silence warning.
31423         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
31424         the issue.
31425
31426 2010-02-03  Jim Meyering  <meyering@redhat.com>
31427
31428         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
31429         * lib/regcomp.c (TYPE_SIGNED): Define.
31430         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
31431
31432         regcomp.c: avoid a new -Wshadow warning
31433         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
31434
31435 2010-02-01  Jim Meyering  <meyering@redhat.com>
31436
31437         removing useless parentheses in cpp #define directives
31438         For motivation, see commit c0221df4, "define STREQ(a,b)
31439         consistently, removing useless parentheses"
31440         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
31441         * lib/mountlist.c (MNT_IGNORE): Likewise.
31442         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
31443
31444 2010-02-01  Eric Blake  <ebb9@byu.net>
31445
31446         sys_time: use link-warning
31447         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
31448         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
31449         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
31450         * modules/sys_time (Depends-on): Add warn-on-use.
31451         (Makefile.am): Always build replacement.
31452         (configure.ac): Update substitutions.
31453         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
31454         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
31455         bother with SYS_TIME_H.
31456         * modules/gettimeofday (configure.ac): Declare indicator.
31457         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
31458         in use.
31459
31460         closein-tests: silence compiler warning
31461         * tests/test-closein.c (main): Ignore fread result.
31462         * modules/closein-tests (Depends-on): Add ignore-value.
31463
31464         tests: silence warning about system return
31465         * tests/test-areadlink-with-size.c (main): Ignore system result.
31466         * tests/test-areadlink.c (main): Likewise.
31467         * tests/test-areadlinkat-with-size.c (main): Likewise.
31468         * tests/test-areadlinkat.c (main): Likewise.
31469         * tests/test-canonicalize-lgpl.c (main): Likewise.
31470         * tests/test-canonicalize.c (main): Likewise.
31471         * tests/test-chown.c (main): Likewise.
31472         * tests/test-fchownat.c (main): Likewise.
31473         * tests/test-fdutimensat.c (main): Likewise.
31474         * tests/test-fstatat.c (main): Likewise.
31475         * tests/test-futimens.c (main): Likewise.
31476         * tests/test-lchown.c (main): Likewise.
31477         * tests/test-link.c (main): Likewise.
31478         * tests/test-linkat.c (main): Likewise.
31479         * tests/test-lstat.c (main): Likewise.
31480         * tests/test-mkdir.c (main): Likewise.
31481         * tests/test-mkdirat.c (main): Likewise.
31482         * tests/test-mkfifo.c (main): Likewise.
31483         * tests/test-mkfifoat.c (main): Likewise.
31484         * tests/test-mknod.c (main): Likewise.
31485         * tests/test-readlink.c (main): Likewise.
31486         * tests/test-remove.c (main): Likewise.
31487         * tests/test-rename.c (main): Likewise.
31488         * tests/test-renameat.c (main): Likewise.
31489         * tests/test-rmdir.c (main): Likewise.
31490         * tests/test-symlink.c (main): Likewise.
31491         * tests/test-symlinkat.c (main): Likewise.
31492         * tests/test-unlink.c (main): Likewise.
31493         * tests/test-unlinkat.c (main): Likewise.
31494         * tests/test-utimens.c (main): Likewise.
31495         * tests/test-utimensat.c (main): Likewise.
31496         * modules/areadlink-tests (Depends-on): Add ignore-value.
31497         * modules/areadlink-with-size-tests (Depends-on): Likewise.
31498         * modules/areadlinkat-tests (Depends-on): Likewise.
31499         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
31500         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31501         * modules/canonicalize-tests (Depends-on): Likewise.
31502         * modules/chown-tests (Depends-on): Likewise.
31503         * modules/fdutimensat-tests (Depends-on): Likewise.
31504         * modules/futimens-tests (Depends-on): Likewise.
31505         * modules/lchown-tests (Depends-on): Likewise.
31506         * modules/link-tests (Depends-on): Likewise.
31507         * modules/linkat-tests (Depends-on): Likewise.
31508         * modules/lstat-tests (Depends-on): Likewise.
31509         * modules/mkdir-tests (Depends-on): Likewise.
31510         * modules/mkfifo-tests (Depends-on): Likewise.
31511         * modules/mkfifoat-tests (Depends-on): Likewise.
31512         * modules/mknod-tests (Depends-on): Likewise.
31513         * modules/openat-tests (Depends-on): Likewise.
31514         * modules/readlink-tests (Depends-on): Likewise.
31515         * modules/remove-tests (Depends-on): Likewise.
31516         * modules/rename-tests (Depends-on): Likewise.
31517         * modules/renameat-tests (Depends-on): Likewise.
31518         * modules/rmdir-tests (Depends-on): Likewise.
31519         * modules/symlink-tests (Depends-on): Likewise.
31520         * modules/symlinkat-tests (Depends-on): Likewise.
31521         * modules/unlink-tests (Depends-on): Likewise.
31522         * modules/utimens-tests (Depends-on): Likewise.
31523         * modules/utimensat-tests (Depends-on): Likewise.
31524
31525 2010-01-31  Bruno Haible  <bruno@clisp.org>
31526
31527         Perform the same test for many <math.h> functions.
31528         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
31529         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
31530         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
31531         of gl_MATHFUNC.
31532         * modules/acos (configure.ac): Likewise.
31533         * modules/asin (configure.ac): Likewise.
31534         * modules/atan (configure.ac): Likewise.
31535         * modules/atan2 (configure.ac): Likewise.
31536         * modules/cbrt (configure.ac): Likewise.
31537         * modules/copysign (configure.ac): Likewise.
31538         * modules/cos (configure.ac): Likewise.
31539         * modules/cosh (configure.ac): Likewise.
31540         * modules/erf (configure.ac): Likewise.
31541         * modules/erfc (configure.ac): Likewise.
31542         * modules/exp (configure.ac): Likewise.
31543         * modules/fmod (configure.ac): Likewise.
31544         * modules/hypot (configure.ac): Likewise.
31545         * modules/j0 (configure.ac): Likewise.
31546         * modules/j1 (configure.ac): Likewise.
31547         * modules/jn (configure.ac): Likewise.
31548         * modules/lgamma (configure.ac): Likewise.
31549         * modules/log (configure.ac): Likewise.
31550         * modules/log10 (configure.ac): Likewise.
31551         * modules/log1p (configure.ac): Likewise.
31552         * modules/pow (configure.ac): Likewise.
31553         * modules/remainder (configure.ac): Likewise.
31554         * modules/sin (configure.ac): Likewise.
31555         * modules/sinh (configure.ac): Likewise.
31556         * modules/tan (configure.ac): Likewise.
31557         * modules/tanh (configure.ac): Likewise.
31558         * modules/y0 (configure.ac): Likewise.
31559         * modules/y1 (configure.ac): Likewise.
31560         * modules/yn (configure.ac): Likewise.
31561         Suggested by Paolo Bonzini.
31562
31563 2010-01-31  Bruno Haible  <bruno@clisp.org>
31564
31565         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
31566
31567 2010-01-31  Bruno Haible  <bruno@clisp.org>
31568
31569         Work around getdelim() bug on FreeBSD 8.0.
31570         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
31571         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
31572         not work.
31573         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
31574         is 1.
31575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
31576         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
31577         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
31578         a non-zero size.
31579         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
31580
31581 2010-01-31  Bruno Haible  <bruno@clisp.org>
31582
31583         Work around getline() bug on FreeBSD 8.0.
31584         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
31585         and a non-zero size.
31586         * tests/test-getline.c (main): Likewise.
31587         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
31588         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
31589
31590 2010-01-28  Eric Blake  <ebb9@byu.net>
31591
31592         regex: fix build failure
31593         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
31594         platforms.
31595
31596 2010-01-28  Jim Meyering  <meyering@redhat.com>
31597
31598         regex: do not ignore memory allocation failure
31599         * lib/regex_internal.c (create_cd_newstate): Detect
31600         re_node_set_init_copy failure.   Extracted from glibc commit
31601         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
31602
31603         regex: sync more white-space changes from libc
31604         * lib/regex_internal.c: White-space only changes.
31605         * lib/regexec.c: Likewise.
31606
31607         regex: add many uses of __attribute_warn_unused_result__
31608         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
31609         * lib/regexec.c: Likewise.
31610         Extracted from a messy glibc commit.
31611
31612         regcomp.c: spelling and merge-artifact from glibc
31613         * lib/regcomp.c: Merge remainder of glibc's
31614         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
31615
31616         regcomp.c: sync white-space changes from glibc
31617         * lib/regcomp.c: Merge to accommodate white space
31618         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
31619
31620         regcomp.c: do not ignore internal return values
31621         * lib/regcomp.c: Do not ignore internal return values.
31622         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
31623         but without its white-space changes and spelling fixes.
31624
31625         regex_internal.h: define __attribute_warn_unused_result__
31626         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
31627
31628         maint: add a syntax-check rule to check for vulnerable Makefile.in
31629         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
31630
31631 2010-01-27  Jim Meyering  <meyering@redhat.com>
31632
31633         ncftpput-ftp: clean up spaces
31634         * build-aux/ncftpput-ftp: Make Copyright line consistent.
31635         Remove trailing blanks.
31636
31637 2010-01-27  Simon Josefsson  <simon@josefsson.org>
31638
31639         * build-aux/git-version-gen: Fix copyright statement.
31640         * build-aux/gnupload: Likewise.
31641         * tests/test-arcfour.c: Likewise.
31642         * tests/test-arctwo.c: Likewise.
31643         * tests/test-count-one-bits.c: Likewise.
31644         * tests/test-crc.c: Likewise.
31645         * tests/test-des.c: Likewise.
31646         * tests/test-gc-arcfour.c: Likewise.
31647         * tests/test-gc-arctwo.c: Likewise.
31648         * tests/test-gc-des.c: Likewise.
31649         * tests/test-gc-hmac-md5.c: Likewise.
31650         * tests/test-gc-hmac-sha1.c: Likewise.
31651         * tests/test-gc-md2.c: Likewise.
31652         * tests/test-gc-md4.c: Likewise.
31653         * tests/test-gc-md5.c: Likewise.
31654         * tests/test-gc-pbkdf2-sha1.c: Likewise.
31655         * tests/test-gc-rijndael.c: Likewise.
31656         * tests/test-gc-sha1.c: Likewise.
31657         * tests/test-gc.c: Likewise.
31658         * tests/test-gethostname.c: Likewise.
31659         * tests/test-gettimeofday.c: Likewise.
31660         * tests/test-hash.c: Likewise.
31661         * tests/test-hmac-md5.c: Likewise.
31662         * tests/test-hmac-sha1.c: Likewise.
31663         * tests/test-md2.c: Likewise.
31664         * tests/test-md4.c: Likewise.
31665         * tests/test-md5.c: Likewise.
31666         * tests/test-memchr.c: Likewise.
31667         * tests/test-memchr2.c: Likewise.
31668         * tests/test-memcmp.c: Likewise.
31669         * tests/test-memmem.c: Likewise.
31670         * tests/test-memrchr.c: Likewise.
31671         * tests/test-rawmemchr.c: Likewise.
31672         * tests/test-read-file.c: Likewise.
31673         * tests/test-rijndael.c: Likewise.
31674         * tests/test-sockets.c: Likewise.
31675         * tests/test-strchrnul.c: Likewise.
31676         * tests/test-strstr.c: Likewise.
31677         * tests/test-strtod.c: Likewise.
31678         * build-aux/ncftpput-ftp: Likewise.
31679
31680 2010-01-26  Eric Blake  <ebb9@byu.net>
31681
31682         ignore-value: update recommended header name
31683         * modules/ignore-value (Include): Only use <> for headers that
31684         exist in glibc.
31685
31686 2010-01-26  Jim Meyering  <meyering@redhat.com>
31687
31688         test-userspec.c: avoid compiler warnings
31689         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
31690         and "initialization discards qualifiers..." warnings.
31691         Put the first "uid" in its own scope, and make char* members "const".
31692
31693 2010-01-25  Bruno Haible  <bruno@clisp.org>
31694
31695         gnulib-tool: Make warning diagnostics consistent.
31696         * gnulib-tool (func_warning): New function.
31697         Use it everywhere where gnulib-tool produces output to stderr and it is
31698         not a fatal error.
31699
31700 2010-01-25  Bruno Haible  <bruno@clisp.org>
31701
31702         Fix test dependencies.
31703         * modules/xstrtol-tests (Depends-on): Add inttypes.
31704         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
31705
31706 2010-01-25 Pádraig Brady <P@draigBrady.com>
31707
31708         syntax-check: detect incorrect boolean macro values in config.h
31709         * modules/maintainer-makefile (configure.ac): Parameterize the location
31710         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
31711         The logic is from Eric Blake and the location indicated by Jim Meyering.
31712         Note the more natural CONFIG_HEADER name is prohibited by automake
31713         for backwards compatibility reasons.
31714         * top/maint.mk (sc_Wundef_boolean): New rule.
31715
31716 2010-01-25  Jim Meyering  <meyering@redhat.com>
31717
31718         bootstrap: detect MacOS 10.6's shasum, too
31719         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
31720         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
31721
31722 2010-01-23  Jim Meyering  <meyering@redhat.com>
31723
31724         xstrtoll: new module
31725         * modules/xstrtoll: New file.
31726         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
31727         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
31728         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
31729         ./configure fails if you use this module and lack "long long".
31730         * modules/xstrtoll-tests: New module.
31731         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
31732         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
31733         new init.sh-based test framework.
31734
31735 2010-01-24  Bruno Haible  <bruno@clisp.org>
31736
31737         Tests for module 'yn'.
31738         * modules/yn-tests: New file.
31739         * tests/test-yn.c: New file.
31740
31741         Tests for module 'y1'.
31742         * modules/y1-tests: New file.
31743         * tests/test-y1.c: New file.
31744
31745         Tests for module 'y0'.
31746         * modules/y0-tests: New file.
31747         * tests/test-y0.c: New file.
31748
31749         Tests for module 'tanh'.
31750         * modules/tanh-tests: New file.
31751         * tests/test-tanh.c: New file.
31752
31753         Tests for module 'tan'.
31754         * modules/tan-tests: New file.
31755         * tests/test-tan.c: New file.
31756
31757         Tests for module 'sqrt'.
31758         * modules/sqrt-tests: New file.
31759         * tests/test-sqrt.c: New file.
31760
31761         Tests for module 'sinh'.
31762         * modules/sinh-tests: New file.
31763         * tests/test-sinh.c: New file.
31764
31765         Tests for module 'sin'.
31766         * modules/sin-tests: New file.
31767         * tests/test-sin.c: New file.
31768
31769         Tests for module 'rint'.
31770         * modules/rint-tests: New file.
31771         * tests/test-rint.c: New file.
31772
31773         Tests for module 'remainder'.
31774         * modules/remainder-tests: New file.
31775         * tests/test-remainder.c: New file.
31776
31777         Tests for module 'pow'.
31778         * modules/pow-tests: New file.
31779         * tests/test-pow.c: New file.
31780
31781         Tests for module 'nextafter'.
31782         * modules/nextafter-tests: New file.
31783         * tests/test-nextafter.c: New file.
31784
31785         Tests for module 'modf'.
31786         * modules/modf-tests: New file.
31787         * tests/test-modf.c: New file.
31788
31789         Tests for module 'logb'.
31790         * modules/logb-tests: New file.
31791         * tests/test-logb.c: New file.
31792
31793         Tests for module 'log1p'.
31794         * modules/log1p-tests: New file.
31795         * tests/test-log1p.c: New file.
31796
31797         Tests for module 'log10'.
31798         * modules/log10-tests: New file.
31799         * tests/test-log10.c: New file.
31800
31801         Tests for module 'log'.
31802         * modules/log-tests: New file.
31803         * tests/test-log.c: New file.
31804
31805         Tests for module 'lgamma'.
31806         * modules/lgamma-tests: New file.
31807         * tests/test-lgamma.c: New file.
31808
31809         Tests for module 'ldexp'.
31810         * modules/ldexp-tests: New file.
31811         * tests/test-ldexp.c: New file.
31812
31813         Tests for module 'jn'.
31814         * modules/jn-tests: New file.
31815         * tests/test-jn.c: New file.
31816
31817         Tests for module 'j1'.
31818         * modules/j1-tests: New file.
31819         * tests/test-j1.c: New file.
31820
31821         Tests for module 'j0'.
31822         * modules/j0-tests: New file.
31823         * tests/test-j0.c: New file.
31824
31825         Tests for module 'hypot'.
31826         * modules/hypot-tests: New file.
31827         * tests/test-hypot.c: New file.
31828
31829         Tests for module 'fmod'.
31830         * modules/fmod-tests: New file.
31831         * tests/test-fmod.c: New file.
31832
31833         Tests for module 'fabs'.
31834         * modules/fabs-tests: New file.
31835         * tests/test-fabs.c: New file.
31836
31837         Tests for module 'exp'.
31838         * modules/exp-tests: New file.
31839         * tests/test-exp.c: New file.
31840
31841         Tests for module 'erfc'.
31842         * modules/erfc-tests: New file.
31843         * tests/test-erfc.c: New file.
31844
31845         Tests for module 'erf'.
31846         * modules/erf-tests: New file.
31847         * tests/test-erf.c: New file.
31848
31849         Tests for module 'cosh'.
31850         * modules/cosh-tests: New file.
31851         * tests/test-cosh.c: New file.
31852
31853         Tests for module 'cos'.
31854         * modules/cos-tests: New file.
31855         * tests/test-cos.c: New file.
31856
31857         Tests for module 'copysign'.
31858         * modules/copysign-tests: New file.
31859         * tests/test-copysign.c: New file.
31860
31861         Tests for module 'cbrt'.
31862         * modules/cbrt-tests: New file.
31863         * tests/test-cbrt.c: New file.
31864
31865         Tests for module 'atan2'.
31866         * modules/atan2-tests: New file.
31867         * tests/test-atan2.c: New file.
31868
31869         Tests for module 'atan'.
31870         * modules/atan-tests: New file.
31871         * tests/test-atan.c: New file.
31872
31873         Tests for module 'asin'.
31874         * modules/asin-tests: New file.
31875         * tests/test-asin.c: New file.
31876
31877         Tests for module 'acos'.
31878         * modules/acos-tests: New file.
31879         * tests/test-acos.c: New file.
31880
31881 2010-01-24  Bruno Haible  <bruno@clisp.org>
31882
31883         Fix tests for common <math.h> functions.
31884         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
31885         code snippet that references the function pointer, rather than merely
31886         calling the function. Substitute the FUNC_LIBM variable.
31887         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
31888         * modules/acos (configure.ac): Likewise.
31889         * modules/asin (configure.ac): Likewise.
31890         * modules/atan (configure.ac): Likewise.
31891         * modules/atan2 (configure.ac): Likewise.
31892         * modules/cbrt (configure.ac): Likewise.
31893         * modules/copysign (configure.ac): Likewise.
31894         * modules/cos (configure.ac): Likewise.
31895         * modules/cosh (configure.ac): Likewise.
31896         * modules/erf (configure.ac): Likewise.
31897         * modules/erfc (configure.ac): Likewise.
31898         * modules/exp (configure.ac): Likewise.
31899         * modules/fabs (configure.ac): Likewise.
31900         * modules/fmod (configure.ac): Likewise.
31901         * modules/hypot (configure.ac): Likewise.
31902         * modules/j0 (configure.ac): Likewise.
31903         * modules/j1 (configure.ac): Likewise.
31904         * modules/jn (configure.ac): Likewise.
31905         * modules/ldexp (configure.ac): Likewise.
31906         * modules/lgamma (configure.ac): Likewise.
31907         * modules/log (configure.ac): Likewise.
31908         * modules/log10 (configure.ac): Likewise.
31909         * modules/log1p (configure.ac): Likewise.
31910         * modules/logb (configure.ac): Likewise.
31911         * modules/modf (configure.ac): Likewise.
31912         * modules/nextafter (configure.ac): Likewise.
31913         * modules/pow (configure.ac): Likewise.
31914         * modules/remainder (configure.ac): Likewise.
31915         * modules/rint (configure.ac): Likewise.
31916         * modules/sin (configure.ac): Likewise.
31917         * modules/sinh (configure.ac): Likewise.
31918         * modules/tan (configure.ac): Likewise.
31919         * modules/tanh (configure.ac): Likewise.
31920         * modules/y0 (configure.ac): Likewise.
31921         * modules/y1 (configure.ac): Likewise.
31922         * modules/yn (configure.ac): Likewise.
31923
31924 2010-01-24  Bruno Haible  <bruno@clisp.org>
31925
31926         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
31927         * tests/test-acosl.c (x): New variable.
31928         (main): Store argument in x and fetch it from x.
31929         * tests/test-asinl.c (x): New variable.
31930         (main): Store argument in x and fetch it from x.
31931         * tests/test-atanl.c (x): New variable.
31932         (main): Store argument in x and fetch it from x.
31933         * tests/test-cosl.c (x): New variable.
31934         (main): Store argument in x and fetch it from x.
31935         * tests/test-expl.c (x): New variable.
31936         (main): Store argument in x and fetch it from x.
31937         * tests/test-logl.c (x): New variable.
31938         (main): Store argument in x and fetch it from x.
31939         * tests/test-sinl.c (x): New variable.
31940         (main): Store argument in x and fetch it from x.
31941         * tests/test-sqrtl.c (x): New variable.
31942         (main): Store argument in x and fetch it from x.
31943         * tests/test-tanl.c (x): New variable.
31944         (main): Store argument in x and fetch it from x.
31945
31946 2010-01-24  Bruno Haible  <bruno@clisp.org>
31947
31948         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
31949         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
31950         assignments to the initial TESTS_ENVIRONMENT.
31951         * doc/gnulib.texi (Unit test modules): Document it.
31952         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
31953         TESTS_ENVIRONMENT.
31954         * modules/btowc-tests (Makefile.am): Likewise.
31955         * modules/c-stack-tests (Makefile.am): Likewise.
31956         * modules/c-strcase-tests (Makefile.am): Likewise.
31957         * modules/copy-file-tests (Makefile.am): Likewise.
31958         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
31959         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
31960         * modules/mbrtowc-tests (Makefile.am): Likewise.
31961         * modules/mbscasecmp-tests (Makefile.am): Likewise.
31962         * modules/mbscasestr-tests (Makefile.am): Likewise.
31963         * modules/mbschr-tests (Makefile.am): Likewise.
31964         * modules/mbscspn-tests (Makefile.am): Likewise.
31965         * modules/mbsinit-tests (Makefile.am): Likewise.
31966         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31967         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
31968         * modules/mbspbrk-tests (Makefile.am): Likewise.
31969         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31970         * modules/mbsrchr-tests (Makefile.am): Likewise.
31971         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
31972         * modules/mbsspn-tests (Makefile.am): Likewise.
31973         * modules/mbsstr-tests (Makefile.am): Likewise.
31974         * modules/nl_langinfo-tests (Makefile.am): Likewise.
31975         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
31976         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31977         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31978         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31979         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31980         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
31981         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31982         * modules/wcrtomb-tests (Makefile.am): Likewise.
31983         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
31984         * modules/wcsrtombs-tests (Makefile.am): Likewise.
31985         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
31986         assignments from TESTS_ENVIRONMENT.
31987         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
31988         augmentation.
31989         * modules/argp-version-etc-tests (Makefile.am): Likewise.
31990         * modules/atexit-tests (Makefile.am): Likewise.
31991         * modules/binary-io-tests (Makefile.am): Likewise.
31992         * modules/closein-tests (Makefile.am): Likewise.
31993         * modules/dprintf-posix-tests (Makefile.am): Likewise.
31994         * modules/exclude-tests (Makefile.am): Likewise.
31995         * modules/fflush-tests (Makefile.am): Likewise.
31996         * modules/fpending-tests (Makefile.am): Likewise.
31997         * modules/fprintf-posix-tests (Makefile.am): Likewise.
31998         * modules/freadahead-tests (Makefile.am): Likewise.
31999         * modules/freadptr-tests (Makefile.am): Likewise.
32000         * modules/freadseek-tests (Makefile.am): Likewise.
32001         * modules/fseek-tests (Makefile.am): Likewise.
32002         * modules/fseeko-tests (Makefile.am): Likewise.
32003         * modules/ftell-tests (Makefile.am): Likewise.
32004         * modules/ftello-tests (Makefile.am): Likewise.
32005         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32006         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32007         * modules/lseek-tests (Makefile.am): Likewise.
32008         * modules/parse-duration-tests (Makefile.am): Likewise.
32009         * modules/perror-tests (Makefile.am): Likewise.
32010         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
32011         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
32012         * modules/pipe-tests (Makefile.am): Likewise.
32013         * modules/pread-tests (Makefile.am): Likewise.
32014         * modules/printf-posix-tests (Makefile.am): Likewise.
32015         * modules/select-tests (Makefile.am): Likewise.
32016         * modules/sigpipe-tests (Makefile.am): Likewise.
32017         * modules/tsearch-tests (Makefile.am): Likewise.
32018         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
32019         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
32020         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32021         * modules/uniwidth/width-tests (Makefile.am): Likewise.
32022         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
32023         * modules/version-etc-tests (Makefile.am): Likewise.
32024         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32025         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32026         * modules/xalloc-die-tests (Makefile.am): Likewise.
32027         * modules/xprintf-posix-tests (Makefile.am): Likewise.
32028         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32029         * modules/xstrtol-tests (Makefile.am): Likewise.
32030         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32031         * modules/yesno-tests (Makefile.am): Likewise.
32032         Suggested by Jim Meyering.
32033
32034 2010-01-24  Bruno Haible  <bruno@clisp.org>
32035
32036         More documentation.
32037         * doc/gnulib.texi (Writing modules): New chapter.
32038         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
32039         the new chapter.
32040
32041 2010-01-24  Jim Meyering  <meyering@redhat.com>
32042
32043         maint.mk: do not prepend "./" after filtering
32044         * top/maint.mk (_prepend_srcdir_prefix): New variable
32045         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
32046         "./" when $(srcdir) is ".".
32047
32048         define STREQ(a,b) consistently, removing useless parentheses
32049         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
32050         since the only risk is that "a" or "b" contains an unparenthesized
32051         comma, but if either did that, STREQ would have 3 or more arguments.
32052         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
32053         * lib/fts.c (STREQ): Remove unnecessary parentheses.
32054         * lib/hash-triple.c (STREQ): Likewise.
32055         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
32056         * lib/getugroups.c (STREQ): Likewise.
32057
32058 2010-01-23  Jim Meyering  <meyering@redhat.com>
32059
32060         maint.mk: fix syntax-check in a non-srcdir build directory
32061         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
32062         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
32063
32064 2010-01-22  Jim Meyering  <meyering@redhat.com>
32065
32066         userspec: add unit tests
32067         * tests/test-userspec.c: New file.
32068         * modules/userspec-tests: Likewise.
32069
32070 2010-01-21  Jim Meyering  <meyering@redhat.com>
32071
32072         maint.mk: handle source file names containing "." robustly
32073         * top/maint.mk (_dot_escaped_srcdir): Define.
32074         (VC_LIST): Use it in LHS of sed substitution.
32075
32076 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
32077
32078         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
32079         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
32080         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
32081         from a non-srcdir build.
32082
32083 2010-01-20  Eric Blake  <ebb9@byu.net>
32084
32085         warn-on-use: use instead of link-warning
32086         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
32087         * modules/unistd (Depends-on, Makefile.am): Likewise.
32088         * modules/arpa_inet (Depends-on): Replace link-warning with
32089         warn-on-use.
32090         (Makefile.am): Update rules accordingly.
32091         * modules/ctype (Depends-on, Makefile.am): Likewise.
32092         * modules/dirent (Depends-on, Makefile.am): Likewise.
32093         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
32094         * modules/inttypes (Depends-on, Makefile.am): Likewise.
32095         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32096         * modules/locale (Depends-on, Makefile.am): Likewise.
32097         * modules/math (Depends-on, Makefile.am): Likewise.
32098         * modules/search (Depends-on, Makefile.am): Likewise.
32099         * modules/signal (Depends-on, Makefile.am): Likewise.
32100         * modules/spawn (Depends-on, Makefile.am): Likewise.
32101         * modules/stdlib (Depends-on, Makefile.am): Likewise.
32102         * modules/string (Depends-on, Makefile.am): Likewise.
32103         * modules/strings (Depends-on, Makefile.am): Likewise.
32104         * modules/sys_file (Depends-on, Makefile.am): Likewise.
32105         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
32106         * modules/sys_select (Depends-on, Makefile.am): Likewise.
32107         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
32108         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
32109         * modules/sys_times (Depends-on, Makefile.am): Likewise.
32110         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32111         * modules/wchar (Depends-on, Makefile.am): Likewise.
32112         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
32113         should be poisoned.
32114         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
32115         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
32116         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
32117         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32118         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32119         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32120         * m4/math_h.m4 (gl_MATH_H): Likewise.
32121         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32122         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32123         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32124         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32125         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32126         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32127         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
32128         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
32129         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
32130         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32131         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32132         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32133         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32134         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32135         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32136         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32137         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
32138         GL_LINK_WARNING.
32139         * lib/ctype.in.h: Likewise.
32140         * lib/dirent.in.h: Likewise.
32141         * lib/fcntl.in.h: Likewise.
32142         * lib/inttypes.in.h: Likewise.
32143         * lib/langinfo.in.h: Likewise.
32144         * lib/locale.in.h: Likewise.
32145         * lib/math.in.h: Likewise.
32146         * lib/search.in.h: Likewise.
32147         * lib/signal.in.h: Likewise.
32148         * lib/spawn.in.h: Likewise.
32149         * lib/stdio.in.h: Likewise.
32150         * lib/stdlib.in.h: Likewise.
32151         * lib/string.in.h: Likewise.
32152         * lib/strings.in.h: Likewise.
32153         * lib/sys_file.in.h: Likewise.
32154         * lib/sys_ioctl.in.h: Likewise.
32155         * lib/sys_select.in.h: Likewise.
32156         * lib/sys_socket.in.h: Likewise.
32157         * lib/sys_stat.in.h: Likewise.
32158         * lib/sys_times.in.h: Likewise.
32159         * lib/sys_utsname.in.h: Likewise.
32160         * lib/unistd.in.h: Likewise.
32161         * lib/wchar.in.h: Likewise.
32162
32163 2010-01-20  Bruno Haible  <bruno@clisp.org>
32164
32165         Avoid duplicate -lm.
32166         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
32167         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
32168         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
32169         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
32170         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
32171         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
32172         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
32173         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
32174         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
32175         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
32176         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
32177         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32178         Reported by Paolo Bonzini.
32179
32180 2010-01-19  Bruno Haible  <bruno@clisp.org>
32181
32182         langinfo, nl_langinfo: Relicense under LGPLv2+.
32183         * modules/langinfo (License): Change to LGPLv2+.
32184         * modules/nl_langinfo (License): Likewise.
32185         Patch by David Lutterkort <lutter@redhat.com>.
32186
32187 2010-01-19  Bruno Haible  <bruno@clisp.org>
32188
32189         Avoid compilation error with cc on OSF/1 5.1.
32190         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
32191         statement, not before.
32192         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32193
32194 2010-01-18  Bruno Haible  <bruno@clisp.org>
32195
32196         Avoid a link error due to the __printf__ symbol.
32197         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
32198         and 2.6.x.
32199         (__format__, __printf__): Remove definitions.
32200         * lib/argp-fmtstream.h: Likewise.
32201         * lib/argp.h: Likewise.
32202         * lib/error.h: Likewise.
32203         * lib/vasnprintf.h: Likewise.
32204         * lib/xprintf.h: Likewise.
32205         * lib/xvasprintf.h: Likewise.
32206         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32207
32208 2010-01-18  Bruno Haible  <bruno@clisp.org>
32209
32210         Tests for module 'tanl'.
32211         * modules/tanl-tests: New file.
32212         * tests/test-tanl.c: New file.
32213
32214         Tests for module 'sqrtl'.
32215         * modules/sqrtl-tests: New file.
32216         * tests/test-sqrtl.c: New file.
32217
32218         Tests for module 'sinl'.
32219         * modules/sinl-tests: New file.
32220         * tests/test-sinl.c: New file.
32221
32222         Tests for module 'logl'.
32223         * modules/logl-tests: New file.
32224         * tests/test-logl.c: New file.
32225
32226         Tests for module 'expl'.
32227         * modules/expl-tests: New file.
32228         * tests/test-expl.c: New file.
32229
32230         Tests for module 'cosl'.
32231         * modules/cosl-tests: New file.
32232         * tests/test-cosl.c: New file.
32233
32234         Tests for module 'atanl'.
32235         * modules/atanl-tests: New file.
32236         * tests/test-atanl.c: New file.
32237
32238         Tests for module 'asinl'.
32239         * modules/asinl-tests: New file.
32240         * tests/test-asinl.c: New file.
32241
32242         Tests for module 'acosl'.
32243         * modules/acosl-tests: New file.
32244         * tests/test-acosl.c: New file.
32245
32246         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32247         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
32248         tanl): Use the standard gnulib idiom.
32249         * lib/cosl.c: Don't include trigl.c and sincosl.c.
32250         * lib/sinl.c: Likewise.
32251         * lib/tanl.c: Don't include trigl.c.
32252         (kernel_tanl): Make static.
32253         * lib/sincosl.c: Include trigl.h first.
32254         * lib/trigl.c: Likewise.
32255         * m4/acosl.m4: New file.
32256         * m4/asinl.m4: New file.
32257         * m4/atanl.m4: New file.
32258         * m4/cosl.m4: New file.
32259         * m4/expl.m4: New file.
32260         * m4/logl.m4: New file.
32261         * m4/sinl.m4: New file.
32262         * m4/sqrtl.m4: New file.
32263         * m4/tanl.m4: New file.
32264         * m4/mathl.m4: Remove file.
32265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
32266         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32267         Don't initialize GNULIB_MATHL.
32268         * modules/acosl: New file.
32269         * modules/asinl: New file.
32270         * modules/atanl: New file.
32271         * modules/cosl: New file.
32272         * modules/expl: New file.
32273         * modules/logl: New file.
32274         * modules/sinl: New file.
32275         * modules/sqrtl: New file.
32276         * modules/tanl: New file.
32277         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
32278         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
32279         substitute GNULIB_MATHL.
32280         * modules/mathl: Rewritten.
32281         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
32282         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
32283         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
32284         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
32285         * doc/posix-functions/expl.texi: Mention the 'expl' module.
32286         * doc/posix-functions/logl.texi: Mention the 'logl' module.
32287         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
32288         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
32289         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
32290
32291 2010-01-18  Bruno Haible  <bruno@clisp.org>
32292
32293         sqrt: Make gl_FUNC_SQRT requirable.
32294         * m4/sqrt.m4: New file.
32295         * modules/sqrt (Files): Add it.
32296         (configure.ac): Invoke gl_FUNC_SQRT.
32297
32298 2010-01-18  Bruno Haible  <bruno@clisp.org>
32299
32300         New modules for common <math.h> functions.
32301         * m4/mathfunc.m4: New file.
32302         * modules/acos: New file.
32303         * modules/asin: New file.
32304         * modules/atan: New file.
32305         * modules/atan2: New file.
32306         * modules/cbrt: New file.
32307         * modules/copysign: New file.
32308         * modules/cos: New file.
32309         * modules/cosh: New file.
32310         * modules/erf: New file.
32311         * modules/erfc: New file.
32312         * modules/exp: New file.
32313         * modules/fabs: New file.
32314         * modules/fmod: New file.
32315         * modules/hypot: New file.
32316         * modules/j0: New file.
32317         * modules/j1: New file.
32318         * modules/jn: New file.
32319         * modules/ldexp: New file.
32320         * modules/lgamma: New file.
32321         * modules/log: New file.
32322         * modules/log10: New file.
32323         * modules/log1p: New file.
32324         * modules/logb: New file.
32325         * modules/modf: New file.
32326         * modules/nextafter: New file.
32327         * modules/pow: New file.
32328         * modules/remainder: New file.
32329         * modules/rint: New file.
32330         * modules/sin: New file.
32331         * modules/sinh: New file.
32332         * modules/sqrt: New file.
32333         * modules/tan: New file.
32334         * modules/tanh: New file.
32335         * modules/y0: New file.
32336         * modules/y1: New file.
32337         * modules/yn: New file.
32338         * doc/posix-functions/acos.texi: Mention the 'acos' module.
32339         * doc/posix-functions/asin.texi: Mention the 'asin' module.
32340         * doc/posix-functions/atan.texi: Mention the 'atan' module.
32341         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
32342         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
32343         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
32344         * doc/posix-functions/cos.texi: Mention the 'cos' module.
32345         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
32346         * doc/posix-functions/erf.texi: Mention the 'erf' module.
32347         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
32348         * doc/posix-functions/exp.texi: Mention the 'exp' module.
32349         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
32350         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
32351         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
32352         * doc/posix-functions/j0.texi: Mention the 'j0' module.
32353         * doc/posix-functions/j1.texi: Mention the 'j1' module.
32354         * doc/posix-functions/jn.texi: Mention the 'jn' module.
32355         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
32356         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
32357         * doc/posix-functions/log.texi: Mention the 'log' module.
32358         * doc/posix-functions/log10.texi: Mention the 'log10' module.
32359         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
32360         * doc/posix-functions/logb.texi: Mention the 'logb' module.
32361         * doc/posix-functions/modf.texi: Mention the 'modf' module.
32362         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
32363         * doc/posix-functions/pow.texi: Mention the 'pow' module.
32364         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
32365         * doc/posix-functions/rint.texi: Mention the 'rint' module.
32366         * doc/posix-functions/sin.texi: Mention the 'sin' module.
32367         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
32368         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
32369         * doc/posix-functions/tan.texi: Mention the 'tan' module.
32370         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
32371         * doc/posix-functions/y0.texi: Mention the 'y0' module.
32372         * doc/posix-functions/y1.texi: Mention the 'y1' module.
32373         * doc/posix-functions/yn.texi: Mention the 'yn' module.
32374
32375 2010-01-18  Jim Meyering  <meyering@redhat.com>
32376
32377         ignore-value: relax license to LGPLv2+
32378         * modules/ignore-value (License): Relax to LGPLv2+.
32379
32380         getdate: don't leak when TZ contains two or more '"'s
32381         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
32382         double quote in TZ after the first one.
32383
32384         readtokens: do not leak internal token_lengths buffer
32385         * lib/readtokens.c (readtokens): Free the local, lengths,
32386         when the supplied "token_lengths" parameter is NULL.
32387
32388 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32389
32390         Fix a couple of missing LIBTHREAD link failures on AIX.
32391         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
32392         $(LIBTHREAD).
32393         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
32394
32395         Link test-poll against INET_PTON_LIB.
32396         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
32397         for inet_pton on Solaris 10.
32398
32399 2010-01-17  Bruno Haible  <bruno@clisp.org>
32400
32401         unistdio/*-sprintf: Fix typo in module description.
32402         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
32403         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
32404         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
32405         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
32406         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
32407         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
32408         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
32409         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32410
32411 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32412
32413         gnulib-tool: fix filelist for AIX, HP-UX ksh.
32414         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
32415         variables in shell case patterns, for AIX and HP-UX ksh.
32416
32417         Split large sed scripts, for HP-UX sed.
32418         * modules/stdio: Split sed scripts around 50 sed commands,
32419         to avoid HP-UX limit of 99 commands, in the near future.
32420         * modules/string: Likewise.
32421         * modules/unistd: Likewise.
32422
32423         gnulib-tool: avoid writing in the current directory.
32424         * gnulib-tool (func_emit_lib_Makefile_am)
32425         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
32426         not in the current directory, so concurrent gnulib-tool
32427         instances do not interfere.
32428
32429 2010-01-16  Jim Meyering  <meyering@redhat.com>
32430
32431         doc: update users.txt
32432         * users.txt: Add grep.
32433         (diffutils, gzip): Update URLs.
32434
32435 2010-01-12  Bruno Haible  <bruno@clisp.org>
32436
32437         posix_spawn: Avoid test failure on Cygwin.
32438         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
32439         characters.
32440         Reported by Simon Josefsson.
32441
32442 2010-01-12  Bruno Haible  <bruno@clisp.org>
32443
32444         * tests/test-cond.c (main): When skipping the test, show the reason.
32445
32446 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32447
32448         * lib/striconv.c (str_cd_iconv): Avoid if before free.
32449
32450 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32451
32452         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
32453         VC_LIST_ALWAYS_EXCLUDE_REGEX.
32454
32455 2010-01-12  Eric Blake  <ebb9@byu.net>
32456
32457         build: guarantee AS_VAR_IF
32458         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
32459         (gl_AS_VAR_IF): Move...
32460         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
32461         Reported by Simon Josefsson.
32462
32463 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32464
32465         * lib/stdio.in.h: Fix typo.
32466
32467 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32468
32469         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
32470         libgpg-error.
32471
32472 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32473
32474         * tests/test-xalloc-die.sh: Use $EXEEXT.
32475
32476 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32477             Bruno Haible  <bruno@clisp.org>
32478
32479         getlogin, getlogin_r: Avoid test failure.
32480         * tests/test-getlogin.c: Include <stdio.h>.
32481         (main): Skip the test when the function fails because stdin is not a
32482         tty.
32483         * tests/test-getlogin_r.c: Include <stdio.h>.
32484         (main): Skip the test when the function fails because stdin is not a
32485         tty.
32486
32487 2010-01-11  Eric Blake  <ebb9@byu.net>
32488
32489         tests: avoid more large file warnings
32490         * tests/test-fflush.c: Avoid warning about ftell use.
32491         * tests/test-fseek.c: Avoid warning about fseek use.
32492
32493 2010-01-10  Bruno Haible  <bruno@clisp.org>
32494
32495         nproc: Work better on Linux when /proc and /sys are not mounted.
32496         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
32497         as lower bound when, on glibc/Linux systems,
32498         sysconf (_SC_NPROCESSORS_CONF) returns 1.
32499         Suggested by Pádraig Brady <P@draigbrady.com>.
32500         Reported by Dmitry V. Levin <ldv@altlinux.org>.
32501
32502         nproc: Refactor.
32503         * lib/nproc.c (num_processors_via_affinity_mask): New function,
32504         extracted from num_processors.
32505         (num_processors): Call it.
32506
32507 2010-01-11  Jim Meyering  <meyering@redhat.com>
32508
32509         utimecmp: avoid new warning from upcoming gcc-4.5.0
32510         * lib/utimecmp.c (BILLION): Define using #define rather than an
32511         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
32512
32513 2010-01-11  Eric Blake  <ebb9@byu.net>
32514
32515         math: add portability warnings for classification macros
32516         * modules/math (Depends-on): Add warn-on-use.
32517         (Makefile.am): Provide new substitutions.
32518         * m4/math_h.m4 (gl_MATH_H): Require inline.
32519         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
32520         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
32521         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
32522         implement warnings.
32523
32524         unistd: warn on use of environ without module
32525         * modules/unistd (Depends-on): Add warn-on-use.
32526         (Makefile.am): Provide new substitutions.
32527         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
32528         * lib/unistd.in.h (environ): Wrap with a warning helper function.
32529
32530         stdio: warn on suspicious uses
32531         * modules/stdio (Depends-on): Add warn-on-use.
32532         (Makefile.am): Provide new substitutions.
32533         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
32534         fseeko.
32535         * lib/stdio.in.h (gets): Always warn on use.
32536         (fseek, ftell): Adjust when warnings are issued, and honor
32537         _GL_NO_LARGE_FILES as a way to silence the warning.
32538         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
32539         any warning about large file offsets.
32540         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
32541         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
32542         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
32543         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
32544         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
32545         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
32546         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
32547         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
32548
32549         warn-on-use: new module
32550         * modules/warn-on-use: New file.
32551         * build-aux/warn-on-use.h: Likewise.
32552         * m4/warn-on-use.m4: Likewise.
32553         * MODULES.html.sh (Support for building): Mention it.
32554
32555 2010-01-10  Bruno Haible  <bruno@clisp.org>
32556
32557         Tests for module 'unistr/u32-strdup'.
32558         * modules/unistr/u32-strdup-tests: New file.
32559         * tests/unistr/test-u32-strdup.c: New file.
32560
32561         Tests for module 'unistr/u16-strdup'.
32562         * modules/unistr/u16-strdup-tests: New file.
32563         * tests/unistr/test-u16-strdup.c: New file.
32564
32565         Tests for module 'unistr/u8-strdup'.
32566         * modules/unistr/u8-strdup-tests: New file.
32567         * tests/unistr/test-u8-strdup.c: New file.
32568         * tests/unistr/test-strdup.h: New file.
32569
32570         Tests for module 'unistr/u32-strncmp'.
32571         * modules/unistr/u32-strncmp-tests: New file.
32572         * tests/unistr/test-u32-strncmp.c: New file.
32573
32574         Tests for module 'unistr/u16-strncmp'.
32575         * modules/unistr/u16-strncmp-tests: New file.
32576         * tests/unistr/test-u16-strncmp.c: New file.
32577
32578         Tests for module 'unistr/u8-strncmp'.
32579         * modules/unistr/u8-strncmp-tests: New file.
32580         * tests/unistr/test-u8-strncmp.c: New file.
32581         * tests/unistr/test-strncmp.h: New file.
32582
32583         Tests for module 'unistr/u32-strcoll'.
32584         * modules/unistr/u32-strcoll-tests: New file.
32585         * tests/unistr/test-u32-strcoll.c: New file.
32586
32587         Tests for module 'unistr/u16-strcoll'.
32588         * modules/unistr/u16-strcoll-tests: New file.
32589         * tests/unistr/test-u16-strcoll.c: New file.
32590
32591         Tests for module 'unistr/u8-strcoll'.
32592         * modules/unistr/u8-strcoll-tests: New file.
32593         * tests/unistr/test-u8-strcoll.c: New file.
32594
32595         Tests for module 'unistr/u32-strcmp'.
32596         * modules/unistr/u32-strcmp-tests: New file.
32597         * tests/unistr/test-u32-strcmp.c: New file.
32598         * tests/unistr/test-u32-strcmp.h: New file.
32599
32600         Tests for module 'unistr/u16-strcmp'.
32601         * modules/unistr/u16-strcmp-tests: New file.
32602         * tests/unistr/test-u16-strcmp.c: New file.
32603         * tests/unistr/test-u16-strcmp.h: New file.
32604
32605         Tests for module 'unistr/u8-strcmp'.
32606         * modules/unistr/u8-strcmp-tests: New file.
32607         * tests/unistr/test-u8-strcmp.c: New file.
32608         * tests/unistr/test-u8-strcmp.h: New file.
32609         * tests/unistr/test-strcmp.h: New file.
32610
32611         Tests for module 'unistr/u32-strncat'.
32612         * modules/unistr/u32-strncat-tests: New file.
32613         * tests/unistr/test-u32-strncat.c: New file.
32614
32615         Tests for module 'unistr/u16-strncat'.
32616         * modules/unistr/u16-strncat-tests: New file.
32617         * tests/unistr/test-u16-strncat.c: New file.
32618
32619         Tests for module 'unistr/u8-strncat'.
32620         * modules/unistr/u8-strncat-tests: New file.
32621         * tests/unistr/test-u8-strncat.c: New file.
32622         * tests/unistr/test-strncat.h: New file.
32623
32624         Tests for module 'unistr/u32-strcat'.
32625         * modules/unistr/u32-strcat-tests: New file.
32626         * tests/unistr/test-u32-strcat.c: New file.
32627
32628         Tests for module 'unistr/u16-strcat'.
32629         * modules/unistr/u16-strcat-tests: New file.
32630         * tests/unistr/test-u16-strcat.c: New file.
32631
32632         Tests for module 'unistr/u8-strcat'.
32633         * modules/unistr/u8-strcat-tests: New file.
32634         * tests/unistr/test-u8-strcat.c: New file.
32635         * tests/unistr/test-strcat.h: New file.
32636
32637         Tests for module 'unistr/u32-stpncpy'.
32638         * modules/unistr/u32-stpncpy-tests: New file.
32639         * tests/unistr/test-u32-stpncpy.c: New file.
32640
32641         Tests for module 'unistr/u16-stpncpy'.
32642         * modules/unistr/u16-stpncpy-tests: New file.
32643         * tests/unistr/test-u16-stpncpy.c: New file.
32644
32645         Tests for module 'unistr/u8-stpncpy'.
32646         * modules/unistr/u8-stpncpy-tests: New file.
32647         * tests/unistr/test-u8-stpncpy.c: New file.
32648         * tests/unistr/test-stpncpy.h: New file.
32649
32650         Tests for module 'unistr/u32-strncpy'.
32651         * modules/unistr/u32-strncpy-tests: New file.
32652         * tests/unistr/test-u32-strncpy.c: New file.
32653
32654         Tests for module 'unistr/u16-strncpy'.
32655         * modules/unistr/u16-strncpy-tests: New file.
32656         * tests/unistr/test-u16-strncpy.c: New file.
32657
32658         Tests for module 'unistr/u8-strncpy'.
32659         * modules/unistr/u8-strncpy-tests: New file.
32660         * tests/unistr/test-u8-strncpy.c: New file.
32661         * tests/unistr/test-strncpy.h: New file.
32662
32663         Tests for module 'unistr/u32-stpcpy'.
32664         * modules/unistr/u32-stpcpy-tests: New file.
32665         * tests/unistr/test-u32-stpcpy.c: New file.
32666
32667         Tests for module 'unistr/u16-stpcpy'.
32668         * modules/unistr/u16-stpcpy-tests: New file.
32669         * tests/unistr/test-u16-stpcpy.c: New file.
32670
32671         Tests for module 'unistr/u8-stpcpy'.
32672         * modules/unistr/u8-stpcpy-tests: New file.
32673         * tests/unistr/test-u8-stpcpy.c: New file.
32674         * tests/unistr/test-stpcpy.h: New file.
32675
32676         Tests for module 'unistr/u32-strcpy'.
32677         * modules/unistr/u32-strcpy-tests: New file.
32678         * tests/unistr/test-u32-strcpy.c: New file.
32679
32680         Tests for module 'unistr/u16-strcpy'.
32681         * modules/unistr/u16-strcpy-tests: New file.
32682         * tests/unistr/test-u16-strcpy.c: New file.
32683
32684         Tests for module 'unistr/u8-strcpy'.
32685         * modules/unistr/u8-strcpy-tests: New file.
32686         * tests/unistr/test-u8-strcpy.c: New file.
32687         * tests/unistr/test-strcpy.h: New file.
32688
32689         Tests for module 'unistr/u32-strnlen'.
32690         * modules/unistr/u32-strnlen-tests: New file.
32691         * tests/unistr/test-u32-strnlen.c: New file.
32692
32693         Tests for module 'unistr/u16-strnlen'.
32694         * modules/unistr/u16-strnlen-tests: New file.
32695         * tests/unistr/test-u16-strnlen.c: New file.
32696
32697         Tests for module 'unistr/u8-strnlen'.
32698         * modules/unistr/u8-strnlen-tests: New file.
32699         * tests/unistr/test-u8-strnlen.c: New file.
32700         * tests/unistr/test-strnlen.h: New file.
32701
32702         Tests for module 'unistr/u32-strlen'.
32703         * modules/unistr/u32-strlen-tests: New file.
32704         * tests/unistr/test-u32-strlen.c: New file.
32705
32706         Tests for module 'unistr/u16-strlen'.
32707         * modules/unistr/u16-strlen-tests: New file.
32708         * tests/unistr/test-u16-strlen.c: New file.
32709
32710         Tests for module 'unistr/u8-strlen'.
32711         * modules/unistr/u8-strlen-tests: New file.
32712         * tests/unistr/test-u8-strlen.c: New file.
32713
32714         Tests for module 'unistr/u32-prev'.
32715         * modules/unistr/u32-prev-tests: New file.
32716         * tests/unistr/test-u32-prev.c: New file.
32717
32718         Tests for module 'unistr/u16-prev'.
32719         * modules/unistr/u16-prev-tests: New file.
32720         * tests/unistr/test-u16-prev.c: New file.
32721
32722         Tests for module 'unistr/u8-prev'.
32723         * modules/unistr/u8-prev-tests: New file.
32724         * tests/unistr/test-u8-prev.c: New file.
32725
32726         Tests for module 'unistr/u32-next'.
32727         * modules/unistr/u32-next-tests: New file.
32728         * tests/unistr/test-u32-next.c: New file.
32729
32730         Tests for module 'unistr/u16-next'.
32731         * modules/unistr/u16-next-tests: New file.
32732         * tests/unistr/test-u16-next.c: New file.
32733
32734         Tests for module 'unistr/u8-next'.
32735         * modules/unistr/u8-next-tests: New file.
32736         * tests/unistr/test-u8-next.c: New file.
32737
32738         Tests for module 'unistr/u32-strmbtouc'.
32739         * modules/unistr/u32-strmbtouc-tests: New file.
32740         * tests/unistr/test-u32-strmbtouc.c: New file.
32741
32742         Tests for module 'unistr/u16-strmbtouc'.
32743         * modules/unistr/u16-strmbtouc-tests: New file.
32744         * tests/unistr/test-u16-strmbtouc.c: New file.
32745
32746         Tests for module 'unistr/u8-strmbtouc'.
32747         * modules/unistr/u8-strmbtouc-tests: New file.
32748         * tests/unistr/test-u8-strmbtouc.c: New file.
32749
32750         Tests for module 'unistr/u32-strmblen'.
32751         * modules/unistr/u32-strmblen-tests: New file.
32752         * tests/unistr/test-u32-strmblen.c: New file.
32753
32754         Tests for module 'unistr/u16-strmblen'.
32755         * modules/unistr/u16-strmblen-tests: New file.
32756         * tests/unistr/test-u16-strmblen.c: New file.
32757
32758         Tests for module 'unistr/u8-strmblen'.
32759         * modules/unistr/u8-strmblen-tests: New file.
32760         * tests/unistr/test-u8-strmblen.c: New file.
32761
32762         Tests for module 'unistr/u32-cpy-alloc'.
32763         * modules/unistr/u32-cpy-alloc-tests: New file.
32764         * tests/unistr/test-u32-cpy-alloc.c: New file.
32765
32766         Tests for module 'unistr/u16-cpy-alloc'.
32767         * modules/unistr/u16-cpy-alloc-tests: New file.
32768         * tests/unistr/test-u16-cpy-alloc.c: New file.
32769
32770         Tests for module 'unistr/u8-cpy-alloc'.
32771         * modules/unistr/u8-cpy-alloc-tests: New file.
32772         * tests/unistr/test-u8-cpy-alloc.c: New file.
32773         * tests/unistr/test-cpy-alloc.h: New file.
32774
32775         Tests for module 'unistr/u32-mbsnlen'.
32776         * modules/unistr/u32-mbsnlen-tests: New file.
32777         * tests/unistr/test-u32-mbsnlen.c: New file.
32778
32779         Tests for module 'unistr/u16-mbsnlen'.
32780         * modules/unistr/u16-mbsnlen-tests: New file.
32781         * tests/unistr/test-u16-mbsnlen.c: New file.
32782
32783         Tests for module 'unistr/u8-mbsnlen'.
32784         * modules/unistr/u8-mbsnlen-tests: New file.
32785         * tests/unistr/test-u8-mbsnlen.c: New file.
32786
32787         Tests for module 'unistr/u32-chr'.
32788         * modules/unistr/u32-chr-tests: New file.
32789         * tests/unistr/test-u32-chr.c: New file.
32790
32791         Tests for module 'unistr/u16-chr'.
32792         * modules/unistr/u16-chr-tests: New file.
32793         * tests/unistr/test-u16-chr.c: New file.
32794
32795         Tests for module 'unistr/u8-chr'.
32796         * modules/unistr/u8-chr-tests: New file.
32797         * tests/unistr/test-u8-chr.c: New file.
32798         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
32799
32800         Tests for module 'unistr/u32-cmp2'.
32801         * modules/unistr/u32-cmp2-tests: New file.
32802         * tests/unistr/test-u32-cmp2.c: New file.
32803
32804         Tests for module 'unistr/u16-cmp2'.
32805         * modules/unistr/u16-cmp2-tests: New file.
32806         * tests/unistr/test-u16-cmp2.c: New file.
32807
32808         Tests for module 'unistr/u8-cmp2'.
32809         * modules/unistr/u8-cmp2-tests: New file.
32810         * tests/unistr/test-u8-cmp2.c: New file.
32811         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
32812
32813         Tests for module 'unistr/u32-cmp'.
32814         * modules/unistr/u32-cmp-tests: New file.
32815         * tests/unistr/test-u32-cmp.c: New file.
32816
32817         Tests for module 'unistr/u16-cmp'.
32818         * modules/unistr/u16-cmp-tests: New file.
32819         * tests/unistr/test-u16-cmp.c: New file.
32820
32821         Tests for module 'unistr/u8-cmp'.
32822         * modules/unistr/u8-cmp-tests: New file.
32823         * tests/unistr/test-u8-cmp.c: New file.
32824         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
32825
32826         Tests for module 'unistr/u32-set'.
32827         * modules/unistr/u32-set-tests: New file.
32828         * tests/unistr/test-u32-set.c: New file.
32829
32830         Tests for module 'unistr/u16-set'.
32831         * modules/unistr/u16-set-tests: New file.
32832         * tests/unistr/test-u16-set.c: New file.
32833
32834         Tests for module 'unistr/u8-set'.
32835         * modules/unistr/u8-set-tests: New file.
32836         * tests/unistr/test-u8-set.c: New file.
32837         * tests/unistr/test-set.h: New file.
32838
32839         Tests for module 'unistr/u32-move'.
32840         * modules/unistr/u32-move-tests: New file.
32841         * tests/unistr/test-u32-move.c: New file.
32842
32843         Tests for module 'unistr/u16-move'.
32844         * modules/unistr/u16-move-tests: New file.
32845         * tests/unistr/test-u16-move.c: New file.
32846
32847         Tests for module 'unistr/u8-move'.
32848         * modules/unistr/u8-move-tests: New file.
32849         * tests/unistr/test-u8-move.c: New file.
32850         * tests/unistr/test-move.h: New file.
32851
32852         Tests for module 'unistr/u32-cpy'.
32853         * modules/unistr/u32-cpy-tests: New file.
32854         * tests/unistr/test-u32-cpy.c: New file.
32855
32856         Tests for module 'unistr/u16-cpy'.
32857         * modules/unistr/u16-cpy-tests: New file.
32858         * tests/unistr/test-u16-cpy.c: New file.
32859
32860         Tests for module 'unistr/u8-cpy'.
32861         * modules/unistr/u8-cpy-tests: New file.
32862         * tests/unistr/test-u8-cpy.c: New file.
32863         * tests/unistr/test-cpy.h: New file.
32864
32865 2010-01-09  Bruno Haible  <bruno@clisp.org>
32866
32867         Tests for module 'unistr/u32-uctomb'.
32868         * modules/unistr/u32-uctomb-tests: New file.
32869         * tests/unistr/test-u32-uctomb.c: New file.
32870
32871         Tests for module 'unistr/u16-uctomb'.
32872         * modules/unistr/u16-uctomb-tests: New file.
32873         * tests/unistr/test-u16-uctomb.c: New file.
32874
32875         Tests for module 'unistr/u8-uctomb'.
32876         * modules/unistr/u8-uctomb-tests: New file.
32877         * tests/unistr/test-u8-uctomb.c: New file.
32878
32879         Tests for module 'unistr/u32-mbtoucr'.
32880         * modules/unistr/u32-mbtoucr-tests: New file.
32881         * tests/unistr/test-u32-mbtoucr.c: New file.
32882
32883         Tests for module 'unistr/u16-mbtoucr'.
32884         * modules/unistr/u16-mbtoucr-tests: New file.
32885         * tests/unistr/test-u16-mbtoucr.c: New file.
32886
32887         Tests for module 'unistr/u8-mbtoucr'.
32888         * modules/unistr/u8-mbtoucr-tests: New file.
32889         * tests/unistr/test-u8-mbtoucr.c: New file.
32890
32891         Tests for module 'unistr/u32-mbtouc'.
32892         * modules/unistr/u32-mbtouc-tests: New file.
32893         * tests/unistr/test-u32-mbtouc.c: New file.
32894
32895         Tests for module 'unistr/u16-mbtouc'.
32896         * modules/unistr/u16-mbtouc-tests: New file.
32897         * tests/unistr/test-u16-mbtouc.c: New file.
32898
32899         Tests for module 'unistr/u8-mbtouc'.
32900         * modules/unistr/u8-mbtouc-tests: New file.
32901         * tests/unistr/test-u8-mbtouc.c: New file.
32902
32903         Tests for module 'unistr/u32-mbtouc-unsafe'.
32904         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
32905         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
32906         * tests/unistr/test-u32-mbtouc.h: New file.
32907
32908         Tests for module 'unistr/u16-mbtouc-unsafe'.
32909         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
32910         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
32911         * tests/unistr/test-u16-mbtouc.h: New file.
32912
32913         Tests for module 'unistr/u8-mbtouc-unsafe'.
32914         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
32915         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
32916         * tests/unistr/test-u8-mbtouc.h: New file.
32917
32918         Tests for module 'unistr/u32-mblen'.
32919         * modules/unistr/u32-mblen-tests: New file.
32920         * tests/unistr/test-u32-mblen.c: New file.
32921
32922         Tests for module 'unistr/u16-mblen'.
32923         * modules/unistr/u16-mblen-tests: New file.
32924         * tests/unistr/test-u16-mblen.c: New file.
32925
32926         Tests for module 'unistr/u8-mblen'.
32927         * modules/unistr/u8-mblen-tests: New file.
32928         * tests/unistr/test-u8-mblen.c: New file.
32929
32930         Tests for module 'unistr/u32-to-u16'.
32931         * modules/unistr/u32-to-u16-tests: New file.
32932         * tests/unistr/test-u32-to-u16.c: New file.
32933
32934         Tests for module 'unistr/u32-to-u8'.
32935         * modules/unistr/u32-to-u8-tests: New file.
32936         * tests/unistr/test-u32-to-u8.c: New file.
32937
32938         Tests for module 'unistr/u16-to-u32'.
32939         * modules/unistr/u16-to-u32-tests: New file.
32940         * tests/unistr/test-u16-to-u32.c: New file.
32941
32942         Tests for module 'unistr/u16-to-u8'.
32943         * modules/unistr/u16-to-u8-tests: New file.
32944         * tests/unistr/test-u16-to-u8.c: New file.
32945
32946         Tests for module 'unistr/u8-to-u32'.
32947         * modules/unistr/u8-to-u32-tests: New file.
32948         * tests/unistr/test-u8-to-u32.c: New file.
32949
32950         Tests for module 'unistr/u8-to-u16'.
32951         * modules/unistr/u8-to-u16-tests: New file.
32952         * tests/unistr/test-u8-to-u16.c: New file.
32953
32954         Tests for module 'unistr/u32-check'.
32955         * modules/unistr/u32-check-tests: New file.
32956         * tests/unistr/test-u32-check.c: New file.
32957
32958         Tests for module 'unistr/u16-check'.
32959         * modules/unistr/u16-check-tests: New file.
32960         * tests/unistr/test-u16-check.c: New file.
32961
32962         Tests for module 'unistr/u8-check'.
32963         * modules/unistr/u8-check-tests: New file.
32964         * tests/unistr/test-u8-check.c: New file.
32965
32966         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
32967         (category_equals): New function.
32968         (main): Add more tests.
32969         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
32970
32971         * tests/unictype/test-bidi_byname.c (main): Add more tests.
32972
32973 2010-01-10  Bruno Haible  <bruno@clisp.org>
32974
32975         unistr/u*-strcoll: Try harder to distinguish different strings.
32976         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
32977         compare s1 and s2 to see if they are different.
32978
32979 2010-01-10  Bruno Haible  <bruno@clisp.org>
32980
32981         unistr/u*-stpncpy: Fix the return value.
32982         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
32983         description of the return value consistent with stpncpy in glibc.
32984         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
32985         written non-NUL unit.
32986
32987 2010-01-10  Bruno Haible  <bruno@clisp.org>
32988
32989         unistr/u*-next: Add missing dependencies.
32990         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
32991         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
32992         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
32993
32994 2010-01-10  Bruno Haible  <bruno@clisp.org>
32995
32996         unistr/u8-mbsnlen: Fix return value for incomplete character.
32997         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
32998         u8_mblen.
32999         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33000         Remove unistr/u8-mblen.
33001         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33002         u16_mblen.
33003         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33004         Remove unistr/u16-mblen.
33005
33006 2010-01-10  Bruno Haible  <bruno@clisp.org>
33007
33008         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33009         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33010         Reported by Brian Gough <bjg@gnu.org> and
33011         Chris Clayton <chris2553@googlemail.com> via
33012         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
33013
33014 2010-01-09  Bruno Haible  <bruno@clisp.org>
33015
33016         unistr/u16-to-u32: Reject invalid input.
33017         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
33018         u16_mbtouc.
33019         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
33020         Remove unistr/u16-mbtouc.
33021
33022         unistr/u16-to-u8: Reject invalid input.
33023         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
33024         u16_mbtouc.
33025         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
33026         Remove unistr/u16-mbtouc.
33027
33028         unistr/u8-to-u32: Reject invalid input.
33029         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
33030         u8_mbtouc.
33031         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
33032         Remove unistr/u8-mbtouc.
33033
33034         unistr/u8-to-u16: Reject invalid input.
33035         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
33036         u8_mbtouc.
33037         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
33038         Remove unistr/u8-mbtouc.
33039
33040 2010-01-09  Bruno Haible  <bruno@clisp.org>
33041
33042         Tests for module 'getlogin'.
33043         * modules/getlogin-tests: New file.
33044         * tests/test-getlogin.c: New file.
33045
33046         New module 'getlogin'.
33047         * lib/unistd.in.h (getlogin): New declaration.
33048         * lib/getlogin.c: New file.
33049         * m4/getlogin.m4: New file.
33050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
33051         HAVE_GETLOGIN.
33052         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
33053         HAVE_GETLOGIN.
33054         * modules/getlogin: New file.
33055         * doc/posix-functions/getlogin.texi: Mention the new module.
33056         Reported by John W. Eaton <jwe@gnu.org>.
33057
33058 2010-01-09  Bruno Haible  <bruno@clisp.org>
33059
33060         getlogin_r: Support for native Windows.
33061         * lib/getlogin_r.c: Include <windows.h>
33062         (getlogin_r): Implement for native Windows.
33063         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
33064         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
33065         via John W. Eaton <jwe@gnu.org>.
33066
33067 2010-01-09  Bruno Haible  <bruno@clisp.org>
33068
33069         getlogin_r: Small fixes.
33070         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
33071         succeeds.
33072         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
33073         before testing whether getlogin_r is declared. No need to set
33074         HAVE_DECL_GETLOGIN_R to 1.
33075         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
33076
33077 2010-01-09  Bruno Haible  <bruno@clisp.org>
33078
33079         * lib/unistd.in.h (getlogin_r): Add comment.
33080
33081 2010-01-09  Bruno Haible  <bruno@clisp.org>
33082
33083         Tests for module 'getlogin_r'.
33084         * modules/getlogin_r-tests: New file.
33085         * tests/test-getlogin_r.c: New file.
33086
33087 2010-01-09  Jim Meyering  <meyering@redhat.com>
33088
33089         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
33090         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
33091         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
33092
33093 2010-01-08  Simon Josefsson  <simon@josefsson.org>
33094
33095         * lib/dup2.c (rpl_dup2): Improve comment.
33096
33097 2010-01-08  Eric Blake  <ebb9@byu.net>
33098
33099         maint.mk: allow packages to add makefile @@ exceptions
33100         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
33101         (sc_makefile_check): Rename...
33102         (sc_makefile_at_at_check): ...to this, and use hook.
33103
33104         dup2: work around mingw bug
33105         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
33106         Reported by Simon Josefsson.
33107
33108 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
33109
33110         glob: Fix C++ compilation.
33111         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
33112         C++.
33113
33114 2010-01-07  Bruno Haible  <bruno@clisp.org>
33115
33116         Fix indentation of wctype.in.h, broken since 2007-01-06.
33117         * lib/wctype.in.h: Fix indentation of preprocessor directives.
33118
33119 2010-01-07  Bruno Haible  <bruno@clisp.org>
33120
33121         mbslen: Avoid collision with system function.
33122         * lib/string.in.h [MirBSD]: Include <wchar.h>.
33123         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
33124         * m4/mbslen.m4: New file.
33125         * modules/mbslen (Files): Add it.
33126         (configure.ac): Invoke gl_MBSLEN.
33127         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
33128         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
33129         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
33130         via Ian Beckwith <ianb@erislabs.net>.
33131
33132 2010-01-07  Bruno Haible  <bruno@clisp.org>
33133
33134         dirent: Document the last fix.
33135         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
33136
33137 2010-01-07  Bruno Haible  <bruno@clisp.org>
33138
33139         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
33140         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
33141         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
33142         va_list are defined.
33143         * doc/posix-headers/stdio.texi: Document the bug of missing types.
33144         Reported by Eric Blake.
33145
33146 2010-01-07  Bruno Haible  <bruno@clisp.org>
33147
33148         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
33149         * modules/xlist (Depends-on): Add 'list',
33150         * modules/xoset (Depends-on): Add 'oset'.
33151         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33152
33153 2010-01-07  Bruno Haible  <bruno@clisp.org>
33154
33155         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
33156         * doc/posix-functions/strncasecmp.texi: Likewise.
33157
33158 2010-01-07  Bruno Haible  <bruno@clisp.org>
33159
33160         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
33161
33162 2010-01-07  John W. Eaton  <jwe@octave.org>
33163
33164         wctype: allow C++ use
33165         * lib/wctype.in.h: Add extern "C" block for C++.
33166
33167 2010-01-06  Eric Blake  <ebb9@byu.net>
33168
33169         maint.mk: detect incorrect GFDL usage
33170         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
33171
33172 2010-01-06  Jim Meyering  <meyering@redhat.com>
33173         and Eric Blake  <ebb9@byu.net>
33174
33175         maint.mk: ignore multi-line copyright in NEWS
33176         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
33177
33178 2010-01-06  Eric Blake  <ebb9@byu.net>
33179
33180         select: add missing dependency
33181         * modules/select-tests (Depends-on): Move sockets dependency...
33182         * modules/select (Depends-on): ...here.
33183         Reported by Ian Beckwith.
33184
33185         doc: regenerate INSTALL
33186         * doc/INSTALL: Reflect recent autoconf update.
33187         * doc/INSTALL.ISO: Likewise.
33188         * doc/INSTALL.UTF-8: Likewise.
33189
33190         pread: fix compilation on glibc
33191         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
33192         Reported by Ralf Wildenhues.
33193
33194         dirent: fix test failure
33195         * lib/dirent.in.h (includes): Guarantee ino_t.
33196         Reported by Ralf Wildenhues.
33197
33198 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
33199
33200         linkat, renameat: avoid bad free
33201         * lib/at-func2.c (at_func2): Fix typo.
33202         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
33203
33204 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33205
33206         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
33207         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
33208         to avoid failure of symlink test later.
33209
33210 2010-01-06  Eric Blake  <ebb9@byu.net>
33211
33212         stdio, unistd: guarantee ssize_t
33213         * lib/unistd.in.h (includes): Ensure that types required by POSIX
33214         2008 are exposed when needed.
33215         * lib/stdio.in.h (includes): Likewise.
33216         Reported by Ralf Wildenhues.
33217
33218 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
33219
33220         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
33221         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
33222         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
33223
33224 2010-01-06  Jim Meyering  <meyering@redhat.com>
33225
33226         readtokens: this module *does* require xalloc.h
33227         It uses only functions that were omitted by the old syntax-check rule.
33228         * lib/readtokens.c: Include "xalloc.h" once again.
33229         * modules/readtokens (Depends-on): Add xalloc.
33230         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
33231
33232 2010-01-05  Eric Blake  <ebb9@byu.net>
33233
33234         maint: support 'make announcement' from a VPATH build
33235         * top/maint.mk (announcement): Look for correct NEWS file.
33236
33237 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
33238
33239         utimens (fdutimens): ignore a negative FD, per contract
33240         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
33241         when we have a valid file descriptor.  Otherwise, using a brand
33242         new glibc (with just-patched futimens that now fails with EBADF)
33243         would cause this function to fail with ENOSYS.
33244         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
33245         See also http://bugzilla.redhat.com/552320.
33246
33247 2010-01-05  Eric Blake  <ebb9@byu.net>
33248
33249         strcase: document what it provides
33250         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
33251         gnulib module.
33252         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
33253         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
33254
33255 2010-01-05  Jim Meyering  <meyering@redhat.com>
33256
33257         maint: remove useless inclusions of "xalloc.h"
33258         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
33259         * lib/readtokens.c: Likewise.
33260         * lib/same.c: Likewise.
33261         * modules/getloadavg (Depends-on): Remove xalloc.
33262         * modules/readtokens: Likewise.
33263         * modules/same: Likewise.
33264
33265         maint.mk: include 4 more function names in alloca.h-checking regexp
33266         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
33267         regexp.  Before, we would give a false-positive (saying alloca.h
33268         is included unnecessarily) when the only uses involved omitted symbols.
33269
33270         xalloc.h: use consistent formatting
33271         * lib/xalloc.h: Move declarations to start in the first column.
33272
33273 2010-01-05  Eric Blake  <ebb9@byu.net>
33274
33275         mkdir: avoid xalloc
33276         * lib/mkdir.c (includes): Drop unused header.
33277         Reported by John W. Eaton.
33278
33279 2010-01-04  Jim Meyering  <meyering@redhat.com>
33280
33281         nl_langinfo: avoid configure-time syntax error
33282         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
33283         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
33284         the empty string.  Don't let that provoke a shell syntax error.
33285
33286         regcomp, regexec, fnmatch: avoid array bounds read error
33287         * lib/regcomp.c (build_equiv_class): From glibc:
33288         Use only the low 24 bits of a findidx return value as an index
33289         into the weights array.  Patch by Ulrich Drepper:
33290         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
33291         * lib/regexec.c (check_node_accept_bytes): Likewise.
33292         * lib/fnmatch_loop.c (FCT): Likewise.
33293
33294         regcomp: skip collseq lookup when there are no rules
33295         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
33296         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
33297
33298         regcomp: recognize ill-formed { } expressions
33299         * lib/regcomp.c (parse_dup_op): From glibc:
33300         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
33301
33302         regcomp: fix typo in comment
33303         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
33304         s/satisfy/satisfies/.
33305
33306         regcomp: sync from glibc: remove dead store
33307         * lib/regcomp.c (duplicate_node_closure): Remove useless
33308         search_duplicated_node call and dead store.
33309
33310         regcomp: sync from glibc; always use nl_langinfo
33311         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
33312         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
33313         * modules/regex (Depends-on): Add nl_langinfo.
33314
33315 2010-01-04  Eric Blake  <ebb9@byu.net>
33316
33317         fdopendir: fix configure test
33318         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
33319
33320 2010-01-01  Bruno Haible  <bruno@clisp.org>
33321
33322         wchar: Remove unused configure check.
33323         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
33324
33325 2010-01-01  Eric Blake  <ebb9@byu.net>
33326
33327         headers: make check of system header explicit
33328         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
33329         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
33330         ourselves.
33331         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33332         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33333         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33334         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
33335         internals.
33336         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
33337         missing.
33338         Suggested by Bruno Haible.
33339
33340 2010-01-01  Jim Meyering  <meyering@redhat.com>
33341
33342         ChangeLog: tweak to eliminate unnecessary copyright line
33343         * ChangeLog: Remove a copyright line that was mistakenly updated
33344         by today's update-copyright run.  Reported by Eric Blake.
33345
33346         test-update-copyright: don't let envvar setting cause test failure
33347         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
33348
33349 2010-01-01  Bruno Haible  <bruno@clisp.org>
33350
33351         localename: Avoid gcc warning.
33352         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
33353         function if it is not used.
33354
33355 2010-01-01  Jim Meyering  <meyering@redhat.com>
33356
33357         update nearly all FSF copyright year lists to include 2010
33358         Use the same procedure as for 2009, outlined in
33359         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
33360
33361         version-etc: set COPYRIGHT_YEAR to 2010
33362         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
33363
33364 2009-12-31  Eric Blake  <ebb9@byu.net>
33365
33366         doc: correct availability of cygwin 1.5.x getopt
33367         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
33368         variables.
33369         * doc/posix-functions/opterr.texi (opterr): Likewise.
33370         * doc/posix-functions/optind.texi (optind): Likewise.
33371         * doc/posix-functions/optopt.texi (optopt): Likewise.
33372         * doc/posix-functions/tzname.texi (tzname): Likewise.
33373
33374         openat: update maintainer
33375         * modules/openat (Maintainer): Add myself.
33376
33377         utimens: avoid shadowing warning
33378         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
33379         buffers into one, to avoid shadowing, as well as avoiding a
33380         redundant stat.
33381         Reported by Jim Meyering.
33382
33383         test-dup2: avoid compiler warning
33384         * tests/test-dup2.c (is_inheritable): Only define if used.
33385
33386 2010-01-01  Bruno Haible  <bruno@clisp.org>
33387
33388         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
33389         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
33390         defined, use wctomb instead of wcrtomb.
33391
33392 2010-01-01  Bruno Haible  <bruno@clisp.org>
33393
33394         iconv: Reject native Solaris iconv.
33395         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
33396         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
33397
33398 2009-12-31  Bruno Haible  <bruno@clisp.org>
33399
33400         * tests/test-signal.c (main): Remove test of 'SIG'.
33401
33402 2009-12-31  Bruno Haible  <bruno@clisp.org>
33403
33404         spawn: Fix incomplete fix.
33405         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
33406         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
33407         warnings for GNULIB_POSIXCHECK again.
33408         Reported by Eric Blake.
33409
33410 2009-12-31  Bruno Haible  <bruno@clisp.org>
33411
33412         Avoid namespace pollution on glibc systems.
33413         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
33414         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
33415         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
33416         glibc systems.
33417
33418 2009-12-31  Bruno Haible  <bruno@clisp.org>
33419
33420         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
33421         (gl_REPLACE_WCHAR_H): Turn into a no-op.
33422         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
33423         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
33424         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
33425         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
33426         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
33427
33428 2009-12-31  Bruno Haible  <bruno@clisp.org>
33429
33430         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33431         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
33432         afterwards.
33433
33434 2009-12-31  Bruno Haible  <bruno@clisp.org>
33435
33436         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
33437         SYS_UTSNAME_H.
33438
33439 2009-12-31  Bruno Haible  <bruno@clisp.org>
33440
33441         spawn: Fix misapplied patch.
33442         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
33443         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
33444         warnings for GNULIB_POSIXCHECK.
33445
33446 2009-12-31  Bruno Haible  <bruno@clisp.org>
33447
33448         times: Update after sys_times changed.
33449         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
33450         * modules/times (Files): Add it.
33451         (configure.ac): Invoke gl_FUNC_TIMES.
33452
33453 2009-12-31  Bruno Haible  <bruno@clisp.org>
33454
33455         Use AC_C_INLINE where necessary.
33456         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
33457         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33458         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
33459         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
33460         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33461         * m4/mbiter.m4 (gl_MBITER): Likewise.
33462         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33463         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33464         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
33465         * modules/u64 (configure.ac): Likewise.
33466
33467 2009-12-31  Bruno Haible  <bruno@clisp.org>
33468
33469         Use AC_C_INLINE instead of module 'inline' where possible.
33470         * modules/inline (Description): Clarify purpose.
33471         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
33472         * modules/count-one-bits (Depends-on): Remove inline.
33473         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
33474         * modules/openat (Depends-on): Remove inline.
33475         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
33476         instead of depending on module 'inline'.
33477         * modules/filevercmp (Depends-on, configure.ac): Likewise.
33478         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
33479         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
33480         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
33481         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
33482         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
33483         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
33484         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
33485         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
33486         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
33487         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
33488         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
33489         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
33490         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
33491         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
33492         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
33493         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
33494         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
33495         Likewise.
33496         * modules/unictype/property-ascii-hex-digit (Depends-on,
33497         configure.ac): Likewise.
33498         * modules/unictype/property-bidi-arabic-digit (Depends-on,
33499         configure.ac): Likewise.
33500         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
33501         configure.ac): Likewise.
33502         * modules/unictype/property-bidi-block-separator (Depends-on,
33503         configure.ac): Likewise.
33504         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
33505         configure.ac): Likewise.
33506         * modules/unictype/property-bidi-common-separator (Depends-on,
33507         configure.ac): Likewise.
33508         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
33509         Likewise.
33510         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
33511         configure.ac): Likewise.
33512         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
33513         configure.ac): Likewise.
33514         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
33515         configure.ac): Likewise.
33516         * modules/unictype/property-bidi-european-digit (Depends-on,
33517         configure.ac): Likewise.
33518         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
33519         configure.ac): Likewise.
33520         * modules/unictype/property-bidi-left-to-right (Depends-on,
33521         configure.ac): Likewise.
33522         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
33523         configure.ac): Likewise.
33524         * modules/unictype/property-bidi-other-neutral (Depends-on,
33525         configure.ac): Likewise.
33526         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
33527         Likewise.
33528         * modules/unictype/property-bidi-segment-separator (Depends-on,
33529         configure.ac): Likewise.
33530         * modules/unictype/property-bidi-whitespace (Depends-on,
33531         configure.ac): Likewise.
33532         * modules/unictype/property-combining (Depends-on, configure.ac):
33533         Likewise.
33534         * modules/unictype/property-composite (Depends-on, configure.ac):
33535         Likewise.
33536         * modules/unictype/property-currency-symbol (Depends-on,
33537         configure.ac): Likewise.
33538         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
33539         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
33540         Likewise.
33541         * modules/unictype/property-default-ignorable-code-point (Depends-on,
33542         configure.ac): Likewise.
33543         * modules/unictype/property-deprecated (Depends-on, configure.ac):
33544         Likewise.
33545         * modules/unictype/property-diacritic (Depends-on, configure.ac):
33546         Likewise.
33547         * modules/unictype/property-extender (Depends-on, configure.ac):
33548         Likewise.
33549         * modules/unictype/property-format-control (Depends-on, configure.ac):
33550         Likewise.
33551         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
33552         Likewise.
33553         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
33554         Likewise.
33555         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
33556         Likewise.
33557         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
33558         Likewise.
33559         * modules/unictype/property-hyphen (Depends-on, configure.ac):
33560         Likewise.
33561         * modules/unictype/property-id-continue (Depends-on, configure.ac):
33562         Likewise.
33563         * modules/unictype/property-id-start (Depends-on, configure.ac):
33564         Likewise.
33565         * modules/unictype/property-ideographic (Depends-on, configure.ac):
33566         Likewise.
33567         * modules/unictype/property-ids-binary-operator (Depends-on,
33568         configure.ac): Likewise.
33569         * modules/unictype/property-ids-trinary-operator (Depends-on,
33570         configure.ac): Likewise.
33571         * modules/unictype/property-ignorable-control (Depends-on,
33572         configure.ac): Likewise.
33573         * modules/unictype/property-iso-control (Depends-on, configure.ac):
33574         Likewise.
33575         * modules/unictype/property-join-control (Depends-on, configure.ac):
33576         Likewise.
33577         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
33578         Likewise.
33579         * modules/unictype/property-line-separator (Depends-on, configure.ac):
33580         Likewise.
33581         * modules/unictype/property-logical-order-exception (Depends-on,
33582         configure.ac): Likewise.
33583         * modules/unictype/property-lowercase (Depends-on, configure.ac):
33584         Likewise.
33585         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
33586         * modules/unictype/property-non-break (Depends-on, configure.ac):
33587         Likewise.
33588         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
33589         Likewise.
33590         * modules/unictype/property-numeric (Depends-on, configure.ac):
33591         Likewise.
33592         * modules/unictype/property-other-alphabetic (Depends-on,
33593         configure.ac): Likewise.
33594         * modules/unictype/property-other-default-ignorable-code-point
33595         (Depends-on, configure.ac): Likewise.
33596         * modules/unictype/property-other-grapheme-extend (Depends-on,
33597         configure.ac): Likewise.
33598         * modules/unictype/property-other-id-continue (Depends-on,
33599         configure.ac): Likewise.
33600         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
33601         Likewise.
33602         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
33603         Likewise.
33604         * modules/unictype/property-other-math (Depends-on, configure.ac):
33605         Likewise.
33606         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
33607         Likewise.
33608         * modules/unictype/property-paired-punctuation (Depends-on,
33609         configure.ac): Likewise.
33610         * modules/unictype/property-paragraph-separator (Depends-on,
33611         configure.ac): Likewise.
33612         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
33613         Likewise.
33614         * modules/unictype/property-pattern-white-space (Depends-on,
33615         configure.ac): Likewise.
33616         * modules/unictype/property-private-use (Depends-on, configure.ac):
33617         Likewise.
33618         * modules/unictype/property-punctuation (Depends-on, configure.ac):
33619         Likewise.
33620         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
33621         Likewise.
33622         * modules/unictype/property-radical (Depends-on, configure.ac):
33623         Likewise.
33624         * modules/unictype/property-sentence-terminal (Depends-on,
33625         configure.ac): Likewise.
33626         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
33627         Likewise.
33628         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
33629         * modules/unictype/property-terminal-punctuation (Depends-on,
33630         configure.ac): Likewise.
33631         * modules/unictype/property-titlecase (Depends-on, configure.ac):
33632         Likewise.
33633         * modules/unictype/property-unassigned-code-value (Depends-on,
33634         configure.ac): Likewise.
33635         * modules/unictype/property-unified-ideograph (Depends-on,
33636         configure.ac): Likewise.
33637         * modules/unictype/property-uppercase (Depends-on, configure.ac):
33638         Likewise.
33639         * modules/unictype/property-variation-selector (Depends-on,
33640         configure.ac): Likewise.
33641         * modules/unictype/property-white-space (Depends-on, configure.ac):
33642         Likewise.
33643         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
33644         Likewise.
33645         * modules/unictype/property-xid-start (Depends-on, configure.ac):
33646         Likewise.
33647         * modules/unictype/property-zero-width (Depends-on, configure.ac):
33648         Likewise.
33649         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
33650         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
33651         Likewise.
33652
33653 2009-12-31  Bruno Haible  <bruno@clisp.org>
33654
33655         Remove unnecessary AC_C_INLINE invocation.
33656         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
33657         since 2009-08-21.
33658
33659 2009-12-31  Jim Meyering  <meyering@redhat.com>
33660
33661         maint.mk: don't require explicit gpg_key_ID in cfg.mk
33662         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
33663         With this change, we can all remove the gpg_key_ID = ... definition
33664         from our respective cfg.mk files.
33665
33666         maint.mk: create announcement template in ~/, not in /tmp
33667         * top/maint.mk (emit_upload_commands): Adjust.
33668         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
33669         Remove temporary file, .ci-msg.
33670
33671 2009-12-31  Eric Blake  <ebb9@byu.net>
33672
33673         link-warning: always build headers with link warnings
33674         * modules/arpa_inet (Makefile.am): Always build replacement
33675         header.
33676         * modules/ctype (Makefile.am): Likewise.
33677         * modules/dirent (Makefile.am): Likewise.
33678         * modules/inttypes (Makefile.am): Likewise.
33679         * modules/langinfo (Makefile.am): Likewise.
33680         * modules/locale (Makefile.am): Likewise.
33681         * modules/spawn (Makefile.am): Likewise.
33682         * modules/sys_file (Makefile.am): Likewise.
33683         * modules/sys_ioctl (Makefile.am): Likewise.
33684         * modules/sys_select (Makefile.am): Likewise.
33685         * modules/sys_socket (Makefile.am): Likewise.
33686         * modules/sys_times (Makefile.am): Likewise.
33687         * modules/sys_utsname (Makefile.am): Likewise.
33688         * modules/sys_wait (Makefile.am): Likewise.
33689         * modules/wchar (Makefile.am): Likewise.
33690         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
33691         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
33692         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
33693         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
33694         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
33695         Likewise.
33696         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33697         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33698         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
33699         Likewise.
33700         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
33701         Likewise.
33702         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
33703         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
33704         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
33705         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33706         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33707         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
33708         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
33709         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
33710         (gl_WCHAR_H_DEFAULTS): Likewise.
33711
33712 2009-12-31  Eric Blake  <ebb9@byu.net>
33713
33714         signal, spawn: use link warnings
33715         * lib/signal.in.h (sigset_t): Make unconditional.
33716         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
33717         (sigpending, sigprocmask, sigaction): Add link warnings.
33718         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
33719         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
33720         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
33721         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
33722         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
33723         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
33724         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
33725         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
33726         (posix_spawn_file_actions_destroy)
33727         (posix_spawn_file_actions_addopen)
33728         (posix_spawn_file_actions_addclose)
33729         (posix_spawn_file_actions_adddup2): Likewise.
33730         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
33731         * tests/test-signal.c (main): Enhance test.
33732
33733         spawn: improve wrapper support
33734         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
33735         (gl_SPAWN_H_DEFAULTS): New defaults.
33736         * modules/spawn (Makefile.am): Substitute them.
33737         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
33738         Only declare if missing or broken.
33739
33740         sys_times, sys_utsname: use include_next
33741         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
33742         header.
33743         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
33744         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
33745         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
33746         * modules/sys_times (Depends-on): Add include_next.
33747         (Makefile.am): Substitute additional values.
33748         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33749         * lib/sys_times.in.h (includes): Include native header, if
33750         available.
33751         * lib/sys_utsname.in.h (includes): Likewise.
33752         * tests/test-sys_times.c (main): Enhance test.
33753
33754         fdutimensat: revert prior patch
33755         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
33756         utimens.h.
33757         Reported by Bruno Haible.
33758
33759 2009-12-30  Eric Blake  <ebb9@byu.net>
33760
33761         sys_wait: drop link-warning dependency
33762         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
33763         link-warning efforts.
33764         * lib/sys_wait.in.h: Likewise.
33765
33766         fdutimensat: remove bogus dependency
33767         * modules/fdutimensat (Depends-on): Drop inline.
33768
33769         unistd: fix typo
33770         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
33771
33772 2009-12-30  Bruno Haible  <bruno@clisp.org>
33773
33774         Fix compilation error with Solaris cc.
33775         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
33776         * lib/unicase/u16-is-invariant.c: Likewise.
33777         * lib/unicase/u32-is-invariant.c: Likewise.
33778         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
33779
33780 2009-12-30  Bruno Haible  <bruno@clisp.org>
33781
33782         Fix test crash.
33783         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
33784         locales.
33785         Reported by Simon Josefsson <simon@josefsson.org>.
33786
33787 2009-12-30  Bruno Haible  <bruno@clisp.org>
33788
33789         Fix compilation error on most platforms.
33790         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
33791         Reported by Simon Josefsson <simon@josefsson.org>
33792         and Nelson H. F. Beebe <beebe@math.utah.edu>.
33793
33794 2009-12-30  Eric Blake  <ebb9@byu.net>
33795
33796         futimens, utimensat: work around ntfs-3g bug
33797         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
33798         a ctime bug is present, and expand workaround to cover ntfs-3g.
33799         * lib/utimens.c (fdutimens, lutimens): Likewise.
33800         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
33801         (validate_timespec): Adjust return value.
33802         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
33803         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33804         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
33805
33806 2009-12-29  Eric Blake  <ebb9@byu.net>
33807
33808         link-warning: make usage consistent
33809         * modules/ctype (Depends-on): Add link-warning.
33810         (Makefile.am): Update rules accordingly.
33811         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33812         * modules/locale (Depends-on, Makefile.am): Likewise.
33813         * modules/sys_file (Makefile.am): Likewise.
33814         * modules/getopt-posix (Makefile.am): Delete unused link warning
33815         efforts.
33816         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
33817         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
33818         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
33819         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
33820
33821         stdio: remove unused variables
33822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
33823         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
33824         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
33825
33826         tests: test more substitute headers
33827         * modules/ctype-tests: New file.
33828         * modules/dirent-tests: Likewise.
33829         * modules/spawn-tests: Likewise.
33830         * modules/sys_file-tests: Likewise.
33831         * modules/sys_ioctl-tests: Likewise.
33832         * modules/sys_wait-tests: Likewise.
33833         * tests/test-ctype.c: Likewise.
33834         * tests/test-dirent.c: Likewise.
33835         * tests/test-spawn.c: Likewise.
33836         * tests/test-sys_file.c: Likewise.
33837         * tests/test-sys_ioctl.c: Likewise.
33838         * tests/test-sys_wait.c: Likewise.
33839         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
33840         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
33841         whether or not flock is in use.
33842
33843         tests: remove License section from module
33844         * modules/arpa_inet-tests: Remove unneeded section.
33845         * modules/byteswap-tests: Likewise.
33846         * modules/ceilf-tests: Likewise.
33847         * modules/ceill-tests: Likewise.
33848         * modules/crypto/des-tests: Likewise.
33849         * modules/crypto/gc-arcfour-tests: Likewise.
33850         * modules/crypto/gc-arctwo-tests: Likewise.
33851         * modules/crypto/gc-des-tests: Likewise.
33852         * modules/crypto/gc-hmac-md5-tests: Likewise.
33853         * modules/crypto/gc-hmac-sha1-tests: Likewise.
33854         * modules/crypto/gc-md2-tests: Likewise.
33855         * modules/crypto/gc-md4-tests: Likewise.
33856         * modules/crypto/gc-md5-tests: Likewise.
33857         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
33858         * modules/crypto/gc-rijndael-tests: Likewise.
33859         * modules/crypto/gc-sha1-tests: Likewise.
33860         * modules/crypto/gc-tests: Likewise.
33861         * modules/crypto/md2-tests: Likewise.
33862         * modules/crypto/md4-tests: Likewise.
33863         * modules/fcntl-h-tests: Likewise.
33864         * modules/floorf-tests: Likewise.
33865         * modules/floorl-tests: Likewise.
33866         * modules/frexp-nolibm-tests: Likewise.
33867         * modules/frexp-tests: Likewise.
33868         * modules/frexpl-nolibm-tests: Likewise.
33869         * modules/frexpl-tests: Likewise.
33870         * modules/getaddrinfo-tests: Likewise.
33871         * modules/inttypes-tests: Likewise.
33872         * modules/isfinite-tests: Likewise.
33873         * modules/isinf-tests: Likewise.
33874         * modules/ldexpl-tests: Likewise.
33875         * modules/locale-tests: Likewise.
33876         * modules/math-tests: Likewise.
33877         * modules/netdb-tests: Likewise.
33878         * modules/netinet_in-tests: Likewise.
33879         * modules/printf-frexp-tests: Likewise.
33880         * modules/printf-frexpl-tests: Likewise.
33881         * modules/priv-set-tests: Likewise.
33882         * modules/random_r-tests: Likewise.
33883         * modules/round-tests: Likewise.
33884         * modules/roundf-tests: Likewise.
33885         * modules/roundl-tests: Likewise.
33886         * modules/search-tests: Likewise.
33887         * modules/select-tests: Likewise.
33888         * modules/signal-tests: Likewise.
33889         * modules/stdbool-tests: Likewise.
33890         * modules/stddef-tests: Likewise.
33891         * modules/stdint-tests: Likewise.
33892         * modules/stdio-tests: Likewise.
33893         * modules/stdlib-tests: Likewise.
33894         * modules/string-tests: Likewise.
33895         * modules/strings-tests: Likewise.
33896         * modules/sys_select-tests: Likewise.
33897         * modules/sys_socket-tests: Likewise.
33898         * modules/sys_stat-tests: Likewise.
33899         * modules/sys_time-tests: Likewise.
33900         * modules/sys_utsname-tests: Likewise.
33901         * modules/sysexits-tests: Likewise.
33902         * modules/time-tests: Likewise.
33903         * modules/trunc-tests: Likewise.
33904         * modules/truncf-tests: Likewise.
33905         * modules/truncl-tests: Likewise.
33906         * modules/tsearch-tests: Likewise.
33907         * modules/unistd-tests: Likewise.
33908         * modules/wchar-tests: Likewise.
33909         * modules/wctype-tests: Likewise.
33910
33911         tests: fix license on several tests
33912         * tests/test-des.c: Update to GPLv3+.
33913         * tests/test-flock.c: Likewise.
33914         * tests/test-fsync.c: Likewise.
33915         * tests/test-futimens.h: Likewise.
33916         * tests/test-gc-arcfour.c: Likewise.
33917         * tests/test-gc-arctwo.c: Likewise.
33918         * tests/test-gc-des.c: Likewise.
33919         * tests/test-gc-hmac-md5.c: Likewise.
33920         * tests/test-gc-hmac-sha1.c: Likewise.
33921         * tests/test-gc-md2.c: Likewise.
33922         * tests/test-gc-md4.c: Likewise.
33923         * tests/test-gc-md5.c: Likewise.
33924         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33925         * tests/test-gc-rijndael.c: Likewise.
33926         * tests/test-gc-sha1.c: Likewise.
33927         * tests/test-gc.c: Likewise.
33928         * tests/test-getcwd.c: Likewise.
33929         * tests/test-link.c: Likewise.
33930         * tests/test-link.h: Likewise.
33931         * tests/test-lutimens.h: Likewise.
33932         * tests/test-md2.c: Likewise.
33933         * tests/test-md4.c: Likewise.
33934         * tests/test-mkdir.h: Likewise.
33935         * tests/test-rename.c: Likewise.
33936         * tests/test-rename.h: Likewise.
33937         * tests/test-safe-alloc.c: Likewise.
33938         * tests/test-utimens-common.h: Likewise.
33939         * tests/test-utimens.h: Likewise.
33940
33941         maint: sync license texts
33942         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
33943         * doc/gpl-3.0.texi: Revert copyright year update.
33944         * doc/lgpl-3.0.texi: Likewise.
33945
33946 2009-12-29  Jim Meyering  <meyering@redhat.com>
33947
33948         update nearly all FSF copyright year lists to include 2009
33949         The files named by the following are exempted:
33950             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
33951               test -f "$dst" && { echo "$dst"; continue; }
33952               test -d "$dst" || continue
33953               echo "$dst"/$(basename "$src")
33954             done > exempt
33955             git ls-files tests/unictype >> exempt
33956         In the remaining files, convert to all-interval notation if
33957         - there is already at least one year interval like 2000-2003
33958         - the file is maintained by me
33959         - the file is in lib/uni*/, where that style already prevails
33960         Otherwise, use update-copyright's default.
33961
33962 2009-12-29  Simon Josefsson  <simon@josefsson.org>
33963         and Eric Blake  <ebb9@byu.net>
33964
33965         tests: don't require debug system() to pass
33966         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
33967         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33968         * tests/test-unlink.h (test_unlink_func): Likewise.
33969         * tests/test-fstatat.c (main): ...into callers.
33970         * tests/test-lstat.c (main): Likewise.
33971         * tests/test-rmdir.c (main): Likewise.
33972         * tests/test-unlink.c (main): Likewise.
33973         * tests/test-unlinkat.c (main): Likewise.
33974         * tests/test-areadlink-with-size.c (main): Don't require a
33975         debug-only system call to pass, aiding cross-testing to mingw.
33976         * tests/test-areadlink.c (main): Likewise.
33977         * tests/test-areadlinkat-with-size.c (main): Likewise.
33978         * tests/test-areadlinkat.c (main): Likewise.
33979         * tests/test-canonicalize-lgpl.c (main): Likewise.
33980         * tests/test-canonicalize.c (main): Likewise.
33981         * tests/test-chown.c (main): Likewise.
33982         * tests/test-fchownat.c (main): Likewise.
33983         * tests/test-lchown.c (main): Likewise.
33984         * tests/test-fdutimensat.c (main): Likewise.
33985         * tests/test-futimens.c (main): Likewise.
33986         * tests/test-link.c (main): Likewise.
33987         * tests/test-linkat.c (main): Likewise.
33988         * tests/test-mkdir.c (main): Likewise.
33989         * tests/test-mkdirat.c (main): Likewise.
33990         * tests/test-mkfifo.c (main): Likewise.
33991         * tests/test-mkfifoat.c (main): Likewise.
33992         * tests/test-mknod.c (main): Likewise.
33993         * tests/test-readlink.c (main): Likewise.
33994         * tests/test-remove.c (main): Likewise.
33995         * tests/test-rename.c (main): Likewise.
33996         * tests/test-renameat.c (main): Likewise.
33997         * tests/test-symlink.c (main): Likewise.
33998         * tests/test-symlinkat.c (main): Likewise.
33999         * tests/test-utimens.c (main): Likewise.
34000         * tests/test-utimensat.c (main): Likewise.
34001
34002 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34003
34004         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34005         on $(UNUSED_PARAMETER_H) to avoid build failure.
34006
34007 2009-12-28  Jim Meyering  <meyering@redhat.com>
34008
34009         update-copyright: you may specify a max. line length other than 72
34010         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34011
34012         maint: use consistent FSF copyright line syntax
34013         * lib/posixtm.c: Add missing comma in FSF copyright line.
34014         * lib/posixtm.h: Likewise.
34015         * lib/getugroups.c: Add missing ", Inc.".
34016
34017         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
34018         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
34019         FSF copyright line.  Remove trailing blanks.
34020
34021 2009-12-28  Eric Blake  <ebb9@byu.net>
34022
34023         test-dup2: reduce dependencies
34024         * modules/cloexec (Configure.ac): Set witness.
34025         * modules/dup2-tests (Depends-on): Drop cloexec.
34026         * tests/test-dup2.c (main): Skip portion of test if cloexec module
34027         not present.
34028         Suggested by Bruno Haible.
34029
34030 2009-12-26  Bruno Haible  <bruno@clisp.org>
34031
34032         Remove an unneeded dependency.
34033         * modules/fseterr (Depends-on): Remove dup2.
34034
34035 2009-12-26  Eric Blake  <ebb9@byu.net>
34036
34037         tests: use macros.h in more places
34038         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
34039         (ASSERT_STREAM): Provide default of stderr.
34040         * tests/test-dirent-safer.c: Include macros.h, using alternate
34041         stream for assertions.
34042         * tests/test-dup-safer.c: Likewise.
34043         * tests/test-freopen-safer.c: Likewise.
34044         * tests/test-getopt.c: Likewise.
34045         * tests/test-openat-safer.c: Likewise.
34046         * tests/test-pipe.c: Likewise.
34047         * tests/test-popen-safer.c: Likewise.
34048         * modules/dirent-safer-tests (Files): Include macros.h.
34049         * modules/unistd-safer-tests (Files): Likewise.
34050         * modules/freopen-safer-tests (Files): Likewise.
34051         * modules/getopt-posix-tests (Files): Likewise.
34052         * modules/openat-safer-tests (Files): Likewise.
34053         * modules/pipe-tests (Files): Likewise.
34054
34055 2009-12-26  Bruno Haible  <bruno@clisp.org>
34056
34057         javacomp: Portability fix.
34058         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
34059         that it also works on Solaris.
34060
34061 2009-12-26  Bruno Haible  <bruno@clisp.org>
34062
34063         localename: Fix storage allocation of gl_locale_name_thread's result.
34064         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
34065         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
34066         all platforms that have 'uselocale'.
34067         (gl_locale_name_thread_unsafe): New function, extracted from
34068         gl_locale_name_thread.
34069         (gl_locale_name_thread): Call struniq on all platforms that have
34070         'uselocale'.
34071         * tests/test-localename.c (test_locale_name_thread): Check that the
34072         resulting strings are permanently allocated.
34073         * modules/localename-tests (Depends-on): Add strdup.
34074
34075 2009-12-26  Bruno Haible  <bruno@clisp.org>
34076
34077         * tests/test-localename.c (categories): Fill in the strings.
34078
34079 2009-12-26  Jim Meyering  <meyering@redhat.com>
34080
34081         isdir: complete the removal of m4/isdir.m4
34082         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
34083
34084         isdir: clean up, since at least grep still uses it
34085         * lib/isdir.c: Include "isdir.h".
34086         (S_ISDIR): Remove now-unneeded definition.
34087         * modules/isdir (Files): Add lib/isdir.h.
34088         * lib/isdir.h: New file, with declaration.
34089         * m4/isdir.m4: Remove file -- unneeded.
34090
34091 2009-12-25  Bruno Haible  <bruno@clisp.org>
34092
34093         selinux-h: Make generated .h files standalone.
34094         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
34095         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
34096         * lib/se-selinux.in.h: Likewise.
34097         * modules/selinux-h (Depends-on): Add unused-parameter.
34098         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
34099         selinux/selinux.h and selinux/context.h.
34100         Suggested by Eric Blake.
34101
34102 2009-12-25  Bruno Haible  <bruno@clisp.org>
34103
34104         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
34105         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
34106         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
34107         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
34108         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
34109
34110 2009-12-24  Bruno Haible  <bruno@clisp.org>
34111
34112         openat: Fix warning.
34113         * lib/openat-proc.c: Include <unistd.h>.
34114
34115 2009-12-24  Bruno Haible  <bruno@clisp.org>
34116
34117         New module 'unused-parameter'.
34118         * build-aux/unused-parameter.h: New file, extracted from earlier
34119         gnulib-common.m4.
34120         * modules/unused-parameter: New file.
34121         * lib/unistr.h: Include unused-parameter.h.
34122         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
34123         _GL_UNUSED.
34124         * modules/unistr/base (Depends-on): Add unused-parameter.
34125
34126 2009-12-24  Bruno Haible  <bruno@clisp.org>
34127
34128         Add missing dependencies to 'extensions' module.
34129         * m4/extensions.m4: Add comment.
34130         * modules/accept4 (Depends-on): Add extensions.
34131         * modules/dup3 (Depends-on): Likewise.
34132         * modules/fcntl (Depends-on): Likewise.
34133         * modules/futimens (Depends-on): Likewise.
34134         * modules/mknod (Depends-on): Likewise.
34135         * modules/pipe2 (Depends-on): Likewise.
34136         * modules/stat-time (Depends-on): Likewise.
34137         * modules/strcasestr-simple (Depends-on): Likewise.
34138         * modules/strsignal (Depends-on): Likewise.
34139         * modules/utimensat (Depends-on): Likewise.
34140         * modules/localcharset (Depends-on): Likewise. Needed because of
34141         gl_FCNTL_O_FLAGS.
34142         * modules/wcrtomb (Depends-on): Likewise. Needed because of
34143         AC_TYPE_MBSTATE_T.
34144         * modules/wcsnrtombs (Depends-on): Likewise.
34145         * modules/wcsrtombs (Depends-on): Likewise.
34146
34147 2009-12-24  Bruno Haible  <bruno@clisp.org>
34148
34149         binary-io: Avoid gcc warning due to SET_BINARY.
34150         * lib/binary-io.h (SET_BINARY): Cast the result to void.
34151         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
34152
34153 2009-12-24  Bruno Haible  <bruno@clisp.org>
34154
34155         Avoid future namespace pollution on glibc systems.
34156         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
34157         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
34158         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
34159         glibc systems.
34160
34161 2009-12-24  Bruno Haible  <bruno@clisp.org>
34162
34163         Refactor common macros used in tests.
34164         * tests/macros.h: New file.
34165         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
34166         and/or <stdlib.h>, if appropriate.
34167         (ASSERT, SIZEOF): Remove macros.
34168         * tests/test-areadlink-with-size.c: Likewise.
34169         * tests/test-areadlinkat.c: Likewise.
34170         * tests/test-areadlinkat-with-size.c: Likewise.
34171         * tests/test-argmatch.c: Likewise.
34172         * tests/test-argv-iter.c: Likewise.
34173         * tests/test-array-mergesort.c: Likewise.
34174         * tests/test-array_list.c: Likewise.
34175         * tests/test-array_oset.c: Likewise.
34176         * tests/test-avltree_list.c: Likewise.
34177         * tests/test-avltree_oset.c: Likewise.
34178         * tests/test-avltreehash_list.c: Likewise.
34179         * tests/test-base64.c: Likewise.
34180         * tests/test-binary-io.c: Likewise.
34181         * tests/test-bitrotate.c: Likewise.
34182         * tests/test-btowc.c: Likewise.
34183         * tests/test-byteswap.c: Likewise.
34184         * tests/test-c-ctype.c: Likewise.
34185         * tests/test-c-stack.c: Likewise.
34186         * tests/test-c-strcasecmp.c: Likewise.
34187         * tests/test-c-strcasestr.c: Likewise.
34188         * tests/test-c-strncasecmp.c: Likewise.
34189         * tests/test-c-strstr.c: Likewise.
34190         * tests/test-canonicalize-lgpl.c: Likewise.
34191         * tests/test-canonicalize.c: Likewise.
34192         * tests/test-carray_list.c: Likewise.
34193         * tests/test-ceilf1.c: Likewise.
34194         * tests/test-ceilf2.c: Likewise.
34195         * tests/test-ceill.c: Likewise.
34196         * tests/test-chown.c: Likewise.
34197         * tests/test-cloexec.c: Likewise.
34198         * tests/test-copy-acl.c: Likewise.
34199         * tests/test-copy-file.c: Likewise.
34200         * tests/test-count-one-bits.c: Likewise.
34201         * tests/test-dprintf-posix.c: Likewise.
34202         * tests/test-dup2.c: Likewise.
34203         * tests/test-dup3.c: Likewise.
34204         * tests/test-duplocale.c: Likewise.
34205         * tests/test-fbufmode.c: Likewise.
34206         * tests/test-fchdir.c: Likewise.
34207         * tests/test-fchownat.c: Likewise.
34208         * tests/test-fcntl-safer.c: Likewise.
34209         * tests/test-fcntl.c: Likewise.
34210         * tests/test-fdopendir.c: Likewise.
34211         * tests/test-fdutimensat.c: Likewise.
34212         * tests/test-fflush2.c: Likewise.
34213         * tests/test-file-has-acl.c: Likewise.
34214         * tests/test-filevercmp.c: Likewise.
34215         * tests/test-flock.c: Likewise.
34216         * tests/test-floorf1.c: Likewise.
34217         * tests/test-floorf2.c: Likewise.
34218         * tests/test-floorl.c: Likewise.
34219         * tests/test-fnmatch.c: Likewise.
34220         * tests/test-fopen.h: Likewise.
34221         * tests/test-fpending.c: Likewise.
34222         * tests/test-fprintf-posix.c: Likewise.
34223         * tests/test-fpurge.c: Likewise.
34224         * tests/test-freadable.c: Likewise.
34225         * tests/test-freadahead.c: Likewise.
34226         * tests/test-freading.c: Likewise.
34227         * tests/test-freadptr.c: Likewise.
34228         * tests/test-freadptr2.c: Likewise.
34229         * tests/test-freadseek.c: Likewise.
34230         * tests/test-freopen.c: Likewise.
34231         * tests/test-frexp.c: Likewise.
34232         * tests/test-frexpl.c: Likewise.
34233         * tests/test-fseek.c: Likewise.
34234         * tests/test-fseeko.c: Likewise.
34235         * tests/test-fstatat.c: Likewise.
34236         * tests/test-fstrcmp.c: Likewise.
34237         * tests/test-fsync.c: Likewise.
34238         * tests/test-ftell.c: Likewise.
34239         * tests/test-ftello.c: Likewise.
34240         * tests/test-func.c: Likewise.
34241         * tests/test-futimens.c: Likewise.
34242         * tests/test-fwritable.c: Likewise.
34243         * tests/test-fwriting.c: Likewise.
34244         * tests/test-getcwd.c: Likewise.
34245         * tests/test-getdate.c: Likewise.
34246         * tests/test-getdelim.c: Likewise.
34247         * tests/test-getdtablesize.c: Likewise.
34248         * tests/test-getgroups.c: Likewise.
34249         * tests/test-getline.c: Likewise.
34250         * tests/test-getndelim2.c: Likewise.
34251         * tests/test-glob.c: Likewise.
34252         * tests/test-hash.c: Likewise.
34253         * tests/test-i-ring.c: Likewise.
34254         * tests/test-iconv-utf.c: Likewise.
34255         * tests/test-iconv.c: Likewise.
34256         * tests/test-idpriv-drop.c: Likewise.
34257         * tests/test-idpriv-droptemp.c: Likewise.
34258         * tests/test-inet_ntop.c: Likewise.
34259         * tests/test-inet_pton.c: Likewise.
34260         * tests/test-isblank.c: Likewise.
34261         * tests/test-isfinite.c: Likewise.
34262         * tests/test-isinf.c: Likewise.
34263         * tests/test-isnan.c: Likewise.
34264         * tests/test-isnand.h: Likewise.
34265         * tests/test-isnanf.h: Likewise.
34266         * tests/test-isnanl.h: Likewise.
34267         * tests/test-lchown.c: Likewise.
34268         * tests/test-ldexpl.c: Likewise.
34269         * tests/test-link.c: Likewise.
34270         * tests/test-linkat.c: Likewise.
34271         * tests/test-linked_list.c: Likewise.
34272         * tests/test-linkedhash_list.c: Likewise.
34273         * tests/test-localename.c: Likewise.
34274         * tests/test-lseek.c: Likewise.
34275         * tests/test-lstat.c: Likewise.
34276         * tests/test-mbmemcasecmp.c: Likewise.
34277         * tests/test-mbmemcasecoll.c: Likewise.
34278         * tests/test-mbrtowc.c: Likewise.
34279         * tests/test-mbscasecmp.c: Likewise.
34280         * tests/test-mbscasestr1.c: Likewise.
34281         * tests/test-mbscasestr2.c: Likewise.
34282         * tests/test-mbscasestr3.c: Likewise.
34283         * tests/test-mbscasestr4.c: Likewise.
34284         * tests/test-mbschr.c: Likewise.
34285         * tests/test-mbscspn.c: Likewise.
34286         * tests/test-mbsinit.c: Likewise.
34287         * tests/test-mbsncasecmp.c: Likewise.
34288         * tests/test-mbsnrtowcs.c: Likewise.
34289         * tests/test-mbspbrk.c: Likewise.
34290         * tests/test-mbspcasecmp.c: Likewise.
34291         * tests/test-mbsrchr.c: Likewise.
34292         * tests/test-mbsrtowcs.c: Likewise.
34293         * tests/test-mbsspn.c: Likewise.
34294         * tests/test-mbsstr1.c: Likewise.
34295         * tests/test-mbsstr2.c: Likewise.
34296         * tests/test-mbsstr3.c: Likewise.
34297         * tests/test-memchr.c: Likewise.
34298         * tests/test-memchr2.c: Likewise.
34299         * tests/test-memcmp.c: Likewise.
34300         * tests/test-memmem.c: Likewise.
34301         * tests/test-memrchr.c: Likewise.
34302         * tests/test-mkdir.c: Likewise.
34303         * tests/test-mkdirat.c: Likewise.
34304         * tests/test-mkfifo.c: Likewise.
34305         * tests/test-mkfifoat.c: Likewise.
34306         * tests/test-mknod.c: Likewise.
34307         * tests/test-nanosleep.c: Likewise.
34308         * tests/test-nl_langinfo.c: Likewise.
34309         * tests/test-obstack-printf.c: Likewise.
34310         * tests/test-open.c: Likewise.
34311         * tests/test-openat.c: Likewise.
34312         * tests/test-pipe-filter-gi1.c: Likewise.
34313         * tests/test-pipe-filter-gi2-main.c: Likewise.
34314         * tests/test-pipe-filter-ii1.c: Likewise.
34315         * tests/test-pipe-filter-ii2-main.c: Likewise.
34316         * tests/test-pipe2.c: Likewise.
34317         * tests/test-popen.h: Likewise.
34318         * tests/test-posixtm.c: Likewise.
34319         * tests/test-pread.c: Likewise.
34320         * tests/test-printf-frexp.c: Likewise.
34321         * tests/test-printf-frexpl.c: Likewise.
34322         * tests/test-printf-posix.c: Likewise.
34323         * tests/test-priv-set.c: Likewise.
34324         * tests/test-quotearg.c: Likewise.
34325         * tests/test-random_r.c: Likewise.
34326         * tests/test-rawmemchr.c: Likewise.
34327         * tests/test-rbtree_list.c: Likewise.
34328         * tests/test-rbtree_oset.c: Likewise.
34329         * tests/test-rbtreehash_list.c: Likewise.
34330         * tests/test-readlink.c: Likewise.
34331         * tests/test-remove.c: Likewise.
34332         * tests/test-rename.c: Likewise.
34333         * tests/test-renameat.c: Likewise.
34334         * tests/test-rmdir.c: Likewise.
34335         * tests/test-round1.c: Likewise.
34336         * tests/test-roundf1.c: Likewise.
34337         * tests/test-roundl.c: Likewise.
34338         * tests/test-safe-alloc.c: Likewise.
34339         * tests/test-sameacls.c: Likewise.
34340         * tests/test-set-mode-acl.c: Likewise.
34341         * tests/test-setenv.c: Likewise.
34342         * tests/test-sigaction.c: Likewise.
34343         * tests/test-signbit.c: Likewise.
34344         * tests/test-sleep.c: Likewise.
34345         * tests/test-snprintf-posix.c: Likewise.
34346         * tests/test-snprintf.c: Likewise.
34347         * tests/test-sprintf-posix.c: Likewise.
34348         * tests/test-stat-time.c: Likewise.
34349         * tests/test-stat.c: Likewise.
34350         * tests/test-strcasestr.c: Likewise.
34351         * tests/test-strchrnul.c: Likewise.
34352         * tests/test-strerror.c: Likewise.
34353         * tests/test-striconv.c: Likewise.
34354         * tests/test-striconveh.c: Likewise.
34355         * tests/test-striconveha.c: Likewise.
34356         * tests/test-strsignal.c: Likewise.
34357         * tests/test-strstr.c: Likewise.
34358         * tests/test-strtod.c: Likewise.
34359         * tests/test-strverscmp.c: Likewise.
34360         * tests/test-symlink.c: Likewise.
34361         * tests/test-symlinkat.c: Likewise.
34362         * tests/test-trunc1.c: Likewise.
34363         * tests/test-trunc2.c: Likewise.
34364         * tests/test-truncf1.c: Likewise.
34365         * tests/test-truncf2.c: Likewise.
34366         * tests/test-truncl.c: Likewise.
34367         * tests/test-uname.c: Likewise.
34368         * tests/test-unlink.c: Likewise.
34369         * tests/test-unlinkat.c: Likewise.
34370         * tests/test-unsetenv.c: Likewise.
34371         * tests/test-usleep.c: Likewise.
34372         * tests/test-utimens.c: Likewise.
34373         * tests/test-utimensat.c: Likewise.
34374         * tests/test-vasnprintf-posix.c: Likewise.
34375         * tests/test-vasnprintf-posix2.c: Likewise.
34376         * tests/test-vasnprintf.c: Likewise.
34377         * tests/test-vasprintf-posix.c: Likewise.
34378         * tests/test-vasprintf.c: Likewise.
34379         * tests/test-vdprintf-posix.c: Likewise.
34380         * tests/test-vfprintf-posix.c: Likewise.
34381         * tests/test-vprintf-posix.c: Likewise.
34382         * tests/test-vsnprintf-posix.c: Likewise.
34383         * tests/test-vsnprintf.c: Likewise.
34384         * tests/test-vsprintf-posix.c: Likewise.
34385         * tests/test-wcrtomb.c: Likewise.
34386         * tests/test-wcsnrtombs.c: Likewise.
34387         * tests/test-wcsrtombs.c: Likewise.
34388         * tests/test-wctype.c: Likewise.
34389         * tests/test-wcwidth.c: Likewise.
34390         * tests/test-xfprintf-posix.c: Likewise.
34391         * tests/test-xmemdup0.c: Likewise.
34392         * tests/test-xprintf-posix.c: Likewise.
34393         * tests/test-xvasprintf.c: Likewise.
34394         * tests/unicase/test-locale-language.c: Likewise.
34395         * tests/unicase/test-mapping-part1.h: Likewise.
34396         * tests/unicase/test-predicate-part1.h: Likewise.
34397         * tests/unicase/test-u8-casecmp.c: Likewise.
34398         * tests/unicase/test-u8-casecoll.c: Likewise.
34399         * tests/unicase/test-u8-casefold.c: Likewise.
34400         * tests/unicase/test-u8-is-cased.c: Likewise.
34401         * tests/unicase/test-u8-is-casefolded.c: Likewise.
34402         * tests/unicase/test-u8-is-lowercase.c: Likewise.
34403         * tests/unicase/test-u8-is-titlecase.c: Likewise.
34404         * tests/unicase/test-u8-is-uppercase.c: Likewise.
34405         * tests/unicase/test-u8-tolower.c: Likewise.
34406         * tests/unicase/test-u8-totitle.c: Likewise.
34407         * tests/unicase/test-u8-toupper.c: Likewise.
34408         * tests/unicase/test-u16-casecmp.c: Likewise.
34409         * tests/unicase/test-u16-casecoll.c: Likewise.
34410         * tests/unicase/test-u16-casefold.c: Likewise.
34411         * tests/unicase/test-u16-is-cased.c: Likewise.
34412         * tests/unicase/test-u16-is-casefolded.c: Likewise.
34413         * tests/unicase/test-u16-is-lowercase.c: Likewise.
34414         * tests/unicase/test-u16-is-titlecase.c: Likewise.
34415         * tests/unicase/test-u16-is-uppercase.c: Likewise.
34416         * tests/unicase/test-u16-tolower.c: Likewise.
34417         * tests/unicase/test-u16-totitle.c: Likewise.
34418         * tests/unicase/test-u16-toupper.c: Likewise.
34419         * tests/unicase/test-u32-casecmp.c: Likewise.
34420         * tests/unicase/test-u32-casecoll.c: Likewise.
34421         * tests/unicase/test-u32-casefold.c: Likewise.
34422         * tests/unicase/test-u32-is-cased.c: Likewise.
34423         * tests/unicase/test-u32-is-casefolded.c: Likewise.
34424         * tests/unicase/test-u32-is-lowercase.c: Likewise.
34425         * tests/unicase/test-u32-is-titlecase.c: Likewise.
34426         * tests/unicase/test-u32-is-uppercase.c: Likewise.
34427         * tests/unicase/test-u32-tolower.c: Likewise.
34428         * tests/unicase/test-u32-totitle.c: Likewise.
34429         * tests/unicase/test-u32-toupper.c: Likewise.
34430         * tests/unicase/test-ulc-casecmp.c: Likewise.
34431         * tests/unicase/test-ulc-casecoll.c: Likewise.
34432         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34433         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
34434         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34435         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34436         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
34437         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
34438         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34439         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34440         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34441         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
34442         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34443         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34444         * tests/unictype/test-bidi_byname.c: Likewise.
34445         * tests/unictype/test-bidi_name.c: Likewise.
34446         * tests/unictype/test-bidi_of.c: Likewise.
34447         * tests/unictype/test-bidi_test.c: Likewise.
34448         * tests/unictype/test-block_list.c: Likewise.
34449         * tests/unictype/test-block_of.c: Likewise.
34450         * tests/unictype/test-block_test.c: Likewise.
34451         * tests/unictype/test-categ_and.c: Likewise.
34452         * tests/unictype/test-categ_and_not.c: Likewise.
34453         * tests/unictype/test-categ_byname.c: Likewise.
34454         * tests/unictype/test-categ_name.c: Likewise.
34455         * tests/unictype/test-categ_none.c: Likewise.
34456         * tests/unictype/test-categ_of.c: Likewise.
34457         * tests/unictype/test-categ_or.c: Likewise.
34458         * tests/unictype/test-categ_test_withtable.c: Likewise.
34459         * tests/unictype/test-combining.c: Likewise.
34460         * tests/unictype/test-decdigit.c: Likewise.
34461         * tests/unictype/test-digit.c: Likewise.
34462         * tests/unictype/test-mirror.c: Likewise.
34463         * tests/unictype/test-numeric.c: Likewise.
34464         * tests/unictype/test-pr_byname.c: Likewise.
34465         * tests/unictype/test-pr_test.c: Likewise.
34466         * tests/unictype/test-predicate-part1.h: Likewise.
34467         * tests/unictype/test-scripts.c: Likewise.
34468         * tests/unictype/test-sy_c_ident.c: Likewise.
34469         * tests/unictype/test-sy_java_ident.c: Likewise.
34470         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
34471         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
34472         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
34473         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
34474         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
34475         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
34476         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
34477         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
34478         * tests/uninorm/test-canonical-decomposition.c: Likewise.
34479         * tests/uninorm/test-compat-decomposition.c: Likewise.
34480         * tests/uninorm/test-composition.c: Likewise.
34481         * tests/uninorm/test-decomposing-form.c: Likewise.
34482         * tests/uninorm/test-decomposition.c: Likewise.
34483         * tests/uninorm/test-u8-nfc.c: Likewise.
34484         * tests/uninorm/test-u8-nfd.c: Likewise.
34485         * tests/uninorm/test-u8-nfkc.c: Likewise.
34486         * tests/uninorm/test-u8-nfkd.c: Likewise.
34487         * tests/uninorm/test-u8-normcmp.c: Likewise.
34488         * tests/uninorm/test-u8-normcoll.c: Likewise.
34489         * tests/uninorm/test-u16-nfc.c: Likewise.
34490         * tests/uninorm/test-u16-nfd.c: Likewise.
34491         * tests/uninorm/test-u16-nfkc.c: Likewise.
34492         * tests/uninorm/test-u16-nfkd.c: Likewise.
34493         * tests/uninorm/test-u16-normcmp.c: Likewise.
34494         * tests/uninorm/test-u16-normcoll.c: Likewise.
34495         * tests/uninorm/test-u32-nfc.c: Likewise.
34496         * tests/uninorm/test-u32-nfd.c: Likewise.
34497         * tests/uninorm/test-u32-nfkc.c: Likewise.
34498         * tests/uninorm/test-u32-nfkd.c: Likewise.
34499         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34500         * tests/uninorm/test-u32-normcmp.c: Likewise.
34501         * tests/uninorm/test-u32-normcoll.c: Likewise.
34502         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
34503         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
34504         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
34505         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
34506         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
34507         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
34508         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
34509         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
34510         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
34511         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
34512         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
34513         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
34514         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
34515         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
34516         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
34517         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
34518         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
34519         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
34520         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
34521         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
34522         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
34523         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
34524         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
34525         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
34526         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
34527         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
34528         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
34529         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
34530         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
34531         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
34532         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
34533         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
34534         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
34535         * tests/uniwidth/test-u8-strwidth.c: Likewise.
34536         * tests/uniwidth/test-u8-width.c: Likewise.
34537         * tests/uniwidth/test-u16-strwidth.c: Likewise.
34538         * tests/uniwidth/test-u16-width.c: Likewise.
34539         * tests/uniwidth/test-u32-strwidth.c: Likewise.
34540         * tests/uniwidth/test-u32-width.c: Likewise.
34541         * tests/uniwidth/test-uc_width.c: Likewise.
34542         * tests/uniwidth/test-uc_width2.c: Likewise.
34543         * modules/acl-tests (Files): Add tests/macros.h.
34544         * modules/areadlink-tests (Files): Likewise.
34545         * modules/areadlink-with-size-tests (Files): Likewise.
34546         * modules/areadlinkat-tests (Files): Likewise.
34547         * modules/areadlinkat-with-size-tests (Files): Likewise.
34548         * modules/argmatch-tests (Files): Likewise.
34549         * modules/argv-iter-tests (Files): Likewise.
34550         * modules/array-list-tests (Files): Likewise.
34551         * modules/array-mergesort-tests (Files): Likewise.
34552         * modules/array-oset-tests (Files): Likewise.
34553         * modules/avltree-list-tests (Files): Likewise.
34554         * modules/avltree-oset-tests (Files): Likewise.
34555         * modules/avltreehash-list-tests (Files): Likewise.
34556         * modules/base64-tests (Files): Likewise.
34557         * modules/binary-io-tests (Files): Likewise.
34558         * modules/bitrotate-tests (Files): Likewise.
34559         * modules/btowc-tests (Files): Likewise.
34560         * modules/byteswap-tests (Files): Likewise.
34561         * modules/c-ctype-tests (Files): Likewise.
34562         * modules/c-stack-tests (Files): Likewise.
34563         * modules/c-strcase-tests (Files): Likewise.
34564         * modules/c-strcasestr-tests (Files): Likewise.
34565         * modules/c-strstr-tests (Files): Likewise.
34566         * modules/canonicalize-lgpl-tests (Files): Likewise.
34567         * modules/canonicalize-tests (Files): Likewise.
34568         * modules/carray-list-tests (Files): Likewise.
34569         * modules/ceilf-tests (Files): Likewise.
34570         * modules/ceill-tests (Files): Likewise.
34571         * modules/chown-tests (Files): Likewise.
34572         * modules/cloexec-tests (Files): Likewise.
34573         * modules/copy-file-tests (Files): Likewise.
34574         * modules/count-one-bits-tests (Files): Likewise.
34575         * modules/dprintf-posix-tests (Files): Likewise.
34576         * modules/dup2-tests (Files): Likewise.
34577         * modules/dup3-tests (Files): Likewise.
34578         * modules/duplocale-tests (Files): Likewise.
34579         * modules/fbufmode-tests (Files): Likewise.
34580         * modules/fchdir-tests (Files): Likewise.
34581         * modules/fcntl-safer-tests (Files): Likewise.
34582         * modules/fcntl-tests (Files): Likewise.
34583         * modules/fdopendir-tests (Files): Likewise.
34584         * modules/fdutimensat-tests (Files): Likewise.
34585         * modules/fflush-tests (Files): Likewise.
34586         * modules/filevercmp-tests (Files): Likewise.
34587         * modules/flock-tests (Files): Likewise.
34588         * modules/floorf-tests (Files): Likewise.
34589         * modules/floorl-tests (Files): Likewise.
34590         * modules/fnmatch-tests (Files): Likewise.
34591         * modules/fopen-safer-tests (Files): Likewise.
34592         * modules/fopen-tests (Files): Likewise.
34593         * modules/fpending-tests (Files): Likewise.
34594         * modules/fprintf-posix-tests (Files): Likewise.
34595         * modules/fpurge-tests (Files): Likewise.
34596         * modules/freadable-tests (Files): Likewise.
34597         * modules/freadahead-tests (Files): Likewise.
34598         * modules/freading-tests (Files): Likewise.
34599         * modules/freadptr-tests (Files): Likewise.
34600         * modules/freadseek-tests (Files): Likewise.
34601         * modules/freopen-tests (Files): Likewise.
34602         * modules/frexp-nolibm-tests (Files): Likewise.
34603         * modules/frexp-tests (Files): Likewise.
34604         * modules/frexpl-nolibm-tests (Files): Likewise.
34605         * modules/frexpl-tests (Files): Likewise.
34606         * modules/fseek-tests (Files): Likewise.
34607         * modules/fseeko-tests (Files): Likewise.
34608         * modules/fstrcmp-tests (Files): Likewise.
34609         * modules/fsync-tests (Files): Likewise.
34610         * modules/ftell-tests (Files): Likewise.
34611         * modules/ftello-tests (Files): Likewise.
34612         * modules/func-tests (Files): Likewise.
34613         * modules/futimens-tests (Files): Likewise.
34614         * modules/fwritable-tests (Files): Likewise.
34615         * modules/fwriting-tests (Files): Likewise.
34616         * modules/getcwd-tests (Files): Likewise.
34617         * modules/getdate-tests (Files): Likewise.
34618         * modules/getdelim-tests (Files): Likewise.
34619         * modules/getdtablesize-tests (Files): Likewise.
34620         * modules/getgroups-tests (Files): Likewise.
34621         * modules/getline-tests (Files): Likewise.
34622         * modules/getndelim2-tests (Files): Likewise.
34623         * modules/glob-tests (Files): Likewise.
34624         * modules/hash-tests (Files): Likewise.
34625         * modules/i-ring-tests (Files): Likewise.
34626         * modules/iconv-tests (Files): Likewise.
34627         * modules/iconv_open-utf-tests (Files): Likewise.
34628         * modules/idpriv-drop-tests (Files): Likewise.
34629         * modules/idpriv-droptemp-tests (Files): Likewise.
34630         * modules/inet_ntop-tests (Files): Likewise.
34631         * modules/inet_pton-tests (Files): Likewise.
34632         * modules/isblank-tests (Files): Likewise.
34633         * modules/isfinite-tests (Files): Likewise.
34634         * modules/isinf-tests (Files): Likewise.
34635         * modules/isnan-tests (Files): Likewise.
34636         * modules/isnand-nolibm-tests (Files): Likewise.
34637         * modules/isnand-tests (Files): Likewise.
34638         * modules/isnanf-nolibm-tests (Files): Likewise.
34639         * modules/isnanf-tests (Files): Likewise.
34640         * modules/isnanl-nolibm-tests (Files): Likewise.
34641         * modules/isnanl-tests (Files): Likewise.
34642         * modules/lchown-tests (Files): Likewise.
34643         * modules/ldexpl-tests (Files): Likewise.
34644         * modules/link-tests (Files): Likewise.
34645         * modules/linkat-tests (Files): Likewise.
34646         * modules/linked-list-tests (Files): Likewise.
34647         * modules/linkedhash-list-tests (Files): Likewise.
34648         * modules/localename-tests (Files): Likewise.
34649         * modules/lseek-tests (Files): Likewise.
34650         * modules/lstat-tests (Files): Likewise.
34651         * modules/mbmemcasecmp-tests (Files): Likewise.
34652         * modules/mbmemcasecoll-tests (Files): Likewise.
34653         * modules/mbrtowc-tests (Files): Likewise.
34654         * modules/mbscasecmp-tests (Files): Likewise.
34655         * modules/mbscasestr-tests (Files): Likewise.
34656         * modules/mbschr-tests (Files): Likewise.
34657         * modules/mbscspn-tests (Files): Likewise.
34658         * modules/mbsinit-tests (Files): Likewise.
34659         * modules/mbsncasecmp-tests (Files): Likewise.
34660         * modules/mbsnrtowcs-tests (Files): Likewise.
34661         * modules/mbspbrk-tests (Files): Likewise.
34662         * modules/mbspcasecmp-tests (Files): Likewise.
34663         * modules/mbsrchr-tests (Files): Likewise.
34664         * modules/mbsrtowcs-tests (Files): Likewise.
34665         * modules/mbsspn-tests (Files): Likewise.
34666         * modules/mbsstr-tests (Files): Likewise.
34667         * modules/memchr-tests (Files): Likewise.
34668         * modules/memchr2-tests (Files): Likewise.
34669         * modules/memcmp-tests (Files): Likewise.
34670         * modules/memmem-tests (Files): Likewise.
34671         * modules/memrchr-tests (Files): Likewise.
34672         * modules/mkdir-tests (Files): Likewise.
34673         * modules/mkfifo-tests (Files): Likewise.
34674         * modules/mkfifoat-tests (Files): Likewise.
34675         * modules/mknod-tests (Files): Likewise.
34676         * modules/nanosleep-tests (Files): Likewise.
34677         * modules/nl_langinfo-tests (Files): Likewise.
34678         * modules/obstack-printf-tests (Files): Likewise.
34679         * modules/open-tests (Files): Likewise.
34680         * modules/openat-tests (Files): Likewise.
34681         * modules/pipe-filter-gi-tests (Files): Likewise.
34682         * modules/pipe-filter-ii-tests (Files): Likewise.
34683         * modules/pipe2-tests (Files): Likewise.
34684         * modules/popen-safer-tests (Files): Likewise.
34685         * modules/popen-tests (Files): Likewise.
34686         * modules/posixtm-tests (Files): Likewise.
34687         * modules/pread-tests (Files): Likewise.
34688         * modules/printf-frexp-tests (Files): Likewise.
34689         * modules/printf-frexpl-tests (Files): Likewise.
34690         * modules/printf-posix-tests (Files): Likewise.
34691         * modules/priv-set-tests (Files): Likewise.
34692         * modules/quotearg-tests (Files): Likewise.
34693         * modules/random_r-tests (Files): Likewise.
34694         * modules/rawmemchr-tests (Files): Likewise.
34695         * modules/rbtree-list-tests (Files): Likewise.
34696         * modules/rbtree-oset-tests (Files): Likewise.
34697         * modules/rbtreehash-list-tests (Files): Likewise.
34698         * modules/readlink-tests (Files): Likewise.
34699         * modules/remove-tests (Files): Likewise.
34700         * modules/rename-tests (Files): Likewise.
34701         * modules/renameat-tests (Files): Likewise.
34702         * modules/rmdir-tests (Files): Likewise.
34703         * modules/round-tests (Files): Likewise.
34704         * modules/roundf-tests (Files): Likewise.
34705         * modules/roundl-tests (Files): Likewise.
34706         * modules/safe-alloc-tests (Files): Likewise.
34707         * modules/setenv-tests (Files): Likewise.
34708         * modules/sigaction-tests (Files): Likewise.
34709         * modules/signbit-tests (Files): Likewise.
34710         * modules/sleep-tests (Files): Likewise.
34711         * modules/snprintf-posix-tests (Files): Likewise.
34712         * modules/snprintf-tests (Files): Likewise.
34713         * modules/sprintf-posix-tests (Files): Likewise.
34714         * modules/stat-tests (Files): Likewise.
34715         * modules/stat-time-tests (Files): Likewise.
34716         * modules/strcasestr-tests (Files): Likewise.
34717         * modules/strchrnul-tests (Files): Likewise.
34718         * modules/strerror-tests (Files): Likewise.
34719         * modules/striconv-tests (Files): Likewise.
34720         * modules/striconveh-tests (Files): Likewise.
34721         * modules/striconveha-tests (Files): Likewise.
34722         * modules/strsignal-tests (Files): Likewise.
34723         * modules/strstr-tests (Files): Likewise.
34724         * modules/strtod-tests (Files): Likewise.
34725         * modules/strverscmp-tests (Files): Likewise.
34726         * modules/symlink-tests (Files): Likewise.
34727         * modules/symlinkat-tests (Files): Likewise.
34728         * modules/trunc-tests (Files): Likewise.
34729         * modules/truncf-tests (Files): Likewise.
34730         * modules/truncl-tests (Files): Likewise.
34731         * modules/uname-tests (Files): Likewise.
34732         * modules/unicase/cased-tests (Files): Likewise.
34733         * modules/unicase/ignorable-tests (Files): Likewise.
34734         * modules/unicase/locale-language-tests (Files): Likewise.
34735         * modules/unicase/tolower-tests (Files): Likewise.
34736         * modules/unicase/totitle-tests (Files): Likewise.
34737         * modules/unicase/toupper-tests (Files): Likewise.
34738         * modules/unicase/u8-casecmp-tests (Files): Likewise.
34739         * modules/unicase/u8-casecoll-tests (Files): Likewise.
34740         * modules/unicase/u8-casefold-tests (Files): Likewise.
34741         * modules/unicase/u8-is-cased-tests (Files): Likewise.
34742         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
34743         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
34744         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
34745         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
34746         * modules/unicase/u8-tolower-tests (Files): Likewise.
34747         * modules/unicase/u8-totitle-tests (Files): Likewise.
34748         * modules/unicase/u8-toupper-tests (Files): Likewise.
34749         * modules/unicase/u16-casecmp-tests (Files): Likewise.
34750         * modules/unicase/u16-casecoll-tests (Files): Likewise.
34751         * modules/unicase/u16-casefold-tests (Files): Likewise.
34752         * modules/unicase/u16-is-cased-tests (Files): Likewise.
34753         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
34754         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
34755         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
34756         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
34757         * modules/unicase/u16-tolower-tests (Files): Likewise.
34758         * modules/unicase/u16-totitle-tests (Files): Likewise.
34759         * modules/unicase/u16-toupper-tests (Files): Likewise.
34760         * modules/unicase/u32-casecmp-tests (Files): Likewise.
34761         * modules/unicase/u32-casecoll-tests (Files): Likewise.
34762         * modules/unicase/u32-casefold-tests (Files): Likewise.
34763         * modules/unicase/u32-is-cased-tests (Files): Likewise.
34764         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
34765         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
34766         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
34767         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
34768         * modules/unicase/u32-tolower-tests (Files): Likewise.
34769         * modules/unicase/u32-totitle-tests (Files): Likewise.
34770         * modules/unicase/u32-toupper-tests (Files): Likewise.
34771         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
34772         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
34773         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
34774         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
34775         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
34776         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
34777         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
34778         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
34779         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
34780         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
34781         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
34782         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
34783         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
34784         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
34785         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
34786         * modules/unictype/bidicategory-name-tests (Files): Likewise.
34787         * modules/unictype/bidicategory-of-tests (Files): Likewise.
34788         * modules/unictype/bidicategory-test-tests (Files): Likewise.
34789         * modules/unictype/block-list-tests (Files): Likewise.
34790         * modules/unictype/block-of-tests (Files): Likewise.
34791         * modules/unictype/block-test-tests (Files): Likewise.
34792         * modules/unictype/category-C-tests (Files): Likewise.
34793         * modules/unictype/category-Cc-tests (Files): Likewise.
34794         * modules/unictype/category-Cf-tests (Files): Likewise.
34795         * modules/unictype/category-Cn-tests (Files): Likewise.
34796         * modules/unictype/category-Co-tests (Files): Likewise.
34797         * modules/unictype/category-Cs-tests (Files): Likewise.
34798         * modules/unictype/category-L-tests (Files): Likewise.
34799         * modules/unictype/category-Ll-tests (Files): Likewise.
34800         * modules/unictype/category-Lm-tests (Files): Likewise.
34801         * modules/unictype/category-Lo-tests (Files): Likewise.
34802         * modules/unictype/category-Lt-tests (Files): Likewise.
34803         * modules/unictype/category-Lu-tests (Files): Likewise.
34804         * modules/unictype/category-M-tests (Files): Likewise.
34805         * modules/unictype/category-Mc-tests (Files): Likewise.
34806         * modules/unictype/category-Me-tests (Files): Likewise.
34807         * modules/unictype/category-Mn-tests (Files): Likewise.
34808         * modules/unictype/category-N-tests (Files): Likewise.
34809         * modules/unictype/category-Nd-tests (Files): Likewise.
34810         * modules/unictype/category-Nl-tests (Files): Likewise.
34811         * modules/unictype/category-No-tests (Files): Likewise.
34812         * modules/unictype/category-P-tests (Files): Likewise.
34813         * modules/unictype/category-Pc-tests (Files): Likewise.
34814         * modules/unictype/category-Pd-tests (Files): Likewise.
34815         * modules/unictype/category-Pe-tests (Files): Likewise.
34816         * modules/unictype/category-Pf-tests (Files): Likewise.
34817         * modules/unictype/category-Pi-tests (Files): Likewise.
34818         * modules/unictype/category-Po-tests (Files): Likewise.
34819         * modules/unictype/category-Ps-tests (Files): Likewise.
34820         * modules/unictype/category-S-tests (Files): Likewise.
34821         * modules/unictype/category-Sc-tests (Files): Likewise.
34822         * modules/unictype/category-Sk-tests (Files): Likewise.
34823         * modules/unictype/category-Sm-tests (Files): Likewise.
34824         * modules/unictype/category-So-tests (Files): Likewise.
34825         * modules/unictype/category-Z-tests (Files): Likewise.
34826         * modules/unictype/category-Zl-tests (Files): Likewise.
34827         * modules/unictype/category-Zp-tests (Files): Likewise.
34828         * modules/unictype/category-Zs-tests (Files): Likewise.
34829         * modules/unictype/category-and-not-tests (Files): Likewise.
34830         * modules/unictype/category-and-tests (Files): Likewise.
34831         * modules/unictype/category-byname-tests (Files): Likewise.
34832         * modules/unictype/category-name-tests (Files): Likewise.
34833         * modules/unictype/category-none-tests (Files): Likewise.
34834         * modules/unictype/category-of-tests (Files): Likewise.
34835         * modules/unictype/category-or-tests (Files): Likewise.
34836         * modules/unictype/category-test-withtable-tests (Files): Likewise.
34837         * modules/unictype/combining-class-tests (Files): Likewise.
34838         * modules/unictype/ctype-alnum-tests (Files): Likewise.
34839         * modules/unictype/ctype-alpha-tests (Files): Likewise.
34840         * modules/unictype/ctype-blank-tests (Files): Likewise.
34841         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
34842         * modules/unictype/ctype-digit-tests (Files): Likewise.
34843         * modules/unictype/ctype-graph-tests (Files): Likewise.
34844         * modules/unictype/ctype-lower-tests (Files): Likewise.
34845         * modules/unictype/ctype-print-tests (Files): Likewise.
34846         * modules/unictype/ctype-punct-tests (Files): Likewise.
34847         * modules/unictype/ctype-space-tests (Files): Likewise.
34848         * modules/unictype/ctype-upper-tests (Files): Likewise.
34849         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
34850         * modules/unictype/decimal-digit-tests (Files): Likewise.
34851         * modules/unictype/digit-tests (Files): Likewise.
34852         * modules/unictype/mirror-tests (Files): Likewise.
34853         * modules/unictype/numeric-tests (Files): Likewise.
34854         * modules/unictype/property-alphabetic-tests (Files): Likewise.
34855         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
34856         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
34857         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
34858         Likewise.
34859         * modules/unictype/property-bidi-block-separator-tests (Files):
34860         Likewise.
34861         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
34862         Likewise.
34863         * modules/unictype/property-bidi-common-separator-tests (Files):
34864         Likewise.
34865         * modules/unictype/property-bidi-control-tests (Files): Likewise.
34866         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
34867         Likewise.
34868         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
34869         Likewise.
34870         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
34871         Likewise.
34872         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
34873         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
34874         Likewise.
34875         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
34876         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
34877         Likewise.
34878         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
34879         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
34880         * modules/unictype/property-bidi-segment-separator-tests (Files):
34881         Likewise.
34882         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
34883         * modules/unictype/property-byname-tests (Files): Likewise.
34884         * modules/unictype/property-combining-tests (Files): Likewise.
34885         * modules/unictype/property-composite-tests (Files): Likewise.
34886         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
34887         * modules/unictype/property-dash-tests (Files): Likewise.
34888         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
34889         * modules/unictype/property-default-ignorable-code-point-tests (Files):
34890         Likewise.
34891         * modules/unictype/property-deprecated-tests (Files): Likewise.
34892         * modules/unictype/property-diacritic-tests (Files): Likewise.
34893         * modules/unictype/property-extender-tests (Files): Likewise.
34894         * modules/unictype/property-format-control-tests (Files): Likewise.
34895         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
34896         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
34897         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
34898         * modules/unictype/property-hex-digit-tests (Files): Likewise.
34899         * modules/unictype/property-hyphen-tests (Files): Likewise.
34900         * modules/unictype/property-id-continue-tests (Files): Likewise.
34901         * modules/unictype/property-id-start-tests (Files): Likewise.
34902         * modules/unictype/property-ideographic-tests (Files): Likewise.
34903         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
34904         * modules/unictype/property-ids-trinary-operator-tests (Files):
34905         Likewise.
34906         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
34907         * modules/unictype/property-iso-control-tests (Files): Likewise.
34908         * modules/unictype/property-join-control-tests (Files): Likewise.
34909         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
34910         * modules/unictype/property-line-separator-tests (Files): Likewise.
34911         * modules/unictype/property-logical-order-exception-tests (Files):
34912         Likewise.
34913         * modules/unictype/property-lowercase-tests (Files): Likewise.
34914         * modules/unictype/property-math-tests (Files): Likewise.
34915         * modules/unictype/property-non-break-tests (Files): Likewise.
34916         * modules/unictype/property-not-a-character-tests (Files): Likewise.
34917         * modules/unictype/property-numeric-tests (Files): Likewise.
34918         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
34919         * modules/unictype/property-other-default-ignorable-code-point-tests
34920         (Files): Likewise.
34921         * modules/unictype/property-other-grapheme-extend-tests (Files):
34922         Likewise.
34923         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
34924         * modules/unictype/property-other-id-start-tests (Files): Likewise.
34925         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
34926         * modules/unictype/property-other-math-tests (Files): Likewise.
34927         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
34928         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
34929         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
34930         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
34931         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
34932         * modules/unictype/property-private-use-tests (Files): Likewise.
34933         * modules/unictype/property-punctuation-tests (Files): Likewise.
34934         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
34935         * modules/unictype/property-radical-tests (Files): Likewise.
34936         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
34937         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
34938         * modules/unictype/property-space-tests (Files): Likewise.
34939         * modules/unictype/property-terminal-punctuation-tests (Files):
34940         Likewise.
34941         * modules/unictype/property-test-tests (Files): Likewise.
34942         * modules/unictype/property-titlecase-tests (Files): Likewise.
34943         * modules/unictype/property-unassigned-code-value-tests (Files):
34944         Likewise.
34945         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
34946         * modules/unictype/property-uppercase-tests (Files): Likewise.
34947         * modules/unictype/property-variation-selector-tests (Files): Likewise.
34948         * modules/unictype/property-white-space-tests (Files): Likewise.
34949         * modules/unictype/property-xid-continue-tests (Files): Likewise.
34950         * modules/unictype/property-xid-start-tests (Files): Likewise.
34951         * modules/unictype/property-zero-width-tests (Files): Likewise.
34952         * modules/unictype/scripts-tests (Files): Likewise.
34953         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
34954         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
34955         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
34956         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
34957         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
34958         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
34959         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
34960         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
34961         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
34962         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
34963         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
34964         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
34965         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
34966         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
34967         * modules/uninorm/composition-tests (Files): Likewise.
34968         * modules/uninorm/decomposing-form-tests (Files): Likewise.
34969         * modules/uninorm/decomposition-tests (Files): Likewise.
34970         * modules/uninorm/filter-tests (Files): Likewise.
34971         * modules/uninorm/nfc-tests (Files): Likewise.
34972         * modules/uninorm/nfd-tests (Files): Likewise.
34973         * modules/uninorm/nfkc-tests (Files): Likewise.
34974         * modules/uninorm/nfkd-tests (Files): Likewise.
34975         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
34976         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
34977         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
34978         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
34979         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
34980         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
34981         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
34982         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
34983         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
34984         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
34985         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
34986         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
34987         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
34988         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
34989         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
34990         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
34991         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
34992         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
34993         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
34994         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
34995         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
34996         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
34997         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
34998         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
34999         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35000         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35001         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35002         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35003         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35004         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35005         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35006         * modules/uniwidth/u8-width-tests (Files): Likewise.
35007         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35008         * modules/uniwidth/u16-width-tests (Files): Likewise.
35009         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35010         * modules/uniwidth/u32-width-tests (Files): Likewise.
35011         * modules/uniwidth/width-tests (Files): Likewise.
35012         * modules/unlink-tests (Files): Likewise.
35013         * modules/unsetenv-tests (Files): Likewise.
35014         * modules/usleep-tests (Files): Likewise.
35015         * modules/utimens-tests (Files): Likewise.
35016         * modules/utimensat-tests (Files): Likewise.
35017         * modules/vasnprintf-posix-tests (Files): Likewise.
35018         * modules/vasnprintf-tests (Files): Likewise.
35019         * modules/vasprintf-posix-tests (Files): Likewise.
35020         * modules/vasprintf-tests (Files): Likewise.
35021         * modules/vdprintf-posix-tests (Files): Likewise.
35022         * modules/vfprintf-posix-tests (Files): Likewise.
35023         * modules/vprintf-posix-tests (Files): Likewise.
35024         * modules/vsnprintf-posix-tests (Files): Likewise.
35025         * modules/vsnprintf-tests (Files): Likewise.
35026         * modules/vsprintf-posix-tests (Files): Likewise.
35027         * modules/wcrtomb-tests (Files): Likewise.
35028         * modules/wcsnrtombs-tests (Files): Likewise.
35029         * modules/wcsrtombs-tests (Files): Likewise.
35030         * modules/wctype-tests (Files): Likewise.
35031         * modules/wcwidth-tests (Files): Likewise.
35032         * modules/xmemdup0-tests (Files): Likewise.
35033         * modules/xprintf-posix-tests (Files): Likewise.
35034         * modules/xvasprintf-tests (Files): Likewise.
35035
35036 2009-12-24  Eric Blake  <ebb9@byu.net>
35037
35038         test-nanosleep: fix typo
35039         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
35040         patch.
35041         Reported by Bruno Haible.
35042
35043 2009-12-24  Bruno Haible  <bruno@clisp.org>
35044
35045         Reduce namespace pollution on glibc systems.
35046         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
35047         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
35048         systems.
35049         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
35050         <getopt.h> on glibc systems.
35051         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
35052         systems.
35053         * lib/fcntl.c: Include <unistd.h> here instead.
35054
35055 2009-12-24  Bruno Haible  <bruno@clisp.org>
35056
35057         * lib/stdlib.in.h (includes): Fix typo in today's commit.
35058
35059 2009-12-24  Eric Blake  <ebb9@byu.net>
35060
35061         tests: add signature checks
35062         * tests/signature.h (SIGNATURE_CHECK): New file.
35063         * modules/atexit-tests (Files): Use it.
35064         * modules/btowc-tests (Files): Likewise.
35065         * modules/canonicalize-lgpl-tests (Files): Likewise.
35066         * modules/ceilf-tests (Files): Likewise.
35067         * modules/ceill-tests (Files): Likewise.
35068         * modules/chown-tests (Files): Likewise.
35069         * modules/dprintf-posix-tests (Files): Likewise.
35070         * modules/dup2-tests (Files): Likewise.
35071         * modules/dup3-tests (Files): Likewise.
35072         * modules/duplocale-tests (Files): Likewise.
35073         * modules/fchdir-tests (Files): Likewise.
35074         * modules/fcntl-tests (Files): Likewise.
35075         * modules/fdopendir-tests (Files): Likewise.
35076         * modules/fflush-tests (Files): Likewise.
35077         * modules/flock-tests (Files): Likewise.
35078         * modules/floorf-tests (Files): Likewise.
35079         * modules/floorl-tests (Files): Likewise.
35080         * modules/fnmatch-tests (Files): Likewise.
35081         * modules/fopen-tests (Files): Likewise.
35082         * modules/fprintf-posix-tests (Files): Likewise.
35083         * modules/freopen-tests (Files): Likewise.
35084         * modules/frexp-nolibm-tests (Files): Likewise.
35085         * modules/frexp-tests (Files): Likewise.
35086         * modules/frexpl-nolibm-tests (Files): Likewise.
35087         * modules/frexpl-tests (Files): Likewise.
35088         * modules/fseek-tests (Files): Likewise.
35089         * modules/fseeko-tests (Files): Likewise.
35090         * modules/fsync-tests (Files): Likewise.
35091         * modules/ftell-tests (Files): Likewise.
35092         * modules/ftello-tests (Files): Likewise.
35093         * modules/futimens-tests (Files): Likewise.
35094         * modules/getaddrinfo-tests (Files): Likewise.
35095         * modules/getcwd-tests (Files): Likewise.
35096         * modules/getdelim-tests (Files): Likewise.
35097         * modules/getdtablesize-tests (Files): Likewise.
35098         * modules/getgroups-tests (Files): Likewise.
35099         * modules/gethostname-tests (Files): Likewise.
35100         * modules/getline-tests (Files): Likewise.
35101         * modules/getopt-posix-tests (Files): Likewise.
35102         * modules/gettimeofday-tests (Files): Likewise.
35103         * modules/glob-tests (Files): Likewise.
35104         * modules/iconv-tests (Files): Likewise.
35105         * modules/inet_ntop-tests (Files): Likewise.
35106         * modules/inet_pton-tests (Files): Likewise.
35107         * modules/isblank-tests (Files): Likewise.
35108         * modules/lchown-tests (Files): Likewise.
35109         * modules/ldexpl-tests (Files): Likewise.
35110         * modules/link-tests (Files): Likewise.
35111         * modules/linkat-tests (Files): Likewise.
35112         * modules/lseek-tests (Files): Likewise.
35113         * modules/lstat-tests (Files): Likewise.
35114         * modules/mbrtowc-tests (Files): Likewise.
35115         * modules/mbsinit-tests (Files): Likewise.
35116         * modules/mbsnrtowcs-tests (Files): Likewise.
35117         * modules/mbsrtowcs-tests (Files): Likewise.
35118         * modules/memchr-tests (Files): Likewise.
35119         * modules/memcmp-tests (Files): Likewise.
35120         * modules/memmem-tests (Files): Likewise.
35121         * modules/memrchr-tests (Files): Likewise.
35122         * modules/mkdir-tests (Files): Likewise.
35123         * modules/mkfifo-tests (Files): Likewise.
35124         * modules/mkfifoat-tests (Files): Likewise.
35125         * modules/mknod-tests (Files): Likewise.
35126         * modules/nanosleep-tests (Files): Likewise.
35127         * modules/nl_langinfo-tests (Files): Likewise.
35128         * modules/obstack-printf-tests (Files): Likewise.
35129         * modules/open-tests (Files): Likewise.
35130         * modules/openat-tests (Files): Likewise.
35131         * modules/perror-tests (Files): Likewise.
35132         * modules/pipe2-tests (Files): Likewise.
35133         * modules/poll-tests (Files): Likewise.
35134         * modules/popen-tests (Files): Likewise.
35135         * modules/posix_spawn-tests (Files): Likewise.
35136         * modules/posix_spawnp-tests (Files): Likewise.
35137         * modules/pread-tests (Files): Likewise.
35138         * modules/printf-posix-tests (Files): Likewise.
35139         * modules/pty-tests (Files): Likewise.
35140         * modules/random_r-tests (Files): Likewise.
35141         * modules/rawmemchr-tests (Files): Likewise.
35142         * modules/readlink-tests (Files): Likewise.
35143         * modules/remove-tests (Files): Likewise.
35144         * modules/rename-tests (Files): Likewise.
35145         * modules/renameat-tests (Files): Likewise.
35146         * modules/rmdir-tests (Files): Likewise.
35147         * modules/round-tests (Files): Likewise.
35148         * modules/roundf-tests (Files): Likewise.
35149         * modules/roundl-tests (Files): Likewise.
35150         * modules/select-tests (Files): Likewise.
35151         * modules/setenv-tests (Files): Likewise.
35152         * modules/sigaction-tests (Files): Likewise.
35153         * modules/sleep-tests (Files): Likewise.
35154         * modules/snprintf-posix-tests (Files): Likewise.
35155         * modules/snprintf-tests (Files): Likewise.
35156         * modules/sprintf-posix-tests (Files): Likewise.
35157         * modules/stat-tests (Files): Likewise.
35158         * modules/strcasestr-tests (Files): Likewise.
35159         * modules/strchrnul-tests (Files): Likewise.
35160         * modules/strerror-tests (Files): Likewise.
35161         * modules/strsignal-tests (Files): Likewise.
35162         * modules/strstr-tests (Files): Likewise.
35163         * modules/strtod-tests (Files): Likewise.
35164         * modules/strverscmp-tests (Files): Likewise.
35165         * modules/symlink-tests (Files): Likewise.
35166         * modules/symlinkat-tests (Files): Likewise.
35167         * modules/times-tests (Files): Likewise.
35168         * modules/trunc-tests (Files): Likewise.
35169         * modules/truncf-tests (Files): Likewise.
35170         * modules/truncl-tests (Files): Likewise.
35171         * modules/tsearch-tests (Files): Likewise.
35172         * modules/uname-tests (Files): Likewise.
35173         * modules/unlink-tests (Files): Likewise.
35174         * modules/unsetenv-tests (Files): Likewise.
35175         * modules/usleep-tests (Files): Likewise.
35176         * modules/utimensat-tests (Files): Likewise.
35177         * modules/vasprintf-tests (Files): Likewise.
35178         * modules/vdprintf-posix-tests (Files): Likewise.
35179         * modules/vfprintf-posix-tests (Files): Likewise.
35180         * modules/vprintf-posix-tests (Files): Likewise.
35181         * modules/vsnprintf-posix-tests (Files): Likewise.
35182         * modules/vsnprintf-tests (Files): Likewise.
35183         * modules/vsprintf-posix-tests (Files): Likewise.
35184         * modules/wcrtomb-tests (Files): Likewise.
35185         * modules/wcsnrtombs-tests (Files): Likewise.
35186         * modules/wcsrtombs-tests (Files): Likewise.
35187         * modules/wcwidth-tests (Files): Likewise.
35188         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
35189         * tests/test-isinf.c (isinf): Likewise.
35190         * tests/test-isnan.c (isnan): Likewise.
35191         * tests/test-signbit.c (signbit): Likewise.
35192         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
35193         declaration, either as macro or with correct signature.
35194         (select): Ensure function under test is declared with correct
35195         signature in correct header.
35196         * tests/test-atexit.c (atexit): Likewise.
35197         * tests/test-btowc.c (btowc): Likewise.
35198         * tests/test-canonicalize-lgpl.c (realpath)
35199         (canonicalize_file_name): Likewise.
35200         * tests/test-ceilf1.c (ceilf): Likewise.
35201         * tests/test-ceill.c (ceill): Likewise.
35202         * tests/test-chown.c (chown): Likewise.
35203         * tests/test-dprintf-posix.c (dprintf): Likewise.
35204         * tests/test-dup2.c (dup2): Likewise.
35205         * tests/test-dup3.c (dup3): Likewise.
35206         * tests/test-duplocale.c (duplocale): Likewise.
35207         * tests/test-fchdir.c (fchdir): Likewise.
35208         * tests/test-fchownat.c (fchownat): Likewise.
35209         * tests/test-fcntl.c (fcntl): Likewise.
35210         * tests/test-fdopendir.c (fdopendir): Likewise.
35211         * tests/test-fflush.c (fflush): Likewise.
35212         * tests/test-flock.c (flock): Likewise.
35213         * tests/test-floorf1.c (floorf): Likewise.
35214         * tests/test-floorl.c (floorl): Likewise.
35215         * tests/test-fnmatch.c (fnmatch): Likewise.
35216         * tests/test-fopen.c (fopen): Likewise.
35217         * tests/test-fprintf-posix.c (fprintf): Likewise.
35218         * tests/test-freopen.c (freopen): Likewise.
35219         * tests/test-frexp.c (frexp): Likewise.
35220         * tests/test-frexpl.c (frexpl): Likewise.
35221         * tests/test-fseek.c (fseek): Likewise.
35222         * tests/test-fseeko.c (fseeko): Likewise.
35223         * tests/test-fstatat.c (fstatat): Likewise.
35224         * tests/test-fsync.c (fsync): Likewise.
35225         * tests/test-ftell.c (ftell): Likewise.
35226         * tests/test-ftello.c (ftello): Likewise.
35227         * tests/test-futimens.c (futimens): Likewise.
35228         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
35229         (gai_strerror): Likewise.
35230         * tests/test-getcwd.c (getcwd): Likewise.
35231         * tests/test-getdelim.c (getdelim): Likewise.
35232         * tests/test-getdtablesize.c (getdtablesize): Likewise.
35233         * tests/test-getgroups.c (getgroups): Likewise.
35234         * tests/test-gethostname.c (gethostname): Likewise.
35235         * tests/test-getline.c (getline): Likewise.
35236         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
35237         Likewise.
35238         * tests/test-gettimeofday.c (gettimeofday): Likewise.
35239         * tests/test-glob.c (glob, globfree): Likewise.
35240         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
35241         * tests/test-inet_ntop.c (inet_ntop): Likewise.
35242         * tests/test-inet_pton.c (inet_pton): Likewise.
35243         * tests/test-isblank.c (isblank): Likewise.
35244         * tests/test-lchown.c (lchown): Likewise.
35245         * tests/test-ldexpl.c (ldexpl): Likewise.
35246         * tests/test-link.c (link): Likewise.
35247         * tests/test-linkat.c (linkat): Likewise.
35248         * tests/test-lseek.c (lseek): Likewise.
35249         * tests/test-lstat.c (lstat): Likewise.
35250         * tests/test-mbrtowc.c (mbrtowc): Likewise.
35251         * tests/test-mbsinit.c (mbsinit): Likewise.
35252         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
35253         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
35254         * tests/test-memchr.c (memchr): Likewise.
35255         * tests/test-memcmp.c (memcmp): Likewise.
35256         * tests/test-memmem.c (memmem): Likewise.
35257         * tests/test-memrchr.c (memrchr): Likewise.
35258         * tests/test-mkdir.c (mkdir): Likewise.
35259         * tests/test-mkdirat.c (mkdirat): Likewise.
35260         * tests/test-mkfifo.c (mkfifo): Likewise.
35261         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
35262         * tests/test-mknod.c (mknod): Likewise.
35263         * tests/test-nanosleep.c (nanosleep): Likewise.
35264         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
35265         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
35266         Likewise.
35267         * tests/test-open.c (open): Likewise.
35268         * tests/test-openat.c (openat): Likewise.
35269         * tests/test-perror.c (perror): Likewise.
35270         * tests/test-pipe2.c (pipe2): Likewise.
35271         * tests/test-poll.c (poll): Likewise.
35272         * tests/test-popen.c (popen, pclose): Likewise.
35273         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
35274         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
35275         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
35276         (posix_spawn_file_actions_destroy)
35277         (posix_spawn_file_actions_addclose)
35278         (posix_spawn_file_actions_addopen)
35279         (posix_spawn_file_actions_adddup2): Likewise.
35280         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
35281         * tests/test-pread.c (pread): Likewise.
35282         * tests/test-printf-posix.c (printf): Likewise.
35283         * tests/test-pty.c (openpty, forkpty): Likewise.
35284         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
35285         (random_r): Likewise.
35286         * tests/test-rawmemchr.c (rawmemchr): Likewise.
35287         * tests/test-readlink.c (readlink): Likewise.
35288         * tests/test-remove.c (remove): Likewise.
35289         * tests/test-rename.c (rename): Likewise.
35290         * tests/test-renameat.c (renameat): Likewise.
35291         * tests/test-rmdir.c (rmdir): Likewise.
35292         * tests/test-round1.c (round): Likewise.
35293         * tests/test-roundf1.c (roundf): Likewise.
35294         * tests/test-roundl.c (roundl): Likewise.
35295         * tests/test-setenv.c (setenv): Likewise.
35296         * tests/test-sigaction.c (sigaction): Likewise.
35297         * tests/test-sleep.c (sleep): Likewise.
35298         * tests/test-snprintf.c (snprintf): Likewise.
35299         * tests/test-sprintf-posix.c (sprintf): Likewise.
35300         * tests/test-stat.c (stat): Likewise.
35301         * tests/test-stpncpy.c (stpncpy): Likewise.
35302         * tests/test-strcasestr.c (strcasestr): Likewise.
35303         * tests/test-strchrnul.c (strchrnul): Likewise.
35304         * tests/test-strerror.c (strerror): Likewise.
35305         * tests/test-strsignal.c (strsignal): Likewise.
35306         * tests/test-strstr.c (strstr): Likewise.
35307         * tests/test-strtod.c (strtod): Likewise.
35308         * tests/test-strverscmp.c (strverscmp): Likewise.
35309         * tests/test-symlink.c (symlink): Likewise.
35310         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
35311         * tests/test-times.c (times): Likewise.
35312         * tests/test-trunc1.c (trunc): Likewise.
35313         * tests/test-truncf1.c (truncf): Likewise.
35314         * tests/test-truncl.c (truncl): Likewise.
35315         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
35316         Likewise.
35317         * tests/test-uname.c (uname): Likewise.
35318         * tests/test-unlink.c (unlink): Likewise.
35319         * tests/test-unlinkat.c (unlinkat): Likewise.
35320         * tests/test-unsetenv.c (unsetenv): Likewise.
35321         * tests/test-usleep.c (usleep): Likewise.
35322         * tests/test-utimensat.c (utimensat): Likewise.
35323         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
35324         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
35325         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
35326         * tests/test-vprintf-posix.c (vprintf): Likewise.
35327         * tests/test-vsnprintf.c (vsnprintf): Likewise.
35328         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
35329         * tests/test-wcrtomb.c (wcrtomb): Likewise.
35330         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
35331         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
35332         * tests/test-wcwidth.c (wcwidth): Likewise.
35333
35334         build: pull in conditional headers during GNULIB_POSIXCHECK
35335         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
35336         definitions from any conditionally-included headers.
35337         * lib/stdlib.in.h (includes): Likewise.
35338         * lib/unistd.in.h (includes): Likewise.
35339
35340 2009-12-24  Bruno Haible  <bruno@clisp.org>
35341
35342         * tests/test-argv-iter.c: Include header file being tested immediately
35343         after config.h.
35344         * tests/test-base64.c: Likewise.
35345         * tests/test-flock.c: Likewise.
35346         * tests/test-fsync.c: Likewise.
35347         * tests/test-getdate.c: Likewise.
35348         * tests/test-getndelim2.c: Likewise.
35349         * tests/test-isfinite.c: Likewise.
35350         * tests/test-isinf.c: Likewise.
35351         * tests/test-strerror.c: Likewise.
35352         * tests/test-strsignal.c: Likewise.
35353
35354 2009-12-23  Eric Blake  <ebb9@byu.net>
35355
35356         unistd: work around cygwin bug
35357         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
35358         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
35359         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35360
35361 2009-12-23  Bruno Haible  <bruno@clisp.org>
35362
35363         localename: More tests.
35364         * tests/test-localename.c (SIZEOF): New macro.
35365         (categories): New variable.
35366         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
35367         test_locale_name_default): Add test w.r.t. thread locale.
35368         (test_locale_name_thread): New function.
35369         (main): Invoke it.
35370
35371         localename: Make aware of thread locale.
35372         * lib/localename.h (gl_locale_name_thread): New declaration.
35373         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
35374         behaviour with respect to thread locale.
35375         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
35376         <langinfo.h>, glthread/lock.h.
35377         (SIZE_BITS): New macro.
35378         (string_hash): New function.
35379         (struct hash_node): New type.
35380         (HASH_TABLE_SIZE): New macro.
35381         (struniq_hash_table, struniq_lock): New variables.
35382         (struniq): New function.
35383         (gl_locale_name_thread): New function.
35384         (gl_locale_name): Invoke it.
35385         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
35386         * modules/localename (Depends-on): Add lock.
35387         Reported by Mike Gran <spk121@yahoo.com>.
35388
35389 2009-12-23  Eric Blake  <ebb9@byu.net>
35390
35391         va-args: new module
35392         * modules/va-args: New file.
35393         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
35394         * MODULES.html.sh (Core language properties): Mention it.
35395
35396         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
35397         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
35398         named alias for __attribute__((__unused__)).
35399         * lib/chown.c: Update client.
35400         * lib/fchmodat.c: Likewise.
35401         * lib/fts.c: Likewise.
35402         * lib/getdate.y: Likewise.
35403         * lib/getgroups.c: Likewise.
35404         * lib/getopt.c: Likewise.
35405         * lib/getugroups.c: Likewise.
35406         * lib/mkdir.c: Likewise.
35407         * lib/mkfifo.c: Likewise.
35408         * lib/mkfifoat.c: Likewise.
35409         * lib/mknod.c: Likewise.
35410         * lib/mknodat.c: Likewise.
35411         * lib/readlink.c: Likewise.
35412         * lib/se-context.in.h: Likewise.
35413         * lib/se-selinux.in.h: Likewise.
35414         * lib/sockets.c: Likewise.
35415         * lib/symlink.c: Likewise.
35416         * lib/symlinkat.c: Likewise.
35417         * lib/unicodeio.c: Likewise.
35418         * lib/unistr.h: Likewise.
35419         * tests/test-areadlink.c: Likewise.
35420         * tests/test-areadlinkat.c: Likewise.
35421         * tests/test-filenamecat.c: Likewise.
35422         * tests/test-fseeko.c: Likewise.
35423         * tests/test-ftello.c: Likewise.
35424         * tests/test-getdate.c: Likewise.
35425         * tests/test-getgroups.c: Likewise.
35426         * tests/test-gethostname.c: Likewise.
35427         * tests/test-quotearg.c: Likewise.
35428         * tests/test-version-etc.c: Likewise.
35429         * tests/test-xalloc-die.c: Likewise.
35430         * tests/test-xfprintf-posix.c: Likewise.
35431         * tests/test-xprintf-posix.c: Likewise.
35432         * tests/test-xvasprintf.c: Likewise.
35433
35434         tests: avoid compiler warnings
35435         * tests/test-fcntl.c (main): Delete unused parameters.
35436         * tests/test-freopen-safer.c (main): Likewise.
35437         * tests/test-xalloc-die.c (main): Mark unused parameters.
35438         * tests/test-fseeko.c (main): Likewise.
35439         * tests/test-ftello.c (main): Likewise.
35440         * tests/test-nanosleep.c (main): Avoid declaration warning.
35441         * tests/test-sleep.c (main): Likewise.
35442         * tests/test-unsetenv.c (main): Silence warning about string
35443         literal.
35444         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
35445
35446 2009-12-23  Bruno Haible  <bruno@clisp.org>
35447
35448         * tests/test-localename.c (test_locale_name): New function, extracted
35449         from main. Also test mixed situations.
35450         (test_locale_name_posix, test_locale_name_environ,
35451         test_locale_name_default): New functions.
35452         (main): Invoke them all.
35453         * modules/localename-tests (configure.ac): Test for newlocale.
35454
35455 2009-12-23  Bruno Haible  <bruno@clisp.org>
35456
35457         unistd: Ensure getcwd gets declared before being overridden.
35458         * lib/unistd.in.h: Conditionally include <io.h>.
35459
35460 2009-12-22  Bruno Haible  <bruno@clisp.org>
35461
35462         wchar: Diagnose broken combination of glibc and gcc versions and flags.
35463         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
35464         (gl_WCHAR_H): Invoke it.
35465         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
35466         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
35467         Reported by Karl Berry <karl@freefriends.org>.
35468
35469 2009-12-22  Eric Blake  <ebb9@byu.net>
35470
35471         math, unistd: avoid redundant includes
35472         * lib/math.in.h (isnan): No need to re-include <math.h>.
35473         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
35474
35475         getsubopt: work around cygwin bug
35476         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
35477         avoid conflicting with system getsubopt.
35478         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
35479         bug.
35480
35481         getopt: synchronize from glibc
35482         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
35483         parameter order.  Adjust all callers.
35484         (_getopt_internal_r, main): Adjust quoting in error messages.
35485         Drop considerations for outdated POSIX 1003.2 error message.
35486         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
35487         callers.
35488         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
35489
35490         test-getopt: test stderr behavior
35491         * modules/getopt-posix-tests (Depends-on): Add dup2.
35492         * tests/test-getopt.c (ASSERT): Avoid stderr.
35493         (main): Move stderr to a temporary file.
35494         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
35495         Instead, add parameter to inform caller if output occurred.
35496         (test_getopt): Adjust all existing tests to expect silence, and
35497         add new tests of leading ":".
35498         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
35499         glibc shortcomings with leading "-:" or "+:" in optstring.
35500         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35501         Likewise.
35502         * doc/posix-functions/getopt.texi (getopt): Likewise.
35503
35504         test-getopt: enhance test
35505         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
35506         supports optind=0.
35507         * tests/test-getopt.c (OPTIND_MIN): Move...
35508         * tests/test-getopt.h (OPTIND_MIN): ...here.
35509         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
35510         Require that optind=0 works, since modern BSD supports it in
35511         addition to optreset, and since coreutils expects it.
35512         (test_getopt_long_only): New test.
35513         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
35514         glibc shortcomings with 'W;', and enforcement of optind=0.
35515         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35516         Likewise.
35517
35518 2009-12-21  Bruno Haible  <bruno@clisp.org>
35519
35520         localename: Improvements for MacOS X and Cygwin.
35521         * lib/localename.h (gl_locale_name_environ): New declaration.
35522         * lib/localename.c (gl_locale_name_environ): New function, extracted from
35523         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
35524         (gl_locale_name_posix): Invoke it.
35525         (gl_locale_name_default): Add comments. Use Windows native API also on
35526         Cygwin.
35527
35528 2009-12-21  Bruno Haible  <bruno@clisp.org>
35529
35530         Update list of Win32 locale ids.
35531         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
35532         (LANG_SAMI): Renamed from LANG_SAAMI.
35533         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
35534         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
35535         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
35536         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
35537         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
35538         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
35539         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
35540         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
35541         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
35542         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
35543         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
35544         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
35545         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
35546         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
35547         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
35548         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
35549         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
35550         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
35551         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
35552         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
35553         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
35554         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
35555         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
35556         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
35557         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
35558         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
35559         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
35560         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
35561         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
35562         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
35563         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
35564         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
35565         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
35566         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
35567         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
35568         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
35569         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
35570         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
35571         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
35572         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
35573         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
35574         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
35575         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
35576         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
35577         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
35578         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
35579         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
35580         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
35581         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
35582         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
35583         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
35584         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
35585         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
35586         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
35587         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
35588         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
35589         Add more languages and countries for Sami, Sorbian. Add more countries
35590         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
35591         for Pashto. Change country for Syriac, Tswana.
35592
35593 2009-12-21  Eric Blake  <ebb9@byu.net>
35594
35595         test-utimens: avoid spurious failure
35596         * tests/test-chown.h (nap): Factor...
35597         * tests/nap.h: ...into new file.
35598         * tests/test-lchown.h (nap): Avoid duplication.
35599         * tests/test-utimens-common.h (nap): Use shared implementation,
35600         necessary on file systems with 1-second resolution.
35601         * modules/chown-tests (Files): Include new file.
35602         * modules/fdutimensat-tests (Files): Likewise.
35603         * modules/futimens-tests (Files): Likewise.
35604         * modules/lchown-tests (Files): Likewise.
35605         * modules/openat-tests (Files): Likewise.
35606         * modules/utimens-tests (Files): Likewise.
35607         * modules/utimensat-tests (Files): Likewise.
35608
35609 2009-12-19  Eric Blake  <ebb9@byu.net>
35610
35611         futimens, utimensat: work around Linux bug
35612         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
35613         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35614         * lib/utimensat.c (rpl_utimensat): Work around it.
35615         * lib/futimens.c (rpl_futimens): Adjust comment.
35616
35617         utimens: work around Linux ctime bug
35618         * lib/utimens.c (detect_ctime_bug): New helper function.
35619         (update_timespec): Differentiate between workaround needed for
35620         this bug vs. what is needed for systems that lack utimensat.
35621         (fdutimens, lutimens): Work around bug.
35622
35623         utimens: check for ctime update
35624         * tests/test-utimens-common.h (check_ctime): Define.
35625         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
35626         * tests/test-futimens.h (test_futimens): Likewise.
35627         * tests/test-lutimens.h (test_lutimens): Likewise.
35628         * doc/posix-functions/futimens.texi (futimens): Document the bug.
35629         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35630
35631 2009-12-19  Bruno Haible  <bruno@clisp.org>
35632
35633         dprintf-posix: Check against memory leak fixed on 2009-12-15.
35634         * tests/test-dprintf-posix2.sh: New file.
35635         * tests/test-dprintf-posix2.c: New file.
35636         * modules/dprintf-posix-tests (Files): Add them.
35637         (configure.ac): Check for getrlimit and setrlimit.
35638         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
35639
35640 2009-12-19  Bruno Haible  <bruno@clisp.org>
35641
35642         fprintf-posix: Check against memory leak fixed on 2009-12-15.
35643         * tests/test-fprintf-posix3.sh: New file.
35644         * tests/test-fprintf-posix3.c: New file.
35645         * modules/fprintf-posix-tests (Files): Add them.
35646         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
35647
35648 2009-12-19  Eric Blake  <ebb9@byu.net>
35649
35650         dirfd: fix prototype
35651         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
35652         * lib/dirfd.c (dirfd): Likewise.
35653
35654         canonicalize: reduce memory usage
35655         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
35656         allocation to size.
35657         Reported by Solar Designer <solar@openwall.com>.
35658
35659 2009-12-19  Bruno Haible  <bruno@clisp.org>
35660
35661         New module attribute 'Applicability'.
35662         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
35663         * gnulib-tool: New option --extract-applicability.
35664         (func_usage): Document it.
35665         (sed_extract_prog): Recognize it.
35666         (func_get_applicability): New function.
35667         (func_import): Generalize handling of 'link-warning' module.
35668         * modules/link-warning (Applicability): New section.
35669         * modules/arg-nonnull (Applicability): New section.
35670         Repoted by Simon Josefsson <simon@josefsson.org>.
35671
35672 2009-12-19  Bruno Haible  <bruno@clisp.org>
35673
35674         fflush: tweak
35675         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
35676         * lib/fseeko.c (rpl_fseeko): Likewise.
35677
35678 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
35679
35680         * lib/gl_list.h: Fix typo in comment.
35681
35682 2009-12-16  Eric Blake  <ebb9@byu.net>
35683
35684         fcntl: use to simplify other modules
35685         * modules/cloexec (Depends-on): Add fcntl.
35686         * modules/fchdir (Depends-on): Likewise.
35687         * modules/fd-safer-flag (Depends-on): Likewise.
35688         * modules/unistd-safer (Depends-on): Likewise.
35689         * modules/dup3 (configure.ac): Set module indicator.
35690         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
35691         missing.
35692         * lib/fchdir.c (_gl_register_dup): Fix comment.
35693         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
35694         * lib/dup-safer.c (dup_safer): Likewise.
35695         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
35696         * lib/dup3.c (dup3): Likewise.
35697         * tests/test-fchdir.c (main): Enhance test.
35698         Fixes a dup_cloexec bug reported by Ondřej Vašík.
35699
35700         fcntl: port portions of fcntl to mingw
35701         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
35702         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
35703         replacement for mingw.
35704         * modules/fcntl (Description): Update.
35705         (Depends-on): Add dup2.
35706         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
35707         * modules/fcntl-h (Makefile.am): Substitute it.
35708         * lib/fcntl.in.h (fcntl): Update declaration.
35709         (F_DUPFD, F_GETFD): New macros, when needed.
35710         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35711         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
35712         * tests/test-fcntl.c (check_flags, main): Enhance test for items
35713         we now guarantee.
35714
35715         fcntl: work around cygwin bug in F_DUPFD
35716         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
35717         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
35718         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
35719         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
35720         * doc/posix-functions/fcntl.texi (fcntl): Document it.
35721
35722         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
35723         * modules/fcntl (Files): List new files.
35724         (configure.ac): Run a test.
35725         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
35726         * lib/fcntl.c (rpl_fcntl): Likewise.
35727         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
35728         (gl_FCNTL_H): Always replace fcntl.h.
35729         * modules/fcntl-h (Makefile.am): Substitute witnesses.
35730         * lib/fcntl.in.h (fcntl): Declare replacement.
35731         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
35732         needed, plus a witness.
35733         * doc/posix-functions/fcntl.texi (fcntl): Document this.
35734         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35735         * tests/test-fcntl.c: New file.
35736         * modules/fcntl-tests: Likewise.
35737
35738         binary-io: avoid potential compilation warning
35739         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
35740         directives.
35741
35742         fflush: avoid compilation error on NetBSD
35743         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
35744         between off_t and fpos_t, since the latter is sometimes a struct.
35745         * lib/fseeko.c (rpl_fseeko): Likewise.
35746         Reported by Alexander Nasonov <alnsn@yandex.ru>.
35747
35748 2009-12-15  Eric Blake  <ebb9@byu.net>
35749
35750         fcntl-h, stdio, sys_ioctl: fix declarations
35751         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
35752         function must not take arguments.
35753         * lib/sys_ioctl.in.h (ioctl): Likewise.
35754         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
35755         (open): Add a link warning.
35756
35757 2009-12-15  Jim Meyering  <meyering@redhat.com>
35758
35759         areadlink, areadlink-with-size: relax license to LGPLv2+
35760         * modules/areadlink (License): Relax to LGPLv2+.
35761         * modules/areadlink-with-size (License): Likewise.
35762
35763 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
35764             Bruno Haible  <bruno@clisp.org>
35765
35766         *printf: Fix memory leak.
35767         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
35768         * lib/vfprintf.c (vfprintf): Likewise.
35769         * lib/dprintf.c (dprintf): Likewise.
35770         * lib/vdprintf.c (vdprintf): Likewise.
35771
35772 2009-12-14  Eric Blake  <ebb9@byu.net>
35773
35774         accept4: adjust module dependencies
35775         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
35776
35777         utimens: one more try at avoiding compiler warning
35778         * lib/utimens.c (lutimens): Lower scope of result.
35779
35780 2009-12-13  Bruno Haible  <bruno@clisp.org>
35781
35782         Move the malloc checking from module 'list' to new module 'xlist'.
35783         * modules/xlist: New file.
35784         * lib/gl_xlist.h: New file.
35785         * lib/gl_xlist.c: New file.
35786         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
35787         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
35788         gl_list_add_last, gl_list_add_before, gl_list_add_after,
35789         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
35790         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
35791         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
35792         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
35793         gl_sortedlist_nx_add): New declarations.
35794         (struct gl_list_implementation): Rename and change methods accordingly.
35795         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
35796         (gl_list_nx_create): Renamed from gl_list_create.
35797         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
35798         (gl_list_nx_set_at): Renamed from gl_list_set_at.
35799         (gl_list_nx_add_first): Renamed from gl_list_add_first.
35800         (gl_list_nx_add_last): Renamed from gl_list_add_last.
35801         (gl_list_nx_add_before): Renamed from gl_list_add_before.
35802         (gl_list_nx_add_after): Renamed from gl_list_add_after.
35803         (gl_list_nx_add_at): Renamed from gl_list_add_at.
35804         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
35805         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
35806         gl_list_create_empty.
35807         (gl_list_nx_create): Renamed from gl_list_create.
35808         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
35809         (gl_list_nx_set_at): Renamed from gl_list_set_at.
35810         (gl_list_nx_add_first): Renamed from gl_list_add_first.
35811         (gl_list_nx_add_last): Renamed from gl_list_add_last.
35812         (gl_list_nx_add_before): Renamed from gl_list_add_before.
35813         (gl_list_nx_add_after): Renamed from gl_list_add_after.
35814         (gl_list_nx_add_at): Renamed from gl_list_add_at.
35815         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
35816         * lib/gl_array_list.c: Don't include xalloc.h.
35817         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
35818         NULL upon out-of-memory.
35819         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
35820         out-of-memory.
35821         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
35822         Change return type to 'int'.
35823         (gl_array_nx_set_at): Renamed from gl_array_set_at.
35824         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
35825         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
35826         upon out-of-memory.
35827         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
35828         upon out-of-memory.
35829         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
35830         upon out-of-memory.
35831         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
35832         upon out-of-memory.
35833         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
35834         out-of-memory.
35835         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
35836         Update.
35837         (gl_array_list_implementation): Update.
35838         * lib/gl_carray_list.c: Don't include xalloc.h.
35839         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
35840         Return NULL upon out-of-memory.
35841         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
35842         out-of-memory.
35843         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
35844         Change return type to 'int'.
35845         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
35846         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
35847         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
35848         upon out-of-memory.
35849         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
35850         upon out-of-memory.
35851         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
35852         out-of-memory.
35853         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
35854         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
35855         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
35856         Update.
35857         (gl_carray_list_implementation): Update.
35858         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
35859         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
35860         gl_linked_create_empty. Return NULL upon out-of-memory.
35861         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
35862         out-of-memory.
35863         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
35864         Change return type to 'int'. Return -1 upon out-of-memory.
35865         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
35866         out-of-memory.
35867         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
35868         upon out-of-memory.
35869         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
35870         upon out-of-memory.
35871         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
35872         NULL upon out-of-memory.
35873         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
35874         upon out-of-memory.
35875         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
35876         out-of-memory.
35877         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
35878         Update.
35879         * lib/gl_linked_list.c: Don't include xalloc.h.
35880         (gl_linked_list_implementation): Update.
35881         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
35882         (add_to_bucket): Change return type to 'int'.
35883         (gl_linkedhash_list_implementation): Update.
35884         * lib/gl_anytree_list1.h (free_subtree): New function.
35885         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
35886         gl_tree_create_empty. Return NULL upon out-of-memory.
35887         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
35888         Change return type to 'int'. Return -1 upon out-of-memory.
35889         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
35890         out-of-memory.
35891         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
35892         (gl_tree_remove_node): New function, moved here from
35893         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
35894         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
35895         Update.
35896         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
35897         malloc, not xmalloc. Return NULL upon out-of-memory.
35898         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
35899         out-of-memory.
35900         (gl_tree_remove_node_from_tree): New function, extracted from
35901         gl_tree_remove_node.
35902         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
35903         upon out-of-memory.
35904         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
35905         out-of-memory.
35906         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
35907         upon out-of-memory.
35908         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
35909         upon out-of-memory.
35910         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
35911         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
35912         not xmalloc. Return NULL upon out-of-memory.
35913         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
35914         out-of-memory.
35915         (gl_tree_remove_node_from_tree): New function, extracted from
35916         gl_tree_remove_node.
35917         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
35918         upon out-of-memory.
35919         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
35920         out-of-memory.
35921         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
35922         upon out-of-memory.
35923         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
35924         upon out-of-memory.
35925         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
35926         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
35927         gl_anytree_list1.h before gl_anyavltree_list2.h.
35928         (gl_avltree_list_implementation): Update.
35929         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
35930         gl_anytree_list1.h before gl_anyavltree_list2.h.
35931         (gl_rbtree_list_implementation): Update.
35932         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
35933         Change return type to 'int'. Return -1 upon out-of-memory. Use
35934         __builtin_expect.
35935         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
35936         (gl_avltreehash_list_implementation): Update.
35937         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
35938         (gl_rbtreehash_list_implementation): Update.
35939         * modules/array-list (Depends-on): Remove xalloc.
35940         * modules/carray-list (Depends-on): Likewise.
35941         * modules/linked-list (Depends-on): Likewise.
35942         * modules/linkedhash-list (Depends-on): Likewise.
35943         * modules/avltree-list (Depends-on): Likewise.
35944         * modules/rbtree-list (Depends-on): Likewise.
35945         * modules/avltreehash-list (Depends-on): Likewise.
35946         * modules/rbtreehash-list (Depends-on): Likewise.
35947
35948         * modules/xsublist: New file.
35949         * lib/gl_xsublist.h: New file.
35950         * lib/gl_xsublist.c: New file.
35951         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
35952         (gl_sublist_nx_create): New declaration.
35953         * lib/gl_sublist.c: Don't include xalloc.h.
35954         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
35955         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
35956         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
35957         Change return type to 'int'. Return -1 upon out-of-memory.
35958         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
35959         upon out-of-memory.
35960         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
35961         NULL upon out-of-memory.
35962         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
35963         upon out-of-memory.
35964         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
35965         NULL upon out-of-memory.
35966         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
35967         NULL upon out-of-memory.
35968         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
35969         upon out-of-memory.
35970         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
35971         (gl_sublist_list_implementation): Update.
35972         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
35973         upon out-of-memory.
35974         * modules/sublist (Depends-on): Remove xalloc.
35975
35976         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
35977         * tests/test-carray_list.c: Likewise.
35978         * tests/test-linked_list.c: Likewise.
35979         * tests/test-linkedhash_list.c: Likewise.
35980         * tests/test-avltree_list.c: Likewise.
35981         * tests/test-rbtree_list.c: Likewise.
35982         * tests/test-avltreehash_list.c: Likewise.
35983         * tests/test-rbtreehash_list.c: Likewise.
35984         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
35985         * modules/carray-list-tests (Makefile.am): Likewise.
35986         * modules/linked-list-tests (Makefile.am): Likewise.
35987         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35988         * modules/avltree-list-tests (Makefile.am): Likewise.
35989         * modules/rbtree-list-tests (Makefile.am): Likewise.
35990         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35991         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35992
35993         * NEWS: Mention the changes.
35994
35995         * lib/clean-temp.c: Include gl_xlist.h.
35996         * modules/clean-temp (Depends-on): Add xlist.
35997
35998         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
35999         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36000
36001         * tests/test-array_oset.c: Include gl_xlist.h.
36002         * modules/array-oset-tests (Depends-on): Add xlist.
36003
36004         Reported by José E. Marchesi <jemarch@gnu.org>.
36005
36006 2009-12-13  Bruno Haible  <bruno@clisp.org>
36007
36008         Move the malloc checking from module 'oset' to new module 'xoset'.
36009         * modules/xoset: New file.
36010         * lib/gl_xoset.h: New file.
36011         * lib/gl_xoset.c: New file.
36012         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
36013         declarations.
36014         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
36015         (struct gl_oset_implementation): Rename and change methods accordingly.
36016         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
36017         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36018         'int'. Mark as __warn_unused_result__.
36019         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
36020         gl_oset_create_empty.
36021         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36022         'int'.
36023         * lib/gl_array_oset.c: Don't include xalloc.h.
36024         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
36025         malloc, not xmalloc.
36026         (grow): Change return type to 'int'. Don't call xalloc_die.
36027         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
36028         to 'int'.
36029         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
36030         'int'.
36031         (gl_array_oset_implementation): Update.
36032         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
36033         gl_tree_create_empty.
36034         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
36035         'int'.
36036         * lib/gl_avltree_oset.c: Don't include xalloc.h.
36037         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36038         xmalloc.
36039         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36040         not xmalloc.
36041         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36042         xmalloc.
36043         (gl_avltree_oset_implementation): Update.
36044         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
36045         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36046         xmalloc.
36047         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36048         not xmalloc.
36049         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36050         xmalloc.
36051         (gl_rbtree_oset_implementation): Update.
36052         * modules/array-oset (Depends-on): Remove xalloc.
36053         * modules/avltree-oset (Depends-on): Likewise.
36054         * modules/rbtree-oset (Depends-on): Likewise.
36055         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
36056         * tests/test-avltree_oset.c: Likewise.
36057         * tests/test-rbtree_oset.c: Likewise.
36058         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
36059         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
36060         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36061         * NEWS: Mention the change.
36062
36063 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
36064
36065         maint.mk: allow a project to override release-prep commands
36066         * top/maint.mk (alpha, beta, stable): Move release-preparatory
36067         commands into a new rule.
36068         (release-prep): New rule.
36069         (release-prep-hook): New overridable variable.
36070
36071 2009-12-13  Bruno Haible  <bruno@clisp.org>
36072
36073         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
36074
36075 2009-12-13  Jim Meyering  <meyering@redhat.com>
36076
36077         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
36078         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
36079
36080 2009-12-12  Bruno Haible  <bruno@clisp.org>
36081
36082         duplocale: Tweak.
36083         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
36084
36085 2009-12-12  Karl Berry  <karl@gnu.org>
36086
36087         * config/srclist.txt (strtoll.c): tab changes, no more sync.
36088
36089 2009-12-12  Bruno Haible  <bruno@clisp.org>
36090
36091         * m4/po.m4: Undo incorrect untabification.
36092
36093 2009-12-12  Bruno Haible  <bruno@clisp.org>
36094
36095         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
36096         * modules/c-strtod (Depends-on): Add locale.
36097         * modules/c-strtold (Depends-on): Likewise.
36098
36099 2009-12-12  Bruno Haible  <bruno@clisp.org>
36100
36101         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
36102
36103 2009-12-11  Eric Blake  <ebb9@byu.net>
36104
36105         setenv: relax requirement in light of POSIX ruling
36106         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
36107         not NULL.
36108         * tests/test-setenv.c (main): Relax test.
36109         * tests/test-unsetenv.c (main): Likewise.
36110         * doc/posix-functions/setenv.texi (setenv): Document this.
36111         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
36112
36113 2009-12-11  Bruno Haible  <bruno@clisp.org>
36114
36115         New module 'fd-safer-flag'.
36116         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
36117         * lib/dup-safer.c (dup_safer_flag): Remove function.
36118         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
36119         * lib/fd-safer.c (fd_safer_flag): Remove function.
36120         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
36121         * modules/cloexec (configure.ac): Drop indicator macro.
36122         * modules/fd-safer-flag: New file.
36123         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
36124         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
36125         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
36126
36127 2009-12-11  Bruno Haible  <bruno@clisp.org>
36128
36129         Tests for module 'nl_langinfo'.
36130         * modules/nl_langinfo-tests: New file.
36131         * tests/test-nl_langinfo.sh: New file.
36132         * tests/test-nl_langinfo.c: New file.
36133
36134         New module 'nl_langinfo'.
36135         * lib/nl_langinfo.c: New file.
36136         * m4/nl_langinfo.m4: New file.
36137         * modules/nl_langinfo: New file.
36138         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
36139
36140 2009-12-11  Bruno Haible  <bruno@clisp.org>
36141
36142         Tests for module 'langinfo'.
36143         * modules/langinfo-tests: New file.
36144         * tests/test-langinfo.c: New file.
36145
36146         New module 'langinfo'.
36147         * lib/langinfo.in.h: New file.
36148         * m4/langinfo_h.m4: New file.
36149         * modules/langinfo: New file.
36150         * doc/posix-headers/langinfo.texi: Mention the new module.
36151
36152 2009-12-11  Bruno Haible  <bruno@clisp.org>
36153
36154         * lib/config.charset: Untabify.
36155
36156 2009-12-11  Bruno Haible  <bruno@clisp.org>
36157
36158         * modules/unistd-safer (configure.ac): Drop indicator macro.
36159
36160 2009-12-11  Bruno Haible  <bruno@clisp.org>
36161
36162         Move pipe2-safer code to its own file.
36163         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
36164         * lib/pipe-safer.c (pipe2_safer): Remove function.
36165         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
36166         (Makefile.am): Add it to lib_SOURCES.
36167
36168 2009-12-10  Bruno Haible  <bruno@clisp.org>
36169
36170         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
36171
36172 2009-12-10  Bruno Haible  <bruno@clisp.org>
36173
36174         Declare which arguments expect non-NULL values, for GCC and clang.
36175         * build-aux/arg-nonnull.h: New file.
36176         * modules/arg-nonnull: New file.
36177         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
36178         (inet_ntop, inet_pton): Use it.
36179         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
36180         (closedir, dirfd, opendir, scandir, alphasort): Use it.
36181         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
36182         (open, openat): Use it.
36183         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
36184         (fnmatch): Use it.
36185         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
36186         (getopt, getopt_long, getopt_long_only): Use it.
36187         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
36188         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
36189         Use it.
36190         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
36191         (iconv_open): Use it.
36192         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
36193         (strtoimax, strtoumax): Use it.
36194         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
36195         (duplocale): Use it.
36196         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
36197         (frexp, frexpl): Use it.
36198         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
36199         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
36200         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
36201         (tsearch, tfind, tdelete, twalk): Use it.
36202         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
36203         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36204         sigpending): Use it.
36205         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
36206         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36207         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36208         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36209         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36210         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36211         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36212         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36213         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36214         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36215         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36216         Use it.
36217         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
36218         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
36219         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
36220         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
36221         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
36222         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
36223         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
36224         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
36225         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
36226         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
36227         strtoull, unsetenv): Use it.
36228         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
36229         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36230         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36231         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
36232         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
36233         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
36234         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
36235         (strcasecmp, strncasecmp): Use it.
36236         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
36237         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
36238         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
36239         rpl_setsockopt): Use it.
36240         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
36241         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
36242         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
36243         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
36244         (gettimeofday): Use it.
36245         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
36246         (times): Use it.
36247         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
36248         (uname): Use it.
36249         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
36250         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
36251         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
36252         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
36253         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
36254         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
36255         unlinkat, write): Use it.
36256         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
36257         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
36258         * lib/argv-iter.h: Include arg-nonnull.h.
36259         (_ATTRIBUTE_NONNULL_): Remove macro.
36260         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
36261         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
36262         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
36263         optimization.
36264         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
36265         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
36266         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
36267         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
36268         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
36269         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
36270         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
36271         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
36272         * modules/arpa_inet (Depends-on): Add arg-nonnull.
36273         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
36274         * modules/dirent (Depends-on): Add arg-nonnull.
36275         (Makefile.am): Insert arg-nonnull.h into dirent.h.
36276         * modules/fcntl-h (Depends-on): Add arg-nonnull.
36277         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
36278         * modules/fnmatch (Depends-on): Add arg-nonnull.
36279         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
36280         * modules/getopt-posix (Depends-on): Add arg-nonnull.
36281         (Makefile.am): Insert arg-nonnull.h into getopt.h.
36282         * modules/glob (Depends-on): Add arg-nonnull.
36283         (Makefile.am): Insert arg-nonnull.h into glob.h.
36284         * modules/iconv_open (Depends-on): Add arg-nonnull.
36285         (Makefile.am): Insert arg-nonnull.h into iconv.h.
36286         * modules/inttypes (Depends-on): Add arg-nonnull.
36287         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
36288         * modules/locale (Depends-on): Add arg-nonnull.
36289         (Makefile.am): Insert arg-nonnull.h into locale.h.
36290         * modules/math (Depends-on): Add arg-nonnull.
36291         (Makefile.am): Insert arg-nonnull.h into math.h.
36292         * modules/netdb (Depends-on): Add arg-nonnull.
36293         (Makefile.am): Insert arg-nonnull.h into netdb.h.
36294         * modules/search (Depends-on): Add arg-nonnull.
36295         (Makefile.am): Insert arg-nonnull.h into search.h.
36296         * modules/signal (Depends-on): Add arg-nonnull.
36297         (Makefile.am): Insert arg-nonnull.h into signal.h.
36298         * modules/spawn (Depends-on): Add arg-nonnull.
36299         (Makefile.am): Insert arg-nonnull.h into spawn.h.
36300         * modules/stdio (Depends-on): Add arg-nonnull.
36301         (Makefile.am): Insert arg-nonnull.h into stdio.h.
36302         * modules/stdlib (Depends-on): Add arg-nonnull.
36303         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
36304         * modules/string (Depends-on): Add arg-nonnull.
36305         (Makefile.am): Insert arg-nonnull.h into string.h.
36306         * modules/strings (Depends-on): Add arg-nonnull.
36307         (Makefile.am): Insert arg-nonnull.h into strings.h.
36308         * modules/sys_socket (Depends-on): Add arg-nonnull.
36309         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
36310         * modules/sys_stat (Depends-on): Add arg-nonnull.
36311         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
36312         * modules/sys_time (Depends-on): Add arg-nonnull.
36313         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
36314         * modules/sys_times (Depends-on): Add arg-nonnull.
36315         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
36316         * modules/sys_utsname (Depends-on): Add arg-nonnull.
36317         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
36318         * modules/time (Depends-on): Add arg-nonnull.
36319         (Makefile.am): Insert arg-nonnull.h into time.h.
36320         * modules/unistd (Depends-on): Add arg-nonnull.
36321         (Makefile.am): Insert arg-nonnull.h into unistd.h.
36322         * modules/wchar (Depends-on): Add arg-nonnull.
36323         (Makefile.am): Insert arg-nonnull.h into wchar.h.
36324         * modules/argv-iter (Depends-on): Add arg-nonnull.
36325         * tests/test-canonicalize.c (null_ptr): New function.
36326         (main): Use it.
36327         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
36328         (main): Use it.
36329         * tests/test-memmem.c (null_ptr): New function.
36330         (main): Use it.
36331         Reported by Jim Meyering.
36332
36333 2009-12-10  Bruno Haible  <bruno@clisp.org>
36334
36335         Use spaces for indentation, not tabs.
36336         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
36337         * m4/*.m4: Untabify.
36338         * build-aux/*.h: Untabify.
36339         * tests/**/*.[hc]: Untabify.
36340         * README: New section "Indent with spaces, not TABs", based on
36341         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
36342         * NEWS: Mention the change.
36343
36344 2009-12-10  Bruno Haible  <bruno@clisp.org>
36345
36346         pty test: Fix link error.
36347         * modules/pty-tests (Makefile.am): Add the default LDADD value to
36348         test_pty_LDADD.
36349
36350 2009-12-07  Simon Josefsson  <simon@josefsson.org>
36351
36352         * modules/pty: New file.
36353         * modules/pty-tests: New file.
36354         * m4/pty.m4: New file.
36355         * tests/test-pty.c: New file.
36356         * doc/glibc-headers/pty.texi: Modified.
36357         * doc/glibc-functions/forkpty.texi: Modified.
36358         * doc/glibc-functions/openpty.texi: Modified.
36359
36360 2009-12-10  Bruno Haible  <bruno@clisp.org>
36361
36362         Avoid syntax error in C++ mode.
36363         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
36364
36365 2009-12-10  Bruno Haible  <bruno@clisp.org>
36366
36367         Use sed with option -e.
36368         * gnulib-tool (func_version, func_emit_copyright_notice,
36369         func_emit_initmacro_end, func_import, func_create_testdir): Pass
36370         option -e to sed.
36371         * modules/link-warning (Makefile.am): Likewise.
36372
36373 2009-12-10  Jim Meyering  <meyering@redhat.com>
36374
36375         mgetgroups: do not write bytes beyond end of malloc'd buffer
36376         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
36377         username, we call getgroups with a one-element-shorter buffer,
36378         but still told it the length was original, max_n_groups.
36379
36380 2009-12-09  Eric Blake  <ebb9@byu.net>
36381
36382         cloexec: relax license
36383         * modules/cloexec (Maintainer): Add myself.
36384         (License): Use LGPL, not GPL.
36385
36386         link-warning: optimize generation
36387         * modules/link-warning (Makefile.am): Reduce process usage.
36388
36389 2009-12-09  Bruno Haible  <bruno@clisp.org>
36390
36391         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
36392         workaround was added on 2009-11-17.
36393
36394 2009-12-09  Jim Meyering  <meyering@redhat.com>
36395             Bruno Haible  <bruno@clisp.org>
36396
36397         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
36398         * modules/link-warning (Makefile.am): Make the comment-removing sed
36399         command more robust in the face of bootstrap-prepended comment lines.
36400
36401 2009-12-09  Bruno Haible  <bruno@clisp.org>
36402
36403         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
36404         most one group.
36405
36406 2009-12-09  Simon Josefsson <simon@josefsson.org>
36407             Bruno Haible  <bruno@clisp.org>
36408
36409         * build-aux/link-warning.h: Add copyright notice.
36410         * modules/link-warning (Makefile.am): Generate link-warning.h from
36411         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
36412         * NEWS: Mention change in link-warning module.
36413         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
36414         * modules/dirent (Makefile.am): Add dependency to dirent.h.
36415         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
36416         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
36417         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
36418         * modules/math (Makefile.am): Add dependency to math.h.
36419         * modules/search (Makefile.am): Add dependency to search.h.
36420         * modules/signal (Makefile.am): Add dependency to signal.h.
36421         * modules/spawn (Makefile.am): Add dependency to spawn.h.
36422         * modules/stdio (Makefile.am): Add dependency to stdio.h.
36423         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
36424         * modules/string (Makefile.am): Add dependency to string.h.
36425         * modules/strings (Makefile.am): Add dependency to strings.h.
36426         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
36427         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
36428         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
36429         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
36430         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
36431         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
36432         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
36433         * modules/unistd (Makefile.am): Add dependency to unistd.h.
36434         * modules/wchar (Makefile.am): Add dependency to wchar.h.
36435
36436 2009-12-09  Bruno Haible  <bruno@clisp.org>
36437
36438         fchdir: Optimize away rpl_fstat when possible.
36439         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
36440         REPLACE_OPEN_DIRECTORY.
36441         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
36442
36443 2009-12-09  Bruno Haible  <bruno@clisp.org>
36444
36445         * lib/fchdir.c: Update comment.
36446
36447 2009-12-09  Bruno Haible  <bruno@clisp.org>
36448
36449         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
36450
36451 2009-12-08  Eric Blake  <ebb9@byu.net>
36452
36453         fchdir: avoid memory leak on re-registration.
36454         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
36455
36456 2009-12-08  Jim Meyering  <meyering@redhat.com>
36457
36458         init.sh: avoid Solaris 10 /bin/sh portability problem
36459         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
36460         sourced script:
36461           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
36462           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
36463           bar
36464         tests/init.sh relied on that, accepting a --set-path=DIR argument,
36465         and two tests used that idiom.
36466         * tests/init.sh: Update suggested usage comments.
36467         (path_prepend_): New function, to be used in place
36468         of the --src-path=DIR option.
36469         (setup_): Move PATH-prepending code into path_prepend_.
36470         * tests/test-pread.sh: Adapt to new usage.
36471         * tests/test-xalloc-die.sh: Likewise.
36472
36473 2009-12-08  Simon Josefsson  <simon@josefsson.org>
36474
36475         * doc/gnulib.texi (Glibc pty.h): Add.
36476         * doc/glibc-functions/forkpty.texi: Add.
36477         * doc/glibc-functions/openpty.texi: Add.
36478         Suggested by Bruno Haible.
36479
36480 2009-12-08  Eric Blake  <ebb9@byu.net>
36481
36482         fchdir: fix logic bugs
36483         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
36484         * tests/test-fchdir.c (main): Enhance test.
36485         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
36486         is in use.
36487
36488         dup2: fix logic bugs
36489         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
36490         REPLACE_DUP2 to decide when rpl_dup2 is needed.
36491         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
36492         exists.
36493         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
36494
36495 2009-12-07  Eric Blake  <ebb9@byu.net>
36496
36497         unlink: fix m4 detection
36498         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
36499
36500         unistd-safer: add unit test
36501         * modules/unistd-safer-tests: New file.
36502         * tests/test-dup-safer.c: Likewise.
36503         * tests/test-cloexec.c (setmode): Avoid compiler warning.
36504         * tests/test-dup2.c (setmode): Likewise.
36505         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
36506
36507         cloexec: preserve text vs. binary across dup_cloexec
36508         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
36509         mode.
36510         * modules/dup2-tests (Depends-on): Add binary-io.
36511         * modules/cloexec-tests (Depends-on): Likewise.
36512         * tests/test-dup2.c (setmode, is_mode): New helpers.
36513         (main): Add tests that translation mode is preserved.
36514         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
36515         Reported by Bruno Haible.
36516
36517         mgetgroups: reduce duplicate listings
36518         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
36519         resulting array.
36520         * tests/test-chown.h (test_chown): Simplify client.
36521         * tests/test-lchown.h (test_lchown): Likewise.
36522
36523 2009-12-06  Bruno Haible  <bruno@clisp.org>
36524
36525         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
36526         value.
36527
36528 2009-12-06  Bruno Haible  <bruno@clisp.org>
36529
36530         * lib/progname.c: Include stdio.h, stdlib.h.
36531         (set_program_name): Reject a NULL argument.
36532
36533 2009-12-05  Eric Blake  <ebb9@byu.net>
36534
36535         pipe2-safer: new module
36536         * modules/pipe2-safer: New file.
36537         * lib/unistd-safer.h (pipe2_safer): New prototype.
36538         * lib/unistd--.h (pipe2): New wrapper.
36539         * lib/pipe-safer.c (pipe2_safer): New function.
36540         * modules/pipe (Depends-on): Add pipe2-safer.
36541         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
36542
36543         stdlib-safer: preserve cloexec flag for mkostemp[s]
36544         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
36545         fd_safer_flag.
36546
36547         unistd-safer: allow preservation of cloexec status via flag
36548         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
36549         prototypes.
36550         * lib/dup-safer.c (dup_safer_flag): New function.
36551         * lib/fd-safer.c (fd_safer_flag): Likewise.
36552         * modules/cloexec (configure.ac): Set witness.
36553
36554         test-dup2: enhance test
36555         * modules/dup2-tests (Depends-on): Add cloexec.
36556         * tests/test-dup2.c (main): Enhance test.
36557
36558         cloexec: add dup_cloexec
36559         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
36560         header and comments.
36561         * lib/cloexec.c (set_cloexec_flag): Add comments.
36562         (dup_cloexec): New function, with mingw implementation borrowed
36563         from...
36564         * lib/w32spawn.h (dup_noinherit): ...here.
36565         * modules/execute (Depends-on): Add cloexec.
36566         * modules/pipe (Depends-on): Likewise.
36567         * modules/cloexec (Depends-on): Add dup2.
36568         * modules/cloexec-tests (Files): New file.
36569         * tests/test-cloexec.c: Likewise.
36570
36571         test-xalloc-die: fix test for mingw
36572         * modules/xalloc-die-tests (Files): Add tests/init.sh.
36573         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
36574         directory and .exe suffix off argv[0] output.
36575
36576         test-fseeko: fix test for mingw
36577         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
36578         than undefining fseek, so test will pass on mingw.
36579
36580 2009-12-05  Bruno Haible  <bruno@clisp.org>
36581
36582         * lib/progname.h (set_program_name): Clarify specification.
36583         * lib/progname.c (set_program_name): Likewise.
36584         Reported by Jim Meyering.
36585
36586 2009-12-05  Jim Meyering  <meyering@redhat.com>
36587
36588         maint.mk: backslash-escape parens in default regexp
36589         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
36590         backslash-escape the literal parentheses.
36591
36592         maint.mk: news-date-check: use grep -E
36593         * top/maint.mk (today): Define a Make variable, not a...
36594         (news-date-check): ...shell variable.
36595         (news-date-regexp): Use the Make variable.
36596         Use grep's -E option.  Change the failing diagnostic to mention
36597         the variable, $(news-date-regexp).
36598
36599 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
36600
36601         maintainer-makefile: allow customization of NEWS entry format
36602         * top/maint.mk (news-date-regexp): New overridable variable.
36603         (news-date-check): Use it.
36604
36605 2009-12-04  Eric Blake  <ebb9@byu.net>
36606
36607         mgetgroups: add xgetgroups, and avoid ENOSYS failures
36608         * lib/mgetgroups.h (xgetgroups): New prototype.
36609         * lib/mgetgroups.c (xgetgroups): New wrapper.
36610         (mgetgroups): Handle ENOSYS.
36611         * modules/mgetgroups (Depends-on): Add realloc.
36612         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
36613
36614         mgetgroups: avoid argument promotion issues with -1
36615         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
36616         for invalid gid_t.
36617         * tests/test-chown.h (getegid, test_chown): Likewise.
36618         * tests/test-lchown.h (getegid, test_lchown): Likewise.
36619
36620 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
36621
36622         exclude: Fix header file problems.
36623         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
36624
36625 2009-12-01  Jim Meyering  <meyering@redhat.com>
36626
36627         fts: fts_open: do not let an empty string cause immediate failure
36628         This is required in support of GNU rm, for which the command
36629         "rm A '' B" must process and remove both A and B, in spite of
36630         the empty string argument.
36631         * lib/fts.c (fts_open): Do not let the presence of an empty string
36632         cause fts_open to fail immediately.  Most fts-using tools must be
36633         able to process all arguments, in order, and can be expected to
36634         diagnose such arguments themselves.
36635
36636 2009-11-30  Eric Blake  <ebb9@byu.net>
36637
36638         utimens: fix compilation error
36639         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
36640         Declare variable at right scope.
36641
36642 2009-11-29  Jim Meyering  <meyering@redhat.com>
36643
36644         bootstrap: handle perl-5.11's changed --version output
36645         * build-aux/bootstrap (get_version): Handle perl separately,
36646         since perl-5.11's --version output is different.
36647
36648 2009-11-28  Jim Meyering  <meyering@redhat.com>
36649
36650         userspec: depend on the inttostr module, too
36651         * modules/userspec (Depends-on): Add inttostr.
36652
36653         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
36654         * lib/userspec.c (parse_with_separator): Do not accept a user ID
36655         number of MAXUID when it evaluates to (uid_t) -1.
36656         Likewise for group ID.  Reported by Matt McCutchen in
36657         <http://savannah.gnu.org/bugs/?28113>
36658
36659         userspec: reformat to use spaces, not TABs
36660         * lib/userspec.c: Expand TABs to spaces.
36661         Add Emacs' "indent-tabs-mode: nil" hint.
36662
36663 2009-11-27  Eric Blake  <ebb9@byu.net>
36664
36665         getopt-gnu: flush out another BSD bug
36666         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
36667         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
36668         flush out BSD bug.
36669         * tests/test-getopt.h (test_getopt): End lists with NULL.
36670         * tests/test-getopt_long.h (test_getopt_long): Likewise.
36671         (test_getopt_long_posix): Enhance test.
36672         * modules/getopt-posix-tests (Depends-on): Add stdbool.
36673         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
36674         getopt-gnu.
36675         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36676         Likewise.
36677
36678 2009-11-27  Simon Josefsson  <simon@josefsson.org>
36679
36680         * modules/idpriv-droptemp-tests (Notice): Fix text.
36681
36682 2009-11-27  Jim Meyering  <meyering@redhat.com>
36683
36684         test-xalloc-die: avoid spurious failure due to libtool argv difference
36685         In a libtool-enabled project, this test would fail due to a difference
36686         in the emitted program name, e.g.,
36687         -test-xalloc-die: memory exhausted
36688         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
36689         Use program to avoid that.
36690         * modules/xalloc-die-tests (Depends-on): Add progname.
36691         * tests/test-xalloc-die.c: Include progname.h".
36692         (program_name): Remove decl.
36693         (main): Call set_program_name.
36694         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
36695
36696 2009-11-26  Richard Jones  <rjones@redhat.com>
36697
36698         w32sock: leave win32 error in place.
36699         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
36700
36701 2009-11-26  Eric Blake  <ebb9@byu.net>
36702
36703         init.sh: suggest to use skip_ and fail_ functions in comments
36704         * tests/init.sh: Add a sentence.
36705
36706 2009-11-25  Bruno Haible  <bruno@clisp.org>
36707
36708         init.sh: add documentation in comments
36709         * tests/init.sh: Add some developer and user documentation.
36710
36711 2009-11-26  Jim Meyering  <meyering@redhat.com>
36712
36713         init.sh: accommodate even those who specify bogus srcdir manually
36714         * tests/init.sh: Normally, srcdir is guaranteed by automake and
36715         configure-time tests to be sanitized, so that there is no need to
36716         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
36717         (with no double quotes) suffices.  However, since tests may be
36718         invoked manually, and since you may explicitly set srcdir to the
36719         name of a directory containing spaces, do quote its uses here.
36720         * tests/test-pread.sh: Likewise.
36721         Suggested by Bruno Haible.
36722
36723         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
36724         * tests/test-pread.sh: Write no data into the pipe, because
36725         test-pread actually reads none.  This avoids a diagnostic,
36726         "bash: echo: write error: Broken pipe", that arises in the unusual
36727         event something is ignoring SIGPIPE, and might be interpreted
36728         as some sort of failure.  Reported by Bruno Haible.
36729
36730 2009-11-25  Jim Meyering  <meyering@redhat.com>
36731
36732         test-pread: cover failure with ESPIPE and EINVAL
36733         * tests/test-pread.c (main): Test for failure, too.
36734         * tests/test-pread.sh: Invoke with stdin on a pipe.
36735         Suggested by Eric Blake.
36736
36737         pread: improvement and fix
36738         * modules/pread (Depends-on): Depend on lseek, for portability to
36739         e.g., mingw.  Suggested by Eric Blake.
36740         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
36741
36742         unistd.in.h: correct declaration of pread
36743         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
36744         Reported by Richard W.M. Jones.
36745
36746         test-pread.sh: distribute the test script
36747         * modules/pread-tests (Files): Include test-pread.sh.
36748
36749         test-pread.sh: clean up
36750         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
36751         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
36752         That is unnecessary, since it's always ".".
36753         Suggestion from Eric Blake.
36754
36755         test-pread.sh: make executable
36756         * tests/test-pread.sh: Set executable bit.
36757         Reported by Eric Blake.
36758
36759         correct typo in test-pread.sh
36760         * tests/test-pread.sh: Add #! line.
36761
36762         test pread
36763         * tests/test-pread.c: New file.
36764         * tests/test-pread.sh: Likewise.
36765         * modules/pread-tests: Likewise.
36766
36767         pread: new module
36768         * modules/pread: New file.
36769         * lib/unistd.in.h (pread): Define/declare.
36770         * lib/pread.c (pread): New file.
36771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
36772         * modules/unistd (Makefile.am): Substitute witnesses.
36773         * doc/posix-functions/pread.texi (pread): Update.
36774         * MODULES.html.sh: Add pread.
36775
36776 2009-11-25  Jim Meyering  <meyering@redhat.com>
36777
36778         tests/init.sh: new file to be used via most *.sh tests
36779         * tests/init.sh: New file.
36780
36781 2009-11-25  Eric Blake  <ebb9@byu.net>
36782
36783         utimens: work around older Linux failure with symlinks
36784         * lib/utimens.c (lutimensat_works_really): New variable.
36785         (fdutimens, lutimens): Use it to manage kernels that support
36786         nanosecond times on files, but not on symlinks.
36787         Reported by Ondřej Vašík.
36788
36789         utimes: fix configure grammar
36790         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
36791
36792 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
36793
36794         regex: Fix fastmap for multibyte character ranges.
36795         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
36796         characters when a multibyte character range is included.
36797
36798 2009-11-22  Andy Wingo  <wingo@pobox.com>
36799
36800         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
36801         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
36802
36803 2009-11-24  Bruno Haible  <bruno@clisp.org>
36804
36805         doc: Most *_l functions exist in MacOS X 10.5.
36806         * doc/posix-functions/duplocale.texi: Update platforms list.
36807         * doc/posix-functions/freelocale.texi: Likewise.
36808         * doc/posix-functions/newlocale.texi: Likewise.
36809         * doc/posix-functions/uselocale.texi: Likewise.
36810         * doc/posix-functions/isalnum_l.texi: Likewise.
36811         * doc/posix-functions/isalpha_l.texi: Likewise.
36812         * doc/posix-functions/isblank_l.texi: Likewise.
36813         * doc/posix-functions/iscntrl_l.texi: Likewise.
36814         * doc/posix-functions/isdigit_l.texi: Likewise.
36815         * doc/posix-functions/isgraph_l.texi: Likewise.
36816         * doc/posix-functions/islower_l.texi: Likewise.
36817         * doc/posix-functions/isprint_l.texi: Likewise.
36818         * doc/posix-functions/ispunct_l.texi: Likewise.
36819         * doc/posix-functions/isspace_l.texi: Likewise.
36820         * doc/posix-functions/isupper_l.texi: Likewise.
36821         * doc/posix-functions/iswalnum_l.texi: Likewise.
36822         * doc/posix-functions/iswalpha_l.texi: Likewise.
36823         * doc/posix-functions/iswblank_l.texi: Likewise.
36824         * doc/posix-functions/iswcntrl_l.texi: Likewise.
36825         * doc/posix-functions/iswctype_l.texi: Likewise.
36826         * doc/posix-functions/iswdigit_l.texi: Likewise.
36827         * doc/posix-functions/iswgraph_l.texi: Likewise.
36828         * doc/posix-functions/iswlower_l.texi: Likewise.
36829         * doc/posix-functions/iswprint_l.texi: Likewise.
36830         * doc/posix-functions/iswpunct_l.texi: Likewise.
36831         * doc/posix-functions/iswspace_l.texi: Likewise.
36832         * doc/posix-functions/iswupper_l.texi: Likewise.
36833         * doc/posix-functions/iswxdigit_l.texi: Likewise.
36834         * doc/posix-functions/isxdigit_l.texi: Likewise.
36835         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
36836         * doc/posix-functions/strcasecmp_l.texi: Likewise.
36837         * doc/posix-functions/strcoll_l.texi: Likewise.
36838         * doc/posix-functions/strfmon_l.texi: Likewise.
36839         * doc/posix-functions/strftime_l.texi: Likewise.
36840         * doc/posix-functions/strncasecmp_l.texi: Likewise.
36841         * doc/posix-functions/strxfrm_l.texi: Likewise.
36842         * doc/posix-functions/tolower_l.texi: Likewise.
36843         * doc/posix-functions/toupper_l.texi: Likewise.
36844         * doc/posix-functions/towctrans_l.texi: Likewise.
36845         * doc/posix-functions/towlower_l.texi: Likewise.
36846         * doc/posix-functions/towupper_l.texi: Likewise.
36847         * doc/posix-functions/wcscoll_l.texi: Likewise.
36848         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
36849         * doc/posix-functions/wctrans_l.texi: Likewise.
36850         * doc/posix-functions/wctype_l.texi: Likewise.
36851         * doc/glibc-functions/strptime_l.texi: Likewise.
36852         * doc/glibc-functions/strtod_l.texi: Likewise.
36853         * doc/glibc-functions/strtof_l.texi: Likewise.
36854         * doc/glibc-functions/strtol_l.texi: Likewise.
36855         * doc/glibc-functions/strtold_l.texi: Likewise.
36856         * doc/glibc-functions/strtoll_l.texi: Likewise.
36857         * doc/glibc-functions/strtoul_l.texi: Likewise.
36858         * doc/glibc-functions/strtoull_l.texi: Likewise.
36859         * doc/glibc-functions/wcsftime_l.texi: Likewise.
36860         * doc/glibc-functions/wcstod_l.texi: Likewise.
36861         * doc/glibc-functions/wcstof_l.texi: Likewise.
36862         * doc/glibc-functions/wcstol_l.texi: Likewise.
36863         * doc/glibc-functions/wcstold_l.texi: Likewise.
36864         * doc/glibc-functions/wcstoll_l.texi: Likewise.
36865         * doc/glibc-functions/wcstoul_l.texi: Likewise.
36866         * doc/glibc-functions/wcstoull_l.texi: Likewise.
36867
36868 2009-11-24  Bruno Haible  <bruno@clisp.org>
36869
36870         duplocale: Fix logic bug.
36871         * lib/duplocale.c: Don't include <langinfo.h>.
36872         (_NL_LOCALE_NAME): Remove macro.
36873         (rpl_duplocale): Use setlocale instead of nl_langinfo.
36874         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
36875
36876 2009-11-23  Jim Meyering  <meyering@redhat.com>
36877
36878         test-update-copyright: don't hard-code /usr/bin/perl
36879         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
36880         perl to print the current year.  Gilles Espinasse reported that
36881         the replaced use of perl was hard-coded as /usr/bin/perl.
36882
36883 2009-11-23  Bruno Haible  <bruno@clisp.org>
36884
36885         duplocale: Add support for glibc 2.3.x.
36886         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
36887
36888 2009-11-22  Bruno Haible  <bruno@clisp.org>
36889
36890         vasnprintf: Tiny optimization.
36891         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
36892         MacOS X.
36893
36894 2009-11-22  Bruno Haible  <bruno@clisp.org>
36895
36896         Tests for module 'duplocale'.
36897         * modules/duplocale-tests: New file.
36898         * tests/test-duplocale.c: New file.
36899
36900         New module 'duplocale'.
36901         * m4/duplocale.m4: New file.
36902         * lib/locale.in.h (duplocale): New declaration.
36903         * lib/duplocale.c: New file.
36904         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
36905         gl_LOCALE_H_DEFAULTS): New macros.
36906         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
36907         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
36908         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
36909         REPLACE_DUPLOCALE.
36910         * modules/duplocale: New file.
36911         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
36912
36913 2009-11-22  Bruno Haible  <bruno@clisp.org>
36914
36915         * modules/locale-tests (configure.ac): Test for newlocale function.
36916         * tests/test-locale.c: When the system has extended locale functions,
36917         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
36918
36919         locale: Make locale_t available when possible.
36920         * lib/locale.in.h: Include <xlocale.h> when it exists.
36921         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
36922         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
36923         * modules/locale (Depends-on): Add extensions.
36924         (Makefile.am): Also substitute HAVE_XLOCALE_H.
36925         * doc/posix-headers/locale.texi: Document the problem with locale_t.
36926
36927 2009-11-22  Bruno Haible  <bruno@clisp.org>
36928
36929         Add comments.
36930         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
36931         invocation.
36932         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
36933         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36934         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36935
36936 2009-11-22  Bruno Haible  <bruno@clisp.org>
36937
36938         error: account for the possibility of freopen (stdout).
36939         * lib/error.c: Include <unistd.h>.
36940         (flush_stdout): New function, extracted from error and error_at_line.
36941         Determine stdout's fd dynamically.
36942         (error, error_at_line): Invoke flush_stdout.
36943         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
36944         * modules/error (Depends-on): Add unistd.
36945
36946 2009-11-22  Bruno Haible  <bruno@clisp.org>
36947
36948         diffseq: Add comment.
36949         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
36950
36951 2009-11-22  Jim Meyering  <meyering@redhat.com>
36952
36953         c-stack: avoid defining an unused static function
36954         * lib/c-stack.c (find_stack_direction): Do not define this function
36955         when it will not be used.
36956
36957         diffseq: avoid spurious gcc warnings
36958         * lib/diffseq.h (IF_LINT2): Define.
36959         (compareseq): Use it to initialize two members of "part".
36960         This avoids two used-uninitialized warnings.
36961
36962 2009-11-21  Jim Meyering  <meyering@redhat.com>
36963
36964         c-stack: avoid "ignoring return value of `write'" warning
36965         * lib/c-stack.c: Include "ignore-value.h".
36966         (die): Explicitly ignore each write return value.
36967         * modules/c-stack (Depends-on): Add ignore-value.
36968
36969 2009-11-21  Bruno Haible  <bruno@clisp.org>
36970
36971         diffseq: reduce scope of variable 'best'.
36972         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
36973         variable, earlier used for two different purposes.
36974
36975 2009-11-21  Jim Meyering  <meyering@redhat.com>
36976
36977         diffseq: remove useless assignment to "best"
36978         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
36979         assignment.  At that point "best" is already guaranteed to be zero.
36980
36981 2009-11-20  Eric Blake  <ebb9@byu.net>
36982
36983         build: mention ftp redirector in release announcements
36984         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
36985         values that used to come from cfg.mk; mention FTP redirect URL.
36986         * build-aux/announce-gen: Mention the mirror list.
36987         Suggested by Karl Berry.
36988
36989         nanosleep: improve port to mingw
36990         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
36991         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
36992         LIB_NANOSLEEP, but only when needed.
36993         * modules/select (Link): Document LIBSOCKET.
36994         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
36995         enough.
36996
36997         nanosleep: work around cygwin bug
36998         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
36999         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37000         bug.
37001         (getnow): Delete, not needed.
37002         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37003         LIB_CLOCK_GETTIME.
37004         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37005         clock-time, gettime.
37006         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37007         bug.
37008         * modules/nanosleep-tests: New test.
37009         * tests/test-nanosleep.c: New file.
37010
37011         sleep: work around cygwin bug
37012         * lib/sleep.c (rpl_sleep): Work around the bug.
37013         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
37014         (gl_PREREQ_SLEEP): Delete unused macro.
37015         * modules/sleep (Depends-on): Add verify.
37016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37017         * modules/unistd (Makefile.am): Substitute witness.
37018         * lib/unistd.in.h (sleep): Update prototype.
37019         * doc/posix-functions/sleep.texi (sleep): Document the bug.
37020         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
37021         * modules/sleep-tests (Depends-on): Check for alarm.
37022
37023 2009-11-20  Jim Meyering  <meyering@redhat.com>
37024
37025         maint.mk: improve sc_prohibit_magic_number_exit
37026         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
37027         so it does not match uses like System.exit(1).
37028         Add comments showing how to correct all offenders.
37029
37030 2009-11-19  Eric Blake  <ebb9@byu.net>
37031
37032         xalloc-die-tests: add missing library
37033         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
37034
37035         test-xvasprintf: silence compiler warnings
37036         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
37037         empty string from gcc.
37038
37039 2009-11-19  Jim Meyering  <meyering@redhat.com>
37040
37041         xfreopen: new module, from coreutils
37042         * modules/xfreopen: New module.
37043         * lib/xfreopen.c: New file.
37044         * lib/xfreopen.h: New file.
37045         * MODULES.html.sh (File stream based Input/Output"): Add it.
37046
37047 2009-11-19  Eric Blake  <ebb9@byu.net>
37048
37049         manywarnings: depend on warnings
37050         * modules/manywarnings (Depends-on): Add warnings.
37051
37052         build: avoid compiler warnings
37053         * lib/select.c (rpl_select): Delete unused variable.
37054         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
37055
37056 2009-11-18  Eric Blake  <ebb9@byu.net>
37057
37058         tests: avoid false negative with --with-packager
37059         * tests/test-version-etc.sh: Discard packager information.
37060         * tests/test-argp-version-etc-1.sh: Likewise.
37061         Reported by Mike Frysinger.
37062
37063         utimens: fix regression on Solaris
37064         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
37065         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
37066         can only change fd timestamps via futimesat.  Instead, use an
37067         additional witness macro to avoid BSD bug.
37068         Reported by Jim Meyering.
37069
37070 2009-11-17  Eric Blake  <ebb9@byu.net>
37071
37072         usleep: use it to simplify tests
37073         * modules/stat-time-tests (Depends-on): Add usleep.
37074         (configure.ac): Drop usleep check.
37075         * modules/chown-tests (Depends-on, configure.ac): Likewise.
37076         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
37077         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
37078         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
37079         * modules/openat-tests (Depends-on, configure.ac): Likewise.
37080         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
37081         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
37082         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
37083         Likewise.
37084         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
37085         * tests/test-lchown.h (nap): Likewise.
37086         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
37087         * tests/test-stat-time.c (nap): Likewise.
37088         * tests/test-utimens-common.h (nap): Update comments.
37089
37090         usleep: new module
37091         * modules/usleep: New file.
37092         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
37093         * lib/usleep.c (usleep): Likewise.
37094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37095         * modules/unistd (Makefile.am): Substitute witnesses.
37096         * lib/unistd.in.h (usleep): Add declaration.
37097         * doc/pastposix-functions/usleep.texi (usleep): Document this.
37098         * MODULES.html.sh (Date and time): Likewise.
37099         * modules/usleep-tests (Depends-on): New test.
37100         * tests/test-usleep.c: New file.
37101
37102         chown: work around OpenBSD bug
37103         * lib/chown.c (rpl_chown): Work around the bug.
37104         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
37105         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
37106         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
37107         * modules/chown (Depends-on): Add stdbool.
37108         * modules/lchown (Depends-on): Likewise.
37109         * doc/posix-functions/chown.texi (chown): Document the bug.
37110         * doc/posix-functions/lchown.texi (lchown): Likewise.
37111         * tests/test-lchown.h (test_chown): Relax test.
37112
37113         mkstemp: avoid conflict with C++ keyword template
37114         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
37115         * lib/mkostemp.c (mkostemp): Likewise.
37116         * lib/mkostemps.c (mkostemps): Likewise.
37117         * lib/mkstemp.c (mkstemp): Likewise.
37118         * lib/mkstemps.c (mkstemps): Likewise.
37119
37120         xalloc-die-tests: optimize
37121         * tests/test-xalloc-die.sh: Reduce number of processes.
37122
37123 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37124
37125         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
37126         patch from ludo@gnu.org (Ludovic Courtès).
37127
37128 2009-11-17  Jim Meyering  <meyering@redhat.com>
37129
37130         version-etc: use proper license string
37131         * modules/version-etc (License): Use LGPL, not LGPLv3+.
37132         * modules/version-etc-fsf: Likewise.
37133
37134 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37135
37136         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
37137         printed to stdout.  Deal with EOL differences.
37138
37139 2009-11-17  Eric Blake  <ebb9@byu.net>
37140
37141         unsetenv: work around Solaris bug
37142         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
37143         * lib/unsetenv.c (rpl_unsetenv): Work around it.
37144         Reported by Jim Meyering.
37145
37146         vasnprintf: avoid compiler warnings
37147         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
37148         variables.
37149         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
37150
37151 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37152
37153         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
37154         settings since xalloc-die is no longer the self test,
37155         xalloc-die.sh is.
37156
37157 2009-11-17  Jim Meyering  <meyering@redhat.com>
37158
37159         test-xalloc-die.sh: make the code agree with the commit log
37160         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
37161         at the end, just in case you happen to have a test-xalloc-die
37162         program in some other PATH directory.
37163
37164         test-xalloc-die.sh: fix a portability bug
37165         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
37166         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
37167         Otherwise, argv[0] (as often seen in diagnostics) would be too
37168         system-dependent, sometimes with, and sometimes without the leading "./".
37169
37170         version-etc-fsf: relax license to LGPLv3+
37171         * modules/version-etc-fsf (License): Relax license.
37172
37173 2009-11-16  Eric Blake  <ebb9@byu.net>
37174
37175         xalloc-die-tests: avoid printing null pointer
37176         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
37177         shell script.
37178         * tests/test-xalloc-die.c (program_name): Declare.
37179         * tests/test-xalloc-die.sh (tmpfiles): New file.
37180
37181         setenv, unsetenv: work around various bugs
37182         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
37183         (setenv) [HAVE_SETENV]: Work around bugs.
37184         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
37185         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
37186         for bugs.
37187         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
37188         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
37189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
37190         * modules/stdlib (Makefile.am): Update substitutions.
37191         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
37192         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
37193         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37194         * modules/setenv-tests: New test.
37195         * modules/unsetenv-tests: Likewise.
37196         * tests/test-setenv.c: New file.
37197         * tests/test-unsetenv.c: Likewise.
37198
37199 2009-11-16  Jim Meyering  <meyering@redhat.com>
37200
37201         version-etc: relax license to LGPLv3+
37202         * modules/version-etc (License): Relax license.
37203
37204         better AC_REQUIRE expanded-before-required-warning avoidance
37205         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
37206         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
37207         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
37208         which is no longer needed.
37209
37210 2009-11-16  Eric Blake  <ebb9@byu.net>
37211
37212         test-freading: clean up temporary file
37213         * tests/test-freading.c (main): Remove file on success, and use
37214         ASSERT more liberally.
37215         Reported by Jim Meyering.
37216
37217 2009-11-16  Jim Meyering  <meyering@redhat.com>
37218
37219         avoid new AC_REQUIRE expanded-before-required warnings
37220         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
37221         merely using it.
37222         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
37223         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
37224
37225 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37226
37227         * tests/test-xalloc-die.c: New file.
37228         * modules/xalloc-die-tests: New file.
37229         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
37230         XFAIL_TESTS so it can be appended by modules.
37231
37232 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37233
37234         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
37235         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
37236
37237 2009-11-14  Eric Blake  <ebb9@byu.net>
37238
37239         fnmatch: avoid compiler warning
37240         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
37241         to silence compiler warning about mismatch signedness in ?:.
37242         Reported by Robert Millan.
37243
37244         intprops: add double-inclusion guard
37245         * lib/intprops.h: Allow idempotent includes.
37246         Suggested by Bruce Korb.
37247
37248         openat: detect Solaris fchownat bug
37249         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
37250         penalizing glibc chownat when only lchownat is broken.
37251         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
37252         trailing slash bugs.
37253         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
37254         * modules/openat-tests (Files): Include more files.
37255         (Depends-on): Add mgetgroups, sleep, stat-time.
37256         (configure.ac): Add additional checks.
37257         (Makefile.am): Build new test.
37258         * tests/test-fchownat.c: New file.
37259
37260         lchown: detect Solaris and FreeBSD bug
37261         * lib/lchown.c (rpl_lchown): Work around bug.
37262         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
37263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37264         * modules/unistd (Makefile.am): Populate it.
37265         * lib/unistd.in.h (lchown): Update declaration.
37266         * doc/posix-functions/lchown.texi (lchown): Document the bug.
37267         * modules/lchown-tests: New file.
37268         * tests/test-lchown.h (test_lchown): Likewise.
37269         * tests/test-lchown.c (main): Likewise.
37270
37271         chown: detect Solaris and FreeBSD bug
37272         * lib/chown.c (rpl_chown): Work around bug.
37273         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
37274         (gl_PREREQ_CHOWN): Delete.
37275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37276         * modules/unistd (Makefile.am): Populate it.
37277         * lib/unistd.in.h (chown): Update declaration.
37278         * lib/lchown.c (chown): Update client.
37279         * modules/lchown (Depends-on): Add lstat.
37280         * doc/posix-functions/chown.texi (chown): Document the bug.
37281         * doc/posix-functions/getgroups.texi (getgroups): Document
37282         getgroups pitfall.
37283         * modules/chown-tests: New file.
37284         * tests/test-chown.h (test_chown): Likewise.
37285         * tests/test-chown.c (main): Likewise.
37286
37287 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
37288
37289         gnulib-tool: correctly detect absence of m4 directories
37290         * gnulib-tool: Avoid extra newline on data passed to wc -l.
37291
37292 2009-11-14  Jim Meyering  <meyering@redhat.com>
37293
37294         maint.mk: Prohibit inclusion of "xalloc.h" without use.
37295         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
37296
37297 2009-11-14  John W. Eaton  <jwe@gnu.org>
37298
37299         strftime.h: wrap funtion declaration in extern "C" block
37300         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
37301
37302 2009-11-13  Eric Blake  <ebb9@byu.net>
37303
37304         getgroups: avoid compiler warning
37305         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
37306
37307         getgroups: work around FreeBSD bug
37308         * lib/getgroups.c (rpl_getgroups): Work around the bug.
37309         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
37310         * doc/posix-functions/getgroups.texi (getgroups): Document it.
37311         * tests/test-getgroups.c (main): Fix buffer overrun.
37312
37313         getgroups: avoid compilation failure
37314         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
37315         * modules/getgroups (Depends-on): Add stdint.
37316
37317 2009-11-13  Jim Meyering  <meyering@redhat.com>
37318
37319         test-getgroups: avoid compilation failure
37320         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
37321
37322 2009-11-13  Eric Blake  <ebb9@byu.net>
37323
37324         mgetgroups: new module, taken from coreutils
37325         * modules/mgetgroups: New file.
37326         * lib/mgetgroups.h: Likewise.
37327         * lib/mgetgroups.c (mgetgroups): Likewise.
37328         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
37329         * MODULES.html.sh (Users and groups): Mention it.
37330
37331         getgroups: don't expose GETGROUPS_T to user
37332         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
37333         an element at a time if GETGROUPS_T is wrong size.
37334         * lib/getugroups.h (getugroups): Change signature.
37335         * lib/unistd.in.h (getgroups): Likewise.
37336         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
37337         signature needs fixing.
37338         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
37339         AC_TYPE_GETGROUPS.
37340         * modules/group-member (Depends-on): Add getgroups.
37341         * lib/group-member.c (group_info, get_group_info): Use gid_t.
37342         (group_member): Rely on getgroups replacement.
37343         * lib/getugroups.c (getugroups): Use gid_t.
37344         * tests/test-getgroups.c (main): Likewise.
37345         * NEWS: Mention the signature change.
37346         * doc/posix-functions/getgroups.texi (getgroups): Mention the
37347         problem with signature.
37348         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
37349         GETGROUPS_T is still useful for setgroups.
37350
37351         getgroups, getugroups: provide stubs for mingw
37352         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
37353         * lib/getugroups.c (getugroups): Likewise.
37354         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
37355         function.  Modernize replacement scheme.
37356         (gl_PREREQ_GETGROUPS): Delete.
37357         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
37358         * modules/getgroups (configure.ac): Declare witness.
37359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37360         * modules/unistd (Depends-on): Substitute witness.
37361         * lib/unistd.in.h (getgroups): Declare replacement.
37362
37363         getgroups: avoid calling exit
37364         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
37365         drop xalloc.
37366         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
37367         dependencies.
37368         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
37369         exiting, in the rare case of malloc failure.
37370
37371         getgroups: fix logic error
37372         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
37373         has more than 20 groups.
37374         * modules/getgroups-tests: New test.
37375         * tests/test-getgroups.c: New file.
37376
37377 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37378
37379         * tests/test-base64.c: Improve.
37380
37381 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37382
37383         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
37384         Blake <ebb9@byu.net>.
37385
37386 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37387
37388         * tests/test-xvasprintf.c: Add %s%s related checks.
37389
37390 2009-11-12  Eric Blake  <ebb9@byu.net>
37391
37392         version-etc: match standards.texi style
37393         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
37394         and use <> only for URLs.
37395
37396 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
37397
37398         fts: do not fail on a submount during traversal
37399         * lib/fts.c (fts_build): Read the stat info again after opening
37400         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
37401         Original report at http://bugzilla.redhat.com/501848.
37402
37403 2009-11-12  Jim Meyering  <meyering@redhat.com>
37404
37405         bootstrap: sync from coreutils
37406         * build-aux/bootstrap (bootstrap_epilogue): New function.
37407         Use git_modules_config in one more place.  This make bootstrap's
37408         --gnulib-srcdir option more useful for testing.
37409
37410         bootstrap: generalize autoheader check
37411         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
37412         AC_CONFIG_HEADERS.
37413
37414 2009-11-11  Eric Blake  <ebb9@byu.net>
37415
37416         mkfifoat: use new modules for Solaris and BSD bugs
37417         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
37418         * lib/mkfifoat.c (mknodat): Split...
37419         * lib/mknodat.c (mknodat): ...into new file.
37420         * modules/mkfifoat (Files): Ship new file.
37421         (Depends-on): Add mkfifo, mknod.
37422         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
37423         (Depends-on): Add symlink.
37424         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
37425         redundant with test_mkfifo.h.
37426         (do_mkfifoat, do_mknodat): New helpers.
37427
37428         mknod: new module
37429         * modules/mknod: New file.
37430         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
37431         * lib/mknod.c (mknod): Likewise.
37432         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
37433         defaults.
37434         * modules/sys_stat (Makefile.am): Substitute them.
37435         * lib/sys_stat.in.h (mknod): Declare replacement.
37436         * MODULES.html.sh (Support for systems lacking POSIX:2008):
37437         Document it.
37438         * doc/posix-functions/mknod.texi (mknod): Likewise.
37439         * modules/mknod-tests: New test.
37440         * tests/test-mknod.c: Likewise.
37441
37442         mkfifo: new module
37443         * modules/mkfifo: New file.
37444         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
37445         * lib/mkfifo.c (mkfifo): Likewise.
37446         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
37447         defaults.
37448         * modules/sys_stat (Makefile.am): Substitute them.
37449         * lib/sys_stat.in.h (mkfifo): Declare replacement.
37450         * MODULES.html.sh (Support for systems lacking POSIX:2008):
37451         Document it.
37452         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
37453         * modules/mkfifo-tests: New test.
37454         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
37455         from test-mkfifoat.c.
37456         * tests/test-mkfifo.c: New file.
37457
37458         readlink: detect FreeBSD bug
37459         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
37460         slash on symlink.
37461         * doc/posix-functions/readlink.texi (readlink): Document the bug.
37462         * tests/test-readlink.h (test_readlink): Enhance test.
37463
37464         symlink: detect FreeBSD bug
37465         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
37466         slash on symlink.
37467         * doc/posix-functions/symlink.texi (symlink): Document the bug.
37468         * tests/test-symlink.h (test_symlink): Enhance test.
37469
37470 2009-11-10  Eric Blake  <ebb9@byu.net>
37471
37472         link: detect FreeBSD bug
37473         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
37474         symlink.
37475         * doc/posix-functions/link.texi (link): Document the bug.
37476         * tests/test-link.h (test_link): Enhance test.
37477         * tests/test-linkat.c (main): Update caller.
37478
37479         unlink, remove: detect FreeBSD bug
37480         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
37481         slash on symlink.
37482         * doc/posix-functions/unlink.texi (unlink): Document the bug.
37483         * doc/posix-functions/remove.texi (remove): Likewise.
37484         * tests/test-unlink.h (test_unlink): Enhance test.
37485         * tests/test-remove.c (main): Likewise.
37486
37487 2009-11-09  Eric Blake  <ebb9@byu.net>
37488
37489         rename: detect FreeBSD bug
37490         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
37491         slash on symlink.
37492         * modules/renameat-tests (Depends-on): Add filenamecat.
37493         * tests/test-rename.h (test_rename): Allow one more errno.
37494         * tests/test-renameat.c (main): Likewise.
37495         * doc/posix-functions/rename.texi (rename): Document the bug.
37496
37497         open: detect FreeBSD bug
37498         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
37499         symlink.
37500         * doc/posix-functions/open.texi (open): Document the bug.
37501         * doc/posix-functions/utimes.texi (utimes): Likewise.
37502         * tests/test-open.h (test_open): Add parameters, and test symlink
37503         handling.
37504         * tests/test-open.c (main): Adjust caller.
37505         * tests/test-fcntl-safer.c (main): Likewise.
37506         * modules/open-tests (Depends-on): Add stdbool, symlink.
37507         * modules/fcntl-safer-tests (Depends-on): Likewise.
37508         * tests/test-openat.c (main): Add test-open tests.
37509
37510         stat: detect FreeBSD bug
37511         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
37512         symlink.
37513         * doc/posix-functions/stat.texi (stat): Document the bug.
37514         * tests/test-stat.h (test_stat_func): Add argument.
37515         * tests/test-stat.c (main): Adjust caller.
37516         * tests/test-fstatat.c (main): Likewise.
37517         * modules/stat-tests (Depends-on): Add stdbool, symlink.
37518         Reported by Jim Meyering.
37519
37520 2009-11-09  James Youngman  <jay@gnu.org>
37521
37522         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
37523         * lib/strftime.c: Correct placement of #include "ignore-value.h".
37524
37525 2009-11-08  Jim Meyering  <meyering@redhat.com>
37526
37527         utimens: remove invalid futimesat call
37528         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
37529         It used the file descriptor of the target file as the DIR_FD
37530         parameter and NULL as the file name.  That caused failure with
37531         errno == EFAULT on FreeBSD-8.0-rc2
37532
37533 2009-11-07  Eric Blake  <ebb9@byu.net>
37534
37535         fflush, freadseek: use fseeko, not fseek
37536         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
37537         (clear_ungetc_buffer): Avoid potential problems on large files.
37538         * lib/freadseek.c (freadseek): Likewise.
37539         * modules/freadseek (Depends-on): Add fseeko.
37540         * modules/fseek (configure.ac): Set a witness.
37541         * tests/test-fflush.c (main): Use fseeko.
37542         * tests/test-fpurge.c (fseek): Disable link warning.
37543         * tests/test-freadable.c (fseek): Likewise.
37544         * tests/test-freading.c (fseek): Likewise.
37545         * tests/test-fseeko.c (fseek): Likewise.
37546         * tests/test-ftell.c (fseek): Likewise.
37547         * tests/test-ftello.c (fseek): Likewise.
37548         * tests/test-fwritable.c (fseek): Likewise.
37549         * tests/test-fwriting.c (fseek): Likewise.
37550
37551 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37552
37553         * modules/memchr (Depends-on): Drop getpagesize dependency.
37554
37555 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37556
37557         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
37558         Reported by Ludovic Courtès.
37559         * build-aux/pmccabe2html: Improve example usage.
37560         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
37561
37562 2009-11-06  Jim Meyering  <meyering@redhat.com>
37563
37564         do-release-commit-and-tag: New module.
37565         Automate the release-commit and tag process.
37566         * build-aux/do-release-commit-and-tag: New script, from coreutils.
37567         * modules/do-release-commit-and-tag: New file.
37568         * MODULES.html.sh (Support for maintaining and releasing): Add it.
37569
37570 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37571
37572         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
37573         because test-select.c uses inet_pton.
37574
37575 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37576
37577         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
37578         GETADDRINFO_LIB.  Bump serial number.
37579         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
37580         Suggested by Eric Blake <ebb9@byu.net>.
37581
37582 2009-11-05  Eric Blake  <ebb9@byu.net>
37583
37584         strtod: detect darwin bug
37585         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
37586         Reported by Leo Davis.
37587
37588         freopen-safer: new module
37589         * modules/freopen-safer: New module.
37590         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
37591         * lib/freopen-safer.c (freopen_safer): New file.
37592         * lib/stdio-safer.h (freopen_safer): New declaration.
37593         * lib/stdio--.h (freopen): New override.
37594         * MODULES.html.sh (File stream based Input/Output): Mention it.
37595         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
37596         freopen-safer module.
37597         * doc/posix-functions/stderr.texi (stderr): Likewise.
37598         * doc/posix-functions/stdin.texi (stdin): Likewise.
37599         * doc/posix-functions/stdout.texi (stdout): Likewise.
37600         * modules/freopen-safer-tests: New test.
37601         * tests/test-reopen-safer.c: New file.
37602
37603 2009-11-05  Jim Meyering  <meyering@redhat.com>
37604
37605         maint.mk: Prohibit inclusion of "close-stream.h" without use.
37606         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
37607
37608 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37609
37610         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
37611
37612 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37613
37614         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
37615
37616 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37617
37618         Fix link error.
37619         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
37620         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37621
37622 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37623
37624         * tests/test-func.c: Also test value of __func__.
37625
37626 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37627
37628         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
37629         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
37630
37631 2009-11-05  Bruno Haible  <bruno@clisp.org>
37632
37633         Fix link error.
37634         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
37635         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37636         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
37637
37638 2009-11-05  Bruno Haible  <bruno@clisp.org>
37639
37640         Tests for module 'inet_pton'.
37641         * modules/inet_pton-tests: New file.
37642         * tests/test-inet_pton.c: New file.
37643
37644 2009-11-05  Bruno Haible  <bruno@clisp.org>
37645
37646         Tests for module 'inet_ntop'.
37647         * modules/inet_ntop-tests: New file.
37648         * tests/test-inet_ntop.c: New file.
37649
37650 2009-11-04  Eric Blake  <ebb9@byu.net>
37651
37652         stdlib-safer: wrap all mkstemp variants
37653         * modules/mkostemp (configure.ac): Set witness.
37654         * modules/mkostemps (configure.ac): Likewise.
37655         * modules/mkstemps (configure.ac): Likewise.
37656         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
37657         (mkstemps_safer): Wrap more functions.
37658         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
37659         wrapping.
37660         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
37661         (mkstemps_safer): Implement the wrappers.
37662
37663         mkstemps, mkostemps: new modules
37664         * modules/mkostemps: New module.
37665         * modules/mkstemps: Likewise.
37666         * lib/mkostemps.c (mkostemps): New file.
37667         * lib/mkstemps.c (mkstemps): Likewise.
37668         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
37669         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
37670         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
37671         * modules/stdlib (Makefile.am): Substitute them.
37672         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
37673         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
37674         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
37675         * doc/gnulib.texi (Glibc stdlib.h): Include them.
37676         * MODULES.html.sh (File system functions): Mention them.
37677
37678         tempname: resync from glibc
37679         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
37680         same values for __GT_FILE as glibc.  Abort even when assertions
37681         are disabled.
37682         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
37683         match its value otherwise.  Allow idempotent inclusion.
37684         * lib/mkdtemp.c (mkdtemp): Adjust caller.
37685         * lib/mkostemp.c (mkostemp): Likewise.
37686         * lib/mkstemp.c (mkstemp): Likewise.
37687         * lib/tmpfile.c (tmpfile): Likewise.
37688         * NEWS: Document this.
37689
37690         utimens: fix use of futimens on older Linux
37691         * lib/utimens.c (fdutimens): Use updated, rather than original,
37692         timespec to avoid bug in older Linux kernel.
37693         Reported by Simon Josefsson.
37694
37695 2009-11-04  Bruno Haible  <bruno@clisp.org>
37696
37697         Make num_processors more flexible and consistent.
37698         * lib/nproc.h (enum nproc_query): New type.
37699         (num_processors): Add a 'query' argument.
37700         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
37701         (num_processors): Add a 'query' argument. Test the value of the
37702         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
37703         mingw, count the number of CPUs available for the current process.
37704         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
37705         Check for sched_getaffinity and sched_getaffinity_np.
37706         * modules/nproc (Depends-on): Add c-ctype, extensions.
37707         * NEWS: Mention the change.
37708
37709 2009-11-03  Bruno Haible  <bruno@clisp.org>
37710
37711         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
37712
37713 2009-11-03  Jim Meyering  <meyering@redhat.com>
37714
37715         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
37716         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
37717         if it is defined.
37718
37719 2009-11-02  Eric Blake  <ebb9@byu.net>
37720
37721         mktime, timegm: share common declaration
37722         * lib/mktime-internal.h: New file.
37723         * lib/mktime.c: Use it rather than open-coding a declaration.
37724         * lib/timegm.c: Likewise.
37725         * modules/mktime (Files): Ship it.
37726         * modules/timegm (Files): Likewise.
37727         Suggested by Bruno Haible.
37728
37729         test-update-copyright: update test to match script changes
37730         * tests/test-update-copyright.sh: Avoid hard-coding perl
37731         location.  Don't update *.bak created by earlier runs.
37732
37733 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
37734             Simon Josefsson  <simon@josefsson.org>
37735             Bruno Haible  <bruno@clisp.org>
37736
37737         Fix link error on Solaris 8.
37738         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
37739         also in libnsl. Define also INET_PTON_LIB.
37740         * modules/inet_pton (Link): New section.
37741
37742 2009-11-02  Simon Josefsson  <simon@josefsson.org>
37743             Bruno Haible  <bruno@clisp.org>
37744
37745         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
37746         * modules/inet_ntop (Link): New section.
37747         Reported by Boyan Kasarov <bkasarov@gmail.com>.
37748
37749 2009-11-02  Eric Blake  <ebb9@byu.net>
37750
37751         maint: avoid compiler warnings in m4 macros
37752         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
37753         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
37754
37755 2009-11-02  Simon Josefsson  <simon@josefsson.org>
37756
37757         * m4/pmccabe2html.m4: Remove file.
37758         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
37759         function.  Change maintainer.
37760         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
37761         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
37762         Courtès).
37763
37764 2009-10-31  Eric Blake  <ebb9@byu.net>
37765
37766         fseeko: fix m4 regression
37767         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
37768         regression from 2009-10-27.
37769         Reported by Ralf Wildenhues.
37770
37771 2009-10-31  Jim Meyering  <meyering@redhat.com>
37772
37773         inttostr: aesthetics and improved (compile-time) safety
37774         Define inttype_is_signed rather than inttype_is_unsigned,
37775         since the sole use is via "#if inttype_is_signed".
37776         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
37777         inttype_is_unsigned.
37778         * lib/offtostr.c (inttype_is_signed): Likewise.
37779         * lib/uinttostr.c (inttype_is_signed): Likewise.
37780         * lib/umaxtostr.c (inttype_is_signed): Likewise.
37781         * lib/inttostr.c (inttostr): Use verify to cross-check the
37782         inttype_is_signed value and the signedness of the actual type.
37783         * modules/inttostr (Depends-on): Add verify.
37784
37785 2009-10-30  Eric Blake  <ebb9@byu.net>
37786
37787         build: avoid compiler warnings
37788         * lib/fchmodat.c (lchmod): Mark unused variables.
37789         * lib/getopt.c (_getopt_initialize): Likewise.
37790         * lib/mktime.c (__mktime_internal): Provide prototype.
37791         * lib/inttostr.c (inttostr): Avoid compiler warning even with
37792         older gcc that do not understand #pragma GCC diagnostic.
37793         * lib/uinttostr.c (inttype_is_unsigned): Define.
37794         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
37795
37796 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
37797
37798         stat: fix compilation on AIX
37799         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
37800         only see struct stat64.
37801
37802 2009-10-30  Eric Blake  <ebb9@byu.net>
37803
37804         exclude: make more robust
37805         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
37806         rather than masking a coding bug.
37807         Suggested by Bruno Haible.
37808
37809 2009-10-30  Jim Meyering  <meyering@redhat.com>
37810
37811         perl scripts: remove #!/usr/bin/perl in favor of more portable...
37812         Rather than putting #!/usr/bin/perl on the first line,
37813         start with a variant of what's recommended by "man perlrun" that
37814         invokes the first "perl" program from your shell's search path.
37815         * build-aux/gitlog-to-changelog: Replace #!... as above.
37816         Add a "Local Variables" perl mode setting.
37817         Prompted by a patch from Ludovic Courtès.
37818         Improved by Eric Blake.
37819         * build-aux/useless-if-before-free: Likewise.
37820         * build-aux/announce-gen: Likewise.
37821         * build-aux/update-copyright: Likewise.
37822
37823 2009-10-29  Eric Blake  <ebb9@byu.net>
37824
37825         filenamecat-lgpl: adjust clients
37826         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
37827         filenamecat.
37828         * modules/renameat (Depends-on): Likewise.
37829
37830         filenamecat: split into filenamecat-lgpl
37831         * modules/filenamecat-lgpl: New module.
37832         * modules/filenamecat (Files): Move library-safe files into
37833         filenamecat-lgpl.
37834         (Depends-on): Add filenamecat-lgpl.
37835         (configure.ac): Declare witness.
37836         * lib/filenamecat.h (file_name_concat): Only declare when using
37837         GPL module.
37838         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
37839         Move...
37840         * lib/filenamecat-lgpl.c: ...into new file.
37841         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
37842         (gl_FILE_NAME_CONCAT): Use it.
37843         * MODULES.html.sh (File system functions): Mention new module.
37844
37845         argp: avoid memory leak
37846         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
37847         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
37848         base_name, since the latter malloc()s and can call exit().
37849         Leak introduced 2006-07-03.
37850
37851         dirname-lgpl: adjust clients that don't need full dirname
37852         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
37853         * modules/filenamecat (Depends-on): Likewise.
37854         * modules/linkat (Depends-on): Likewise.
37855         * modules/mkancesdirs (Depends-on): Likewise.
37856         * modules/mkdir (Depends-on): Likewise.
37857         * modules/openat (Depends-on): Likewise.
37858         * modules/savewd (Depends-on): Likewise.
37859         * modules/rename (Depends-on): Likewise.
37860         (License): Relax license.
37861         * modules/mkdir-tests (Depends-on): Drop progname.
37862         (Makefile.am): Delete unneeded LDADD.
37863         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
37864
37865         dirname: split into dirname-lgpl
37866         * modules/dirname-lgpl: New module.
37867         * modules/dirname (Files): Move library-safe files into
37868         dirname-lgpl.
37869         (Depends-on): Add dirname-lgpl.
37870         (configure.ac): Declare witness.
37871         * modules/double-slash-root (License): Relax license.
37872         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
37873         module.
37874         * lib/dirname.c (dir_len, mdir_name): Move...
37875         * lib/dirname-lgpl.c: ...into new file.
37876         * lib/basename.c (last_component, base_len): Move...
37877         * lib/basename-lgpl.c: ...into new file.
37878         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
37879         (gl_DIRNAME): Use it.
37880         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
37881         Mention new module.
37882         * modules/dirname-tests (Depends-on): Add progname.
37883         * tests/test-dirname.c (program_name): Delete.
37884
37885         mkdir: make safe for libraries
37886         * modules/mkdir (Depends-on): Drop xalloc.
37887         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
37888         exit.
37889
37890         tests: avoid some compiler warnings
37891         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
37892         literals.
37893         * tests/test-memchr.c (main): Avoid type mismatch.
37894         * tests/test-arpa_inet.c (main): Avoid unused parameters.
37895         * tests/test-base64.c (main): Likewise.
37896         * tests/test-getdelim.c (main): Likewise.
37897         * tests/test-gethostname.c (main): Likewise.
37898         * tests/test-getline.c (main): Likewise.
37899         * tests/test-netinet_in.c (main): Likewise.
37900         * tests/test-select.c (open_server_socket, main): Likewise.
37901         * tests/test-select-stdin.c (main): Likewise.
37902         * tests/test-sockets.c (main): Likewise.
37903         * tests/test-strsignal.c (main): Likewise.
37904         * tests/test-sys_select.c (main): Likewise.
37905         * tests/test-sys_socket.c (main): Likewise.
37906         * tests/test-u64.c (main): Likewise.
37907         * tests/test-xfprintf-posix.c (main): Likewise.
37908         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
37909
37910         sockets: avoid compiler warning
37911         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
37912
37913         maint: detect usage(1) and other suspicious exits
37914         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
37915
37916 2009-10-29  Jim Meyering  <meyering@redhat.com>
37917
37918         timespec: long-to-int truncation could make timespec_cmp malfunction
37919         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
37920         a multiple of 2^32 nanoseconds as no difference.
37921
37922 2009-10-28  Jim Meyering  <meyering@redhat.com>
37923
37924         fprintftime: wrap macro code argument in "do {...} while(0)"
37925         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
37926         cpy macro must be a statement that can be followed by a semicolon.
37927         Now that the else clause contains a comment and is hence longer
37928         than one line, I require curly braces.  That in turn requires
37929         that we wrap this code block in the standard do...while(0).
37930
37931         fprintftime: remove stray semicolon from previous change
37932         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
37933
37934         fprintftime: avoid a warning about ignored fwrite return value
37935         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
37936         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
37937         that is unsafe.
37938         * modules/fprintftime (Depends-on): Add ignore-value.
37939
37940         exclude: avoid an unwarranted warning
37941         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
37942
37943 2009-10-27  Eric Blake  <ebb9@byu.net>
37944
37945         fseek: avoid compilation failure when fflush is replaced
37946         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
37947         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
37948         module is in use.
37949         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
37950         module is not in use; since REPLACE_FSEEK worked otherwise.
37951         (GNULIB_FTELLO): Likewise for ftell.
37952         Reported by Ian Beckwith and others.
37953
37954 2009-10-27  Bruno Haible  <bruno@clisp.org>
37955
37956         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
37957         Reported by Jim Meyering.
37958
37959 2009-10-27  Jim Meyering  <jim@meyering.net>
37960             Bruno Haible  <bruno@clisp.org>
37961
37962         Avoid warning despite dropping the return value of fwrite.
37963         * lib/unicodeio.c: Include ignore-value.h.
37964         (fwrite_success_callback): Explicitly ignore fwrite's return value.
37965         * modules/unicodeio (Depends-on): Add ignore-value.
37966
37967 2009-10-26  Eric Blake  <ebb9@byu.net>
37968
37969         areadlinkat: fix fallback path
37970         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
37971         pointer and zero.
37972
37973 2009-10-22  Pádraig Brady  <P@draigBrady.com>
37974
37975         Use a better IO block size for modern systems
37976         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
37977         * lib/md2.c: Likewise.
37978         * lib/md4.c: Likewise.
37979         * lib/md5.c: Likewise.
37980         * lib/sha1.c: Likewise.
37981         * lib/sha256.c: Likewise.
37982         * lib/sha512.c: Likewise.
37983
37984 2009-10-22  Eric Blake  <ebb9@byu.net>
37985
37986         tests: avoid several compiler warnings
37987         * tests/test-getcwd.c (main): Avoid buffer underflow.
37988         * tests/test-getdate.c (main): String literals are not safe with
37989         putenv, so use setenv.  Declare unused argument.
37990         * modules/getdate-tests (Depends-on): Add setenv.
37991         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
37992         problems with string literals in char *.
37993         * tests/test-hash.c (main): Avoid shadowing declaration.
37994         (insert_new): Treat string literals as char const *.
37995         * tests/test-getopt.h (test_getopt): Likewise.
37996         (getopt_loop): Alter types to minimize casting elsewhere.
37997         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
37998         (test_getopt_long_posix): Likewise.
37999         (do_getopt_long): Add wrapper to minimize casting.
38000         * tests/test-atexit.c (clear_temp_file): Use void.
38001         * tests/test-areadlink-with-size.c (main): Declare unused
38002         arguments.
38003         * tests/test-areadlink.c (main): Likewise.
38004         * tests/test-areadlinkat-with-size.c (main): Likewise.
38005         * tests/test-areadlinkat.c (main): Likewise.
38006         * tests/test-canonicalize-lgpl.c (main): Likewise.
38007         * tests/test-canonicalize.c (main): Likewise.
38008         * tests/test-dirent-safer.c (main): Likewise.
38009         * tests/test-dirname.c (main): Likewise.
38010         * tests/test-dup2.c (main): Likewise.
38011         * tests/test-fchdir.c (main): Likewise.
38012         * tests/test-fcntl-h.c (main): Likewise.
38013         * tests/test-fcntl-safer.c (main): Likewise.
38014         * tests/test-fdopendir.c (main): Likewise.
38015         * tests/test-fdutimensat.c (main): Likewise.
38016         * tests/test-fflush.c (main): Likewise.
38017         * tests/test-filenamecat.c (main): Likewise.
38018         * tests/test-filevercmp.c (main): Likewise.
38019         * tests/test-fopen-safer.c (main): Likewise.
38020         * tests/test-fopen.c (main): Likewise.
38021         * tests/test-fpending.c (main): Likewise.
38022         * tests/test-fpurge.c (main): Likewise.
38023         * tests/test-freading.c (main): Likewise.
38024         * tests/test-fstatat.c (main): Likewise.
38025         * tests/test-fsync.c (main): Likewise.
38026         * tests/test-futimens.c (main): Likewise.
38027         * tests/test-getndelim2.c (main): Likewise.
38028         * tests/test-gettimeofday.c (main): Likewise.
38029         * tests/test-getopt.c (main): Likewise.
38030         * tests/test-i-ring.c (main): Likewise.
38031         * tests/test-inttypes.c (main): Likewise.
38032         * tests/test-link.c (main): Likewise.
38033         * tests/test-lstat.c (main): Likewise.
38034         * tests/test-math.c (main): Likewise.
38035         * tests/test-md5.c (main): Likewise.
38036         * tests/test-memchr2.c (main): Likewise.
38037         * tests/test-memrchr.c (main): Likewise.
38038         * tests/test-mkdir.c (main): Likewise.
38039         * tests/test-mkdirat.c (main): Likewise.
38040         * tests/test-mkfifoat.c (main): Likewise.
38041         * tests/test-open.c (main): Likewise.
38042         * tests/test-openat-safer.c (main): Likewise.
38043         * tests/test-openat.c (main): Likewise.
38044         * tests/test-quotearg.c (main): Likewise.
38045         * tests/test-rawmemchr.c (main): Likewise.
38046         * tests/test-readlink.c (main): Likewise.
38047         * tests/test-remove.c (main): Likewise.
38048         * tests/test-rename.c (main): Likewise.
38049         * tests/test-renameat.c (main): Likewise.
38050         * tests/test-rmdir.c (main): Likewise.
38051         * tests/test-sha1.c (main): Likewise.
38052         * tests/test-signal.c (main): Likewise.
38053         * tests/test-sigaction.c (main): Likewise.
38054         * tests/test-stat.c (main): Likewise.
38055         * tests/test-stat-time.c (main): Likewise.
38056         * tests/test-stddef.c (main): Likewise.
38057         * tests/test-stdint.c (main): Likewise.
38058         * tests/test-stdio.c (main): Likewise.
38059         * tests/test-stdlib.c (main): Likewise.
38060         * tests/test-strchrnul.c (main): Likewise.
38061         * tests/test-strerror.c (main): Likewise.
38062         * tests/test-string.c (main): Likewise.
38063         * tests/test-strtod.c (main): Likewise.
38064         * tests/test-strverscmp.c (main): Likewise.
38065         * tests/test-symlink.c (main): Likewise.
38066         * tests/test-symlinkat.c (main): Likewise.
38067         * tests/test-sys_stat.c (main): Likewise.
38068         * tests/test-sys_time.c (main): Likewise.
38069         * tests/test-time.c (main): Likewise.
38070         * tests/test-unistd.c (main): Likewise.
38071         * tests/test-unlink.c (main): Likewise.
38072         * tests/test-unlinkat.c (main): Likewise.
38073         * tests/test-utimens.c (main): Likewise.
38074         * tests/test-utimensat.c (main): Likewise.
38075         * tests/test-version-etc.c (main): Likewise.
38076         * tests/test-wchar.c (main): Likewise.
38077         * tests/test-wctype.c (main): Likewise.
38078         * tests/test-xprintf-posix.c (main): Likewise.
38079         * tests/test-posixtm.c (main): Likewise.
38080         (STREQ): Delete unused macro.
38081         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
38082         shadowed variables.
38083         * tests/test-memchr.c (main): Likewise.
38084
38085 2009-10-21  Eric Blake  <ebb9@byu.net>
38086
38087         areadlinkat: avoid failure on older glibc
38088         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
38089         rather than mis-comparing 0 against FUNC_RESULT of char*.
38090
38091 2009-10-21  Bruno Haible  <bruno@clisp.org>
38092
38093         * modules/stpncpy (License): Relicense under LGPLv2+.
38094         Reported by David Lutterkort <lutter@redhat.com>.
38095
38096 2009-10-20  Eric Blake  <ebb9@byu.net>
38097
38098         utimensat: work around Solaris 9 bug
38099         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
38100         has trailing slash bugs.
38101         * tests/test-lutimens.h (test_lutimens): Enhance test.
38102         * tests/test-utimens.h (test_utimens): Likewise.
38103         * doc/posix-functions/utime.texi (utime): Enhance documentation.
38104         * doc/posix-functions/utimes.texi (utimes): Likewise.
38105         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38106         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
38107         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
38108         * doc/posix-functions/futimens.texi (futimens): Likewise.
38109
38110         fdutimensat: new module
38111         * modules/fdutimensat: New file.
38112         * lib/fdutimensat.c (fdutimensat): Likewise.
38113         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
38114         * MODULES.html.sh (File system functions): Mention module.
38115         * modules/fdutimensat-tests: New test.
38116         * tests/test-fdutimensat.c: Likewise.
38117
38118         doc: regenerate INSTALL
38119         * doc/INSTALL: Reflect recent autoconf update.
38120         * doc/INSTALL.ISO: Likewise.
38121         * doc/INSTALL.UTF-8: Likewise.
38122
38123 2009-10-20  Pádraig Brady  <P@draigBrady.com>
38124
38125         acl: warn if ACL support is not detected
38126         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
38127
38128 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
38129
38130         * lib/nproc.h: Add extern "C" block for C++.
38131
38132 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
38133             Bruno Haible  <bruno@clisp.org>
38134
38135         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
38136         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
38137         * doc/posix-functions/isalpha.texi: Likewise.
38138         * doc/posix-functions/isblank.texi: Likewise.
38139         * doc/posix-functions/iscntrl.texi: Likewise.
38140         * doc/posix-functions/isdigit.texi: Likewise.
38141         * doc/posix-functions/isgraph.texi: Likewise.
38142         * doc/posix-functions/islower.texi: Likewise.
38143         * doc/posix-functions/isprint.texi: Likewise.
38144         * doc/posix-functions/ispunct.texi: Likewise.
38145         * doc/posix-functions/isspace.texi: Likewise.
38146         * doc/posix-functions/isupper.texi: Likewise.
38147         * doc/posix-functions/isxdigit.texi: Likewise.
38148
38149 2009-10-18  Bruno Haible  <bruno@clisp.org>
38150
38151         Tests for module 'isblank'.
38152         * modules/isblank-tests: New file.
38153         * tests/test-isblank.c: New file.
38154
38155         New module 'isblank'.
38156         * lib/isblank.c: New file.
38157         * m4/isblank.m4: New file.
38158         * modules/isblank: New file.
38159         * doc/posix-functions/isblank.texi: Mention the new module.
38160
38161 2009-10-18  Bruno Haible  <bruno@clisp.org>
38162
38163         New module 'ctype'.
38164         * lib/ctype.in.h: New file.
38165         * m4/ctype.m4: New file.
38166         * modules/ctype: New file.
38167         * doc/posix-headers/ctype.texi: Mention the new module.
38168
38169 2009-10-18  Jim Meyering  <meyering@redhat.com>
38170
38171         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
38172         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
38173         right after its initialization, rather than farther down.
38174         Keeping these in close proximity makes it easier to ensure
38175         that each such variable is initialized.  E.g.,
38176
38177             LIB_CLOCK_GETTIME=
38178             AC_SUBST([LIB_CLOCK_GETTIME])
38179
38180         This change also increments these serial numbers.
38181         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
38182         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38183         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38184
38185 2009-10-18  Bruno Haible  <bruno@clisp.org>
38186
38187         Don't let environment variables perturb build.
38188         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
38189         (gl_PREREQ_GETHRXTIME): ... not here.
38190
38191 2009-10-18  Bruno Haible  <bruno@clisp.org>
38192
38193         Avoid symlink attack in localcharset module.
38194         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
38195         (O_NOFOLLOW): Define fallback.
38196         (get_charset_aliases): Don't open the file if it is a symbolic link.
38197         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
38198         gl_FCNTL_H.
38199         (gl_FCNTL_H): Require it.
38200         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
38201         * modules/localcharset (Files): Add m4/fcntl_h.m4.
38202         Reported by Fergal Glynn <fglynn@veracode.com>.
38203
38204 2009-10-18  Bruno Haible  <bruno@clisp.org>
38205
38206         Implement nproc for mingw.
38207         * lib/nproc.c: Include <windows.h>
38208         (num_processors): On native Windows platforms, try GetSystemInfo.
38209
38210 2009-10-18  Bruno Haible  <bruno@clisp.org>
38211
38212         Implement nproc for IRIX.
38213         * lib/nproc.c: Include <sys/sysmp.h>.
38214         (num_processors): On IRIX systems, try sysmp.
38215         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
38216
38217 2009-10-18  Bruno Haible  <bruno@clisp.org>
38218
38219         Implement nproc for HP-UX.
38220         * lib/nproc.c: Include <sys/pstat.h>
38221         (num_processors): On HP-UX systems, try pstat_getdynamic.
38222         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
38223         pstat_getdynamic.
38224
38225 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
38226             Bruno Haible  <bruno@clisp.org>
38227
38228         Implement nproc for NetBSD, OpenBSD.
38229         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
38230         (ARRAY_SIZE): New macro.
38231         (num_processors): On BSD systems, try sysctl of HW_NCPU.
38232         * m4/nproc.m4: New file.
38233         * modules/nproc (Files): Add m4/nproc.m4.
38234         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
38235         (Makefile.am): Instead, augment lib_SOURCES.
38236
38237 2009-10-18  Bruno Haible  <bruno@clisp.org>
38238
38239         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
38240         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
38241         sys/param.h.
38242
38243 2009-10-16  Eric Blake  <ebb9@byu.net>
38244
38245         utimensat: new module
38246         * modules/utimensat: New file.
38247         * lib/utimensat.c (utimensat): Likewise.
38248         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38249         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
38250         so we can work around Linux bugs.
38251         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38252         * modules/sys_stat (Makefile.am): Substitute them.
38253         * lib/sys_stat.in.h (utimensat): Declare it.
38254         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38255         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38256         * modules/utimensat-tests: New test.
38257         * tests/test-utimensat.c: Likewise.
38258
38259         utimens: let lutimens work on non-symlinks
38260         * lib/utimens.c (lutimens): Fall back to utimens rather than
38261         failing with ENOSYS, when file is not a symlink.
38262         (utimens): Reduce redirection.
38263         * tests/test-lutimens.h (test_lutimens): Update test to cover
38264         non-symlinks.
38265         * tests/test-utimens.h (test_utimens): Update test to cover
38266         symlinks.
38267         * tests/test-utimens.c (main): Update caller.
38268
38269         utimens: cache whether utimensat syscall works
38270         * lib/utimens.c (utimensat_works_really): New cache variable.
38271         (fdutimens, lutimens): Use it to avoid failing syscall.
38272
38273         test-stat-time, test-utimens: improve portability
38274         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
38275         ext4 on alpha, and for cygwin.
38276         * tests/test-utimens-common.h: New file.
38277         (nap): Factor delays into single function.
38278         * tests/test-lutimens.h (test_lutimens): Use new header.
38279         * tests/test-futimens.h (test_futimens): Likewise.
38280         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
38281         timestamps to occur from same machine, as was done previously for
38282         test_utimens.
38283         * modules/utimens-tests (Files): Ship new file.
38284         * modules/futimens-tests (Files): Likewise.
38285         Reported in part by Jim Meyering.
38286
38287         sys_stat: sort replacement declarations
38288         * lib/sys_stat.in.h: Sort declarations.
38289         * lib/futimens.c (futimens): Fix typo.
38290
38291 2009-10-15  Jim Meyering  <meyering@redhat.com>
38292
38293         don't let environment settings perturb build
38294         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
38295         could cause a configure-time and/or build-time malfunction.
38296         Typically, a configure-time function-in-library test is performed
38297         via code like this:
38298
38299           LIB_VAR=
38300           AC_SUBST([LIB_VAR])
38301           prefix_saved_LIBS=$LIBS
38302             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
38303                        [test "$ac_cv_search_FUNC" = "none required" ||
38304                         LIB_VAR=$ac_cv_search_FUNC])
38305           LIBS=$prefix_saved_LIBS
38306
38307         However, in each of the files affected by this change, the LIB_VAR=
38308         initialization was omitted.  Thus, when set in the environment, its
38309         value would propagate into generated Makefiles when FUNC is not found
38310         in LIB_NAME.
38311         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
38312         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38313         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38314
38315 2009-10-14  Eric Blake  <ebb9@byu.net>
38316
38317         fchdir: avoid infinite recursion in mingw
38318         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
38319         recursing.
38320
38321         test-stat-time: port to mingw
38322         * tests/test-stat-time.c (force_unlink): Return a value.
38323         (test_ctime) [W32]: Fix compilation error.
38324         (nap): Don't call usleep with too large an argument.  Use
38325         force_unlink.
38326         * doc/pastposix-functions/usleep.texi (usleep): Document the
38327         portability issue.
38328
38329 2009-10-13  Jim Meyering  <meyering@redhat.com>
38330
38331         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
38332         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
38333         * modules/pipe-filter-ii: Likewise.
38334         * modules/sys_socket-tests: Likewise.
38335         * modules/tsearch-tests: Likewise.
38336         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
38337         (check): Depend on it.
38338
38339 2009-10-12  Eric Blake  <ebb9@byu.net>
38340
38341         utimens-tests: port to NFS file systems
38342         * tests/test-utimens.h (test_utimens): Refactor utimecmp
38343         comparisons to avoid spurious failures from timestamp drift
38344         between NFS machines.
38345
38346 2009-10-12  Eric Blake  <ebb9@byu.net>
38347
38348         stat-time-tests: minor cleanups
38349         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
38350         * tests/test-stat-time.c (nap): Separate assignment from call.
38351         Suggested by Paolo Bonzini and Bruno Haible.
38352
38353         sys_stat: guarantee struct timespec
38354         * lib/sys_stat.in.h (includes): Always include <time.h>
38355         * modules/sys_stat (Depends-on): Add time.
38356         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
38357         mode_t permission values.
38358         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
38359         get at subsecond timestamps.
38360
38361 2009-10-10  Eric Blake  <ebb9@byu.net>
38362
38363         futimens: new module
38364         * modules/futimens: New file.
38365         * lib/futimens.c (futimens): Likewise.
38366         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
38367         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
38368         we can work around Linux bugs.
38369         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38370         * modules/sys_stat (Makefile.am): Substitute them.
38371         * lib/sys_stat.in.h (futimens): Declare it.
38372         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38373         * doc/posix-functions/futimens.texi (futimens): Likewise.
38374         * modules/futimens-tests: New test.
38375         * tests/test-futimens.c: Likewise.
38376
38377         utimens: introduce fdutimens
38378         * lib/utimens.h (fdutimens): New prototype.
38379         * lib/utimens.c (gl_futimens): Move guts...
38380         (fdutimens): ...to new interface.
38381         * tests/test-utimens.c (do_fdutimens): Use it.
38382
38383         utimens: add UTIME_NOW and UTIME_OMIT support
38384         * lib/utimens.c (validate_timespec, update_timespec): New helper
38385         functions.
38386         (gl_futimens, lutimens): Use them.
38387         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
38388         stdbool, sys_stat.
38389         (Link): Mention resulting library dependency.
38390         * modules/utimecmp (Link): Likewise.
38391         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
38392         (Makefile.am): Pick up library dependency.
38393         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
38394         definition.
38395         * tests/test-sys_stat.c: Test the definitions.
38396         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
38397         * NEWS: Document library dependency.
38398
38399         utimecmp: support symlink timestamps
38400         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
38401         hashing when possible.  Use pathconf when available.
38402         (SYSCALL_RESOLUTION): Recognize tighter resolution.
38403         * modules/utimecmp (Depends-on): Add lstat.
38404
38405         utimens: add lutimens interface
38406         * lib/utimens.c (lutimens): New function.
38407         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
38408         * lib/utimens.h (lutimens): Declare new interface.
38409         * tests/test-utimens.c (main): Enhance test.
38410         * tests/test-lutimens.h (test_lutimens): New file.
38411         * modules/utimens-tests (Files): Distribute it.
38412         (Depends-on): Add symlink.
38413         (configure.ac): Check for usleep.
38414
38415         utimens: validate futimens usage
38416         * lib/utimens.c (gl_futimens): Require valid fd up front, using
38417         fewer syscalls on failure later on.  Avoid compiler warning on
38418         mingw.
38419         * modules/utimens (Depends-on): Add dup2.
38420
38421         utimens: add test
38422         * modules/utimens-tests: New test.
38423         * tests/test-utimens.h: New file.
38424         * tests/test-futimens.h: Likewise.
38425         * tests/test-utimens.c: Likewise.
38426
38427         doc: mention timestamp portability issues
38428         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
38429         instead.
38430         * doc/posix-functions/utime.texi (utime): Likewise.
38431         * doc/posix-functions/utimes.texi (utimes): Likewise.
38432         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
38433         instead.
38434         * doc/posix-functions/futimens.texi (futimens): Mention utimens
38435         module.
38436         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38437         Mention weakness with symlink timestamps.
38438         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
38439         to utimensat/futimens instead.
38440         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
38441
38442         test-dup2: enhance test
38443         * tests/test-dup2.c (main): Also check AT_FDCWD.
38444
38445         test-stat-time: avoid more spurious failures
38446         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
38447         xfs; and avoid race if the two timestamps cross quantization edge.
38448
38449         relocatable: prefer 'file system' over 'filesystem'
38450         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
38451         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
38452         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
38453         * doc/relocatable.texi (Enabling Relocatability): Likewise.
38454         * lib/relocatable.c (compute_curr_prefix): Likewise.
38455
38456 2009-10-10  Jim Meyering  <meyering@redhat.com>
38457
38458         stat-time-tests: check for the usleep function
38459         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
38460
38461 2009-10-10  Bruno Haible  <bruno@clisp.org>
38462
38463         * modules/xnanosleep: Put the Link section after the Include section.
38464
38465 2009-10-09  Eric Blake  <ebb9@byu.net>
38466
38467         dup2: work around FreeBSD 6.1 bug
38468         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
38469         * doc/posix-functions/dup2.texi (dup2): Document it.
38470         Reported by Nelson H. F. Beebe and Jim Meyering.
38471
38472         test-stat-time: port to buggy NFS clients
38473         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
38474         (test_ctime): Also skip test if mtime and ctime are skewed.
38475
38476         maint: prefer 'file system' over 'filesystem'
38477         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
38478         * doc/posix-functions/lstat.texi (lstat): Likewise.
38479         * lib/file-has-acl.c (file_has_acl): Likewise.
38480         * lib/fwriteerror.c [TEST]: Likewise.
38481         * tests/test-areadlink.h (test_areadlink): Likewise.
38482         * tests/test-areadlinkat-with-size.c (main): Likewise.
38483         * tests/test-areadlinkat.c (main): Likewise.
38484         * tests/test-canonicalize-lgpl.c (main): Likewise.
38485         * tests/test-canonicalize.c (main): Likewise.
38486         * tests/test-fstatat.c (main): Likewise.
38487         * tests/test-linkat.c (main): Likewise.
38488         * tests/test-lstat.h (test_lstat_func): Likewise.
38489         * tests/test-mkdir.h (test_mkdir): Likewise.
38490         * tests/test-readlink.h (test_readlink): Likewise.
38491         * tests/test-remove.c (main): Likewise.
38492         * tests/test-rename.h (test_rename): Likewise.
38493         * tests/test-renameat.c (main): Likewise.
38494         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38495         * tests/test-symlink.h (test_symlink): Likewise.
38496         * tests/test-symlinkat.c (main): Likewise.
38497         * tests/test-unlink.h (test_unlink_func): Likewise.
38498         * tests/test-unlinkat.c (main): Likewise.
38499
38500         maint: make realtime library usage explicit
38501         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
38502         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
38503         * modules/settime (Link): Likewise.
38504         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
38505
38506         test-stat-time: speed up execution
38507         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
38508         warning on mingw.
38509         (nap): New helper function.
38510         (prepare_test): Use it to reduce sleep time.
38511         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
38512         execution.
38513         * modules/stat-time-tests (configure.ac): Check for usleep.
38514
38515 2009-10-09  Jim Meyering  <meyering@redhat.com>
38516
38517         selinux-h: always use getfilecon wrappers
38518         * lib/getfilecon.c: New file.
38519         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
38520         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
38521         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
38522         (fgetfilecon): Provide a stub.
38523         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
38524         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
38525         file unconditionally.
38526         When <selinux/selinux.h> is found, arrange to use wrappers.
38527         * modules/selinux-h (Files): Add getfilecon.c.
38528         (Makefile.am): Substitute include-next-related bits
38529         into the now-always-generated selinux/selinux.h file.
38530         * doc/glibc-functions/lgetfilecon.texi: New file.
38531         * doc/glibc-functions/fgetfilecon.texi: New file.
38532         * doc/glibc-functions/getfilecon.texi: New file.
38533         * doc/glibc-functions/getfilecon-desc.texi: New file.
38534         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
38535         which to pull in the new files.
38536         * MODULES.html.sh (Misc): Add selinux-h.
38537
38538 2009-10-08  Jim Meyering  <meyering@redhat.com>
38539
38540         unistd: fix comment typo
38541         * lib/unistd.in.h (euidaccess): Fix a comment typo.
38542
38543 2009-10-08  Eric Blake  <ebb9@byu.net>
38544
38545         areadlink: use SIZE_MAX consistently
38546         * modules/areadlink (Depends-on): Add stdint.
38547         * modules/areadlink-with-size (Depends-on): Likewise.
38548         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
38549         gives NULL; drop sys/types, since unistd gives size_t; and add
38550         stdint for SIZE_MAX.
38551         (SIZE_MAX): Rely on headers.
38552         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
38553         and add stdint.
38554         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
38555         (SIZE_MAX): Likewise.
38556         (INITIAL_BUF_SIZE): Turn into enum.
38557         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
38558
38559 2009-10-08  Jim Meyering  <meyering@redhat.com>
38560
38561         areadlinkat: avoid compilation failure
38562         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
38563         Fix typo in comment.
38564
38565 2009-10-07  Eric Blake  <ebb9@byu.net>
38566
38567         areadlinkat-with-size: new module
38568         * modules/areadlinkat-with-size: New module.
38569         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
38570         * lib/areadlink.h (areadlinkat): Declare it.
38571         * MODULES.html.sh (File system functions): Mention it.
38572         * modules/areadlinkat-with-size-tests: New test.
38573         * tests/test-areadlinkat-with-size.c: New file.
38574
38575         xreadlinkat: new module
38576         * modules/xreadlinkat: New module.
38577         * lib/xreadlinkat.c (xreadlinkat): New file.
38578         * lib/xreadlink.h (xreadlinkat): Declare it.
38579         * MODULES.html.sh (File system functions): Mention it.
38580
38581         areadlinkat: new module
38582         * lib/at-func.c (FUNC_FAIL): New define.
38583         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
38584         * modules/areadlinkat: New module.
38585         * lib/linkat.c (areadlinkat): Move...
38586         * lib/areadlinkat.c (areadlinkat): ...to new file.
38587         * lib/areadlink.h (areadlinkat): Declare it.
38588         * modules/linkat (Depends-on): Add areadlinkat.
38589         * MODULES.html.sh (File system functions): Mention it.
38590         * modules/areadlinkat-tests: New test.
38591         * tests/test-areadlinkat.c: New file.
38592
38593         areadlink, areadlink-with-size: add tests
38594         * modules/areadlink-tests: New test.
38595         * modules/areadlink-with-size-tests: Likewise.
38596         * tests/test-areadlink.h: New file.
38597         * tests/test-areadlink.c: Likewise.
38598         * tests/test-areadlink-with-size.c: Likewise.
38599
38600         maint: minor cleanups
38601         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
38602         _UNUSED_PARAMETER_ instead.
38603         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
38604         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
38605         * modules/linkat-tests (Files): Distribute test-link.h.
38606
38607         openat, utimens: whitespace cleanup
38608         * lib/openat.c: Prefer space throughout, rather than mix of 8
38609         spaces vs. tabs.
38610         * lib/at-func.c: Likewise.
38611         * lib/utimens.c: Likewise.
38612
38613         openat: avoid using wrong fd
38614         * lib/openat.c (openat_permissive): Reject user's fd if saving the
38615         working directory chooses same fd.
38616         * lib/at-func.c (AT_FUNC_NAME): Likewise.
38617
38618         mkdir, mkdirat: fix cygwin 1.5.x bug
38619         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
38620         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
38621         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
38622         bug.
38623         (gl_PREREQ_MKDIR): Delete unused macro.
38624         * modules/mkdir (Files): Track file rename.
38625         (configure.ac): Update macro name.
38626         * modules/openat (Depends-on): Add mkdir.
38627         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
38628
38629         mkdir, mkdirat: add tests
38630         * modules/mkdir-tests: New test.
38631         * tests/test-mkdir.h: New file.
38632         * tests/test-mkdir.c: Likewise.
38633         * tests/test-mkdirat.c: Likewise.
38634         * modules/openat-tests (Files): Add new files.
38635         (Makefile.am): Run new test.
38636
38637 2009-10-06  Eric Blake  <ebb9@byu.net>
38638
38639         doc: tweak *at function documentation
38640         * doc/posix-functions/faccessat.texi (faccessat): Mention
38641         known issue with replacement.
38642         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
38643         * doc/posix-functions/linkat.texi (linkat): Likewise.
38644         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
38645         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
38646         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38647         * doc/posix-functions/renameat.texi (renameat): Likewise.
38648         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38649
38650         openat: fix GNU/Hurd bug in unlinkat
38651         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
38652         broken.
38653         * doc/posix-functions/unlink.texi (unlink): Document this.
38654         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
38655
38656         fdopendir: fix GNU/Hurd bug
38657         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
38658         allowing non-directory fds.
38659         * lib/fdopendir.c (rpl_fdopendir): Work around it.
38660         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
38661         * modules/dirent (Makefile.am): Substitute it.
38662         * lib/dirent.in.h (fdopendir): Declare replacement.
38663         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
38664         * tests/test-fdopendir.c (main): Test something other than
38665         /dev/null, since on Hurd that behaves like a directory.
38666
38667         test-symlink: port to GNU/Hurd
38668         * tests/test-symlink.h (test_symlink): Relax expected errno.
38669
38670         doc: tweak more cygwin information
38671         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
38672         now compatible with glibc.
38673         * doc/posix-functions/getopt.texi (getopt): Likewise.
38674
38675         getopt-gnu: add another test
38676         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
38677         guarantee behavior relied on by m4.
38678         * tests/test-getopt.c (main): Use it.
38679         * modules/getopt-posix-tests (Depends-on): Add setenv.
38680         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
38681
38682         getopt: fix compilation on darwin
38683         * lib/getopt.in.h (includes): Leave breadcrumbs during system
38684         include.
38685         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
38686         Reported by Ludovic Courtès.
38687
38688 2009-10-06  Bruno Haible  <bruno@clisp.org>
38689
38690         * modules/size_max (Description): Discourage its use.
38691         Reported by Simon Josefsson.
38692
38693 2009-10-06  Jim Meyering  <meyering@redhat.com>
38694
38695         linkat: avoid compilation failure
38696         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
38697
38698 2009-10-05  Eric Blake  <ebb9@byu.net>
38699
38700         linkat: support Linux 2.6.17
38701         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
38702         linkat on Linux, but allow cache variable override.
38703         * lib/linkat.c (rpl_linkat): Define override.
38704         * modules/linkat (Depends-on): Add symlinkat.
38705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
38706         * modules/unistd (Makefile.am): Substitute it.
38707         * lib/unistd.in.h (linkat): Declare replacement.
38708         Reported by Pádraig Brady.
38709
38710         quotearg: port test to systems with C.UTF-8 locale
38711         * tests/test-quotearg.c (struct result_strings): Add another
38712         member, differentiating between C.ASCII and C.UTF-8 handling.
38713         (compare_strings): Add parameter.
38714         (main): Adjust all callers.
38715
38716         getopt: avoid clash with FreeBSD _getopt_internal
38717         * lib/getopt.in.h (_getopt_internal): Override the name.
38718         * lib/getopt_int.h (includes): Pick up any overrides.
38719         Reported by Reuben Thomas.
38720
38721         hash: allow C89 compilation
38722         * lib/hash.c (check_tuning): Move declaration before statement.
38723         Reported by Reuben Thomas.
38724
38725 2009-10-05  Karl Berry  <karl@gnu.org>
38726
38727         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
38728
38729 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
38730             Bruno Haible  <bruno@clisp.org>
38731
38732         * lib/uname.c (uname): Use a table-driven algorithm to compute
38733         Windows NT versions.
38734
38735 2009-10-04  Bruno Haible  <bruno@clisp.org>
38736
38737         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
38738         program_invocation_short_name.
38739         * modules/progname (configure.ac): Test for presence of
38740         program_invocation_short_name.
38741         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38742
38743 2009-10-04  Bruno Haible  <bruno@clisp.org>
38744
38745         * lib/progname.c (set_program_name): Fix comment.
38746         Reported by Jim Meyering.
38747
38748 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
38749             Bruno Haible  <bruno@clisp.org>
38750
38751         * lib/uname.c: Include <string.h>.
38752         (uname): Do only one call to GetVersionEx in the common case.
38753
38754 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
38755             Bruno Haible  <bruno@clisp.org>
38756
38757         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
38758         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
38759         (uname): Add support for Windows CE and various non-x86 CPU types.
38760
38761 2009-10-03  Bruno Haible  <bruno@clisp.org>
38762
38763         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
38764         invocation to tests/configure.ac.
38765         Reported by Ian Beckwith <ianb@erislabs.net>.
38766
38767 2009-10-02  Eric Blake  <ebb9@byu.net>
38768
38769         fchdir: avoid compiler warning
38770         * lib/fchdir.c (canonicalize_file_name)
38771         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
38772
38773         test-open: support mingw errno values
38774         * tests/test-open.h (test_open): Relax test.
38775         * tests/test-fopen.h (test_fopen): Likewise.
38776         * tests/test-openat-safer.c (main): Likewise.
38777
38778         open: fix opening directory on mingw
38779         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
38780
38781         test-open: on GNU/Hurd, /dev/null is a directory
38782         * tests/test-fopen.h (main): Rename...
38783         (test_fopen): ...to this.  Use a guaranteed non-directory when
38784         confirming open behavior on trailing slash.
38785         * tests/test-openat-safer.c (main): Likewise.
38786         * tests/test-open.h (main): Likewise....
38787         (test_open): ...to this.
38788         * tests/test-fopen.c (main): Adjust caller.
38789         * tests/test-fopen-safer.c (main): Likewise.
38790         * tests/test-open.c (main): Likewise.
38791         * tests/test-fcntl-safer.c (main): Likewise.
38792         Reported by Samuel Thibault.
38793
38794         rename, fchdir: don't ignore chdir failure
38795         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
38796         * lib/rename.c (rpl_rename) [W32]: Likewise.
38797         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
38798         an empty destination directory if source cannot be renamed,
38799         although there is still possibility for failure.
38800         * doc/posix-functions/rename.texi (rename): Document the race.
38801         Reported by Jim Meyering.
38802
38803         maint: cleanup whitespace in recent commits
38804         * lib/rename.c (rpl_rename): Remove tabs.
38805         * tests/test-link.h (test_link): Likewise.
38806         * lib/fchdir.c (get_name): Likewise.
38807         Reported by Jim Meyering.
38808
38809 2009-10-02  Ben Pfaff  <blp@gnu.org>
38810
38811         relocatable-prog-wrapper: Add missing dependency on
38812         double-slash-root.
38813         * modules/relocatable-prog-wrapper: Add dependency.
38814         Reported by Ian Beckwith <ianb@erislabs.net>.
38815
38816 2009-10-02  Eric Blake  <ebb9@byu.net>
38817
38818         renameat: fix Solaris bugs
38819         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
38820         needed fixing.
38821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
38822         * modules/stdio (Makefile.am): Substitute it.
38823         * lib/stdio.in.h (renameat): Declare replacement.
38824         * lib/renameat.c (rpl_renameat): Implement fix.
38825
38826         renameat: new module
38827         * modules/renameat: New file.
38828         * lib/renameat.c (renameat): Likewise.
38829         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
38830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
38831         * modules/stdio (Makefile.am): Substitute them.
38832         * lib/stdio.in.h (renameat): Declare it.
38833         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38834         * doc/posix-functions/renameat.texi (renameat): Likewise.
38835         * modules/renameat-tests: New test.
38836         * tests/test-renameat.c: Likewise.
38837
38838         rename: fix mingw bugs
38839         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
38840         directory overwrite bugs.
38841
38842         rename: fix another cygwin 1.5 bug
38843         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
38844         checks.
38845         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
38846         unnecessary cygwin workarounds.  Also work around bug with moving
38847         full directory onto an empty one.
38848         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
38849
38850         rename-dest-slash: merge into rename module
38851         * modules/rename-dest-slash (Status): Mark obsolete.
38852         (Depends-on): Add rename.
38853         (Files): Let rename do it all.
38854         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
38855         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
38856         * m4/rename-dest-slash.m4: ...so this file can be deleted.
38857         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
38858         * lib/rename.c (rpl_rename): Update comments.
38859
38860         rename: fix cygwin 1.5.x bugs
38861         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
38862         * lib/rename.c (rpl_rename): Work around them.
38863         * modules/rename (Depends-on): Add same-inode.
38864
38865         rename: fix Solaris 10 bug
38866         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
38867         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
38868         was the only bug.
38869
38870         rename: fix Solaris 9 bug
38871         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
38872         on non-directory.  Avoid calling exit.
38873         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
38874         strdup.
38875         * modules/rename-tests (Depends-on): Drop lstat.
38876         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
38877         (gl_PREREQ_RENAME): Delete unused macro.
38878
38879         rename-dest-slash: fix NetBSD bug
38880         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
38881         links.
38882         * modules/rename-dest-slash (Depends-on): Add same-inode.
38883
38884         rename-tests: new test, exposes several platform bugs
38885         * modules/rename-tests: New file.
38886         * tests/test-rename.h: Likewise.
38887         * tests/test-rename.c: Likewise.
38888         * doc/posix-functions/rename.texi (rename): Improve documentation,
38889         including bugs that will eventually be fixed in gnulib.
38890
38891 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
38892
38893         * lib/uname.c: Include <stdlib.h>
38894         (uname): Assume version info is available.
38895
38896 2009-10-02  Jim Meyering  <meyering@redhat.com>
38897
38898         gnu-web-doc-update: correct --help output
38899         * build-aux/gnu-web-doc-update: Make --help output relevant.
38900
38901         gnu-web-doc-update: add standard options
38902         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
38903
38904         gnu-web-doc-update: New module.
38905         Use this script to automatically update the on-line web documentation
38906         for your GNU project at http://www.gnu.org/software/$pkg/manual/
38907         * modules/gnu-web-doc-update: New file, from coreutils.
38908         * build-aux/gnu-web-doc-update: New script.
38909
38910 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
38911
38912         link: LoadLibrary is not needed.
38913         * lib/link.c: Use GetModuleHandle.
38914
38915 2009-10-01  Eric Blake  <ebb9@byu.net>
38916
38917         getopt: bump serial number
38918         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
38919         change.
38920
38921         tests: tighten link, rmdir, and remove tests
38922         * tests/test-link.h (includes): No need to use <config.h> here.
38923         Clean up if directory hard link was created, otherwise test for
38924         trailing '.'.
38925         * tests/test-linkat.c (main): Simplify.
38926         * tests/test-remove.c (main): Enhance test for trailing '.'.
38927         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38928
38929 2009-10-01  Jim Meyering  <meyering@redhat.com>
38930
38931         maint.mk: requiring "make major" was annoying, for a "minor" release.
38932         What is intended is "stable", to contrast with alpha and beta,
38933         so require "make stable", not "make major".
38934         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
38935         (get_tool_versions): Likewise.
38936         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
38937
38938 2009-09-30  Ben Pfaff  <blp@gnu.org>
38939
38940         Fix broken build of replacement for Windows tmpfile().
38941         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
38942         flags argument added along with the 'mkostemp' module.
38943
38944 2009-09-28  Bruno Haible  <bruno@clisp.org>
38945
38946         Avoid identifier clash with POSIX function 'remove' defined as a macro.
38947         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
38948         to 'remove_elt'.
38949         (gl_list_remove): Update.
38950         * lib/gl_list.c (gl_list_remove): Update.
38951         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
38952         to 'remove_elt'.
38953         (gl_oset_remove): Update.
38954         * lib/gl_list.c (gl_oset_remove): Update.
38955         Reported by Eric Blake.
38956
38957 2009-09-28  Eric Blake  <ebb9@byu.net>
38958
38959         doc: mention yet more cygwin 1.7 status
38960         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
38961         cygwin.
38962         * doc/glibc-functions/execvpe.texi (execvpe): New file.
38963         * doc/gnulib.texi (Glibc unistd.h): Mention it.
38964
38965         argp: fix test failure
38966         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
38967         that are not upper-case.  Pass correct range to tolower.
38968
38969 2009-09-27  Jim Meyering  <meyering@redhat.com>
38970
38971         test-yesno: work around sparc-dash here-document infelicity
38972         Without this change, the literal \177 byte in a here document
38973         would make dash 0.5.5.1-3 access uninitialized memory.
38974         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
38975         Instead, use a marker, "@", and filter through tr to create the desired
38976         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
38977
38978 2009-09-27  Bruno Haible  <bruno@clisp.org>
38979
38980         Disable untested support for new flavours of ACLs on AIX.
38981         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
38982         progress.
38983         * lib/set-mode-acl.c (qset_acl): Likewise.
38984
38985 2008-12-07  Bruno Haible  <bruno@clisp.org>
38986
38987         Add support for new flavours of ACLs on AIX. (Untested.)
38988         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
38989         (file_has_acl): Add support for newer AIX.
38990         * lib/set-mode-acl.c (qset_acl): Likewise.
38991         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
38992         Rainer Tammer <tammer@tammer.net>.
38993
38994 2009-09-26  Eric Blake  <ebb9@byu.net>
38995
38996         argp: fix compilation of getopt
38997         * lib/getopt.in.h (includes): Use different guard than glibc.
38998         Reported by Sergey Poznyakoff.
38999
39000         doc: mention more cygwin 1.7 status
39001         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39002         bug.
39003         * doc/posix-functions/execl.texi (execl): Likewise.
39004         * doc/posix-functions/execle.texi (execle): Likewise.
39005         * doc/posix-functions/execlp.texi (execlp): Likewise.
39006         * doc/posix-functions/execv.texi (execv): Likewise.
39007         * doc/posix-functions/execve.texi (execve): Likewise.
39008         * doc/posix-functions/execvp.texi (execvp): Likewise.
39009         * doc/glibc-functions/canonicalize_file_name.texi
39010         (canonicalize_file_name): Cygwin 1.7 now provides this.
39011         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
39012         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
39013         on AT_SYMLINK_NOFOLLOW.
39014
39015 2009-09-24  Eric Blake  <ebb9@byu.net>
39016
39017         test-linkat: make test more robust
39018         * tests/test-linkat.c (main): Avoid collision with EEXIST.
39019
39020         getopt: fix inclusion guards for cygwin
39021         * modules/getopt-posix (Depends-on): Add include-next.
39022         (Makefile.am): Substitute more items in replacement header.
39023         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
39024         <getopt.h>.
39025         * lib/getopt.in.h (includes): Use split inclusion guard, and
39026         prefer <getopt.h> over include <unistd.h> when one is present.
39027         (option): Also override name of 'struct option'.
39028
39029         same-inode: revert prior change; it is not yet ready
39030         * NEWS: Undo mention of this change.
39031         * lib/same-inode.h (same-inode.h): Undo tri-state change.
39032         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39033         * lib/cycle-check.c (cycle_check): Likewise.
39034         * lib/same.c (same_name): Likewise.
39035         * lib/at-func2.c (at_func2): Likewise.
39036
39037 2009-09-23  Eric Blake  <ebb9@byu.net>
39038
39039         linkat: new module
39040         * modules/linkat: New file.
39041         * lib/at-func2.c (at_func2): Likewise.
39042         * lib/linkat.c (linkat): Likewise.
39043         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
39044         * lib/openat-priv.h (at_func2): Add declaration.
39045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39046         * modules/unistd (Makefile.am): Substitute them.
39047         * lib/unistd.in.h (linkat): Declare it.
39048         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39049         * doc/posix-functions/linkat.texi (linkat): Likewise.
39050         * doc/posix-functions/link.texi (link): Tweak wording.
39051         * tests/test-link.c (main): Move guts...
39052         * tests/test-link.h (test_link): ...into new file.
39053         * modules/linkat-tests: New test.
39054         * tests/test-linkat.c: Likewise.
39055         * modules/link-tests (Files): Ship new file.
39056         (Depends-on): Add stdbool.
39057
39058         dirname: add library-safe mdir_name
39059         * lib/dirname.h (mdir_name): New prototype.
39060         * lib/dirname.c (dir_name): Move guts...
39061         (mdir_name): ...to new function that avoids xalloc_die.
39062
39063         fchdir: another mingw fix
39064         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
39065         * lib/fchdir.c (get_name): New helper method; skips canonicalize
39066         on mingw (where it has not yet been ported), and make it optional
39067         elsewhere.
39068         (_gl_register_fd): Use it.
39069
39070         same-inode: make SAME_INODE tri-state, to port to mingw
39071         * NEWS: Mention this change.
39072         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
39073         st_ino always being 0.
39074         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39075         * lib/cycle-check.c (cycle_check): Likewise.
39076         * lib/same.c (same_name): Likewise.
39077
39078         lstat: avoid mingw compilation error
39079         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
39080         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
39081         lstat ourselves.
39082         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
39083         was adequate.
39084         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
39085         the checks for lstat.
39086         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
39087
39088         link: fix test failure on Solaris 9
39089         * lib/link.c (rpl_link): Don't assume link will catch bogus
39090         trailing slash on source.
39091
39092         test-symlinkat: enhance test
39093         * tests/test-readlink.c (main): Move guts...
39094         * tests/test-readlink.h (test_readlink): ...into new file.
39095         * tests/test-symlink.c (main): Move guts...
39096         * tests/test-symlink.h (test_symlink): ...into new file.
39097         * tests/test-symlinkat.c (main): Use new files for further
39098         coverage.
39099         (do_symlink, do_readlink): New helper functions.
39100         * modules/symlink-tests (Files): Ship new file.
39101         (Depends-on): Add stdbool.
39102         * modules/readlink-tests (Files): Ship new file.
39103         (Depends-on): Add stdbool.
39104         * modules/symlinkat-tests (Files): Use new files.
39105
39106 2009-09-23  Eric Blake  <ebb9@byu.net>
39107
39108         readlink: document portability issue with symlink length
39109         * doc/posix-functions/lstat.texi (lstat): Mention that some file
39110         systems have bogus st_size on symlinks, and mention the
39111         areadlink-with-size module.
39112         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39113         * doc/posix-functions/readlink.texi (readlink): Mention the
39114         areadlink module, and ERANGE failure.
39115         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39116         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
39117
39118         readlink: fix Solaris 9 bug with trailing slash
39119         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
39120         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
39121         * doc/posix-functions/readlink.texi (readlink): Document this.
39122         * modules/readlink-tests: New test.
39123         * tests/test-readlink.c: Likewise.
39124
39125         readlink: fix cygwin 1.5.x bug with return type
39126         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
39127         * lib/unistd.in.h (readlink): Use ssize_t.
39128         * lib/readlink.c (readlink): Likewise.
39129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39130         * modules/unistd (Makefile.am): Substitute it.
39131         * lib/unistd.in.h (readlink): Declare replacement.
39132         * doc/posix-functions/readlink.texi (readlink): Document this.
39133
39134         symlink: use throughout gnulib
39135         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
39136         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
39137         symlink is not used.
39138         * modules/symlinkat (Depends-on): Add symlink.
39139         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39140         * modules/canonicalize-tests (Depends-on): Likewise.
39141         * modules/lstat-tests (Depends-on): Likewise.
39142         * modules/openat-tests (Depends-on): Likewise.
39143         * modules/remove-tests (Depends-on): Likewise.
39144         * modules/rmdir-tests (Depends-on): Likewise.
39145         * modules/unlink-tests (Depends-on): Likewise.
39146         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
39147         * tests/test-canonicalize.c (symlink): Likewise.
39148         * tests/test-fstatat.c (symlink): Likewise.
39149         * tests/test-lstat.c (symlink): Likewise.
39150         * tests/test-remove.c (symlink): Likewise.
39151         * tests/test-rmdir.c (symlink): Likewise.
39152         * tests/test-unlink.c (symlink): Likewise.
39153         * tests/test-unlinkat.c (symlink): Likewise.
39154
39155         symlink: new module, for Solaris 9 bug
39156         * modules/symlink: New file.
39157         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
39158         * lib/symlink.c: Likewise.
39159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39160         * modules/unistd (Makefile.am): Substitute them.
39161         * lib/unistd.in.h (symlink): Declare replacement.
39162         * MODULES.html.sh (File system functions): Mention it.
39163         * doc/posix-functions/symlink.texi (symlink): Likewise.
39164         * modules/symlink-tests: New test.
39165         * tests/test-symlink.c: Likewise.
39166
39167 2009-09-23  Bruno Haible  <bruno@clisp.org>
39168
39169         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
39170         when needed.
39171         Test case: gnulib-tool --import --with-tests atexit inttypes.
39172         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
39173
39174 2009-09-23  Bruno Haible  <bruno@clisp.org>
39175
39176         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
39177         subcommand, not in a subshell.
39178
39179 2009-09-22  Eric Blake  <ebb9@byu.net>
39180
39181         unistd: sort replacement declarations
39182         * lib/unistd.in.h: Sort declarations.
39183
39184         open, openat: minor optimization
39185         * lib/open.c (open): If open succeeded, len is non-zero.
39186         * lib/openat.c (rpl_openat): Likewise.
39187
39188         link-follow: ensure correct result
39189         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
39190         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
39191         distinguish between possible failures.
39192
39193 2009-09-21  Eric Blake  <ebb9@byu.net>
39194
39195         fts: avoid compiler warning
39196         * lib/fts.c (dirent_inode_sort_may_be_useful)
39197         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
39198
39199 2009-09-19  Bruno Haible  <bruno@clisp.org>
39200
39201         * lib/progreloc.c (canonicalize_file_name): New declaration.
39202
39203 2009-09-19  Eric Blake  <ebb9@byu.net>
39204
39205         link: fix quoting
39206         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
39207
39208         openat: fix openat bugs on Solaris 9
39209         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
39210         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
39211         * modules/openat (Depends-on): Add open.
39212         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
39213         * modules/fcntl-h (Makefile.am): Substitute it.
39214         * lib/fcntl.in.h (openat): Declare replacement.
39215         * doc/posix-functions/openat.texi (openat): Document this.
39216
39217         openat: move fstatat and unlinkat into correct files
39218         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
39219         compiled.
39220         * lib/openat.c (fstatat, unlinkat): Move...
39221         * lib/fstatat.c (fstatat): ...into correct files.
39222         * lib/unlinkat.c (unlinkat): Likewise.
39223
39224         openat: fix unlinkat bugs on Solaris 9
39225         * lib/unlinkat.c (unlinkat): New file.
39226         * modules/openat (Depends-on): Add unlink.
39227         (Files): Distribute it.
39228         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
39229         trailing slash behavior is broken.
39230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39231         * modules/unistd (Makefile.am): Substitute it.
39232         * lib/unistd.in.h (unlinkat): Declare replacement.
39233         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
39234
39235         openat: fix fstatat bugs on Solaris 9
39236         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
39237         stat.
39238         * doc/posix-functions/fstatat.texi (fstatat): Document this.
39239
39240         test-unlinkat: enhance test, to expose Solaris 9 bug
39241         * tests/test-unlink.c (main): Factor guts...
39242         * tests/test-unlink.h (test_rmdir_func): ...into new file.
39243         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
39244         * tests/test-rmdir.c (main): Adjust caller.
39245         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
39246         (unlinker): New helper function.
39247         (rmdirat): Enhance check.
39248         * modules/rmdir-tests (Depends-on): Add stdbool.
39249         * modules/unlink-tests (Depends-on): Likewise.
39250         (Files): Add test-unlink.h.
39251         * modules/openat-tests (Files): Likewise.
39252         (Depends-on): Add unlinkdir.
39253
39254         test-fstatat: new test, to expose Solaris 9 bugs
39255         * tests/test-stat.c (main): Factor guts...
39256         * tests/test-stat.h (test_stat_func): ...into new file.
39257         * tests/test-lstat.c (main): Factor guts...
39258         * tests/test-lstat.h (test_lstat_func): ...into new file.
39259         * tests/test-fstatat.c: New file.
39260         * modules/stat-tests (Files): Add test-stat.h.
39261         * modules/lstat-tests (Files): Add test-lstat.h.
39262         (Depends-on): Add stdbool.
39263         * modules/openat-tests (Depends-on): Add pathmax.
39264         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
39265         (Makefile.am): Run new test.
39266
39267         remove: new module, for mingw and Solaris 9 bugs
39268         * modules/remove: New file.
39269         * lib/remove.c: Likewise.
39270         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
39271         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39272         * modules/stdio (Makefile.am): Use them.
39273         * lib/stdio.in.h (remove): Declare replacement.
39274         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39275         * doc/posix-functions/remove.texi (remove): Likewise.
39276         * modules/remove-tests: New test.
39277         * tests/test-remove.c: Likewise.
39278
39279         unlink: new module, for Solaris 9 bug
39280         * modules/unlink: New file.
39281         * lib/unlink.c: Likewise.
39282         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
39283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39284         * modules/unistd (Makefile.am): Use them.
39285         * lib/unistd.in.h (stat): Declare replacement.
39286         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39287         * doc/posix-functions/unlink.texi (unlink): Likewise.
39288         * modules/unlink-tests: New test.
39289         * tests/test-unlink.c: Likewise.
39290
39291         lstat: fix Solaris 9 bug
39292         * lib/lstat.c (lstat): Also check for trailing slash on
39293         non-symlink, non-directories.  Use stat module to simplify logic.
39294         * doc/posix-functions/lstat.texi (lstat): Document it.
39295         * modules/lstat-tests (Depends-on): Add errno, same-inode.
39296         (configure.ac): Check for symlink.
39297         * tests/test-lstat.c (main): Add more tests.
39298
39299         stat: add as dependency to other modules
39300         * modules/chown (Depends-on): Add stat.
39301         * modules/euidaccess (Depends-on): Likewise.
39302         * modules/fchdir (Depends-on): Likewise.
39303         * modules/isdir (Depends-on): Likewise.
39304         * modules/link (Depends-on): Likewise.
39305         * modules/lstat (Depends-on): Likewise.
39306         * modules/mkdir-p (Depends-on): Likewise.
39307         * modules/modechange (Depends-on): Likewise.
39308         * modules/open (Depends-on): Likewise.
39309         * modules/readlink (Depends-on): Likewise.
39310         * modules/same (Depends-on): Likewise.
39311
39312         stat: fix Solaris 9 bug
39313         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
39314         slash.
39315         * lib/stat.c (rpl_stat): Work around it.
39316         * doc/posix-functions/stat.texi (stat): Update documentation.
39317
39318         stat: new module, for mingw bug
39319         * modules/stat: New file.
39320         * lib/stat.c: Likewise.
39321         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39322         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39323         * modules/sys_stat (Makefile.am): Use them.
39324         * lib/sys_stat.in.h (stat): Declare replacement.
39325         * lib/openat.c (fstatat): Deal with lstat and stat being function
39326         macros.
39327         * modules/openat (Depends-on): Add inline.
39328         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39329         * doc/posix-functions/stat.texi (stat): Likewise.
39330         * modules/stat-tests: New test.
39331         * tests/test-stat.c: Likewise.
39332
39333 2009-09-19  Jim Meyering  <meyering@redhat.com>
39334
39335         syntax-check: detect unnecessary inclusion of canonicalize.h
39336         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
39337
39338 2009-09-19  Eric Blake  <ebb9@byu.net>
39339
39340         canonicalize-lgpl: adjust clients to use correct header
39341         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
39342         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
39343         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
39344         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
39345         * lib/progreloc.c (includes): Likewise.
39346
39347 2009-09-19  Jim Meyering  <meyering@redhat.com>
39348
39349         test-posixtm.c: correct a comment
39350         * tests/test-posixtm.c: Correct first-line comment.
39351         Spotted by Eric Blake.
39352
39353 2009-09-16  Jim Meyering  <meyering@redhat.com>
39354
39355         posixtm-tests: make T const-correct; add a test case
39356         * tests/test-posixtm.c (T): Declare const.
39357         Add a test for -(2^31+1).
39358         Remove useless can-succeed-only-in-2002 test.
39359
39360         posixtm-tests: adjust the sole failing test
39361         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
39362         expected output matches what mktime now produces.  Cross-checked via
39363         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
39364
39365         posixtm: move #ifdef'd tests into a new module
39366         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
39367         * tests/test-posixtm.c: ... this new file.
39368         * modules/posixtm-tests: New module.
39369
39370 2009-09-19  Eric Blake  <ebb9@byu.net>
39371
39372         openat: simplify use of at-func.c
39373         * lib/at-func.c (includes): Include prerequisites here, to
39374         simplify requirements on client files.
39375         * lib/openat-priv.h: Add double-inclusion guard.
39376         * lib/faccessat.c (includes): Simplify.
39377         * lib/fchmodat.c (includes): Likewise.
39378         * lib/fchownat.c (includes): Likewise.
39379         * lib/mkdirat.c (includes): Likewise.
39380         * lib/mkfifoat.c (includes): Likewise.
39381         * lib/symlinkat.c (includes): Likewise.
39382
39383         openat: allow return of fd 0
39384         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
39385         * modules/save-cwd (Depends-on): Replace fcntl-safer with
39386         unistd-safer.
39387         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
39388         <fcntl.h>; this module does not leak fds.
39389         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
39390         must be allowed to return 0, leaving openat_safer to add the
39391         safety.
39392         (openat_permissive): Avoid writing to just-opened fd 2 if
39393         restoring the current directory fails.
39394         * lib/openat-die.c (openat_restore_fail): Add comment.
39395         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
39396         (save_cwd): Guarantee safe fd, but without use of open_safer.
39397         * tests/test-openat.c: New test.
39398         * modules/openat-tests (Files, Makefile.am): Distribute and build
39399         new file.
39400
39401         relocatable-prog-wrapper: fix build
39402         * modules/relocatable-prog-wrapper (Files): Update name of
39403         canonicalize m4 file, broken on 2009-09-17.
39404         Reported by emad hajjar <aleppos@hotmail.com>.
39405
39406 2009-09-19  Bruno Haible  <bruno@clisp.org>
39407
39408         * lib/safe-alloc.h: Use the standard header with GPL copyright.
39409         * lib/safe-alloc.c: Likewise.
39410         Reported by Ian Beckwith <ianb@erislabs.net>.
39411
39412 2009-09-18  Bruno Haible  <bruno@clisp.org>
39413
39414         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
39415         Reported by <erobles@sensacd.com.mx>.
39416
39417 2009-09-17  Eric Blake  <ebb9@byu.net>
39418
39419         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
39420         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
39421         slashes when checking if last component is missing.
39422         * tests/test-canonicalize.c (main): Test this.
39423
39424         canonicalize, canonicalize-lgpl: honor // if distinct from /
39425         * modules/canonicalize (Files): Add double-slash-root.m4.
39426         * modules/canonicalize-lgpl (Files): Likewise.
39427         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
39428         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
39429         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
39430         fallback definition.
39431         (canonicalize_filename_mode): Use it to protect //.
39432         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
39433         (__realpath): Likewise.
39434         * tests/test-canonicalize.c (main): Test this.
39435         * tests/test-canonicalize-lgpl.c (main): Likewise.
39436         * modules/canonicalize-tests (Depends-on): Add same-inode.
39437         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39438
39439         canonicalize-lgpl: fix glibc bug with trailing slash
39440         * m4/canonicalize-lgpl.m4: Move contents...
39441         * m4/canonicalize.m4: ...here.
39442         (gl_CANONICALIZE_LGPL): Factor realpath check...
39443         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
39444         glibc 2.3.5 bug, fixed 2005-04-27.
39445         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
39446         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
39447         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
39448         * modules/canonicalize-lgpl (Files): Manage file rename.
39449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
39450         * modules/stdlib (Makefile.am): Substitute witness.
39451         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
39452         is needed.
39453         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
39454         replacement is required.
39455         * lib/canonicalize.c (canonicalize_file_name): Likewise.
39456         * doc/glibc-functions/canonicalize_file_name.texi
39457         (canonicalize_file_name): Document this.
39458         * doc/posix-functions/realpath.texi (realpath): Likewise.
39459
39460         canonicalize-lgpl: reject non-directory with trailing slash
39461         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
39462         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
39463         catches failures in glibc 2.3.5.
39464         * tests/test-canonicalize.c (main): Likewise.
39465
39466         canonicalize-lgpl: use native realpath if it works
39467         * lib/canonicalize-lgpl.c (realpath): Guard with
39468         FUNC_REALPATH_WORKS.
39469         * lib/stdlib.in.h (realpath): Make declaration optional based on
39470         HAVE_REALPATH.
39471         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
39472         native realpath works.
39473         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
39474         * modules/stdlib (Makefile.am): Substitute witness.
39475
39476         canonicalize, canonicalize-lgpl: use <stdlib.h>
39477         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
39478         (Include): Mention <stdlib.h>.
39479         (configure.ac): Mention functions we provide.
39480         * modules/canonicalize (configure.ac): Likewise.
39481         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
39482         realpath if canonicalize_file_name is missing.
39483         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
39484         * modules/stdlib (Makefile.am): Substitute witnesses.
39485         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
39486         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
39487         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
39488         * NEWS: Document this.
39489         * doc/glibc-functions/canonicalize_file_name.texi
39490         (canonicalize_file_name): Likewise.
39491         * doc/posix-functions/realpath.texi (realpath): Likewise.
39492         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
39493
39494         test-canonicalize: consolidate into single C program
39495         * tests/test-canonicalize.sh: Delete; move setup into...
39496         * tests/test-canonicalize.c (main): ...the program, making it
39497         easier to run in debugger.  Add some tests.
39498         * modules/canonicalize-tests (Files): Remove unused file.
39499         (Depends-on): Add progname.
39500         (configure.ac, Makefile.am): Simplify.
39501
39502         test-canonicalize-lgpl: consolidate into single C program
39503         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
39504         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
39505         easier to run in debugger.  Add some tests.
39506         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
39507         (configure.ac, Makefile.am): Simplify.
39508
39509         canonicalize: avoid resolvepath
39510         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
39511         unnecessary checks.
39512         * lib/canonicalize.c (includes): Simplify.
39513         (canonicalize_file_name): Drop resolvepath implementation.
39514         * modules/canonicalize (Depends-on): Drop filenamecat.
39515
39516         canonicalize: don't lose errno
39517         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
39518         over calls to free.
39519
39520         canonicalize: simplify errno handling
39521         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
39522         assignment.
39523
39524         canonicalize, canonicalize-lgpl: update module dependencies
39525         * modules/canonicalize (Depends-on): Add extensions, lstat,
39526         pathmax, stdlib.
39527         (Files): Drop pathmax.h.
39528         (configure.ac): Adjust macro name.
39529         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
39530         lstat, stdlib, sys_stat.
39531         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
39532         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
39533         extensions.
39534         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
39535         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
39536         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
39537         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
39538         declaration, if available.
39539         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
39540         we can rely on the readlink module.
39541         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
39542         (includes): Use <unistd.h> unconditionally.
39543
39544 2009-09-17  Eric Blake  <ebb9@byu.net>
39545
39546         maint: make Include sections of modules consistent
39547         * modules/alloca: Use only header name; no need to list #include.
39548         * modules/alloca-opt: Likewise.
39549         * modules/arpa_inet: Likewise.
39550         * modules/canon-host: Likewise.
39551         * modules/configmake: Likewise.
39552         * modules/dirent: Likewise.
39553         * modules/eealloc: Likewise.
39554         * modules/environ: Likewise.
39555         * modules/fchdir: Likewise.
39556         * modules/fcntl: Likewise.
39557         * modules/fcntl-h: Likewise.
39558         * modules/gethrxtime: Likewise.
39559         * modules/gettime: Likewise.
39560         * modules/ignore-value: Likewise.
39561         * modules/inet_ntop: Likewise.
39562         * modules/inet_pton: Likewise.
39563         * modules/inttypes: Likewise.
39564         * modules/isnand-nolibm: Likewise.
39565         * modules/isnanf-nolibm: Likewise.
39566         * modules/mbchar: Likewise.
39567         * modules/mbfile: Likewise.
39568         * modules/mbiter: Likewise.
39569         * modules/mbuiter: Likewise.
39570         * modules/netdb: Likewise.
39571         * modules/netinet_in: Likewise.
39572         * modules/nproc: Likewise.
39573         * modules/pagealign_alloc: Likewise.
39574         * modules/poll: Likewise.
39575         * modules/printf-frexp: Likewise.
39576         * modules/pthread: Likewise.
39577         * modules/putenv: Likewise.
39578         * modules/random_r: Likewise.
39579         * modules/relocatable-prog: Likewise.
39580         * modules/search: Likewise.
39581         * modules/select: Likewise.
39582         * modules/selinux-h: Likewise.
39583         * modules/settime: Likewise.
39584         * modules/signal: Likewise.
39585         * modules/size_max: Likewise.
39586         * modules/socklen: Likewise.
39587         * modules/ssize_t: Likewise.
39588         * modules/stdarg: Likewise.
39589         * modules/stdbool: Likewise.
39590         * modules/stddef: Likewise.
39591         * modules/stdint: Likewise.
39592         * modules/stdio: Likewise.
39593         * modules/stdlib: Likewise.
39594         * modules/string: Likewise.
39595         * modules/strings: Likewise.
39596         * modules/sys_file: Likewise.
39597         * modules/sys_ioctl: Likewise.
39598         * modules/sys_select: Likewise.
39599         * modules/sys_socket: Likewise.
39600         * modules/sys_stat: Likewise.
39601         * modules/sys_time: Likewise.
39602         * modules/sys_times: Likewise.
39603         * modules/sys_utsname: Likewise.
39604         * modules/sys_wait: Likewise.
39605         * modules/sysexits: Likewise.
39606         * modules/time: Likewise.
39607         * modules/times: Likewise.
39608         * modules/tmpfile: Likewise.
39609         * modules/trim: Likewise.
39610         * modules/unistd: Likewise.
39611         * modules/wchar: Likewise.
39612         * modules/wctype: Likewise.
39613
39614 2009-09-17  Bruno Haible  <bruno@clisp.org>
39615
39616         Make getdate.y compile on QNX and NetBSD 5 / i386.
39617         * m4/getdate.m4 (gl_GETDATE): Conditionally define
39618         TIME_T_FITS_IN_LONG_INT.
39619         * lib/getdate.y (long_time_t): New type.
39620         (relative_time): Change type of 'seconds' field to long_time_t.
39621         (get_date): Update types of local variables. Check against overflow
39622         during conversion from long_time_t to time_t.
39623         Reported by Matt Kraai <kraai@ftbfs.org>
39624         and Hasso Tepper <hasso@netbsd.org>.
39625
39626 2009-09-17  Bruno Haible  <bruno@clisp.org>
39627
39628         * modules/COPYING: Update copyright years.
39629         * modules/README: Likeiwse.
39630         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
39631         Reported by Ian Beckwith <ianb@erislabs.net>.
39632
39633 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
39634
39635         * users.txt: Update references for gnuit package.
39636
39637 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
39638
39639         * m4/getdelim.m4: Fix typo in copyright line.
39640
39641 2009-09-17  Bruno Haible  <bruno@clisp.org>
39642
39643         * lib/atoll.c: Use the standard header with GPL copyright.
39644         * lib/argz.in.h: Likewise.
39645         * lib/glob.c: Likewise.
39646         * lib/glob-libc.h: Likewise.
39647         * lib/random_r.c: Likewise.
39648         * lib/siglist.h: Likewise.
39649         * lib/strsignal.c: Likewise.
39650         Reported by Ian Beckwith <ianb@erislabs.net>.
39651
39652 2009-09-17  Eric Blake  <ebb9@byu.net>
39653
39654         rmdir: ensure correct dependency order
39655         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
39656
39657 2009-09-17  Bruno Haible  <bruno@clisp.org>
39658
39659         Disable assertion that fails on NetBSD 5 / i386.
39660         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
39661         Reported by Sam Steingold <sds@gnu.org>
39662         and Hasso Tepper <hasso@netbsd.org>.
39663
39664 2009-09-16  Eric Blake  <ebb9@byu.net>
39665
39666         unlinkdir: port to mingw
39667         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
39668         on which no one can unlink a directory.
39669
39670         stdlib: sort witness names
39671         * modules/stdlib (Makefile.am): Sort replacements.
39672         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
39673         * lib/stdlib.in.h: Likewise.
39674
39675         parse-duration-tests: avoid link failure
39676         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
39677         LIBINTL.
39678         Reported by Tom G. Christensen.
39679
39680         openat-tests: ensure unlinkat behaves like rmdir
39681         * tests/test-rmdir.c (main): Factor guts...
39682         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
39683         * modules/rmdir-tests (Files): Ship new file.
39684         * modules/openat-tests: New test.
39685         * tests/test-unlinkat.c: Likewise.
39686
39687         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
39688         * modules/rmdir-errno (Status, Notice): Now obsolete.
39689
39690         rmdir: work around cygwin 1.5.x and mingw bugs
39691         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
39692         * lib/rmdir.c (rmdir): Work around it.
39693         * modules/rmdir (Status, Notice): No longer obsolete.
39694         (Files): Add dos.m4.
39695         (Depends-on): Add unistd.
39696         (configure.ac): Set witnesses.
39697         (License): Relax to LGPLv2+.
39698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
39699         * modules/unistd (Makefile.am): Substitute witnesses.
39700         * lib/unistd.in.h (rmdir): Declare replacement.
39701         * doc/posix-functions/rmdir.texi (rmdir): Document this.
39702         * modules/rmdir-tests: New tests.
39703         * tests/test-rmdir.c: Likewise.
39704
39705 2009-09-15  Eric Blake  <ebb9@byu.net>
39706
39707         fchdir: improve use of replacement functions
39708         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
39709         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
39710         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
39711         REPLACE_CLOSEDIR.
39712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
39713         * modules/sys_stat (Makefile.am): Substitute correct witness.
39714         * modules/dirent (Makefile.am): Likewise.
39715         * modules/unistd (Makefile.am): Likewise.
39716         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
39717         * lib/unistd.in.h (dup): Likewise.
39718         * lib/sys_stat.in.h (fstat): Likewise.
39719
39720         maint: ignore gnulib-tool temp files
39721         * .gitignore: Ignore files created during gnulib-tool --test.
39722
39723 2009-09-13  Jim Meyering  <meyering@redhat.com>
39724
39725         posixtm: don't reject a time that specify "60" as the number of seconds
39726         * lib/posixtm.c (posixtime): The code to reject invalid dates
39727         would also reject a time specified with the .60 suffix.
39728         But POSIX allows that, in order to accommodate leap seconds.
39729         So don't reject it.
39730         (main): Adjust tests accordingly.
39731         * modules/posixtm (Depends-on): Add stpcpy.
39732
39733 2009-09-11  Jim Meyering  <meyering@redhat.com>
39734
39735         announce-gen: include [$release_type] in emitted Subject:
39736         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
39737         e.g., [stable] in the emitted Subject: line.
39738
39739 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39740
39741         Remove obsolete macros from several modules.
39742         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
39743         obsolete Autoconf macros with their modern counterparts.
39744         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
39745         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
39746         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
39747         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
39748         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
39749         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39750         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
39751         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
39752         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
39753         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
39754         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
39755         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
39756         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
39757         * m4/sockets.m4 (gl_SOCKETS): Likewise.
39758         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
39759         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
39760         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
39761         * m4/time_r.m4 (gl_TIME_R): Likewise.
39762         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
39763         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
39764         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39765
39766         Fix copyright header in build-aux scripts.
39767         * build-aux/git-version-gen: Fix copyright header to match GPLv3
39768         recommendation.
39769         * build-aux/ncftpput-ftp: Likewise.
39770         * build-aux/update-copyright: Likewise.
39771
39772 2009-09-09  Eric Blake  <ebb9@byu.net>
39773
39774         test-link: allow Linux choice of errno
39775         * tests/test-link.c (main): Relax test for alternate error.
39776
39777         strndup: fix improper m4 caching
39778         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
39779         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
39780         (gl_PREREQ_STRNDUP): Delete.
39781         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
39782         * modules/string (Makefile.am): Substitute it.
39783         * lib/string.in.h (strndup): Modernize prototype.
39784
39785         getcwd: port to mingw
39786         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
39787         different from the POSIX assumptions made throughout the getcwd
39788         module; fortunately, the mingw getcwd does not need replacement.
39789         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
39790         * modules/getcwd-tests: New test.
39791         * tests/test-getcwd.c: Likewise.
39792
39793         link: fix platform bugs
39794         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
39795         * lib/link.c (link): Work around them.  Fix related mingw bug.
39796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
39797         * modules/unistd (Makefile.am): Substitute it.
39798         * lib/unistd.in.h (link): Declare replacement.
39799         * doc/posix-functions/link.texi (link): Document this.
39800         * modules/link (Depends-on): Add strdup-posix, sys_stat.
39801
39802         test-link: consolidate into single C program, test more cases
39803         * tests/test-link.sh: Delete.
39804         * tests/test-link.c: Test more error conditions.  Exposes bugs on
39805         at least Cygwin and Solaris.
39806         * modules/link-tests (Files): Remove unused file.
39807         (Depends-on): Add errno, sys_stat.
39808         (Makefile.am): Simplify.
39809
39810 2009-09-08  Bruno Haible  <bruno@clisp.org>
39811
39812         Work around towlower, towupper bug on mingw.
39813         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
39814         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
39815         * doc/posix-functions/towlower.texi: Mention the mingw bug.
39816         * doc/posix-functions/towupper.texi: Likewise.
39817         Reported by Eric Blake.
39818
39819 2009-09-08  Jim Meyering  <meyering@redhat.com>
39820
39821         build: don't try to run autoheader if we don't use it
39822         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
39823         is not used in configure.ac.
39824
39825 2009-09-08  Eric Blake  <ebb9@byu.net>
39826
39827         euidaccess: fix compilation error
39828         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
39829
39830         rawmemchr: relax license
39831         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
39832         okay.
39833         Reported by Jim Meyering.
39834
39835         mkfifoat: new module
39836         * modules/mkfifoat: New file.
39837         * lib/mkfifoat.c: Likewise.
39838         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
39839         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39840         * modules/sys_stat (Makefile.am): Use them.
39841         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
39842         * MODULES.html.sh (File system functions): Mention module.
39843         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39844         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39845         * modules/mkfifoat-tests: New test.
39846         * tests/test-mkfifoat.c: Likewise.
39847
39848         strchrnul: relax license
39849         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
39850         okay.
39851         Reported by Jim Meyering.
39852
39853 2009-09-08  Eric Blake  <ebb9@byu.net>
39854
39855         fstatat: fix compilation on Solaris
39856         * lib/fstatat.c (includes): Add fcntl.h.
39857         Reported by Pádraig Brady.
39858
39859 2009-09-07  Eric Blake  <ebb9@byu.net>
39860
39861         rename: modernize replacement
39862         * modules/rename (Depends-on): Add stdio.
39863         (configure.ac): Declare witness.
39864         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
39865         stdio take care of replacement.
39866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
39867         * modules/stdio (Makefile.am): Substitute them.
39868         * lib/stdio.in.h (rename): Declare replacement.
39869         * lib/rename.c (includes): Allow cross-compilation to non-windows
39870         machines.
39871         * doc/posix-functions/rename.texi (rename): Improve
39872         documentation.
39873
39874         stdio: sort witness names
39875         * modules/stdio (Makefile.am): Sort replacements.
39876         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39877         * lib/stdio.in.h: Likewise.
39878
39879         getcwd: minor cleanups
39880         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
39881         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
39882
39883         openat: provide more convenience names
39884         * modules/faccessat (configure.ac): Add C witness.
39885         * lib/unistd.in.h (readlinkat): Fix typo.
39886         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
39887         convenience wrappers.
39888         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
39889         wrappers in syntax checks.
39890
39891 2009-09-06  Eric Blake  <ebb9@byu.net>
39892
39893         doc: fix comments in recent patches
39894         * lib/faccessat.c: Mention correct function.
39895         * lib/fchmodat.c: Likewise.
39896         * lib/fchownat.c: Likewise.
39897         * lib/symlinkat.c: Likewise.
39898         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
39899         constants.
39900
39901         faccessat, symlinkat: continue cleanup of previous patch
39902         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
39903         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
39904         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
39905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
39906         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
39907         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
39908         set.
39909
39910 2009-09-06  Bruno Haible  <bruno@clisp.org>
39911
39912         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
39913         (fstatat): Declare if GNULIB_FSTATAT is set.
39914         (mkdirat): Declare if GNULIB_MKDIRAT is set.
39915         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
39916         (unlinkat): Declare if GNULIB_UNLINKAT is set.
39917         * modules/fcntl-h (Files): Remove m4/openat.m4.
39918         * modules/sys_stat (Files): Remove m4/openat.m4.
39919         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
39920         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
39921         * modules/unistd (Files): Remove m4/openat.m4.
39922         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
39923         GNULIB_OPENAT.
39924         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
39925         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
39926         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
39927         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
39928         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
39929         gl_OPENAT_DEFAULTS.
39930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
39931         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
39932         Don't require gl_OPENAT_DEFAULTS.
39933         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
39934         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
39935         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
39936         (gl_OPENAT_DEFAULTS): Remove macro.
39937
39938 2009-09-06  Bruno Haible  <bruno@clisp.org>
39939
39940         * modules/openat (configure.ac): Remove unneeded witness.
39941
39942 2009-09-06  Bruno Haible  <bruno@clisp.org>
39943
39944         Set errno to ENOSYS when a function is entirely unsupported.
39945         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
39946         EOPNOTSUPP.
39947         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
39948         * modules/chown (Depends-on): Remove errno.
39949
39950 2009-09-06  Bruno Haible  <bruno@clisp.org>
39951
39952         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
39953
39954 2009-09-06  Bruno Haible  <bruno@clisp.org>
39955
39956         * lib/sys_stat.in.h: Fix preprocessor command indentation.
39957
39958 2009-09-06  Ben Pfaff  <blp@gnu.org>
39959             Bruno Haible  <bruno@clisp.org>
39960
39961         Work around a glibc bug in strtok_r.
39962         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
39963         Undefine if UNDEFINE_STRTOK_R is set.
39964         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
39965         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39966         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
39967         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
39968         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
39969         UNDEFINE_STRTOK_R.
39970         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
39971
39972 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
39973
39974         exclude: minor fix
39975         * lib/exclude.c: Include wctype.h
39976
39977 2009-09-06  Akim Demaille  <demaille@gostai.com>
39978
39979         bootstrap: improve error message
39980         * build-aux/bootstrap (find_tool): Upon failure, report the list
39981         of candidates.
39982         Honor the initial value of the envvar.
39983
39984 2009-09-05  Eric Blake  <ebb9@byu.net>
39985
39986         symlinkat: new module
39987         * modules/symlinkat: New file.
39988         * lib/symlinkat.c: Likewise.
39989         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
39990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39991         * modules/unistd (Makefile.am): Use them.
39992         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
39993         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
39994         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
39995         * MODULES.html.sh (File system functions): Mention module.
39996         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39997         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39998         * modules/symlinkat-tests: New test.
39999         * tests/test-symlinkat.c: Likewise.
40000
40001         test-openat-safer: add more checks
40002         * tests/test-openat-safer.c (main): Check more code paths.
40003
40004 2009-09-05  Jim Meyering  <meyering@redhat.com>
40005
40006         syntax-check: detect unnecessary inclusion of openat.h
40007         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40008
40009 2009-09-05  Bruno Haible  <bruno@clisp.org>
40010
40011         Support towlower, towupper.
40012         * doc/posix-functions/towlower.texi: Mention module wctype.
40013         * doc/posix-functions/towupper.texi: Likewise.
40014         * lib/wctype.in.h (towlower, towupper): New functions.
40015         * tests/test-wctype.c: Include stdio.h, stdlib.h.
40016         (ASSERT): New macro.
40017         (e): New variable.
40018         (main): Test also towlower, towupper. Test WEOF argument.
40019         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40020
40021 2009-09-05  Bruno Haible  <bruno@clisp.org>
40022
40023         Fix conversion behaviour when the input is invalid.
40024         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
40025         mark occurring in first pass of indirect conversion.
40026         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
40027         input.
40028         Found by clang's static analyzer.
40029
40030 2009-09-05  Bruno Haible  <bruno@clisp.org>
40031
40032         * tests/test-striconveh.c (main): Test indirect conversion on platforms
40033         where direct conversion is possible.
40034
40035 2009-09-04  Eric Blake  <ebb9@byu.net>
40036
40037         openat: fail with ENOENT on empty name
40038         * lib/openat-proc.c (openat_proc_name): Special-case the empty
40039         buffer.
40040
40041         link-follow: fix logic bug in prior patch
40042         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
40043         reversed sense of yes and no in prior patch.  Avoid confusing
40044         compilation failure with desired semantics.
40045
40046         link-follow: accomodate mingw and cross-compilation
40047         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
40048         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
40049         cross-compilation results to -1, to make linkat easier to
40050         implement when cross-compiling.  Trivially support mingw.
40051         * modules/link-follow (configure.ac): Call new name.
40052         * NEWS: Mention this.
40053
40054 2009-09-03  Eric Blake  <ebb9@byu.net>
40055
40056         faccessat: compile replacement
40057         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
40058         needed.
40059
40060         fts: fix compilation error
40061         * lib/fts.c (includes): Re-add "openat.h", for
40062         openat_needs_fchdir.
40063
40064         faccessat: new module
40065         * modules/faccessat: New file.
40066         * lib/faccessat.c: Likewise.
40067         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40069         * modules/unistd (Makefile.am): Use it.
40070         * lib/unistd.in.h (faccessat): Declare it.
40071         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
40072         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
40073         * MODULES.html.sh (File system functions): Mention it.
40074         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
40075         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40076
40077         euidaccess: prefer POSIX over non-standard implementation
40078         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
40079         * lib/euidaccess.c (euidaccess): Use it if available.
40080
40081         openat: make template easier to use
40082         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
40083         AT_FUNC_F2 to be undefined.
40084         (VALIDATE_FLAG): New macro; use it to reject bad flags.
40085         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
40086         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
40087         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
40088         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
40089         Likewise.
40090         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
40091         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
40092         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
40093         Likewise.
40094
40095         openat: declare in POSIX headers
40096         * NEWS: Mention this.
40097         * modules/openat (configure.ac): Declare witnesses.
40098         (Depends-on): Add fcntl-h, sys_stat, unistd.
40099         (Include): Mention correct headers.
40100         * modules/fcntl-h (Depends-on): Add link-warning.
40101         (Files): Add openat.m4.
40102         (Makefile.am): Substitute witnesses.
40103         * modules/sys_stat (Files, Makefile.am): Likewise.
40104         * modules/unistd (Files, Makefile.am): Likewise.
40105         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
40106         (gl_OPENAT_DEFAULTS): New macro.
40107         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
40108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
40109         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
40110         (SYS_STAT_H): Remove unused variable.
40111         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
40112         * lib/fcntl--.h (includes): Remove unneeded header.
40113         * lib/openat-safer.c (includes): Likewise.
40114         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
40115         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
40116         appropriate headers.
40117         (__OPENAT_PREFIX): Delete.
40118         * lib/fcntl.in.h (openat): Provide declaration.
40119         (AT_FDCWD): Fix Solaris bug.
40120         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
40121         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
40122         * lib/fchmodat.c (includes):  Adjust to find declaration.
40123         * lib/fchownat.c (includes): Likewise.
40124         * lib/mkdirat.c (includes): Likewise.
40125         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
40126         still visible.
40127
40128 2009-09-02  Eric Blake  <ebb9@byu.net>
40129
40130         errno: use consistently
40131         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
40132         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
40133         * lib/canonicalize.c (ELOOP): Likewise.
40134         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
40135         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
40136         * lib/lchown.c (EOPNOTSUPP): Likewise.
40137         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
40138         * lib/savewd.c (ESTALE): Likewise.
40139         * lib/settime.c (ENOSYS): Likewise.
40140         * lib/utimens.c (ENOSYS): Likewise.
40141         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
40142         * lib/chdir-safer.c (ELOOP): Likewise.
40143         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
40144         * modules/c-stack (Depends-on): Add errno.
40145         * modules/canonicalize (Depends-on): Likewise.
40146         * modules/chdir-safer (Depends-on): Likewise.
40147         * modules/fdopendir (Depends-on): Likewise.
40148         * modules/inet_ntop (Depends-on): Likewise.
40149         * modules/inet_pton (Depends-on): Likewise.
40150         * modules/lchown (Depends-on): Likewise.
40151         * modules/openat (Depends-on): Likewise.
40152         * modules/savewd (Depends-on): Likewise.
40153         * modules/settime (Depends-on): Likewise.
40154         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
40155
40156         fts: avoid leaking fds
40157         * modules/fts (Depends-on): Add cloexec.
40158         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
40159         flag.
40160
40161         fts: make directory fds more robust
40162         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
40163         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
40164
40165         backupfile, chdir-long, fts, savedir: make safer
40166         * lib/backupfile.c (includes): Use "dirent--.h", since
40167         numbered_backup can write to stderr during readdir.
40168         * lib/savedir.c (includes): Likewise.
40169         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
40170         emulation can write to stderr on failure.
40171         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
40172         * lib/getcwd.c: Document why opendir_safer is unused.
40173         * lib/glob.c: Likewise.
40174         * lib/scandir.c: Likewise.
40175         * lib/openat-proc.c: Likewise, for open_safer.
40176         * modules/backupfile (Depends-on): Add dirent-safer.
40177         * modules/savedir (Depends-on): Likewise.
40178         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
40179         * modules/chdir-long (Depends-on): Add openat-safer.
40180
40181         openat-safer: new module
40182         * modules/openat-safer: New file.
40183         * lib/openat-safer.c: Likewise.
40184         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
40185         * lib/fcntl-safer.h (openat_safer): Declare.
40186         * lib/fcntl--.h (openat): Override.
40187         * MODULES.html.sh (File descriptor based I/O): Mention it.
40188         * lib/openat.h: Add double-inclusion guards.
40189         * lib/openat.c (includes): Only include "fcntl-safer.h", not
40190         "fcntl--.h", so we can implement openat.
40191         * modules/openat-safer-tests: New test.
40192         * tests/test-openat-safer.c: New file.
40193
40194         dirent-safer: new module
40195         * modules/dirent-safer: New file.
40196         * lib/dirent--.h: Likewise.
40197         * lib/dirent-safer.h: Likewise.
40198         * lib/opendir-safer.c: Likewise.
40199         * m4/dirent-safer.m4: Likewise.
40200         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
40201         * modules/dirent-safer-tests: New test.
40202         * tests/test-dirent-safer.c: New file.
40203         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
40204
40205         fdopendir: optimize on mingw
40206         * lib/unistd.in.h (_gl_directory_name): New prototype.
40207         * lib/fchdir.c (_gl_directory_name): Implement it.
40208         (fchdir): Use it to simplify implementation.
40209         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
40210         fchdir, when available, to avoid calling [f]chdir().
40211
40212         fdopendir: split into its own module
40213         * lib/openat.c (fdopendir): Move...
40214         * lib/fdopendir.c: ...into new file.
40215         * modules/fdopendir: New module.
40216         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
40217         * modules/openat (Depends-on): Add fdopendir.
40218         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
40219         fdopendir here.
40220         * modules/savedir (Depends-on): Only need fdopendir, not full
40221         openat.
40222         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
40223         * lib/openat.h (fdopendir): Drop prototype.
40224         * lib/dirent.in.h (fdopendir): Provide prototype.
40225         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
40226         * modules/dirent (Makefile.am): Substitute them.
40227         * MODULES.html.sh (File system functions): Mention it.
40228         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
40229         * modules/fdopendir-tests: New file.
40230         * tests/test-fdopendir.c: Likewise.
40231
40232         fchdir: use more consistent macro convention
40233         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
40234         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
40235         REPLACE_FCHDIR, rather than relying on config.h macros.
40236         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
40237         inside a single make-time REPLACE_FCHDIR block, rather than using
40238         the config.h FCHDIR_REPLACEMENT.
40239         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
40240         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
40241         Manage fstat replacement.
40242         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
40243         REPLACE_FCHDIR.
40244         * modules/sys_stat (Files): Add m4/unistd_h.m4.
40245         (Makefile.am): Substitute REPLACE_FCHDIR.
40246         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
40247         FCHDIR_REPLACEMENT.
40248         * lib/dup-safer.c (dup_safer): Likewise.
40249         * lib/dup2.c (rpl_dup2): Likewise.
40250         * lib/dup3.c (rpl_dup3): Likewise.
40251         * lib/open.c (rpl_open): Likewise.
40252
40253         fchdir: simplify error handling, and support dup3
40254         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
40255         stdbool, malloc-posix, realloc-posix.
40256         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
40257         (ensure_dirs_slot): Return false on allocation failure.
40258         (rpl_dup2): Delete.
40259         (_gl_register_dup): New function.
40260         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
40261         (_gl_register_fd): Close fd on allocation failure.
40262         * lib/fcntl.in.h (_gl_register_fd): Update signature.
40263         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
40264         prototype.
40265         (rpl_dup2_fchdir): Delete prototype.
40266         * lib/open.c (open): Update caller.
40267         * lib/dup2.c (dup2): Track fchdir metadata.
40268         * lib/dup3.c (dup3): Likewise.
40269         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
40270         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
40271
40272 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40273
40274         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
40275         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
40276         don't pass arguments to AC_OUTPUT.
40277
40278 2009-09-02  Bruno Haible  <bruno@clisp.org>
40279
40280         * modules/mkdtemp (License): Relicense under LGPLv2+.
40281         Reported by Paolo Bonzini.
40282
40283 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40284
40285         Replace uses of obsolete autoconf macros in Jim's modules.
40286         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
40287         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
40288         can evoke a warning from autoconf when run with -Wobsolete
40289         enabled.  They were declared obsolete for good reasons (see
40290         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
40291         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
40292         should not continue using the deprecated macros.
40293         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
40294         obsolete Autoconf macros with modern counterparts.
40295         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
40296         * m4/dos.m4 (gl_AC_DOS): Likewise.
40297         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
40298         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
40299         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
40300         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
40301         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
40302         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
40303         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
40304         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
40305         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40306         Likewise.
40307         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
40308         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
40309         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
40310         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
40311         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40312         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
40313
40314 2009-09-01  Eric Blake  <ebb9@byu.net>
40315
40316         fchdir: fix off-by-one bug in previous patch
40317         * lib/fchdir.c (rpl_fstat): Use correct bounds.
40318         (_gl_unregister_fd): Delete useless if.
40319
40320 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
40321
40322         maint.mk: sort the list of syntax-check rules
40323         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
40324         easier to get a sense of progress when the rules are run sequentially
40325         and take a long time.
40326
40327 2009-09-01  Simon Josefsson  <simon@josefsson.org>
40328
40329         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
40330         * modules/netinet_in: Likewise.
40331         * modules/sys_file: Likewise.
40332         * modules/sys_ioctl: Likewise.
40333         * modules/sys_select: Likewise.
40334         * modules/sys_socket: Likewise.
40335         * modules/sys_stat: Likewise.
40336         * modules/sys_time: Likewise.
40337         * modules/sys_times: Likewise.
40338         * modules/sys_utsname: Likewise.
40339         * modules/sys_wait: Likewise.
40340
40341 2009-09-01  Jim Meyering  <meyering@redhat.com>
40342
40343         fts: help ensure that return values are not ignored
40344         * lib/fts_.h (__GNUC_PREREQ): Define.
40345         (__attribute_warn_unused_result__): Define.
40346         (fts_children, fts_close, fts_open, fts_read): Declare with
40347         __attribute_warn_unused_result__.
40348
40349         fts: fts_close now fails also when closing a dir file descriptor fails
40350         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
40351         and propagate to caller, along with errno.
40352
40353         announce-gen: correct formatting in --help output
40354         * build-aux/announce-gen (usage): Move the one-line description in
40355         --help output "up", to where it belongs, just after Usage:.
40356
40357 2009-08-31  Eric Blake  <ebb9@byu.net>
40358
40359         fchdir: port to mingw
40360         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
40361         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
40362         opened, then use a substitute.
40363         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
40364         replacement.
40365         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
40366         (_gl_register_fd): No need to check stat if open already filters
40367         all directories.
40368         (fchdir): Fix error condition to match POSIX.
40369         * modules/fchdir (Depends-on): Add sys_stat.
40370         * doc/posix-functions/open.texi (open): Document the limitation.
40371         * modules/fchdir-tests: New file.
40372         * tests/test-fchdir.c: Likewise.
40373
40374         canonicalize: allow cross-testing from cygwin to mingw
40375         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
40376         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
40377         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
40378         Likewise.
40379         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
40380         target does not support symlinks.
40381         * tests/test-canonicalize-lgpl.sh: Likewise.
40382
40383         chown: avoid compilation warning on mingw
40384         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
40385         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
40386         mingw.
40387         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40388         * modules/chown (Depends-on): Add errno.
40389
40390 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
40391
40392         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
40393         command.
40394
40395 2009-08-31  Jim Meyering  <meyering@redhat.com>
40396
40397         canonicalize: remove useless initialization
40398         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
40399         initialization of local, "end".
40400
40401 2009-08-30  Bruno Haible  <bruno@clisp.org>
40402
40403         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
40404         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
40405         ENOSYS.
40406
40407 2009-08-30  Bruno Haible  <bruno@clisp.org>
40408
40409         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
40410         /usr/xpg4/bin/tr when it exists.
40411         * tests/test-pipe-filter-gi1.sh: Likewise.
40412
40413 2009-08-30  Bruno Haible  <bruno@clisp.org>
40414
40415         Work around deficient /usr/bin/id program on Solaris.
40416         * tests/test-file-has-acl.sh (ID): New variable.
40417         * tests/test-set-mode-acl.sh (ID): Likewise.
40418         * tests/test-copy-acl.sh (ID): Likewise.
40419         * tests/test-copy-file.sh (ID): Likewise.
40420
40421 2009-08-30  Bruno Haible  <bruno@clisp.org>
40422
40423         New module 'xstriconveh'.
40424         * lib/xstriconveh.h: New file.
40425         * lib/xstriconveh.c: New file.
40426         * modules/xstriconveh: New file.
40427
40428 2009-08-30  Bruno Haible  <bruno@clisp.org>
40429
40430         Make it easier to use mem_cd_iconveh.
40431         * lib/striconveh.h (iconveh_t): New type.
40432         (iconveh_open, iconveh_close): New declarations.
40433         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
40434         with a single 'const iconveh_t *' argument.
40435         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
40436         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
40437         with a single 'const iconveh_t *' argument.
40438         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
40439         * tests/test-striconveh.c (main): Update.
40440         * NEWS: Mention the change.
40441
40442 2009-08-30  Bruno Haible  <bruno@clisp.org>
40443
40444         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
40445         problem.
40446
40447 2009-08-30  Bruno Haible  <bruno@clisp.org>
40448
40449         Work around iconv_open problem on Solaris.
40450         * lib/iconv_open-solaris.gperf: New file.
40451         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
40452         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
40453         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
40454         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
40455         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
40456         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
40457
40458 2009-08-29  Jim Meyering  <meyering@redhat.com>
40459
40460         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
40461         * top/maint.mk (cvs-check): Remove target; it was just an alias
40462         to the better-named vc-diff-check.
40463         (maintainer-distcheck): Remove rule.  It was used only from
40464         the (alpha/beta/major) target, and all of its commands but one
40465         were coreutils-specific.
40466         (vc-dist): Remove rule.
40467         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
40468         Run vc-diff-check, not vc-dist.
40469         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
40470
40471 2009-08-27  Bruno Haible  <bruno@clisp.org>
40472
40473         * tests/test-bitrotate.c (main): Remove test that uses a shift count
40474         of 0.
40475
40476 2009-08-27  Bruno Haible  <bruno@clisp.org>
40477
40478         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
40479         compilers.
40480         * doc/func.texi: Document the SunPRO C bug.
40481
40482 2009-08-27  Bruno Haible  <bruno@clisp.org>
40483
40484         Fix link error on Solaris.
40485         * tests/test-parse-duration.c (xstrdup): Remove function.
40486
40487 2009-08-26  Pádraig Brady  <P@draigbrady.com>
40488
40489         ignore-value: handle pointer types, too
40490         * lib/ignore-value.h (__attribute__): Remove definition.
40491         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
40492         of a more concise and more-often effective "(void) i" statement.
40493         (ignore_ptr): New function to suppress warnings from functions that
40494         return pointers, and to make it explicit that one function doesn't
40495         handle all cases.
40496
40497 2009-08-25  Bruno Haible  <bruno@clisp.org>
40498
40499         dup2: work around a Linux bug.
40500         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
40501         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
40502         * doc/posix-functions/dup2.texi: Mention the Linux bug.
40503         Reported by Simon Josefsson.
40504
40505 2009-08-25  Jim Meyering  <meyering@redhat.com>
40506
40507         libguestfs uses gnulib
40508         * users.txt: Add libguestfs.
40509
40510 2009-08-24  Eric Blake  <ebb9@byu.net>
40511
40512         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
40513         * lib/pipe2.c (includes): Add binary-io.h.
40514         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
40515
40516 2009-08-24  Bruno Haible  <bruno@clisp.org>
40517
40518         Tolerate declared but missing accept4 syscall.
40519         * lib/accept4.c (accept4): Invoke original accept4 function first, if
40520         available.
40521         * lib/sys_socket.in.h (accept4): If the function is already present,
40522         override it.
40523         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
40524         * modules/accept4 (Makefile.am): Compile accept4.c always.
40525         Reported by Paolo Bonzini and Eric Blake.
40526
40527 2009-08-23  Bruno Haible  <bruno@clisp.org>
40528
40529         New module 'accept4'.
40530         * lib/sys_socket.in.h (accept4): New declaration.
40531         * lib/accept4.c: New file.
40532         * m4/accept4.m4: New file.
40533         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40534         GNULIB_ACCEPT4, HAVE_ACCEPT4.
40535         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
40536         HAVE_ACCEPT4.
40537         * modules/accept4: New file.
40538         * doc/glibc-functions/accept4.texi: Mention the new module.
40539
40540 2009-08-24  Jim Meyering  <meyering@redhat.com>
40541
40542         progname: also set global program_invocation_name, when possible
40543         Before this change, a libtool-enabled program that calls glibc's
40544         error function would report the program name as
40545         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
40546         * modules/progname (configure.ac): Check for a declaration of
40547         program_invocation_name.
40548         * lib/progname.c:  Include <errno.h>.
40549         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
40550         Set program_invocation_name.
40551
40552 2009-08-23  Bruno Haible  <bruno@clisp.org>
40553
40554         * lib/dup3.c: Include <string.h>.
40555
40556 2009-08-23  Bruno Haible  <bruno@clisp.org>
40557
40558         * lib/dup3.c (dup3): Test only once whether the system actually exists.
40559         * lib/pipe2.c (pipe2): Likewise.
40560         Suggested by Eric Blake.
40561
40562 2009-08-23  Bruno Haible  <bruno@clisp.org>
40563
40564         Tolerate declared but missing dup3 syscall.
40565         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
40566         * lib/unistd.in.h (dup3): If the function is already present,
40567         override it.
40568         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
40569         * modules/dup3 (Makefile.am): Compile dup3.c always.
40570         Reported by Paolo Bonzini.
40571
40572 2009-08-23  Bruno Haible  <bruno@clisp.org>
40573
40574         Tolerate declared but missing pipe2 syscall.
40575         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
40576         available.
40577         * lib/unistd.in.h (pipe2): If the function is already present,
40578         override it.
40579         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
40580         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
40581         Reported by Paolo Bonzini.
40582
40583 2009-08-23  Bruno Haible  <bruno@clisp.org>
40584
40585         * lib/pipe2.c (pipe2): Move #ifs inside function.
40586
40587 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
40588
40589         quotearg: document limitations of quote_these_too
40590         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
40591         those limitations are created.
40592         * lib/quotearg.h (set_char_quoting): Document that digits and
40593         letters that are special after backslash are not permitted.
40594         (quotearg_char): Cross-reference set_char_quoting documentation.
40595
40596 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
40597
40598         quotearg: implement custom_quoting_style
40599         * lib/quotearg.c: (struct quoting_options): Add left_quote and
40600         right_quote fields.
40601         (set_custom_quoting): New public function.
40602         (quotearg_buffer_restyled): Add left_quote and right_quote
40603         arguments, handle them very much like locale quoting, and update
40604         all uses.
40605         (quotearg_n_custom): New public function.
40606         (quotearg_n_custom_mem): New public function.
40607         (quotearg_custom): New public function.
40608         (quotearg_custom_mem): New public function.
40609         * lib/quotearg.h: Prototype and document new public functions.
40610         (enum quoting_style): For escape_quoting_style and
40611         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
40612         ignored even though they're otherwise like c_quoting_style.
40613         Add custom_quoting_style member and document with comparison to
40614         clocale_quoting_style.
40615         * tests/test-quotearg.c (custom_quotes): New array.
40616         (custom_results): New array.
40617         (main): Extend to test custom quoting.
40618
40619 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
40620
40621         quotearg: fix right quote escaping when it's in quote_these_too
40622         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
40623         quote, be sure to prepend only one backslash.
40624         * tests/test-quotearg.c (use_quote_double_quotes): New function.
40625         (main): Test it.
40626
40627 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
40628
40629         quotearg-tests: test escaping of embedded locale quotes
40630         * tests/test-quotearg.c (struct result_strings): Add member for
40631         new input.
40632         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
40633         (inputs): Add new input.
40634         (results_g): Add expected results.
40635         (flag_results): Likewise.
40636         (locale_results): Likewise.
40637         (compare_strings): Check those.
40638
40639 2009-08-23  Bruno Haible  <bruno@clisp.org>
40640
40641         Tests for module 'dup3'.
40642         * modules/dup3-tests: New file.
40643         * tests/test-dup3.c: New file.
40644
40645         New module 'dup3'.
40646         * lib/unistd.in.h (dup3): New declaration.
40647         * lib/dup3.c: New file.
40648         * m4/dup3.m4: New file.
40649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
40650         HAVE_DUP3.
40651         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
40652         * modules/dup3: New file.
40653         * doc/glibc-functions/dup3.texi: Mention the new module.
40654
40655 2009-08-23  Bruno Haible  <bruno@clisp.org>
40656
40657         Tweak the dup2 test.
40658         * tests/test-dup2.c (main): Create the test file empty. Verify that an
40659         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
40660         the test file is still empty. Fix argument order of lseek.
40661
40662 2009-08-23  Bruno Haible  <bruno@clisp.org>
40663
40664         Avoid test link errors when the modules getopt-gnu, gettext are used.
40665         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
40666         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40667
40668 2009-08-23  Bruno Haible  <bruno@clisp.org>
40669
40670         Fix getdtablesize() on mingw.
40671         * lib/getdtablesize.c (getdtablesize): Implement differently.
40672         * lib/unistd.in.h (getdtablesize): Improve comment.
40673
40674 2009-08-23  Bruno Haible  <bruno@clisp.org>
40675
40676         New module 'mkostemp'.
40677         Based on Ulrich Drepper's 2007-08-10 change in glibc.
40678         * lib/stdlib.in.h (mksotemp): New declaration.
40679         * lib/mkostemp.c: New file, from glibc with modifications.
40680         * lib/tempname.h (GT_FILE): Remove outdated comment.
40681         (gen_tempname): Add flags argument.
40682         * lib/tempname.c (__GT_BIGFILE): Remove macro.
40683         (__GT_FILE): Map to 1.
40684         (small_open, large_open): Remove macros.
40685         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
40686         * lib/mkstemp.c (mkstemp): Update.
40687         * lib/mkdtemp.c (mkdtemp): Likewise.
40688         * m4/mkostemp.m4: New file.
40689         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
40690         HAVE_MKOSTEMP.
40691         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
40692         HAVE_MKOSTEMP.
40693         * modules/mkostemp: New file, based on modules/mkstemp.
40694         * doc/glibc-functions/mkostemp.texi: Mention the new module.
40695         * NEWS: Mention the change.
40696
40697 2009-08-23  Bruno Haible  <bruno@clisp.org>
40698
40699         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
40700         Reported by Eric Blake.
40701
40702 2009-08-23  Bruno Haible  <bruno@clisp.org>
40703
40704         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
40705         Reported by Eric Blake.
40706
40707 2009-08-23  Bruno Haible  <bruno@clisp.org>
40708
40709         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
40710         * modules/pipe2 (Depends-on): Likewise.
40711
40712 2009-08-23  Eric Blake  <ebb9@byu.net>
40713
40714         fcntl-h: add O_TTY_INIT support
40715         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
40716         * tests/test-fcntl-h.c (o): Test it.
40717         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40718
40719         fcntl-h: rename from fcntl, in preparation for fcntl(2)
40720         * modules/fcntl: Move <fcntl.h> header replacement...
40721         * modules/fcntl-h: ...to new name, so as not to collide with
40722         like-named function.
40723         * tests/test-fcntl.c: Rename...
40724         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
40725         * modules/fcntl-tests: Rename...
40726         * modules/fcntl-h-tests: ...to this.  Update test file name.
40727         * modules/chdir-long (Depends-on): Update clients.
40728         * modules/chdir-safer (Depends-on): Likewise.
40729         * modules/fcntl-safer (Depends-on): Likewise.
40730         * modules/fts (Depends-on): Likewise.
40731         * modules/mkancesdirs (Depends-on): Likewise.
40732         * modules/mkdir-p (Depends-on): Likewise.
40733         * modules/open (Depends-on): Likewise.
40734         * modules/savewd (Depends-on): Likewise.
40735         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
40736         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40737
40738 2009-08-22  Bruno Haible  <bruno@clisp.org>
40739
40740         * modules/binary-io (License): Relicense under LGPL.
40741         * modules/pipe2 (License): Likewise.
40742
40743 2009-08-22  Bruno Haible  <bruno@clisp.org>
40744
40745         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
40746         return value.
40747         * lib/pipe-filter-gi.c (filter_init): Likewise.
40748         Reported by Eric Blake.
40749
40750 2009-08-22  Bruno Haible  <bruno@clisp.org>
40751
40752         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
40753         * modules/pipe (Depends-on): Add pipe2.
40754
40755 2009-08-22  Bruno Haible  <bruno@clisp.org>
40756
40757         Tests for module 'pipe2'.
40758         * modules/pipe2-tests: New file.
40759         * tests/test-pipe2.c: New file.
40760
40761         New module 'pipe2'.
40762         * lib/unistd.in.h (pipe2): New declaration.
40763         * lib/pipe2.c: New file.
40764         * m4/pipe2.m4: New file.
40765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
40766         HAVE_PIPE2.
40767         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
40768         * modules/pipe2: New file.
40769         * doc/glibc-functions/pipe2.texi: Mention the new module.
40770
40771 2009-08-22  Bruno Haible  <bruno@clisp.org>
40772
40773         Reference some new glibc functions.
40774         * doc/glibc-functions/accept4.texi: New file.
40775         * doc/glibc-functions/dup3.texi: New file.
40776         * doc/glibc-functions/mkostemp.texi: New file.
40777         * doc/glibc-functions/pipe2.texi: New file.
40778         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
40779         (Glibc sys/socket.h): Refer to accept4.
40780         (Glibc unistd.h): Refer to dup3, pipe2.
40781         Reported by Eric Blake.
40782
40783 2009-08-22  Jim Meyering  <meyering@redhat.com>
40784             Bruno Haible  <bruno@clisp.org>
40785
40786         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
40787         This makes it so packages using automake-1.11's silent-rules option
40788         can print e.g., a single "GEN    configmake.h" line, rather than
40789         the 30+ statements that perform the job.  If you want to see the
40790         actual commands, you can still run "make V=1".
40791         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
40792         so that make output is abbreviated when those variables are defined
40793         appropriately.
40794         * modules/argz: Likewise.
40795         * modules/arpa_inet: Likewise.
40796         * modules/byteswap: Likewise.
40797         * modules/configmake: Likewise.
40798         * modules/dirent: Likewise.
40799         * modules/errno: Likewise.
40800         * modules/fcntl: Likewise.
40801         * modules/float: Likewise.
40802         * modules/fnmatch: Likewise.
40803         * modules/getopt-posix: Likewise.
40804         * modules/glob: Likewise.
40805         * modules/iconv_open: Likewise.
40806         * modules/inttypes: Likewise.
40807         * modules/localcharset: Likewise.
40808         * modules/locale: Likewise.
40809         * modules/math: Likewise.
40810         * modules/netdb: Likewise.
40811         * modules/netinet_in: Likewise.
40812         * modules/poll: Likewise.
40813         * modules/posix_spawnp-tests: Likewise.
40814         * modules/sched: Likewise.
40815         * modules/search: Likewise.
40816         * modules/selinux-h: Likewise.
40817         * modules/signal: Likewise.
40818         * modules/spawn: Likewise.
40819         * modules/stdarg: Likewise.
40820         * modules/stdbool: Likewise.
40821         * modules/stddef: Likewise.
40822         * modules/stdint: Likewise.
40823         * modules/stdio: Likewise.
40824         * modules/stdlib: Likewise.
40825         * modules/string: Likewise.
40826         * modules/strings: Likewise.
40827         * modules/sys_file: Likewise.
40828         * modules/sys_ioctl: Likewise.
40829         * modules/sys_select: Likewise.
40830         * modules/sys_socket: Likewise.
40831         * modules/sys_stat: Likewise.
40832         * modules/sys_time: Likewise.
40833         * modules/sys_times: Likewise.
40834         * modules/sys_utsname: Likewise.
40835         * modules/sys_wait: Likewise.
40836         * modules/sysexits: Likewise.
40837         * modules/time: Likewise.
40838         * modules/unistd: Likewise.
40839         * modules/wchar: Likewise.
40840         * modules/wctype: Likewise.
40841
40842 2009-08-22  Jim Meyering  <meyering@redhat.com>
40843
40844         announce-gen: detect write failure
40845         * build-aux/announce-gen: Add Coda at end.
40846         Remove equivalent-but-more-verbose block at top.
40847
40848 2009-08-19  Akim Demaille  <demaille@gostai.com>
40849
40850         bootstrap: --help to stdout.
40851         * bootstrap (usage): Don't send --help to stderr.
40852         Use a here doc instead of a long string.
40853
40854 2009-08-21  Eric Blake  <ebb9@byu.net>
40855
40856         test-popen-safer: split from test-popen
40857         * tests/test-popen.c (main): Move...
40858         * tests/test-popen.h: ...into new file.
40859         * tests/test-popen-safer2.c: New file.
40860         * modules/popen-tests (Files): Add test-popen.h.
40861         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
40862         Suggested by Bruno Haible.
40863
40864         test-fcntl-safer: split from test-open
40865         * tests/test-open.c (main): Move...
40866         * tests/test-open.h: ...into new file.
40867         * tests/test-fcntl-safer.c: New file.
40868         * modules/open-tests (Files): Add test-open.h.
40869         * modules/fcntl-safer-tests: New file.
40870         Suggested by Bruno Haible.
40871
40872         test-fopen-safer: split from test-fopen
40873         * tests/test-fopen.c (main): Move...
40874         * tests/test-fopen.h: ...into new file.
40875         * tests/test-fopen-safer.c: New file.
40876         * modules/fopen-tests (Files): Add test-fopen.h.
40877         * modules/fopen-safer-tests: New file.
40878         Suggested by Bruno Haible.
40879
40880 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
40881
40882         popen-safer: test O_CLOEXEC at run-time.
40883         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
40884
40885 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
40886
40887         fcntl: move more flags to the header
40888         * lib/cloexec.c: Do not define FD_CLOEXEC here.
40889         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
40890         * lib/fcntl.in.h: Do both things here.
40891
40892 2009-08-21  Jim Meyering  <meyering@redhat.com>
40893
40894         consistently remove $@-t before redirecting to it
40895         * modules/argz: Remove $@-t and $@ before redirecting to the former.
40896         * modules/alloca-opt: Likewise.
40897         * modules/byteswap: Likewise.
40898         * modules/fnmatch: Likewise.
40899         * modules/getopt-posix: Likewise.
40900         * modules/glob: Likewise.
40901         * modules/poll: Likewise.
40902         * modules/posix_spawnp-tests: Likewise.
40903         * modules/sys_socket: Likewise.
40904         * modules/sysexits: Likewise.
40905
40906 2009-08-21  Eric Blake  <ebb9@byu.net>
40907
40908         popen: simplify access to original popen
40909         * lib/popen.c (rpl_popen): No need to worry about popen being a
40910         macro.
40911         Reported by Bruno Haible.
40912
40913 2009-08-20  Eric Blake  <ebb9@byu.net>
40914
40915         build: avoid some compiler warnings
40916         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
40917         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
40918         type.
40919         (new_exclude_segment, excluded_file_pattern_p)
40920         (excluded_file_name_p): Reduce scope.
40921         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
40922         old-style declaration.
40923
40924 2009-08-20  Simon Josefsson  <simon@josefsson.org>
40925
40926         * tests/test-exclude1.sh: Handle Windows EOL.
40927         * tests/test-exclude2.sh: Likewise.
40928         * tests/test-exclude3.sh: Likewise.
40929         * tests/test-exclude4.sh: Likewise.
40930         * tests/test-exclude5.sh: Likewise.
40931         * tests/test-exclude6.sh: Likewise.
40932         * tests/test-exclude7.sh: Likewise.
40933
40934 2009-08-19  Akim Demaille  <demaille@gostai.com>
40935
40936         bootstrap: find sha1sum when named gsha1sum.
40937         * bootstrap (find_tool): New.
40938         ($SHA1SUM): New.
40939         Use it.
40940
40941 2009-08-20  Jim Meyering  <meyering@redhat.com>
40942
40943         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
40944         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
40945         expression that converts "." in a file name to "\." in the resulting
40946         regexp.  Start with a dummy statement, so that prior shell variable
40947         definitions are expanded portably.  Reported by Simon Josefsson.
40948
40949 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
40950
40951         Fix polling for writeability of a screen buffer.
40952         * lib/poll.c: Distinguish input and screen buffers for the
40953         Win32 implementation.
40954         * lib/select.c: Likewise.
40955
40956 2009-08-19  Eric Blake  <ebb9@byu.net>
40957
40958         popen-safer: prevent popen from clobbering std descriptors
40959         * modules/popen-safer: New file.
40960         * lib/popen-safer.c: Likewise.
40961         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
40962         * lib/stdio--.h (popen): Provide override.
40963         * lib/stdio-safer.h (popen_safer): Provide declaration.
40964         * tests/test-popen.c (includes): Partially test this.
40965         * modules/popen-safer-tests: New file, for more tests.
40966         * tests/test-popen-safer.c: Likewise.
40967         * MODULES.html.sh (file stream based Input/Output): Mention it.
40968
40969         tests: test some of the *-safer modules
40970         * modules/fopen-safer (Depends-on): Add fopen.
40971         * modules/fcntl-safer (Depends-on): Add fcntl.
40972         * modules/stdlib-safer (Depends-on): Add stdlib.
40973         (configure.ac): Set indicator.
40974         * modules/unistd-safer (configure.ac): Likewise.
40975         * modules/tmpfile-safer (configure.ac): Likewise.
40976         (Depends-on): Add tmpfile.
40977         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
40978         active.
40979         * tests/test-fopen.c (includes): Test safer versions when they are
40980         in use.
40981         * tests/test-open.c (includes): Likewise.
40982
40983         popen: fix cygwin 1.5 bug when stdin closed
40984         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
40985         * modules/popen: New file.
40986         * modules/popen-tests: Likewise.
40987         * tests/test-popen.c: Likewise.
40988         * m4/popen.m4: Likewise.
40989         * lib/popen.c: Likewise.
40990         * lib/stdio.in.h (popen): New declaration.
40991         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
40992         * modules/stdio (Makefile.am): Likewise.
40993         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
40994
40995 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
40996
40997         maint.mk: give full control over update-copyright exclusions
40998         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
40999         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41000         (update-copyright): Don't force inclusion of top-level
41001         ChangeLog.  Don't force exclusion of all COPYING files, but make
41002         them the default exclusion instead.
41003
41004 2009-08-16  Bruno Haible  <bruno@clisp.org>
41005
41006         Fix test failures on Solaris 10.
41007         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41008         tests when Solaris iconv() is used.
41009         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41010         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41011         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41012         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41013         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41014
41015 2009-08-16  Bruno Haible  <bruno@clisp.org>
41016
41017         Fix test failures on Solaris 10.
41018         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
41019         'tr' program and pass it as first argument.
41020         * tests/test-pipe-filter-gi1.sh: Likewise.
41021         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
41022         program as first argument.
41023         * tests/test-pipe-filter-gi1.c (main): Likewise.
41024
41025 2009-08-16  Eric Blake  <ebb9@byu.net>
41026
41027         fpurge: fix previous commits
41028         * modules/fpurge (Makefile.am): Make replacement conditional,
41029         partially reverting 2007-04-29 change; missed in previous
41030         attempt.
41031         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
41032         is missing.
41033
41034 2009-08-16  Bruno Haible  <bruno@clisp.org>
41035
41036         Clarify fpurge's effect on the file position.
41037         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
41038         * tests/test-fpurge.c (main): Make a second pass for checking the file
41039         position.
41040
41041 2009-08-16  Bruno Haible  <bruno@clisp.org>
41042
41043         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
41044         declaration of fpurge is missing.
41045         * tests/test-fpurge.c (main): Check that the file has not more contents
41046         than expected. Close the file before removing it.
41047
41048 2009-08-15  Eric Blake  <ebb9@byu.net>
41049
41050         fpurge: don't wrap working cygwin implementation
41051         * lib/fpurge.c (fpurge): Fix comment typo.
41052         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
41053         1.7 to avoid replacement.
41054         * tests/test-fpurge.c (main): Enhance test.
41055
41056 2009-08-15  Eric Blake  <ebb9@byu.net>
41057         and Jim Meyering  <meyering@redhat.com>
41058
41059         test-update-copyright: skip if perl is insufficient
41060         * tests/test-update-copyright.sh: Failure to run maintainer tool
41061         should not cause testsuite failure on cygwin 1.5.
41062
41063 2009-08-14  Eric Blake  <ebb9@byu.net>
41064
41065         doc: mention more functions added in cygwin 1.7.0
41066         * doc/posix-headers/limits.texi (limits.h): Update for recent
41067         cygwin additions.
41068         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
41069         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
41070         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
41071         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
41072         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
41073
41074 2009-08-14  Eric Blake  <ebb9@byu.net>
41075
41076         maint.mk: simplify update-copyright rule
41077         * top/maint.mk (update-copyright-local): Delete, and document how
41078         to do it in cfg.mk instead.
41079         (update-copyright-exclude-regexp): Delete, and document how to do
41080         it in .x-update-copyright instead.
41081         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
41082         exclude ChangeLog.
41083
41084 2009-08-14  Bruno Haible  <bruno@clisp.org>
41085
41086         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
41087
41088 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41089
41090         maint.mk: support update-copyright-env
41091         * top/maint.mk (update-copyright-env): Define place-holder.
41092         (update-copyright): Expand $(update-copyright-env) before
41093         invoking update-copyright.
41094
41095 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41096
41097         update-copyright: implement forced reformatting
41098         * build-aux/update-copyright: Implement and document
41099         UPDATE_COPYRIGHT_FORCE.
41100         * tests/test-update-copyright.sh: Test it.
41101
41102 2009-08-14  Eric Blake  <ebb9@byu.net>
41103         and Bruno Haible  <bruno@clisp.org>
41104
41105         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
41106         * tests/test-locale.c: Revert previous patch related to NULL.
41107         * tests/test-stdio.c: Likewise.
41108         * tests/test-stdlib.c: Likewise.
41109         * tests/test-string.c: Likewise.
41110         * tests/test-unistd.c: Likewise.
41111         * modules/time-tests (Depends-on): Add verify.
41112         * modules/wchar-tests (Depends-on): Likewise.
41113         * tests/test-time.c: Test for NULL compliance.
41114         * tests/test-wchar.c: Likewise.
41115         * modules/locale (Depends-on): Add stddef.
41116         * modules/stdio (Depends-on): Likewise.
41117         * modules/stdlib (Depends-on): Likewise.
41118         * modules/string (Depends-on): Likewise.
41119         * modules/time (Depends-on): Likewise.
41120         * modules/unistd (Depends-on): Likewise.
41121         * modules/wchar (Depends-on): Likewise.
41122         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
41123         * lib/stdlib.in.h (includes): Likewise.
41124         * lib/string.in.h (includes): Likewise.
41125         * lib/time.in.h (includes): Likewise.
41126         * lib/unistd.in.h (includes): Likewise.
41127         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
41128         replaced.
41129         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41130         * m4/stddef_h.m4: New file.
41131         * modules/stddef: Likewise.
41132         * lib/stddef.in.h: Likewise.
41133         * modules/stddef-tests: Likewise.
41134         * tests/test-stddef.c: Likewise.
41135         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
41136         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
41137         * doc/posix-headers/locale.texi (locale.h): Likewise.
41138         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
41139         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
41140         * doc/posix-headers/string.texi (string.h): Likewise.
41141         * doc/posix-headers/time.texi (time.h): Likewise.
41142         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
41143         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
41144
41145 2009-08-14  Eric Blake  <ebb9@byu.net>
41146
41147         doc: improve git diff of texinfo files
41148         * .gitattributes: Add rule for *.texi files, with hint on how to
41149         use it.
41150         Copied from m4, and based on a report by Bruno Haible.
41151
41152 2009-08-14  Bruno Haible  <bruno@clisp.org>
41153
41154         Disable multithread support by default on Cygwin 1.5.x for real.
41155         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
41156
41157 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41158
41159         update-copyright: much ado about intervals
41160         * build-aux/update-copyright: Implement and document
41161         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
41162         of copyright year intervals.
41163         Also, document UPDATE_COPYRIGHT_YEAR.
41164         * tests/test-update-copyright.sh: Test it.
41165
41166         update-copyright: convert 2-digit to 4-digit years
41167         * build-aux/update-copyright: Implement and document.
41168         * tests/test-update-copyright.sh: Update.
41169
41170 2009-08-14  Jim Meyering  <meyering@redhat.com>
41171
41172         test-exclude: avoid coreutils "make check" failure
41173         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
41174         just as in test-argmatch.c.
41175
41176 2009-08-13  Eric Blake  <ebb9@byu.net>
41177
41178         test-dup2: fix bad assumption
41179         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
41180         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
41181
41182         test-version-etc: fix CRLF portability issue
41183         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
41184         recognize \r.
41185         * tests/test-argp-version-etc-1.sh: Likewise.
41186
41187         getopt: update client modules
41188         * modules/argp (Depends-on): Use getopt-gnu.
41189         * modules/git-merge-changelog (Depends-on): Likewise.
41190         * modules/long-options (Depends-on): Likewise.
41191         * modules/xstrtol (Depends-on): Likewise.
41192
41193 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41194
41195         * tests/test-version-etc.sh: Don't fail on different
41196         project/version.  Don't fail on CRLF differences.  Rewrite to use
41197         multiple -e instead of multiple sed forks, suggested by Eric Blake
41198         <ebb9@byu.net>.
41199         * tests/test-argp-version-etc-1.sh: Likewise.
41200
41201 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41202
41203         * tests/test-version-etc.sh: Don't fail on different
41204         project/version.
41205
41206 2009-08-12  Bruno Haible  <bruno@clisp.org>
41207
41208         Tests for modules 'getopt-posix', 'getopt-gnu'.
41209         * modules/getopt-posix-tests: New file.
41210         * tests/test-getopt.c: New file.
41211         * tests/test-getopt.h: New file.
41212         * tests/test-getopt_long.h: New file.
41213
41214         New modules 'getopt-posix', 'getopt-gnu'.
41215         * modules/getopt-gnu: New file, renamed from modules/getopt.
41216         * modules/getopt-posix: New file.
41217         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
41218         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
41219         (gl_GETOPT): Remove macro.
41220         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
41221         Disable the test against BSD systems that declare optreset. Test
41222         against mingw bug. Test against lack of support of optional arguments
41223         on many platforms.
41224         * doc/glibc-headers/getopt.texi: Update module name and list of
41225         relevant platforms.
41226         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
41227         'getopt-gnu' and more portability problems.
41228         * NEWS: Mention the changes.
41229
41230 2009-08-12  Bruno Haible  <bruno@clisp.org>
41231
41232         Ensure that optarg etc. get declared by <unistd.h>.
41233         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
41234         AC_USE_SYSTEM_EXTENSIONS.
41235         * modules/getopt (Depends-on): Add 'extensions'.
41236
41237 2009-08-12  Bruno Haible  <bruno@clisp.org>
41238
41239         Avoid test link errors.
41240         * modules/pipe-filter-ii-tests (Makefile.am): Define
41241         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
41242         * modules/pipe-filter-gi-tests (Makefile.am): Define
41243         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
41244         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41245
41246 2009-08-12  Bruno Haible  <bruno@clisp.org>
41247
41248         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
41249         gl_GETOPT_SUBSTITUTE before.
41250         (gl_GETOPT): Use it.
41251         * m4/argp.m4 (gl_ARGP): Update.
41252         Reported by Sergey Poznyakoff.
41253
41254         * m4/getopt.m4: Reorder macros.
41255         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
41256         (gl_GETOPT_SUBSTITUTE): Remove macro.
41257
41258 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41259
41260         Minor improvement in gitlog-to-changelog
41261
41262         * build-aux/gitlog-to-changelog: New option `--format' makes
41263         output format string configurable.
41264
41265 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41266
41267         Optimize exclude: use hash tables for non-wildcard patterns.
41268
41269         * lib/exclude.c: Include hash.h and mbuiter.h
41270         (struct exclude_pattern, exclude_segment): New data types.
41271         (struct exclude): Rewrite.
41272         (fnmatch_pattern_has_wildcards): New function.
41273         (new_exclude_segment, free_exclude_segment): New functions.
41274         (excluded_file_pattern_p, excluded_file_name_p): New functions.
41275         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
41276         * lib/exclude.h (is_fnmatch_pattern): New prototype.
41277         * modules/exclude: Depend on hash and mbuiter.
41278
41279         * modules/exclude-tests: New file.
41280         * tests/test-exclude.c: New file.
41281         * tests/test-exclude1.sh: New file.
41282         * tests/test-exclude2.sh: New file.
41283         * tests/test-exclude3.sh: New file.
41284         * tests/test-exclude4.sh: New file.
41285         * tests/test-exclude5.sh: New file.
41286         * tests/test-exclude6.sh: New file.
41287         * tests/test-exclude7.sh: New file.
41288
41289 2009-08-12  Bruno Haible  <bruno@clisp.org>
41290
41291         Ensure that getopt() gets declared by <unistd.h>.
41292         * lib/unistd.in.h: Conditionally include getopt.h.
41293         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
41294         Set GNULIB_UNISTD_H_GETOPT.
41295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41296         GNULIB_UNISTD_H_GETOPT.
41297         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
41298
41299 2009-08-12  Bruno Haible  <bruno@clisp.org>
41300
41301         Clarify logic.
41302         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
41303         gl_replace_getopt instead of GETOPT_H.
41304
41305 2009-08-12  Bruno Haible  <bruno@clisp.org>
41306
41307         * m4/getopt.m4: Add comments.
41308
41309 2009-08-12  Bruno Haible  <bruno@clisp.org>
41310
41311         Disable multithread support by default on Cygwin 1.5.x.
41312         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
41313         set gl_use_threads=no if not specified otherwise.
41314
41315 2009-08-11  Bruno Haible  <bruno@clisp.org>
41316
41317         Avoid compilation error on NetBSD 5.0.
41318         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
41319         * tests/test-stdio.c: Likewise.
41320         * tests/test-stdlib.c: Likewise.
41321         * tests/test-string.c: Likewise.
41322         * tests/test-unistd.c: Likewise.
41323         Reported by Greg Troxel <gdt@ir.bbn.com>
41324         at <https://savannah.gnu.org/support/?106973>.
41325
41326 2009-08-11  Bruno Haible  <bruno@clisp.org>
41327
41328         * modules/dup2-tests (Depends-on): Remove close.
41329
41330         Undo 2009-07-19 commit.
41331         * modules/acl-tests (Depends-on): Remove close.
41332         * modules/binary-io-tests (Depends-on): Likewise.
41333         * modules/closein-tests (Depends-on): Likewise.
41334         * modules/flock-tests (Depends-on): Likewise.
41335         * modules/fsync-tests (Depends-on): Likewise.
41336         * modules/lseek-tests (Depends-on): Likewise.
41337         * modules/pipe-tests (Depends-on): Likewise.
41338         * modules/posix_spawn-tests (Depends-on): Likewise.
41339         * modules/posix_spawnp-tests (Depends-on): Likewise.
41340         * modules/stat-time-tests (Depends-on): Likewise.
41341         * modules/yesno-tests (Depends-on): Likewise.
41342
41343 2009-08-10  Bruno Haible  <bruno@clisp.org>
41344
41345         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
41346
41347 2009-08-10  Bruno Haible  <bruno@clisp.org>
41348
41349         Fix a gcc warning.
41350         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
41351
41352 2009-08-10  Bruno Haible  <bruno@clisp.org>
41353
41354         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
41355         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
41356         not only the first time.
41357         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
41358         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
41359         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
41360         is 1, not only the the first time.
41361
41362 2009-08-10  Bruno Haible  <bruno@clisp.org>
41363
41364         Make it possible to use module 'gethostname' without module 'close'.
41365         * lib/unistd.in.h (close): Evoke a link error only if
41366         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
41367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41368         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41369         * modules/unistd (Makefile.am): Substitute
41370         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41371         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
41372         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
41373         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
41374         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41375         * modules/sys_ioctl (Makefile.am): Substitute
41376         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41377         * modules/socket (configure.ac): On native Windows, set
41378         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
41379         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41380         Reported by Sam Steingold <sds@gnu.org>.
41381
41382 2009-08-10  Bruno Haible  <bruno@clisp.org>
41383
41384         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
41385         * modules/ioctl (configure.ac): Likewise.
41386
41387 2009-08-10  Bruno Haible  <bruno@clisp.org>
41388
41389         Avoid collision between gnulib wrapper and libintl wrapper.
41390         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
41391         already defined in intl/printf.c.
41392         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
41393         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
41394
41395 2009-08-09  Bruno Haible  <bruno@clisp.org>
41396
41397         Make <sys/select.h> really self-contained, also on Solaris 10.
41398         * lib/sys_select.in.h: Include <string.h>.
41399         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
41400         Solaris 10 problem.
41401         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
41402         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
41403         Reported by Jim Meyering.
41404
41405 2009-08-09  Bruno Haible  <bruno@clisp.org>
41406
41407         Avoid warnings from 'aclocal' that are due to a use of macro name
41408         AM_XGETTEXT_OPTION that is not defined in automake.
41409         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
41410         automake.
41411         * modules/error (configure.ac): Likewise.
41412         * modules/propername (configure.ac): Likewise.
41413         * modules/vasprintf (configure.ac): Likewise.
41414         * modules/verror (configure.ac): Likewise.
41415         * modules/xprintf (configure.ac): Likewise.
41416         * modules/xvasprintf (configure.ac): Likewise.
41417
41418 2009-08-08  Bruno Haible  <bruno@clisp.org>
41419
41420         Avoid compilation error in C++ mode.
41421         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
41422         Reported by Sam Steingold <sds@gnu.org>.
41423
41424 2009-08-08  Bruno Haible  <bruno@clisp.org>
41425
41426         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
41427         for the various Unix platforms.
41428         * doc/posix-headers/limits.texi: Update platforms list regarding
41429         HOST_NAME_MAX.
41430         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41431
41432 2009-08-07  Jim Meyering  <meyering@redhat.com>
41433
41434         selinux-at: fix typo in a comment
41435         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
41436         Spotted by Paolo Bonzini.
41437
41438         selinux-at: remove redundant m4 code, add documentation
41439         * modules/selinux-at (configure.ac): Remove redundant code.
41440         LIB_SELINUX is already set via the dependent module, selinux-h.
41441         (Include): Add quotes around selinux-at.h.
41442         * lib/selinux-at.h: Add documentation.
41443         Reported by Bruno Haible in
41444         http://marc.info/?l=gnulib-bug&m=124958988300749
41445
41446 2009-08-07  Bruno Haible  <bruno@clisp.org>
41447
41448         Avoid link error on MacOS X 10.3 and 10.4.
41449         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
41450         on non-ELF systems.
41451         * lib/argp-pv.c (argp_program_version): Likewise.
41452         Reported by Simon Josefsson.
41453
41454 2009-08-07  Simon Josefsson  <simon@josefsson.org>
41455
41456         * tests/test-version-etc.sh: Use $EXEEXT.
41457
41458 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
41459
41460         update-copyright: update documentation to point to maint.mk
41461         * build-aux/update-copyright: Here.
41462
41463 2009-08-06  Jim Meyering  <meyering@redhat.com>
41464
41465         maint.mk: support update-copyright-local
41466         * top/maint.mk (update-copyright-local): Define place-holder.
41467         (update-copyright): Depend on $(update-copyright-local).
41468
41469 2009-08-06  Jim Meyering  <meyering@redhat.com>
41470
41471         selinux-at: new module
41472         Initially written for coreutils, this module will soon be
41473         used by findutils, too.
41474         * MODULES.html.sh [Misc]: Add selinux-at.
41475         * lib/selinux-at.h: New file, from coreutils.
41476         * lib/selinux-at.c: Likewise.
41477         * modules/selinux-at: Likewise.
41478         (License): Change from LGPL to GPL, since it depends
41479         on the GPL'd openat module.
41480
41481         doc: update README
41482         * README: Remove references to cogito.
41483         Remove cvs-repo-updating instructions from 2007.
41484         Don't imply that CVS is better if you have limited disk space.
41485
41486 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41487
41488         update-copyright: support C-style comments
41489         * build-aux/update-copyright: Implement and document.
41490         * tests/test-update-copyright.sh: Test.
41491
41492 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41493
41494         update-copyright: support omitted "(C)"
41495         * build-aux/update-copyright: Implement and document.  Also,
41496         allow variable whitespace before "(C)".
41497         * tests/test-update-copyright.sh: Test.
41498
41499 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41500
41501         update-copyright: don't trip on non-FSF copyright statements
41502         * build-aux/update-copyright: Fix so that the first correctly
41503         formatted FSF copyright statement is recognized no matter what
41504         appears before it.  Update documentation.
41505         * tests/test-update-copyright.sh: Test that.
41506
41507 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41508
41509         update-copyright: clean up code a little
41510         * build-aux/update-copyright: Append "_re" to the name of any
41511         variable holding a regular expression.
41512         Replace "old" and "new" with "stmt" in variable names.
41513         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
41514         handled correctly.
41515         Format code more consistently.
41516
41517 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41518
41519         update-copyright-tests: improve portability
41520         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
41521         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
41522
41523 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
41524
41525         update-copyright: support @copyright{} and &copy;
41526         * build-aux/update-copyright: Implement and document.
41527         * tests/test-update-copyright.sh: Test.
41528
41529 2009-08-04  Jim Meyering  <meyering@redhat.com>
41530
41531         update-copyright-tests: correctly test EOL=\r\n handling
41532         * tests/test-update-copyright.sh: Put \r at the end of some lines
41533         for the dos-eol tests.  Based on a patch by Joel E. Denny.
41534
41535         maint.mk: make update-copyright exclusion list more configurable
41536         * top/maint.mk (update-copyright): Default to excluding COPYING,
41537         but allow an override, in case someone does want to update that file.
41538
41539         maint.mk: don't update copyright date in COPYING
41540         * top/maint.mk (update-copyright): Exclude COPYING.
41541
41542         maint.mk: add a copyright-updating rule
41543         * top/maint.mk (update-copyright): New rule.
41544         Derived from coreutils/Makefile.am.
41545
41546         update-copyright: rename some variables
41547         * build-aux/update-copyright: Rename a few variables for clarity.
41548         Tweak syntax.  List Joel E. Denny as coauthor.
41549
41550 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
41551
41552         update-copyright: fix bug for 2-digit last year and add tests
41553         * build-aux/update-copyright: Fix bug.
41554         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
41555         specified.
41556         * modules/update-copyright-tests: New
41557         * tests/test-update-copyright.sh: New.
41558
41559 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
41560
41561         update-copyright: handle leading tabs in line prefix
41562         * build-aux/update-copyright: Count leading tabs as 8 spaces
41563         when computing margin.  This helps with the formatting of
41564         ChangeLogs, for example.
41565         Fix documentation a little.
41566
41567 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
41568
41569         update-copyright: support EOL=\r\n
41570         * build-aux/update-copyright: Implement that.
41571
41572 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
41573
41574         update-copyright: automatically format copyright statements
41575         * build-aux/update-copyright: Implement that.
41576         Also, be a little more predictable and safer by always failing
41577         when the full copyright format is not perfectly recognized as an
41578         unbroken whole.  Discussed at
41579         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
41580         Rewrite documentation.
41581
41582 2009-08-03  Bruno Haible  <bruno@clisp.org>
41583
41584         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
41585
41586 2009-08-02  Bruno Haible  <bruno@clisp.org>
41587
41588         Tests for module 'uname'.
41589         * modules/uname-tests: New file.
41590         * tests/test-uname.c: New file.
41591
41592         New module 'uname'.
41593         * lib/uname.c: New file.
41594         * m4/uname.m4: New file.
41595         * modules/uname: New file.
41596         * doc/posix-functions/uname.texi: Mention the new module.
41597
41598 2009-08-02  Bruno Haible  <bruno@clisp.org>
41599
41600         Tests for module 'sys_utsname'.
41601         * modules/sys_utsname-tests: New file.
41602         * tests/test-sys_utsname.c: New file.
41603
41604         New module 'sys_utsname'.
41605         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
41606         * m4/sys_utsname_h.m4: New file.
41607         * modules/sys_utsname: New file.
41608         * doc/posix-headers/sys_utsname.texi: Mention the new module.
41609
41610 2009-08-02  Bruno Haible  <bruno@clisp.org>
41611
41612         Implicitly initialize the sockets library.
41613         * lib/gethostname.c: Include sockets.h.
41614         (rpl_gethostname): Invoke gl_sockets_startup.
41615         * lib/socket.c: Include sockets.h.
41616         (rpl_socket): Invoke gl_sockets_startup.
41617         * modules/gethostname (Depends-on): Add sockets.
41618         * modules/socket (Depends-on): Likewise.
41619         * tests/test-poll.c: Don't include sockets.h.
41620         (main): Don't invoke gl_sockets_startup.
41621         * tests/test-select.c: Don't include sockets.h.
41622         (main): Don't invoke gl_sockets_startup.
41623
41624 2009-08-02  Bruno Haible  <bruno@clisp.org>
41625
41626         Allow multiple calls to gl_sockets_startup.
41627         * lib/sockets.c (initialized_sockets_version): New variable.
41628         (gl_sockets_startup): Do nothing if already called for this or a higher
41629         version.
41630         (gl_sockets_cleanup): Reset initialized_sockets_version.
41631
41632 2009-08-03  Simon Josefsson  <simon@josefsson.org>
41633
41634         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
41635         different project/version.
41636
41637 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
41638             Bruno Haible  <bruno@clisp.org>
41639
41640         Tests for module 'pipe-filter-gi'.
41641         * modules/pipe-filter-gi-tests: New file.
41642         * tests/test-pipe-filter-gi1.sh: New file.
41643         * tests/test-pipe-filter-gi1.c: New file.
41644         * tests/test-pipe-filter-gi2.sh: New file.
41645         * tests/test-pipe-filter-gi2-main.c: New file.
41646         * tests/test-pipe-filter-gi2-child.c: New file.
41647
41648         New module 'pipe-filter-gi'.
41649         * lib/pipe-filter-gi.c: New file.
41650         * modules/pipe-filter-gi: New file.
41651
41652 2009-08-02  Bruno Haible  <bruno@clisp.org>
41653             Paolo Bonzini  <bonzini@gnu.org>
41654
41655         Tests for module 'pipe-filter-ii'.
41656         * modules/pipe-filter-ii-tests: New file.
41657         * tests/test-pipe-filter-ii1.sh: New file.
41658         * tests/test-pipe-filter-ii1.c: New file.
41659         * tests/test-pipe-filter-ii2.sh: New file.
41660         * tests/test-pipe-filter-ii2-main.c: New file.
41661         * tests/test-pipe-filter-ii2-child.c: New file.
41662
41663         New module 'pipe-filter-ii'.
41664         * lib/pipe-filter.h: New file.
41665         * lib/pipe-filter-ii.c: New file.
41666         * lib/pipe-filter-aux.h: New file.
41667         * modules/pipe-filter-ii: New file.
41668
41669 2009-08-02  Simon Josefsson  <simon@josefsson.org>
41670
41671         * lib/gc-libgcrypt.c: Change copyright to FSF.
41672         * lib/gc-gnulib.c: Likewise.
41673
41674 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
41675
41676         * lib/gethostname.c: Include limits.h.
41677
41678 2009-08-02  Simon Josefsson  <simon@josefsson.org>
41679             Bruno Haible  <bruno@clisp.org>
41680
41681         Ensure HOST_NAME_MAX as part of the gethostname module.
41682         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
41683         define also HOST_NAME_MAX.
41684         * tests/test-gethostname.c: Include <limits.h>.
41685         (main): Check also HOST_NAME_MAX.
41686         * doc/posix-headers/limits.texi: Document the mingw problem.
41687
41688 2009-08-02  Bruno Haible  <bruno@clisp.org>
41689
41690         * lib/gethostname.c (gethostname): Fix handling of large len argument.
41691         Add comments.
41692
41693 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41694
41695         * lib/gethostname.c: Add Windows wrapper.
41696         * m4/gethostname.m4: Look for gethostname in -lws2_32.
41697         * modules/gethostname: Depend on sys_socket & errno, for also
41698         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
41699         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
41700
41701 2009-07-31  Jim Meyering  <meyering@redhat.com>
41702
41703         getloadavg: fix symbol name in comment
41704         * lib/getloadavg.c: Correct a typo I introduced when adding
41705         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
41706         Matt Kraai spotted the problem.
41707
41708 2009-07-29  Matt Kraai  <mkraai@beckman.com>
41709
41710         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
41711         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
41712         code also if ! defined N_NAME_POINTER.
41713         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
41714         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
41715         but the n_name member is a 12-byte array.
41716
41717 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
41718
41719         update-copyright: generalize comment handling
41720         * build-aux/update-copyright: Handle copyright statements
41721         within more comment styles.
41722         Document usage.
41723         Report any file with an external copyright holder or parse failure.
41724
41725 2009-07-29  Jim Meyering  <meyering@redhat.com>
41726
41727         mktime: correct setting of REPLACE_MKTIME
41728         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
41729
41730         update-copyright: new module
41731         * modules/update-copyright: New file.
41732         * build-aux/update-copyright: New file.
41733         * MODULES.html.sh (maint+release support): Add update-copyright.
41734
41735 2009-07-27  Bruno Haible  <bruno@clisp.org>
41736
41737         Fix compilation error when <ctime> is used and mktime is replaced.
41738         * lib/time.in.h (mktime): New declaration.
41739         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
41740         REPLACE_MKTIME instead of defining mktime in config.h.
41741         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
41742         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
41743         Reported by Ross McFarland <rwmcfa1@neces.com>.
41744
41745 2009-07-27  Bruno Haible  <bruno@clisp.org>
41746
41747         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
41748         Reported by Matt Kraai <mkraai@beckman.com>.
41749
41750 2009-07-25  Jim Meyering  <meyering@redhat.com>
41751
41752         maint.mk: avoid warnings about missing files
41753         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
41754         diagnostic when .prev-version does not exist.
41755         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
41756         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
41757         nonexistent cfg.mk.
41758         Suggestions from Simon Josefsson.
41759
41760 2009-07-25  Bruno Haible  <bruno@clisp.org>
41761
41762         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
41763         defined as macros. Needed on QNX 6.4.1.
41764         Reported by Matt Kraai <mkraai@beckman.com>.
41765
41766 2009-07-23  Jim Meyering  <meyering@redhat.com>
41767
41768         maint.mk: invoke "make dist" with a working value of XZ_OPT
41769         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
41770
41771 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
41772
41773         Make fseeko.c compile on QNX.
41774         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
41775
41776 2009-07-22  Peter Simons  <simons@cryp.to>
41777
41778         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
41779         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
41780         * lib/md4.h: Likewise.
41781         * lib/md5.h: Likewise.
41782         * lib/sha1.h: Likewise.
41783         * lib/sha256.h: Likewise.
41784         * lib/sha512.h: Likewise.
41785
41786         tests-sha1: don't assign literal string to 'char *' variable
41787         * tests/test-sha1.c (main): Declare locals with "const" to match
41788         attributes of the right hand side.
41789
41790 2009-07-21  Eric Blake  <ebb9@byu.net>
41791
41792         dup2: fix more mingw problems
41793         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
41794         fd to itself.
41795         * doc/posix-functions/dup2.texi (dup2): Document the bug.
41796         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
41797         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
41798         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
41799         care of mingw bugs.
41800
41801 2009-07-21  Jim Meyering  <meyering@redhat.com>
41802
41803         vc-list-files: avoid failure when /bin/sh is dash
41804         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
41805         On some Debian based systems, /bin/sh is a symlink to dash, and running
41806         this command would omit the "/" following each 'tests' prefix:
41807           dash -x build-aux/vc-list-files -C . tests
41808         That is because bash and dash work differently:
41809           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
41810           bash ok
41811           dash odd
41812
41813 2009-07-21  Eric Blake  <ebb9@byu.net>
41814
41815         dup2-tests: test previous patch
41816         * modules/dup2-tests: New file.
41817         * tests/test-dup2.c: Likewise.
41818         * tests/test-open.c (main): Avoid unspecified behavior.
41819         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
41820         test.
41821
41822         dup2: work around mingw and cygwin 1.5 bug
41823         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
41824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41825         * modules/unistd (Makefile.am): Substitute it.
41826         * lib/unistd.in.h (dup2): Declare the replacement.
41827         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
41828         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
41829         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
41830         * modules/execute (Depends-on): Add dup2.
41831         * modules/fseterr (Depends-on): Likewise.
41832         * modules/pipe (Depends-on): Likewise.
41833         * modules/posix_spawn-internal (Depends-on): Likewise.
41834
41835 2009-07-21  Bruno Haible  <bruno@clisp.org>
41836
41837         * modules/.gitattributes: New file.
41838
41839 2009-07-20  Bruno Haible  <bruno@clisp.org>
41840
41841         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
41842         (main): Use it.
41843
41844 2009-07-20  Eric Blake  <ebb9@byu.net>
41845
41846         test-pipe: make a bit more robust.
41847         * tests/test-pipe.c (myerr): Allow error messages regardless of
41848         what we do to stderr.
41849         (test_pipe): Rearrange to avoid deadlock.
41850         (child_main): Try a larger read, to ensure we avoided deadlock.
41851         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
41852         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
41853         if misused.
41854
41855 2009-07-19  Jim Meyering  <meyering@redhat.com>
41856
41857         fts: avoid false-positive cycle-detection
41858         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
41859         for each new command line argument.
41860
41861 2009-07-19  Bruno Haible  <bruno@clisp.org>
41862
41863         Fix build error on mingw with the modules sys_select and unistd.
41864         * modules/acl-tests (Depends-on): Add close.
41865         * modules/binary-io-tests (Depends-on): Likewise.
41866         * modules/closein-tests (Depends-on): Likewise.
41867         * modules/flock-tests (Depends-on): Likewise.
41868         * modules/fsync-tests (Depends-on): Likewise.
41869         * modules/lseek-tests (Depends-on): Likewise.
41870         * modules/pipe-tests (Depends-on): Likewise.
41871         * modules/posix_spawn-tests (Depends-on): Likewise.
41872         * modules/posix_spawnp-tests (Depends-on): Likewise.
41873         * modules/stat-time-tests (Depends-on): Likewise.
41874         * modules/yesno-tests (Depends-on): Likewise.
41875
41876 2009-07-19  Bruno Haible  <bruno@clisp.org>
41877
41878         Unify conditionals.
41879         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
41880         macros, not at the compiler macros.
41881         * lib/pipe.c: Likewise.
41882         * lib/execute.c: Likewise.
41883         * lib/spawni.c: Likewise.
41884
41885 2009-07-19  Bruno Haible  <bruno@clisp.org>
41886
41887         Fix handling of closed stdin/stdout/stderr on mingw.
41888         * lib/w32spawn.h: Include unistd.h.
41889         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
41890         file descriptor with O_NOINHERIT flag.
41891         (fd_safer_noinherit): New function, based on fd-safer.c.
41892         (dup_safer_noinherit): New function, based on dup-safer.c.
41893         (undup_safer_noinherit): New function.
41894         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
41895         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
41896         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
41897         instead of fd_safer.
41898         * tests/test-pipe.c: Include <windows.h>.
41899         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
41900         result.
41901
41902         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
41903         from main.
41904         (test_pipe): Pass an extra argument for disambiguation.
41905         (main): Invoke parent_main or child_main.
41906
41907         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
41908         consistently.
41909
41910 2009-07-18  Eric Blake  <ebb9@byu.net>
41911
41912         test-pipe: fix mingw build
41913         * tests/test-pipe.c (main): Avoid fcntl on mingw.
41914
41915 2009-07-18  Bruno Haible  <bruno@clisp.org>
41916
41917         * modules/pipe-tests (Makefile.am): Fix typo.
41918
41919 2009-07-18  Eric Blake  <ebb9@byu.net>
41920
41921         error: fix mingw build
41922         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
41923         Reported by Bruno Haible.
41924
41925         error: avoid undefined use of stdout
41926         * lib/error.c (error, error_at_line): Check that fd 1 is open
41927         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
41928         is handling faults and the close_stdout module wants to report the
41929         detection of closed stdout as an error.
41930
41931 2009-07-17  Eric Blake  <ebb9@byu.net>
41932
41933         pipe: be robust in face of closed fds
41934         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
41935         should cause child to misbehave.
41936         * modules/pipe-tests: New module.
41937         * tests/test-pipe.c: New file.
41938         * tests/test-pipe.sh: New file.
41939         Reported by Akim Demaille.
41940
41941 2009-07-14  Bruno Haible  <bruno@clisp.org>
41942
41943         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
41944         Reported by anonymous kc.
41945
41946 2009-07-07  Jim Meyering  <meyering@redhat.com>
41947
41948         maint.mk: don't look for translatable strings in *.m4 or *.mk
41949         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
41950         when searching for translatable strings.
41951
41952 2009-07-05  Jim Meyering  <meyering@redhat.com>
41953
41954         remove superfluous parentheses in STREQ definition
41955         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
41956         * lib/getugroups.c (STREQ): Likewise.
41957         * lib/fnmatch.c (STREQ): Likewise.
41958         Spotted by Bruno Haible.
41959
41960 2009-07-04  Jim Meyering  <meyering@redhat.com>
41961
41962         argv-iter: new module
41963         * MODULES.html.sh: Add argv-iter.
41964         * lib/argv-iter.c, lib/argv-iter.h: New files.
41965         * modules/argv-iter: New file.
41966         * modules/argv-iter-tests: New file.
41967         * tests/test-argv-iter.c: Test it.
41968
41969 2009-07-04  Bruno Haible  <bruno@clisp.org>
41970
41971         Fix assertion.
41972         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
41973         contains more exact copies of a given entry than file2, leave the extra
41974         copies unpaired rather than aborting.
41975         Reported by Eric Blake.
41976
41977 2009-07-02  Bruno Haible  <bruno@clisp.org>
41978
41979         Speedup git-merge-changelog for git cherry-pick.
41980         * lib/git-merge-changelog.c (struct entries_mapping): New type.
41981         (entries_mapping_get): New function, extracted from compute_mapping.
41982         (entries_mapping_reverse_get): New function.
41983         (compute_mapping): Add a 'full' argument. Return the result in a
41984         'struct entries_mapping'.
41985         (main): Update. Access the mappings through entries_mapping_get.
41986         Reported by Eric Blake.
41987
41988 2009-07-02  Bruno Haible  <bruno@clisp.org>
41989
41990         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
41991         best_i.
41992
41993 2009-07-02  Bruno Haible  <bruno@clisp.org>
41994
41995         Speed up approximate search for matching ChangeLog entries.
41996         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
41997         argument. Call fstrcmp_bounded instead of fstrcmp.
41998         (compute_mapping, try_split_merged_entry, main): Update callers.
41999
42000 2009-07-02  Bruno Haible  <bruno@clisp.org>
42001
42002         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42003
42004 2009-06-30  Bruno Haible  <bruno@clisp.org>
42005
42006         Reduce the number of uc_is_cased calls.
42007         * lib/unicase.h (casing_suffix_context_t): Add
42008         'first_char_except_ignorable' field.
42009         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42010         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
42011         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
42012         Update initializer.
42013         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
42014         case-ignorable characters.
42015         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
42016         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
42017         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
42018         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
42019         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
42020
42021 2009-06-30  Bruno Haible  <bruno@clisp.org>
42022
42023         Tests for module 'unicase/ignorable'.
42024         * modules/unicase/ignorable-tests: New file.
42025         * tests/unicase/test-ignorable.c: New file, generated by
42026         gen-uni-tables.
42027
42028         Tests for module 'unicase/cased'.
42029         * modules/unicase/cased-tests: New file.
42030         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
42031         * tests/unicase/test-predicate-part1.h: New file, derived from
42032         tests/unictype/test-predicate-part1.h.
42033         * tests/unicase/test-predicate-part2.h: New file, same as
42034         tests/unictype/test-predicate-part2.h.
42035
42036         Fix evaluation of "Before C" condition of FINAL_SIGMA.
42037         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
42038         (output_casing_properties): New function.
42039         (main): Call it.
42040         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
42041         * lib/unicase/cased.c: Include unictype/bitmap.h.
42042         (uc_is_cased): Define through a bitmap lookup.
42043         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
42044         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
42045         (uc_is_case_ignorable): Define through a bitmap lookup.
42046         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
42047         lib/unictype/bitmap.h.
42048         (Depends-on): Add inline. Clean up.
42049         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
42050         lib/unictype/bitmap.h.
42051         (Depends-on): Add inline. Clean up.
42052         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
42053         recognition.
42054         * tests/unicase/test-u16-tolower.c (main): Likewise.
42055         * tests/unicase/test-u32-tolower.c (main): Likewise.
42056
42057 2009-06-30  Bruno Haible  <bruno@clisp.org>
42058
42059         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
42060         * lib/unicase/u16-casemap.c: Likewise.
42061         * lib/unicase/u32-casemap.c: Likewise.
42062
42063 2009-06-29  Bruno Haible  <bruno@clisp.org>
42064
42065         Define u32_casefold as a wrapper around u32_ct_casefold.
42066         * lib/unicase/u32-casefold.c: Update.
42067         * modules/unicase/u32-casefold (Depends-on): Add
42068         unicase/u32-ct-casefold, unicase/empty-prefix-context,
42069         unicase/empty-suffix-context. Clean up.
42070
42071         Define u16_casefold as a wrapper around u16_ct_casefold.
42072         * lib/unicase/u16-casefold.c: Update.
42073         * modules/unicase/u16-casefold (Depends-on): Add
42074         unicase/u16-ct-casefold, unicase/empty-prefix-context,
42075         unicase/empty-suffix-context. Clean up.
42076
42077         Define u8_casefold as a wrapper around u8_ct_casefold.
42078         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
42079         * lib/unicase/u8-casefold.c: Update.
42080         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
42081         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42082
42083         Define u32_totitle as a wrapper around u32_ct_totitle.
42084         * lib/unicase/u32-totitle.c: Update.
42085         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
42086         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42087
42088         Define u16_totitle as a wrapper around u16_ct_totitle.
42089         * lib/unicase/u16-totitle.c: Update.
42090         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
42091         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42092
42093         Define u8_totitle as a wrapper around u8_ct_totitle.
42094         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
42095         functions.
42096         (FUNC): Delegate to U_CT_TOTITLE.
42097         * lib/unicase/u8-totitle.c: Update.
42098         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
42099         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42100
42101         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
42102         invocation.
42103         * modules/unicase/u32-tolower (Depends-on): Add
42104         unicase/empty-prefix-context, unicase/empty-suffix-context.
42105
42106         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
42107         invocation.
42108         * modules/unicase/u16-tolower (Depends-on): Add
42109         unicase/empty-prefix-context, unicase/empty-suffix-context.
42110
42111         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
42112         * modules/unicase/u8-tolower (Depends-on): Add
42113         unicase/empty-prefix-context, unicase/empty-suffix-context.
42114
42115         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
42116         invocation.
42117         * modules/unicase/u32-toupper (Depends-on): Add
42118         unicase/empty-prefix-context, unicase/empty-suffix-context.
42119
42120         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
42121         invocation.
42122         * modules/unicase/u16-toupper (Depends-on): Add
42123         unicase/empty-prefix-context, unicase/empty-suffix-context.
42124
42125         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
42126         * modules/unicase/u8-toupper (Depends-on): Add
42127         unicase/empty-prefix-context, unicase/empty-suffix-context.
42128
42129         New module 'unicase/u32-ct-casefold'.
42130         * lib/unicase/u32-ct-casefold.c: New file.
42131         * modules/unicase/u32-ct-casefold: New file.
42132
42133         New module 'unicase/u16-ct-casefold'.
42134         * lib/unicase/u16-ct-casefold.c: New file.
42135         * modules/unicase/u16-ct-casefold: New file.
42136
42137         New module 'unicase/u8-ct-casefold'.
42138         * lib/unicase/u8-ct-casefold.c: New file.
42139         * lib/unicase/u-ct-casefold.h: New file, derived from
42140         lib/unicase/u-casefold.h.
42141         * modules/unicase/u8-ct-casefold: New file.
42142
42143         New module 'unicase/u32-ct-totitle'.
42144         * lib/unicase/u32-ct-totitle.c: New file.
42145         * modules/unicase/u32-ct-totitle: New file.
42146
42147         New module 'unicase/u16-ct-totitle'.
42148         * lib/unicase/u16-ct-totitle.c: New file.
42149         * modules/unicase/u16-ct-totitle: New file.
42150
42151         New module 'unicase/u8-ct-totitle'.
42152         * lib/unicase/u8-ct-totitle.c: New file.
42153         * lib/unicase/u-ct-totitle.h: New file, derived from
42154         lib/unicase/u-totitle.h.
42155         * modules/unicase/u8-ct-totitle: New file.
42156
42157         New module 'unicase/u32-ct-tolower'.
42158         * lib/unicase/u32-ct-tolower.c: New file.
42159         * modules/unicase/u32-ct-tolower: New file.
42160
42161         New module 'unicase/u16-ct-tolower'.
42162         * lib/unicase/u16-ct-tolower.c: New file.
42163         * modules/unicase/u16-ct-tolower: New file.
42164
42165         New module 'unicase/u8-ct-tolower'.
42166         * lib/unicase/u8-ct-tolower.c: New file.
42167         * modules/unicase/u8-ct-tolower: New file.
42168
42169         New module 'unicase/u32-ct-toupper'.
42170         * lib/unicase/u32-ct-toupper.c: New file.
42171         * modules/unicase/u32-ct-toupper: New file.
42172
42173         New module 'unicase/u16-ct-toupper'.
42174         * lib/unicase/u16-ct-toupper.c: New file.
42175         * modules/unicase/u16-ct-toupper: New file.
42176
42177         New module 'unicase/u8-ct-toupper'.
42178         * lib/unicase/u8-ct-toupper.c: New file.
42179         * modules/unicase/u8-ct-toupper: New file.
42180
42181         Add context arguments to u*_casemap functions.
42182         * lib/unicase/unicasemap.h: Include unicase.h.
42183         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
42184         suffix_context arguments.
42185         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
42186         functions.
42187         (FUNC): Add prefix_context and suffix_context arguments. Use
42188         uc_is_cased and uc_is_case_ignorable.
42189         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
42190         * lib/unicase/u16-casemap.c: Likewise.
42191         * lib/unicase/u32-casemap.c: Likewise.
42192         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
42193         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42194         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
42195         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42196         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
42197         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42198
42199         New module 'unicase/u32-suffix-context'.
42200         * lib/unicase/u32-suffix-context.c: New file.
42201         * modules/unicase/u32-suffix-context: New file.
42202
42203         New module 'unicase/u16-suffix-context'.
42204         * lib/unicase/u16-suffix-context.c: New file.
42205         * modules/unicase/u16-suffix-context: New file.
42206
42207         New module 'unicase/u8-suffix-context'.
42208         * lib/unicase/u8-suffix-context.c: New file.
42209         * lib/unicase/u-suffix-context.h: New file.
42210         * modules/unicase/u8-suffix-context: New file.
42211
42212         New module 'unicase/empty-suffix-context'.
42213         * lib/unicase/empty-suffix-context.c: New file.
42214         * modules/unicase/empty-suffix-context: New file.
42215
42216         New module 'unicase/u32-prefix-context'.
42217         * lib/unicase/u32-prefix-context.c: New file.
42218         * modules/unicase/u32-prefix-context: New file.
42219
42220         New module 'unicase/u16-prefix-context'.
42221         * lib/unicase/u16-prefix-context.c: New file.
42222         * modules/unicase/u16-prefix-context: New file.
42223
42224         New module 'unicase/u8-prefix-context'.
42225         * lib/unicase/u8-prefix-context.c: New file.
42226         * lib/unicase/u-prefix-context.h: New file.
42227         * lib/unicase/context.h: New file.
42228         * modules/unicase/u8-prefix-context: New file.
42229
42230         New module 'unicase/empty-prefix-context'.
42231         * lib/unicase/empty-prefix-context.c: New file.
42232         * modules/unicase/empty-prefix-context: New file.
42233
42234         New module 'unicase/ignorable'.
42235         * lib/unicase/ignorable.c: New file.
42236         * modules/unicase/ignorable: New file.
42237
42238         New module 'unicase/cased'.
42239         * lib/unicase/caseprop.h: New file.
42240         * lib/unicase/cased.c: New file.
42241         * modules/unicase/cased: New file.
42242
42243         New functions for case mapping of substrings.
42244         * lib/unicase.h (casing_prefix_context_t): New type.
42245         (unicase_empty_prefix_context): New variable.
42246         (u8_casing_prefix_context, u16_casing_prefix_context,
42247         u32_casing_prefix_context, u8_casing_prefixes_context,
42248         u16_casing_prefixes_context, u32_casing_prefixes_context): New
42249         declarations.
42250         (casing_suffix_context_t): New type.
42251         (unicase_empty_suffix_context): New variable.
42252         (u8_casing_suffix_context, u16_casing_suffix_context,
42253         u32_casing_suffix_context, u8_casing_suffixes_context,
42254         u16_casing_suffixes_context, u32_casing_suffixes_context,
42255         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
42256         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
42257         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
42258         declarations.
42259
42260 2009-06-28  Jim Meyering  <meyering@redhat.com>
42261
42262         boostrap: indent only with spaces
42263         * build-aux/bootstrap: Indent only with spaces, never TABs.
42264
42265         bootstrap: split long lines
42266         * build-aux/bootstrap: Keep line length < 80.
42267
42268         bootstrap: sync from coreutils
42269         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
42270         just as autoreconf does.  Verify a list of prerequisite
42271         package-name,version-number pairs if defined in bootstrap.conf.
42272         Refer to README-prereq, if prerequisites are not satisfied.
42273
42274 2009-06-27  Eric Blake  <ebb9@byu.net>
42275
42276         tests: add test for bogus NULL definition
42277         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
42278         * tests/test-stdlib.c: Likewise.
42279         * tests/test-string.c: Likewise.
42280         * tests/test-locale.c: Likewise.
42281         * tests/test-unistd.c: Likewise.
42282         * modules/stdio-tests (Depends-on): Add verify.
42283         * modules/stdlib-tests (Depends-on): Likewise.
42284         * modules/string-tests (Depends-on): Likewise.
42285         * modules/locale-tests (Depends-on): Likewise.
42286         * modules/unistd-tests (Depends-on): Likewise.
42287
42288 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
42289
42290         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
42291         self-explaining comment.
42292         * m4/selinux-selinux-h: Update serial.
42293         (gl_LIBSELINUX): New macro, adding a warning for missing development
42294         packages to code extracted from...
42295         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
42296         Add warning for missing development packages here, too.
42297
42298 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
42299
42300         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
42301
42302 2009-06-25  Eric Blake  <ebb9@byu.net>
42303
42304         version-etc: fix regression
42305         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
42306         gcc.
42307         (version_etc): Use it, to catch bugs with trailing NULL.
42308         * lib/version-etc.c (version_etc_arn): Delete unused argument.
42309         (version_etc_va): Fix logic bug.
42310         * modules/version-etc-tests: Add test.
42311         * tests/test-version-etc.c: New file.
42312         * tests/test-version-etc.sh: Likewise.
42313
42314 2009-06-25  Sam Steingold  <sds@gnu.org>
42315
42316         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
42317         mbtowc declaration.
42318
42319 2009-06-25  Eric Blake  <ebb9@byu.net>
42320
42321         fpurge: migrate into <stdio.h>
42322         * lib/fpurge.h: Delete...
42323         * lib/stdio.in.h (fpurge): ...and declare here, instead.
42324         * lib/fpurge.c (fpurge): Change declaring header.
42325         * modules/fpurge (Files): Drop deleted file.
42326         (Depends-on): Add stdio.
42327         (configure.ac): Set witness.
42328         * modules/stdio (Makefile.am): Support fpurge macros.
42329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42330         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
42331         * lib/fflush.c: Update client.
42332         * tests/test-fpurge.c: Likewise.
42333         * NEWS: Mention the change.
42334
42335 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42336
42337         * lib/argp-version-etc.c (program_authors): Add const
42338         qualifier.
42339         * lib/version-etc.c: Fix typos in the comments.
42340         * modules/argp-version-etc: Depends on version-etc.
42341
42342 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42343
42344         argp-version-etc: new module.
42345
42346         * lib/argp-version-etc.c: New file.
42347         * lib/argp-version-etc.h: New file.
42348         * modules/argp-version-etc: New file.
42349         * modules/argp-version-etc-tests: New file.
42350         * tests/test-argp-version-etc.c: New test.
42351         * tests/test-argp-version-etc-1.sh: New test.
42352
42353 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42354
42355         Provide additional interfaces and documentation for version-etc
42356         module.
42357
42358         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
42359         interfaces.
42360         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
42361         prototypes.
42362
42363 2009-06-24  Bruno Haible  <bruno@clisp.org>
42364
42365         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
42366         HAVE_LIB${NAME} macro.
42367         Reported by Sam Steingold <sds@gnu.org>.
42368
42369 2009-06-23  Simon Josefsson  <simon@josefsson.org>
42370
42371         * modules/hash-tests (test_hash_LDADD): Link to libintl when
42372         needed.
42373
42374 2009-06-21  Bruno Haible  <bruno@clisp.org>
42375
42376         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
42377         work.
42378         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
42379         together with LIB${NAME}, LTLIB${NAME}.
42380         Reported by Sam Steingold <sds@gnu.org>.
42381
42382 2009-06-20  Jim Meyering  <meyering@redhat.com>
42383
42384         tests: make sc_require_test_exit_idiom more generic
42385         * top/maint.mk (Exit_witness_file): New overridable variable.
42386         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
42387         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
42388
42389 2009-06-19  Jim Meyering  <meyering@redhat.com>
42390
42391         hash: reverse order of src/dst parameters in an internal interface
42392         * lib/hash.c (transfer_entries): Reverse order of parameters to
42393         put DST before SRC.  Adjust callers.
42394
42395         tests: test-hash: avoid wholesale duplication
42396         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
42397         Instead, use a loop and add a single conditional.
42398
42399         tests: test-hash: allow seed selection via a command line argument
42400         * tests/test-hash.c (get_seed): New function.
42401         (main): Use it.
42402
42403 2009-06-19  Eric Blake  <ebb9@byu.net>
42404
42405         hash: avoid memory leak on allocation failure
42406         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
42407         failure.  Factor repeated algorithm...
42408         (transfer_entries): ...into new helper routine.
42409         (hash_delete): React to hash_rehash return value.
42410
42411         hash: reduce memory pressure in hash_rehash no-op case
42412         * lib/hash.c (next_prime): Avoid overflow.
42413         (hash_initialize): Factor bucket size computation...
42414         (compute_bucket_size): ...into new helper function.
42415         (hash_rehash): Use new function and open coding to reduce memory
42416         pressure, and avoid a memory leak in USE_OBSTACK code.
42417         Reported by Jim Meyering.
42418
42419 2009-06-18  Eric Blake  <ebb9@byu.net>
42420
42421         hash: make rotation more obvious
42422         * modules/hash (Depends-on): Add bitrotate and stdint.
42423         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
42424         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
42425         (SIZE_MAX): Rely on headers for definition.
42426         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
42427         (raw_hasher): Use rotr_sz.
42428         Suggested by Jim Meyering.
42429
42430         hash: fix memory leak in last patch
42431         * lib/hash.c (hash_rehash): Avoid memory leak.
42432
42433         hash: avoid no-op rehashing
42434         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
42435
42436         hash: provide default callback functions
42437         * lib/hash.c (raw_hasher, raw_comparator): New functions.
42438         (hash_initialize): Use them as defaults.
42439         * tests/test-hash.c (main): Test this.
42440
42441         hash: minor optimization
42442         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
42443         when possible.
42444         (hash_initialize): Document this promise.
42445         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
42446         * tests/test-hash.c (hash_compare_strings): Test this.
42447
42448 2009-06-18  Bruno Haible  <bruno@clisp.org>
42449
42450         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
42451         going to be replaced anyway.
42452
42453 2009-06-18  Bruno Haible  <bruno@clisp.org>
42454
42455         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
42456         in one place.
42457         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
42458         be replaced anyway.
42459
42460 2009-06-18  Eric Blake  <ebb9@byu.net>
42461
42462         hash: check for resize before insertion
42463         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
42464         threshold before insertion, so that a pathological hash_rehash
42465         that fills every bucket can still trigger another rehash.
42466
42467 2009-06-18  Jim Meyering  <meyering@redhat.com>
42468
42469         hash-tests: add a loop around the small tests
42470         * tests/test-hash.c (main): Repeat small tests with selected
42471         small initial table sizes.
42472
42473 2009-06-17  Eric Blake  <ebb9@byu.net>
42474
42475         hash: minor cleanups
42476         * lib/hash.h (hash_entry): Make opaque, by moving...
42477         * lib/hash.c (hash_entry): ...here.
42478         (hash_insert): Clarify restrictions on what can be inserted.
42479         (hash_get_next): Clarify when it is safe to remove an element
42480         during traversal.
42481         (check_tuning): Skip verification when tuning is known safe.
42482         (hash_initialize): Clarify restrictions on tuning.
42483
42484 2009-06-17  Jim Meyering  <jim@meyering.net>
42485         and Eric Blake  <ebb9@byu.net>
42486
42487         hash-tests: new module
42488         * modules/hash-tests: New file.
42489         * tests/test-hash.c: New file.
42490
42491 2009-06-17  Eric Blake  <ebb9@byu.net>
42492
42493         strstr-simple: document new module
42494         * MODULES.html.sh: Document new module.
42495
42496         strstr, strcasestr: replace on platforms with broken memchr
42497         * modules/strstr: Split into...
42498         * modules/strstr-simple: ...new module that does not care about
42499         performance, but does care about glibc bug.
42500         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
42501         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
42502         if platform memchr is broken, per Debian bug 521737.
42503         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
42504         memchr.
42505         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
42506         * doc/posix-functions/strstr.texi (strstr): Document the fix.
42507         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42508         * modules/mountlist (Depends-on): Add strstr-simple.
42509         * modules/gen-uni-tables (Depends-on): Likewise.
42510         * modules/argz (Depends-on): Add strstr.
42511
42512 2009-06-17  Bruno Haible  <bruno@clisp.org>
42513
42514         * modules/posix_spawn-internal (Depends-on): Add errno.
42515
42516 2009-06-17  Bruno Haible  <bruno@clisp.org>
42517
42518         Define missing ESTALE on Interix 3.5.
42519         * lib/errno.in.h (ESTALE): Assign a value if missing.
42520         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
42521         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
42522         missing.
42523         * doc/posix-headers/errno.texi: Mention the Interix bug.
42524         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
42525
42526 2009-06-15  Eric Blake  <ebb9@byu.net>
42527
42528         memchr, memchr2: add valgrind exception
42529         * lib/memchr.valgrind: New file.
42530         * lib/memchr2.valgrind: New file.
42531         * modules/memchr (Files): Distribute valgrind file.
42532         * modules/memchr2 (Files): Likewise.
42533
42534         docs: memchr is no longer obsolete
42535         * MODULES.html.sh: Move memchr from obsolete to string.h section.
42536         * lib/string.in.h (memchr): Simplify logic.
42537
42538 2009-06-14  Jim Meyering  <meyering@redhat.com>
42539
42540         link-follow: fix the "checking..." message to not mention trailing slash
42541         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
42542         never considered trailing slashes.
42543
42544 2009-06-14  Bruno Haible  <bruno@clisp.org>
42545
42546         * m4/memchr.m4: Mention also the bug on IA-64.
42547         * doc/posix-functions/memchr.texi: Likewise.
42548
42549 2009-06-12  Eric Blake  <ebb9@byu.net>
42550
42551         memchr: detect broken x86_64 and alpha implementations
42552         * modules/memchr-tests (Depends-on): Move mmap detection...
42553         * modules/memchr (Depends-on): ...here.
42554         (configure.ac): Set indicator.
42555         * lib/string.in.h (memchr): Declare replacement.
42556         * modules/string (Makefile.am): Trigger replacement.
42557         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42558         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
42559         bugs.
42560         * doc/posix-functions/memchr.texi (memchr): Document the bug.
42561         * modules/getpagesize (License): Relax license.
42562
42563 2009-06-11  Bruno Haible  <bruno@clisp.org>
42564
42565         * lib/idpriv.h: Add more references.
42566
42567 2009-06-08  Bruno Haible  <bruno@clisp.org>
42568
42569         Tests for module 'idpriv-droptemp'.
42570         * modules/idpriv-droptemp-tests: New file.
42571         * tests/test-idpriv-droptemp.sh: New file.
42572         * tests/test-idpriv-droptemp.su.sh: New file.
42573         * tests/test-idpriv-droptemp.c: New file.
42574
42575         New module 'idpriv-droptemp'.
42576         * lib/idpriv-droptemp.c: New file.
42577         * modules/idpriv-droptemp: New file.
42578
42579 2009-06-08  Bruno Haible  <bruno@clisp.org>
42580
42581         Tests for module 'idpriv-drop'.
42582         * modules/idpriv-drop-tests: New file.
42583         * tests/test-idpriv-drop.sh: New file.
42584         * tests/test-idpriv-drop.su.sh: New file.
42585         * tests/test-idpriv-drop.c: New file.
42586
42587         New module 'idpriv-drop'.
42588         * lib/idpriv.h: New file.
42589         * lib-idpriv-drop.c: New file.
42590         * m4/idpriv.m4: New file.
42591         * modules/idpriv-drop: New file.
42592
42593 2009-06-08  Bruno Haible  <bruno@clisp.org>
42594
42595         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
42596         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42597         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42598         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42599         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42600         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42601         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42602
42603 2009-06-08  Eric Blake  <ebb9@byu.net>
42604
42605         test-strstr: use memory fence, when possible
42606         * tests/test-strstr.c (main): Use memory fence, in order to be
42607         more likely to trigger Debian bug 521737.
42608         * modules/strstr-tests (Files): Pull in additional files.
42609
42610         memchr: no longer obsolete, for wider field testing
42611         * modules/memchr (Status, Notice): Delete, this module is no
42612         longer obsolete.
42613         * modules/vasnprintf (Depends-on): Add memchr.
42614
42615 2009-06-07  Jim Meyering  <meyering@redhat.com>
42616
42617         hash: declare some functions with the warn_unused_result attribute
42618         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
42619
42620 2009-06-07  Bruno Haible  <bruno@clisp.org>
42621
42622         * tests/test-alignof.c: Don't test int64_t if it does not exist.
42623         Reported by Eric Blake.
42624
42625 2009-06-06  Eric Blake  <ebb9@byu.net>
42626
42627         test-alignof: fix typo with long double
42628         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
42629         compiler error.
42630
42631 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
42632
42633         Escape non-texinfo { and }s.
42634         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
42635         markup error.
42636
42637 2009-06-04  Jim Meyering  <meyering@redhat.com>
42638
42639         gitlog-to-changelog: don't infloop on an empty commit log
42640         * build-aux/gitlog-to-changelog: Warn about an empty log message.
42641         Reported by Boris Petersen <transacid@centerim.org>.
42642
42643 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
42644
42645         version-etc: extend for packagers
42646         Add three new configure options, intended for packagers:
42647           --with-packager="packager name"
42648           --with-packager-version="packager-specific version"
42649           --with-packager-bug-reports="packager bug reporting"
42650         An example with coreutils:
42651           $ ./configure \
42652             --with-packager=Gentoo \
42653             --with-packager-bug-report=http://bugs.gentoo.org/ \
42654             --with-packager-version="patchset 1.6"
42655           $ ./src/ls --version | head -n2
42656           ls (GNU coreutils) 7.1-dirty
42657           Packaged by Gentoo (patchset 1.6)
42658         Note that the bug reporting info via --help doesn't show up because
42659         coreutils uses its own custom emit_bug_reporting_address() implementation
42660         in src/system.h.  If it didn't, it'd look like:
42661           $ ./src/ls --help | tail -n4
42662           Report bugs to <bug-coreutils@gnu.org>.
42663           Report Gentoo bugs to <http://bugs.gentoo.org/>.
42664           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
42665           General help using GNU software: <http://www.gnu.org/gethelp/>.
42666         * lib/version-etc.c: Print new information, if provided.
42667         * m4/version-etc.m4: New file.
42668         * modules/version-etc (Files): Add m4/version-etc.m4.
42669         (configure.ac): Add gl_VERSION_ETC.
42670
42671 2009-05-31  Bruno Haible  <bruno@clisp.org>
42672
42673         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
42674         and 'int64_t'.
42675         * modules/alignof-tests (Dependencies): Add stdint.
42676         Reported by Eric Blake.
42677
42678 2009-05-31  Bruno Haible  <bruno@clisp.org>
42679
42680         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
42681         restriction due to compiler bugs.
42682         Reported by Eric Blake.
42683
42684 2009-05-31  Simon Josefsson  <simon@josefsson.org>
42685             Bruno Haible  <bruno@clisp.org>
42686
42687         Fix test-alignof failure.
42688         * lib/alignof.h (alignof_slot): New macro.
42689         (alignof_type): New macro, with the same semantics as the previous
42690         'alignof'.
42691         (alignof): Alias to alignof_slot.
42692         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
42693         check that the results are usable as constant expressions.
42694
42695 2009-05-31  Bruno Haible  <bruno@clisp.org>
42696
42697         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
42698         * tests/test-memchr.c (main): Check that memchr does not read past the
42699         first occurrence of the byte.
42700         * tests/test-strstr.c (main): Update comment.
42701         Suggested by Eric Blake.
42702
42703 2009-05-30  Bruno Haible  <bruno@clisp.org>
42704
42705         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
42706         detail how to use dumpbin.
42707         Reported by David Byron <dbyron@dbyron.com>.
42708
42709 2009-06-02  Simon Josefsson  <simon@josefsson.org>
42710
42711         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
42712
42713 2009-06-02  Simon Josefsson  <simon@josefsson.org>
42714
42715         * m4/manywarnings.m4: Add GCC 4.4 warnings.
42716
42717 2009-05-28  Bruno Haible  <bruno@clisp.org>
42718
42719         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
42720         build-aux/ files.
42721
42722 2009-05-28  Simon Josefsson  <simon@josefsson.org>
42723
42724         * gnulib-tool (func_import): Transform license on build-aux/ files too.
42725
42726 2009-05-27  Simon Josefsson  <simon@josefsson.org>
42727
42728         * gnulib-tool (sed_transform_main_lib_file)
42729         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
42730         regexps.
42731
42732 2009-05-26  Simon Josefsson  <simon@josefsson.org>
42733
42734         * tests/test-strstr.c: Add another self-test.
42735         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
42736         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
42737
42738 2009-05-23  Bruno Haible  <bruno@clisp.org>
42739
42740         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
42741         change.
42742
42743 2009-05-21  Bruno Haible  <bruno@clisp.org>
42744
42745         Simplify use of mode_t varargs.
42746         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
42747         uses 'mode_t' or 'int'.
42748         * lib/openat.c (openat): Likewise.
42749         * lib/open-safer.c (open_safer): Likewise.
42750         * m4/mode_t.m4: New file.
42751         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
42752         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
42753         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
42754         * modules/open (Files): Add m4/mode_t.m4.
42755         * modules/openat (Files): Likewise.
42756         * modules/fcntl-safer (Files): Likewise.
42757         Suggested by Eric Blake.
42758
42759 2009-05-21  Pádraig Brady  <P@draigbrady.com>
42760
42761         * doc/glibc-functions/fallocate.texi: New file.
42762         * doc/gnulib.texi: Include it.
42763
42764 2009-05-21  Eric Blake  <ebb9@byu.net>
42765             Bruno Haible  <bruno@clisp.org>
42766
42767         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
42768         invocations.
42769         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42770
42771 2009-05-21  Eric Blake  <ebb9@byu.net>
42772             Bruno Haible  <bruno@clisp.org>
42773
42774         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
42775         include_next. Fix of 2008-11-20 commit.
42776         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
42777         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
42778         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
42779         NEXT_MATH_H.
42780         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
42781         instead of NEXT_MATH_H.
42782
42783 2009-05-21  Bruno Haible  <bruno@clisp.org>
42784
42785         Avoid redefinition warnings for SIZE_MAX.
42786         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
42787         Reported by Simon Josefsson.
42788
42789 2009-05-21  Bruno Haible  <bruno@clisp.org>
42790
42791         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
42792         AC_CACHE_VAL.
42793
42794 2009-05-20  Bruno Haible  <bruno@clisp.org>
42795
42796         Make zeroptr.h work on mingw.
42797         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
42798         mprotect.
42799         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
42800         * modules/memchr2-tests (configure.ac): Likewise.
42801         * modules/memcmp-tests (configure.ac): Likewise.
42802         * modules/memmem-tests (configure.ac): Likewise.
42803         * modules/memrchr-tests (configure.ac): Likewise.
42804         Reported by Simon Josefsson.
42805
42806 2009-05-20  Simon Josefsson  <simon@josefsson.org>
42807
42808         * tests/test-glob.c: Include string.h for strcmp prototype.
42809
42810 2009-05-20  Simon Josefsson  <simon@josefsson.org>
42811
42812         * modules/getdelim (Depends-on): Add explicit stdint, although it
42813         was implicitly already pulled in via realloc-posix.
42814         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
42815
42816 2009-05-20  Simon Josefsson  <simon@josefsson.org>
42817
42818         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
42819         G. Christensen" <tgc@jupiterrise.com>.
42820         * m4/sys_socket_h.m4: Check for sa_family_t.
42821         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
42822         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
42823         * tests/test-sys_socket.c: Check that sa_family_t works.
42824
42825 2009-05-18  Eric Blake  <ebb9@byu.net>
42826
42827         maint.mk: allow gnulib_dir in VPATH build
42828         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
42829
42830 2009-05-15  Jim Meyering  <meyering@redhat.com>
42831
42832         maint.mk: Give gnulib_dir a default definition.
42833         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
42834         Thus, most packages no longer need to specify this variable in cfg.mk
42835
42836 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
42837
42838         rename.m4: fix typos that would make non-mingw cross-configure fail
42839         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
42840
42841 2009-05-13  Eric Blake  <ebb9@byu.net>
42842
42843         mmap-anon: avoid out-of-order autoconf expansion
42844         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
42845         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
42846         * modules/memchr-tests (Depends-on): Add extensions.
42847         * modules/memchr2-tests (Depends-on): Add extensions.
42848         * modules/memcmp-tests (Depends-on): Add extensions.
42849         * modules/memmem-tests (Depends-on): Add extensions.
42850         * modules/memrchr-tests (Depends-on): Add extensions.
42851
42852 2009-05-13  Bruno Haible  <bruno@clisp.org>
42853
42854         Make some tests ISO C 99 compliant.
42855         * tests/zerosize-ptr.h: New file.
42856         * tests/test-memchr.c: Include zerosize-ptr.h.
42857         (main): Use a zero-size object pointer instead of NULL.
42858         * tests/test-memchr2.c: Include zerosize-ptr.h.
42859         (main): Use a zero-size object pointer instead of NULL.
42860         * tests/test-memcmp.c: Include zerosize-ptr.h.
42861         (main): Use a zero-size object pointer instead of NULL.
42862         * tests/test-memmem.c: Include zerosize-ptr.h.
42863         (main): Use a zero-size object pointer instead of NULL.
42864         * tests/test-memrchr.c: Include zerosize-ptr.h.
42865         (main): Use a zero-size object pointer instead of NULL.
42866         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
42867         m4/mmap-anon.m4.
42868         (Depends-on): Add getpagesize.
42869         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42870         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
42871         m4/mmap-anon.m4.
42872         (Depends-on): Add getpagesize.
42873         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42874         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
42875         m4/mmap-anon.m4.
42876         (Depends-on): Add getpagesize.
42877         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42878         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
42879         m4/mmap-anon.m4.
42880         (Depends-on): Add getpagesize.
42881         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42882         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
42883         m4/mmap-anon.m4.
42884         (Depends-on): Add getpagesize.
42885         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42886
42887 2009-05-12  Bruno Haible  <bruno@clisp.org>
42888
42889         Tests for module 'alignof'.
42890         * modules/alignof-tests: New file.
42891         * tests/test-alignof.c: New file.
42892
42893 2009-05-12  Bruno Haible  <bruno@clisp.org>
42894
42895         Fix alignof macro.
42896         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
42897         vendor compilers that are always correct.
42898
42899 2009-05-12  Bruno Haible  <bruno@clisp.org>
42900
42901         Make the MAP_ANONYMOUS detection work on HP-UX 11.
42902         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
42903         not whether its fully works.
42904
42905 2009-05-12  Bruno Haible  <bruno@clisp.org>
42906
42907         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
42908
42909 2009-05-12  Jim Meyering  <meyering@redhat.com>
42910
42911         * top/maint.mk: Adjust backslash alignment.
42912
42913 2009-05-11  Simon Josefsson  <simon@josefsson.org>
42914
42915         * top/maint.mk: Make $(srcdir)/build-aux configurable.
42916
42917 2009-05-11  Eric Blake  <ebb9@byu.net>
42918
42919         argp: avoid undefined behavior
42920         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
42921         macros.
42922
42923 2009-05-08  Simon Josefsson  <simon@josefsson.org>
42924
42925         * tests/test-vc-list-files-git.sh: Do git config of user.email and
42926         user.name to prevent git commit from complaining.
42927
42928 2009-05-10  Bruno Haible  <bruno@clisp.org>
42929
42930         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
42931         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
42932         it rewrites every file name only once.
42933         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
42934
42935 2009-05-08  Bruno Haible  <bruno@clisp.org>
42936
42937         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
42938         instead of 'max'.
42939
42940 2009-05-08  Simon Josefsson  <simon@josefsson.org>
42941
42942         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
42943         sockaddr_storage test.
42944
42945 2009-05-07  Simon Josefsson  <simon@josefsson.org>
42946
42947         * modules/sys_socket (Makefile.am): Substitute
42948         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
42949         * m4/sys_socket_h.m4: Check for sockaddr_storage.
42950         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
42951         * tests/test-sys_socket.c: Check sockaddr_storage.
42952
42953 2009-05-08  Bruno Haible  <bruno@clisp.org>
42954
42955         New module 'alignof'.
42956         * lib/alignof.h: New file.
42957         * modules/alignof: New file.
42958
42959 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42960             Bruno Haible  <bruno@clisp.org>
42961
42962         Fix test-file-has-acl on FreeBSD.
42963         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
42964         mask is implicitly added.
42965         * tests/test-file-has-acl.c: Include <signal.h>.
42966         (main): Terminate the test after 5 seconds.
42967         * modules/acl-tests (configure.ac): Check for alarm function.
42968
42969 2009-05-04  Bruno Haible  <bruno@clisp.org>
42970
42971         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
42972         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
42973         * modules/errno (configure.ac): Drop AC_REQUIRE.
42974         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
42975         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
42976
42977 2009-05-04  Simon Josefsson  <simon@josefsson.org>
42978
42979         * modules/glob-tests: New module.
42980         * tests/test-glob.c: Add.
42981
42982 2009-05-04  Simon Josefsson  <simon@josefsson.org>
42983
42984         * modules/fnmatch-tests: New module.
42985         * tests/test-fnmatch.c: Add.
42986
42987 2009-05-04  Eric Blake  <ebb9@byu.net>
42988
42989         maint: make the new no-submodule-changes rule VPATH-safe
42990         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
42991
42992 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42993             Bruno Haible  <bruno@clisp.org>
42994
42995         acl: Fix infinite loop on FreeBSD.
42996         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
42997         of return value from acl_get_entry.
42998         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
42999         Likewise.
43000
43001 2009-05-03  Bruno Haible  <bruno@clisp.org>
43002
43003         * lib/acl-internal.h (acl_entries): Clarify return value.
43004         * lib/acl_entries.c (acl_entries): Likewise.
43005
43006 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43007
43008         Bug fix in acl module.
43009         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43010
43011 2009-05-03  Bruno Haible  <bruno@clisp.org>
43012
43013         Create gperf-generated file in the source dir, not in the build dir.
43014         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
43015         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
43016         * modules/unicase/locale-language (unicase/locale-languages.h):
43017         Likewise.
43018         * modules/unicase/special-casing (unicase/special-casing-table.h):
43019         Likewise.
43020         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
43021         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
43022         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
43023         Reported by Ralf Wildenhues.
43024
43025 2009-05-03  Bruno Haible  <bruno@clisp.org>
43026
43027         * modules/fnmatch (Description, configure.ac): Taken from
43028         fnmatch-posix.
43029         * modules/fnmatch-posix: Turn into a symbolic reference to the
43030         'fnmatch' module, and deprecate.
43031         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
43032
43033 2009-05-03  Bruno Haible  <bruno@clisp.org>
43034
43035         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
43036         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
43037         Reported by Ralf Wildenhues.
43038
43039 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43040
43041         * m4/fnmatch.m4: Fix fnmatch re-define.
43042
43043 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43044
43045         priv-set: new module and tests; adapt write-any-file
43046         * lib/priv-set.c: New file.
43047         * lib/priv-set.h: New file.
43048         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
43049         * lib/write-any-file.c: Simplify by using priv-set module.
43050         * m4/priv-set.m4: New file.
43051         * modules/priv-set: New file.
43052         * modules/unlinkdir: Add dependency on priv-set module.
43053         * modules/write-any-file: Likewise.
43054
43055         Tests for module 'priv-set'.
43056         * modules/priv-set-tests: New file.
43057         * tests/test-priv-set.c: New file.
43058
43059 2009-05-03  Jim Meyering  <meyering@redhat.com>
43060             Bruno Haible  <bruno@clisp.org>
43061
43062         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
43063         use the converted UTF-8 variant of the name instead.
43064
43065 2009-05-03  Jim Meyering  <meyering@redhat.com>
43066
43067         tests: tighten some getdate tests
43068         * tests/test-getdate.c (main): Tighten tests: require equality,
43069         not just greater than.  Set TZ envvar to UTC0.
43070
43071 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
43072
43073         getdate: correctly interpret "next monday" when run on a Monday
43074         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
43075         that e.g., "next tues" (when run on a tuesday) results in a date
43076         that is one week in the future, and not today's date.
43077         I.e., add a week when the wday is the same as the current one.
43078         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
43079         and earlier by Martin Bernreuther and Jan Minář.
43080         * tests/test-getdate.c (main): Check that "next DAY" is always in
43081         the future and that "last DAY" is always in the past.
43082
43083 2009-05-02  Jim Meyering  <meyering@redhat.com>
43084
43085         build: ensure that a release build fails when a submodule is unclean
43086         * top/maint.mk (no-submodule-changes): New rule.
43087         (alpha beta major): Depend on it.
43088
43089 2009-05-02  Bruno Haible  <bruno@clisp.org>
43090
43091         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
43092         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
43093         shell variable gl_fnmatch_required to detect which variant is
43094         requested.
43095         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
43096         gl_FUNC_FNMATCH_POSIX.
43097         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
43098         exclude fnmatch-posix.
43099
43100 2009-05-02  Bruno Haible  <bruno@clisp.org>
43101
43102         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
43103         * modules/mbsrtowcs (License): Change to LGPLv2+.
43104         * modules/strnlen1 (License): Likewise.
43105         Reported by Simon Josefsson.
43106
43107 2009-05-02  Bruno Haible  <bruno@clisp.org>
43108
43109         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
43110         "cross".
43111         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
43112         gnulib-tool was called with option --source-base=lib.
43113
43114 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43115
43116         Use automake *-local hooks without commands, for extensibility.
43117         * modules/localcharset (Makefile.am): Rename install-exec-local
43118         rule to install-exec-localcharset, and make it a prerequisite of
43119         install-exec-local.  Likewise, rename the uninstall-local rule to
43120         uninstall-localcharset, and make it a prerequisite of the former.
43121
43122 2009-05-01  Bruno Haible  <bruno@clisp.org>
43123
43124         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
43125         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43126         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
43127         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
43128         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
43129         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43130         m4/locale-zh.m4, m4/codeset.m4.
43131
43132         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43133         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
43134         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43135         m4/locale-zh.m4.
43136
43137         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
43138         REPLACE_WCRTOMB if mbstate_t must be replaced.
43139         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
43140         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
43141
43142 2009-05-01  Bruno Haible  <bruno@clisp.org>
43143
43144         Avoid compiler warnings when redefining macros defined by <libintl.h>.
43145         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
43146         dngettext, dcngettext, textdomain, bindtextdomain,
43147         bind_textdomain_codeset): Undefine before redefining.
43148
43149 2009-04-30  Bruno Haible  <bruno@clisp.org>
43150
43151         Fix bug introduced on 2009-04-25.
43152         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
43153         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
43154         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
43155         is defined.
43156         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
43157         is defined.
43158         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
43159         is defined.
43160         Reported by Elbert_Pol <elbert.pol@gmail.com>.
43161
43162 2009-04-28  Bruno Haible  <bruno@clisp.org>
43163
43164         Comment tweaks.
43165         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
43166         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
43167         * lib/unicase.h (u*_casexfrm): Likewise.
43168         Reported by Paolo Bonzini.
43169
43170 2009-04-28  Bruno Haible  <bruno@clisp.org>
43171
43172         Fix a compilation error.
43173         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
43174         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43175         Reported by Jim Meyering.
43176
43177 2009-04-27  Bruno Haible  <bruno@clisp.org>
43178
43179         New module 'libunistring'.
43180         * modules/libunistring: New file.
43181         * m4/libunistring.m4: New file.
43182         * MODULES.html.sh (Unicode string functions): Add it.
43183
43184 2009-04-27  Eric Blake  <ebb9@byu.net>
43185
43186         maint.mk: allow package-specific header to provide <config.h>
43187         * top/maint.mk (sc_require_config_h): New variable.
43188         (sc_require_config_h, sc_require_config_h_first): Use it.
43189
43190 2009-04-27  Simon Josefsson  <simon@josefsson.org>
43191
43192         * top/maint.mk (sc_avoid_if_before_free): Except
43193         useless-if-before-free script.
43194
43195 2009-04-27  Eric Blake  <ebb9@byu.net>
43196
43197         maintainer-makefile: depend on all required helper scripts
43198         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
43199         useless-if-before-free.
43200         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
43201         version, rather than assuming gnulib checkout is available.
43202         Reported by Simen Josefsson.
43203
43204 2009-04-26  Bruno Haible  <bruno@clisp.org>
43205
43206         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
43207         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
43208         "../" or "..".
43209
43210 2009-04-26  Bruno Haible  <bruno@clisp.org>
43211
43212         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
43213         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
43214         AC_LIB_HAVE_LINKFLAGS.
43215
43216 2009-04-26  Bruno Haible  <bruno@clisp.org>
43217
43218         Simplify calling convention of u*_conv_from_encoding.
43219         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
43220         u32_conv_from_encoding): Expect a resultbuf argument and return the
43221         result directly as a pointer.
43222         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
43223         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
43224         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
43225         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
43226         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
43227         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43228         Update.
43229         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
43230         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
43231         * lib/vasnprintf.c (VASNPRINTF): Update.
43232         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
43233         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
43234         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
43235         * NEWS: Mention the change.
43236
43237 2009-04-26  Bruno Haible  <bruno@clisp.org>
43238
43239         Simplify calling convention of u*_conv_to_encoding.
43240         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43241         u32_conv_to_encoding): Expect a resultbuf argument and return the
43242         result directly as a pointer.
43243         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43244         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
43245         freeing scaled_offsets if mem_iconveha failed.
43246         * lib/unicase/u-casexfrm.h (FUNC): Update.
43247         * lib/uninorm/u-normxfrm.h (FUNC): Update.
43248         * lib/vasnprintf.c (VASNPRINTF): Update.
43249         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
43250         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
43251         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
43252         * NEWS: Mention the change.
43253
43254 2009-04-26  Bruno Haible  <bruno@clisp.org>
43255
43256         Avoid test failures on AIX and OSF/1.
43257         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
43258         malloc(0).
43259         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43260         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43261         Likewise.
43262         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
43263         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
43264         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
43265         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
43266         * doc/posix-functions/malloc.texi: Document the portability problem
43267         related to malloc(0).
43268
43269 2009-04-26  Bruno Haible  <bruno@clisp.org>
43270
43271         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
43272         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
43273         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
43274
43275 2009-04-25  Bruno Haible  <bruno@clisp.org>
43276
43277         Avoid link error when creating a namespace clean library.
43278         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
43279         as macro with arguments if already defined as an alias.
43280         * lib/signbitf.c (gl_signbitf): Don't undefine.
43281         * lib/signbitd.c (gl_signbitd): Don't undefine.
43282         * lib/signbitl.c (gl_signbitl): Don't undefine.
43283
43284 2009-04-25  Jim Meyering  <meyering@redhat.com>
43285
43286         vc-list-files: fix another quoting bug
43287         * build-aux/vc-list-files: Avoid sed backslash expansion
43288         of pathological directory names.
43289
43290 2009-04-25  Eric Blake  <ebb9@byu.net>
43291
43292         vc-list-files: fix shell quoting error
43293         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
43294         timestamp.
43295
43296 2009-04-25  Jim Meyering  <meyering@redhat.com>
43297
43298         vc-list-files: restore lost functionality with subdir argument
43299         * build-aux/vc-list-files: When given a non-"." sub-directory
43300         argument, substitute the $dir/ prefix back onto each resulting name.
43301         Otherwise, coreutils' root_tests check would fail.
43302
43303 2009-04-24  Eric Blake  <ebb9@byu.net>
43304
43305         vc-list-files: ignore git symlinks
43306         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
43307         than ls-files, to ignore git symlinks.
43308
43309         maint.mk: import improvements from m4
43310         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
43311         (move_if_change): Delete unused macro.
43312         (news-date-check, vc-diff-check): Support VPATH builds.
43313         (announcement): Likewise.  Split --bootstrap-tools list...
43314         (boostrap-tools): ...into separate list, which can be overridden
43315         in cfg.mk.
43316         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
43317         requiring dependency on useless-if-before-free module.
43318         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
43319         Support VPATH builds.
43320
43321 2009-04-24  Jim Meyering  <meyering@redhat.com>
43322
43323         maint.mk: remove coreutils-specific rules and variables
43324         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
43325         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
43326         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
43327
43328         maint.mk: remove obsolete rule
43329         * top/maint.mk (rel-check): Remove rule.
43330         (WGET, WGETFLAGS): Remove now-unused variables.
43331
43332 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43333
43334         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
43335         consistency.
43336
43337         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
43338         '$(PATH_SEPARATOR)' instead of ':'.
43339
43340 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43341
43342         * lib/getopt1.c (main): Use 'const' for static array.
43343
43344 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43345
43346         * top/maint.mk: Sync with coreutils.
43347         * NEWS: Explain incompatibilities.
43348
43349 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43350             Bruno Haible  <bruno@clisp.org>
43351
43352         Fix cross-compilation results.
43353         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
43354         statement, as third argument of AC_TRY_RUN.
43355         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
43356         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
43357         Likewise.
43358         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
43359         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
43360         Likewise.
43361         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
43362         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
43363         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
43364
43365 2009-04-20  Bruno Haible  <bruno@clisp.org>
43366
43367         Avoid test failure on mingw.
43368         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
43369
43370 2009-04-20  Bruno Haible  <bruno@clisp.org>
43371
43372         Avoid compilation error on mingw.
43373         * modules/localename-tests (Depends-on): Add locale.
43374
43375 2009-04-19  Bruno Haible  <bruno@clisp.org>
43376
43377         Support for building a shared library on Windows platforms.
43378         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
43379         (main): Test the presence of UNINORM_NFC here.
43380         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
43381         (main): Test the presence of UNINORM_NFD here.
43382         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
43383         (main): Test the presence of UNINORM_NFKC here.
43384         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
43385         (main): Test the presence of UNINORM_NFKD here.
43386
43387 2009-04-19  Bruno Haible  <bruno@clisp.org>
43388
43389         Avoid a compiler warning.
43390         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
43391         Change type of variable 'sequence'.
43392
43393 2009-04-19  Bruno Haible  <bruno@clisp.org>
43394
43395         * modules/configmake (Makefile.am): When the contents of configmake.h
43396         does not change, arrange to preserve its modification time.
43397
43398 2009-04-17  Simon Josefsson  <simon@josefsson.org>
43399
43400         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
43401         gettext domain.
43402
43403 2009-04-16  Jim Meyering  <meyering@redhat.com>
43404
43405         useless-if-before-free: improve conversion code
43406         * build-aux/useless-if-before-free: Adjust code-in-comment to match
43407         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
43408
43409 2009-04-14  Bruno Haible  <bruno@clisp.org>
43410
43411         * modules/fcntl (Depends-on): Add extensions.
43412         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
43413
43414 2009-04-12  Ben Pfaff  <blp@gnu.org>
43415
43416         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
43417         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
43418
43419 2009-03-20  Ben Pfaff  <blp@gnu.org>
43420
43421         Make rename replace existing destinations on Windows.
43422         * m4/rename.m4: Add test for Mingw.
43423         * lib/rename.c: Add rename replacement that uses MoveFileEx with
43424         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
43425         * doc/posix-functions/rename.texi: Document.
43426
43427 2009-04-10  Bruno Haible  <bruno@clisp.org>
43428
43429         New include file "iconveh.h".
43430         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
43431         * lib/striconveh.h: Include it.
43432         (enum iconv_ilseq_handler): Remove definition.
43433         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
43434         striconveh.h.
43435         * lib/striconveha.c: Include striconveh.h.
43436         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
43437         * modules/striconveh (Files): Add lib/iconveh.h.
43438         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
43439         lib/striconveh.h.
43440
43441 2009-04-10  Bruno Haible  <bruno@clisp.org>
43442
43443         * lib/uniconv.h: Update comment.
43444
43445 2009-04-10  Bruno Haible  <bruno@clisp.org>
43446
43447         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
43448         always.
43449         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
43450         * lib/unistr/u16-mbtouc-aux.c: Likewise.
43451         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
43452         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
43453         "unistring-notinline.h", so that the function gets defined always.
43454         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
43455         * lib/unistr/u8-uctomb.c: Likewise.
43456         * lib/unistr/u16-mbtouc.c: Likewise.
43457         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
43458         * lib/unistr/u16-uctomb.c: Likewise.
43459         * lib/unistr/u32-mbtouc.c: Likewise.
43460         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
43461         * lib/unistr/u32-uctomb.c: Likewise.
43462
43463 2009-04-10  Bruno Haible  <bruno@clisp.org>
43464
43465         Mark 'utime' obsolete.
43466         * modules/utime (Status, Notice): New sections.
43467         Suggested by Jim Meyering.
43468
43469         Fix cross-compile guess for utime test.
43470         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
43471         autoconf.
43472         * doc/posix-functions/utime.texi: Give more precisions.
43473         Reported by Jan <ipif@ymail.com>.
43474
43475 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
43476
43477         filevercmp: correct today's change
43478         * lib/filevercmp.c: Also handle coreutils' test inputs.
43479         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
43480
43481         Fix regression in 'filevercmp' module. Thanks Sven Joachim
43482         for reporting it.
43483         * lib/filevercmp.c: Special handle for "", "." and "..".
43484         * tests/test-filevercmp.c: Enlarge the set suite.
43485
43486 2009-04-07  Jim Meyering  <meyering@redhat.com>
43487
43488         useless-if-before-free: show how to remove braced useless free, too
43489         * build-aux/useless-if-before-free: still only in a comment, though.
43490
43491 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
43492
43493         maint.mk: import changes to syntax-check macros from coreutils
43494         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
43495         Use them in the relevant macros.
43496
43497 2009-04-06  Bruno Haible  <bruno@clisp.org>
43498
43499         Fix unportable use of bit-fields.
43500         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
43501         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
43502         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
43503
43504 2009-04-06  Bruno Haible  <bruno@clisp.org>
43505
43506         Avoid test failures on AIX and OSF/1.
43507         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
43508         that malloc(0) = NULL.
43509         * tests/unicase/test-u8-tolower.c (check): Likewise.
43510         * tests/unicase/test-u8-totitle.c (check): Likewise.
43511         * tests/unicase/test-u8-toupper.c (check): Likewise.
43512         * tests/unicase/test-u16-casefold.c (check): Likewise.
43513         * tests/unicase/test-u16-tolower.c (check): Likewise.
43514         * tests/unicase/test-u16-totitle.c (check): Likewise.
43515         * tests/unicase/test-u16-toupper.c (check): Likewise.
43516         * tests/unicase/test-u32-casefold.c (check): Likewise.
43517         * tests/unicase/test-u32-tolower.c (check): Likewise.
43518         * tests/unicase/test-u32-totitle.c (check): Likewise.
43519         * tests/unicase/test-u32-toupper.c (check): Likewise.
43520         * tests/uninorm/test-u8-nfc.c (check): Likewise.
43521         * tests/uninorm/test-u8-nfd.c (check): Likewise.
43522         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
43523         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
43524         * tests/uninorm/test-u16-nfc.c (check): Likewise.
43525         * tests/uninorm/test-u16-nfd.c (check): Likewise.
43526         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
43527         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
43528         * tests/uninorm/test-u32-nfc.c (check): Likewise.
43529         * tests/uninorm/test-u32-nfd.c (check): Likewise.
43530         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
43531         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
43532
43533 2009-04-05  Bruno Haible  <bruno@clisp.org>
43534
43535         Work around an autoconf limitation.
43536         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
43537         comment line if it would be longer than 3 KB.
43538
43539 2009-04-05  Bruno Haible  <bruno@clisp.org>
43540
43541         Avoid test failure with libiconv-1.13.
43542         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
43543         of the expected test results.
43544
43545 2009-04-05  Bruno Haible  <bruno@clisp.org>
43546
43547         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
43548         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
43549         that it should be installed.
43550
43551 2009-04-05  Bruno Haible  <bruno@clisp.org>
43552
43553         * gnulib-tool: New option --copy-file.
43554         (func_usage): Document it.
43555         (func_dest_tmpfilename): Moved out of func_import.
43556         (func_add_file, func_update_file): New functions, extracted from
43557         func_import.
43558         (func_import): Update.
43559
43560 2009-04-05  Karl Berry  <karl@gnu.org>
43561
43562         * README: prominently mention gnulib-tool.
43563         Rearrange sections so getting the code is near the top.
43564
43565 2009-04-05  Bruno Haible  <bruno@clisp.org>
43566
43567         * lib/unicase.h: Mention u*_cmp2.
43568         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
43569         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
43570         * lib/unicase/ulc-casecmp.c: Likewise.
43571         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
43572         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
43573         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
43574         unistr/u8-cmp.
43575         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
43576         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
43577         unistr/u16-cmp.
43578         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
43579         unistr/u32-cmp.
43580
43581         * lib/uninorm.h: Mention u*_cmp2.
43582         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
43583         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
43584         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
43585         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
43586         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
43587         unistr/u8-cmp.
43588         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
43589         unistr/u16-cmp.
43590         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
43591         unistr/u32-cmp.
43592
43593         New module 'unistr/u32-cmp2'.
43594         * lib/unistr/u32-cmp2.c: New file.
43595         * modules/unistr/u32-cmp2: New file.
43596
43597         New module 'unistr/u16-cmp2'.
43598         * lib/unistr/u16-cmp2.c: New file.
43599         * modules/unistr/u16-cmp2: New file.
43600
43601         New module 'unistr/u8-cmp2'.
43602         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
43603         * lib/unistr/u8-cmp2.c: New file.
43604         * lib/unistr/u-cmp2.h: New file.
43605         * modules/unistr/u8-cmp2: New file.
43606
43607 2009-04-05  Bruno Haible  <bruno@clisp.org>
43608
43609         * lib/unictype.h (uc_property_is_valid): New macro.
43610         * tests/unictype/test-pr_byname.c (main): Use it.
43611
43612         * lib/unistr.h: Doc fixes.
43613         * lib/uniconv.h: Doc fixes.
43614         * lib/unictype.h: Doc fixes.
43615
43616 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
43617
43618         Port coreutils 7.2 to Solaris 8.
43619
43620         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
43621         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
43622         for Solaris 8.  This is a bit of a hack, as it means it's the
43623         caller's responsibility to add -lnsl if needed, but most likely it
43624         won't be needed since only getaddrinfo uses this and getaddrinfo
43625         isn't needed on Solaris 8.
43626
43627         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
43628         problem to Solaris 8 encountered with coreutils 7.2, which
43629         resulted in a message "fnmatch.c:292: warning: passing argument 4
43630         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
43631         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
43632
43633 2009-04-03  Simon Josefsson  <simon@josefsson.org>
43634
43635         * m4/ld-version-script.m4: Add FIXME comment.
43636
43637 2009-04-02  Simon Josefsson  <simon@josefsson.org>
43638
43639         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
43640         SOVERSION variable.
43641
43642 2009-04-02  Bruno Haible  <bruno@clisp.org>
43643
43644         * Makefile (info, html, dvi, pdf): Combine the rules.
43645         Suggested by Jim Meyering.
43646
43647 2009-04-01  Bruno Haible  <bruno@clisp.org>
43648
43649         * Makefile (info, html, dvi, pdf): New targets.
43650         Reported by Reuben Thomas <rrt@sc3d.org>.
43651
43652 2009-04-01  Bruno Haible  <bruno@clisp.org>
43653
43654         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
43655         can be put into PATH.
43656         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
43657
43658 2009-04-01  Bruno Haible  <bruno@clisp.org>
43659
43660         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
43661
43662 2009-04-01  Bruno Haible  <bruno@clisp.org>
43663
43664         Rename module 'visibility'.
43665         * modules/lib-symbol-visibility: Renamed from modules/visibility.
43666         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
43667         * doc/gnulib.texi: Update.
43668         * MODULES.html.sh (Misc): Update.
43669         * NEWS: Mention the change.
43670
43671 2009-04-01  Simon Josefsson  <simon@josefsson.org>
43672
43673         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
43674         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
43675         Eric Blake <ebb9@byu.net> for review.
43676         * MODULES.html.sh: Add lib-msvc-compat.
43677         * doc/gnulib.texi: Link to new section.
43678         * m4/ld-output-def.m4: New file.
43679         * doc/ld-output-def.texi: New file.
43680
43681 2009-04-01  Simon Josefsson  <simon@josefsson.org>
43682
43683         Rename ld-version-script to lib-symbol-versions.  Suggested by
43684         Bruno Haible <bruno@clisp.org>.
43685         * modules/ld-version-script: Renamed to lib-symbol-versions.
43686         * doc/ld-version-script.texi: Fix module name.
43687         * MODULES.html.sh: Add lib-symbol-versions.
43688
43689 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43690
43691         * modules/u64-tests: New file.
43692         * tests/test-u64.c: New file.
43693
43694 2009-03-04  Simon Josefsson  <simon@josefsson.org>
43695
43696         * MODULES.html.sh: Mention u64.
43697         * modules/u64: New module.
43698         * modules/crypto/sha512: Depend on u64 module instead of providing
43699         u64.h.
43700
43701 2009-03-27  Eric Blake  <ebb9@byu.net>
43702
43703         test-strerror: make debugging EAI_SYSTEM easier
43704         * modules/getaddrinfo-tests (Depends-on): Add strerror.
43705         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
43706         failure was EAI_SYSTEM.
43707
43708 2009-03-25  Bruno Haible  <bruno@clisp.org>
43709
43710         Fix a problem with --enable-relocatable on Solaris 7.
43711         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
43712         since 2008-02-24.
43713
43714 2009-03-25  Eric Blake  <ebb9@byu.net>
43715
43716         test-sockets: avoid gcc warning
43717         * tests/test-sockets.c (main): Silence compiler warning.
43718
43719 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
43720
43721         New modules nproc, pthread, contributed by Glen Lenker.
43722
43723         * MODULES.html.sh: Add pthread, nproc.
43724         * lib/nproc.c: New file.
43725         * lib/nproc.h: New file.
43726         * lib/pthread.in.h: New file.
43727         * m4/pthread.m4: New file.
43728         * modules/nproc: New file.
43729         * modules/pthread: New file.
43730
43731 2009-03-24  Simon Josefsson  <simon@josefsson.org>
43732
43733         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
43734         New variable.
43735
43736 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
43737
43738         filevercmp: handle simple~ and numbered.~3~ backup suffixes
43739         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
43740         * tests/test-filevercmp.c: Add tests for backup suffixes.
43741
43742 2009-03-24  Simon Josefsson  <simon@josefsson.org>
43743
43744         * modules/stdlib (Depends-on): Add stdint, needed when defining
43745         struct random_data on, for example, HP-UX 10.20.  Reported by
43746         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43747
43748 2009-03-24  Simon Josefsson  <simon@josefsson.org>
43749
43750         * lib/readline.c (readline): Call fflush on stdout after printing
43751         prompt.
43752
43753 2009-03-20  Bruno Haible  <bruno@clisp.org>
43754
43755         Remove dependency from 'close' module to -lws2_32 on native Windows.
43756         * lib/close-hook.h: New file.
43757         * lib/close-hook.c: New file.
43758         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
43759         w32sock.h.
43760         (_gl_close_fd_maybe_socket): Remove function.
43761         (rpl_close): Invoke execute_all_close_hooks instead of
43762         _gl_close_fd_maybe_socket.
43763         * lib/sockets.c: Include close-hook.h, w32sock.h.
43764         (close_fd_maybe_socket): New function, essentially from lib/close.c.
43765         (close_sockets_hook): New variable.
43766         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
43767         (gl_sockets_cleanup): Unregister it.
43768         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
43769         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
43770         * modules/close-hook: New file.
43771         * modules/close (Files): Remove lib/w32sock.h.
43772         (Depends-on): Add close-hook.
43773         (Link): Remove section.
43774         * modules/sockets (Files): Add lib/w32sock.h.
43775         (Depends-on): Add close-hook.
43776         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
43777         invocation.
43778         * NEWS: Mention that LIB_CLOSE is gone.
43779
43780 2009-03-23  Eric Blake  <ebb9@byu.net>
43781
43782         signal-tests: test previous patch
43783         * tests/test-signal.c: New file.
43784         * modules/signal-tests: Likewise.
43785
43786         signal.h: always support 'volatile sig_atomic_t'
43787         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
43788         (gl_SIGNAL_H_DEFAULTS): Add a default.
43789         * modules/signal (Makefile.am): Substitute if needed.
43790         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
43791         users can blindly add volatile.
43792         * doc/posix-headers/signal.texi (signal.h): Document it.
43793         Reported by Matthew Woehlke.
43794
43795 2009-03-23  Jim Meyering  <meyering@redhat.com>
43796
43797         pathmax: PATH_MAX: use pathconf only when available
43798         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
43799         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
43800         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
43801         This avoids a link failure in a PSP cross-compilation environment
43802         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
43803
43804         * lib/vasnprintf.c (divide): Fix typo in comment.
43805
43806 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43807
43808         * gnulib-tool (func_filter_filelist): Fix comment.
43809
43810 2009-03-20  Bruno Haible  <bruno@clisp.org>
43811
43812         Make sockets.h self-contained.
43813         * lib/sockets.c: Include sockets.h first.
43814         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
43815
43816 2009-03-19  Eric Blake  <ebb9@byu.net>
43817
43818         doc: mention more functions added in cygwin 1.7.0
43819         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
43820         addition.
43821         * doc/posix-functions/log2f.texi: Likewise.
43822
43823 2009-03-19  Jim Meyering  <meyering@redhat.com>
43824
43825         fsusage: avoid syntax error due to statement-before-declaration
43826         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
43827         after all declarations.  Reported by Matthew Woehlke in
43828         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
43829
43830 2009-03-18  Eric Blake  <ebb9@byu.net>
43831
43832         build-aux/compile: sync from automake
43833         * build-aux/compile: New file, from automake.
43834         * config/srclist.txt: Mention build-aux/compile.
43835
43836 2009-03-17  Bruno Haible  <bruno@clisp.org>
43837
43838         * lib/git-merge-changelog.c: Fix typo in comment.
43839         Reported by Reuben Thomas <rrt@sc3d.org>.
43840
43841 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
43842
43843         * m4/regex.m4: update and improve help for
43844         --without-included-regex.
43845
43846 2009-03-17  Simon Josefsson  <simon@josefsson.org>
43847
43848         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
43849         failure on missing include files.
43850
43851 2009-03-17  Eric Blake  <ebb9@byu.net>
43852
43853         doc: mention more functions added in cygwin 1.7.0
43854         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
43855         addition.
43856         * doc/posix-functions/fwscanf.texi: Likewise.
43857         * doc/posix-functions/swprintf.texi: Likewise.
43858         * doc/posix-functions/swscanf.texi: Likewise.
43859         * doc/posix-functions/vfwprintf.texi: Likewise.
43860         * doc/posix-functions/vfwscanf.texi: Likewise.
43861         * doc/posix-functions/vswprintf.texi: Likewise.
43862         * doc/posix-functions/vswscanf.texi: Likewise.
43863         * doc/posix-functions/vwprintf.texi: Likewise.
43864         * doc/posix-functions/vwscanf.texi: Likewise.
43865         * doc/posix-functions/wcscasecmp.texi: Likewise.
43866         * doc/posix-functions/wcsdup.texi: Likewise.
43867         * doc/posix-functions/wcsftime.texi: Likewise.
43868         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43869         * doc/posix-functions/wprintf.texi: Likewise.
43870         * doc/posix-functions/wscanf.texi: Likewise.
43871         * doc/glibc-functions/gethostbyname2.texi: Likewise.
43872
43873 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43874
43875         maint.mk: really add $(AM_MAKEFLAGS)
43876         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
43877         was inadvertently omitted in the last commit.
43878         Spotted by Bruno Haible.
43879
43880         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
43881         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
43882         $(AM_MAKEFLAGS)' rather than plain `make'.
43883
43884         gnulib-tool: execute $MAKE not make
43885         * gnulib-tool: Default $MAKE to 'make'.
43886         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
43887         than make.  Initialize $MAKE in the do-autobuild script.
43888
43889         gnulib-tool: use $MAKE not make in generated files
43890         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
43891         make, in generated files.  Initialize $MAKE in the do-autobuild
43892         script.
43893
43894         * top/GNUmakefile (_have-git-version-gen): Fix typo.
43895
43896         GNUmakefile: disable parallelism only for multiple, recursive targets
43897         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
43898         additions in the Makefile.
43899         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
43900         by Automake.
43901         (.NOTPARALLEL): Only disable parallel builds if multiple targets
43902         are listed on the command line and at least one of them is
43903         listed in $(ALL_RECURSIVE_TARGETS).
43904
43905 2009-03-14  Bruno Haible  <bruno@clisp.org>
43906
43907         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
43908         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
43909         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
43910         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
43911         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
43912         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
43913         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
43914         unistr/u8-uctomb.
43915         * modules/unistr/u8-strchr (Depends-on): Likewise.
43916         * modules/unistr/u8-strrchr (Depends-on): Likewise.
43917         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
43918         unistr/u16-uctomb.
43919         * modules/unistr/u16-strchr (Depends-on): Likewise.
43920         * modules/unistr/u16-strrchr (Depends-on): Likewise.
43921
43922 2009-03-12  Bruno Haible  <bruno@clisp.org>
43923
43924         Work around select() bug on Interix 3.5.
43925         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
43926         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
43927         * m4/select.m4: New file.
43928         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
43929         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
43930         * modules/select (Files): Add m4/select.m4.
43931         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
43932         * modules/nanosleep (Depends-on): Add select.
43933         * modules/poll (Depends-on): Likewise.
43934         * doc/posix-functions/select.texi: Mention the Interix bug.
43935         Reported by Markus Duft <mduft@gentoo.org>.
43936
43937         * lib/select.c: Renamed from lib/winsock-select.c.
43938         * modules/select (Files): Add lib/select.c, remove
43939         lib/winsock-select.c.
43940         (configure.ac): Update.
43941
43942 2009-03-12  Jim Meyering  <meyering@redhat.com>
43943
43944         avoid gcc warnings about unused macro definitions
43945         * lib/readtokens.c (STREQ): Remove unused definition.
43946         * lib/xmalloc.c (SIZE_MAX): Likewise.
43947         * lib/openat-die.c (N_): Likewise.
43948         * lib/mountlist.c (SIZE_MAX): Remove definition.
43949         Instead, include <stdint.h>.
43950         * lib/readutmp.c: Likewise.
43951         * modules/readutmp (Depends-on): Add stdint.
43952         * modules/mountlist (Depends-on): Add stdint.
43953         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
43954
43955 2009-03-10  Bruno Haible  <bruno@clisp.org>
43956
43957         Tests for module 'mbmemcasecoll'.
43958         * modules/mbmemcasecoll-tests: New file.
43959         * tests/test-mbmemcasecoll1.sh: New file.
43960         * tests/test-mbmemcasecoll2.sh: New file.
43961         * tests/test-mbmemcasecoll3.sh: New file.
43962         * tests/test-mbmemcasecoll.c: New file.
43963
43964         New module 'mbmemcasecoll'.
43965         * lib/mbmemcasecoll.h: New file.
43966         * lib/mbmemcasecoll.c: New file.
43967         * modules/mbmemcasecoll: New file.
43968
43969         * tests/test-mbmemcasecmp.h: New file, extracted from
43970         tests/test-mbmemcasecmp.c.
43971         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
43972         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
43973         (main): Update.
43974         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
43975
43976 2009-03-09  Bruno Haible  <bruno@clisp.org>
43977
43978         Tests for module 'mbmemcasecmp'.
43979         * modules/mbmemcasecmp-tests: New file.
43980         * tests/test-mbmemcasecmp1.sh: New file.
43981         * tests/test-mbmemcasecmp2.sh: New file.
43982         * tests/test-mbmemcasecmp3.sh: New file.
43983         * tests/test-mbmemcasecmp.c: New file.
43984
43985         New module 'mbmemcasecmp'.
43986         * lib/mbmemcasecmp.h: New file.
43987         * lib/mbmemcasecmp.c: New file.
43988         * modules/mbmemcasecmp: New file.
43989
43990 2009-03-09  Bruno Haible  <bruno@clisp.org>
43991
43992         Tests for module 'unicase/ulc-casecoll'.
43993         * modules/unicase/ulc-casecoll-tests: New file.
43994         * tests/unicase/test-ulc-casecoll1.sh: New file.
43995         * tests/unicase/test-ulc-casecoll2.sh: New file.
43996         * tests/unicase/test-ulc-casecoll.c: New file.
43997
43998         New module 'unicase/ulc-casecoll'.
43999         * lib/unicase.h (ulc_casecoll): New declaration.
44000         * lib/unicase/ulc-casecoll.c: New file.
44001         * modules/unicase/ulc-casecoll: New file.
44002
44003         New module 'unicase/ulc-casexfrm'.
44004         * lib/unicase.h (ulc_casexfrm): New declaration.
44005         * lib/unicase/ulc-casexfrm.c: New file.
44006         * modules/unicase/ulc-casexfrm: New file.
44007
44008 2009-03-09  Bruno Haible  <bruno@clisp.org>
44009
44010         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
44011         invocations.
44012
44013         * m4/mbscasecmp.m4: Remove file.
44014         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
44015         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
44016
44017         * m4/mbscasestr.m4: Remove file.
44018         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
44019         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
44020
44021         * m4/mbschr.m4: Remove file.
44022         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
44023         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
44024
44025         * m4/mbscspn.m4: Remove file.
44026         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
44027         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
44028
44029         * m4/mbslen.m4: Remove file.
44030         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
44031         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
44032
44033         * m4/mbsncasecmp.m4: Remove file.
44034         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
44035         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
44036
44037         * m4/mbsnlen.m4: Remove file.
44038         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
44039         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
44040
44041         * m4/mbspbrk.m4: Remove file.
44042         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
44043         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
44044
44045         * m4/mbspcasecmp.m4: Remove file.
44046         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
44047         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
44048
44049         * m4/mbsrchr.m4: Remove file.
44050         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
44051         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
44052
44053         * m4/mbssep.m4: Remove file.
44054         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
44055         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
44056
44057         * m4/mbsspn.m4: Remove file.
44058         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
44059         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
44060
44061         * m4/mbsstr.m4: Remove file.
44062         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
44063         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
44064
44065         * m4/mbstok_r.m4: Remove file.
44066         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
44067         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
44068
44069         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
44070
44071         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
44072         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
44073
44074         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
44075
44076 2009-03-08  Bruno Haible  <bruno@clisp.org>
44077
44078         Tests for module 'unicase/ulc-casecmp'.
44079         * modules/unicase/ulc-casecmp-tests: New file.
44080         * tests/unicase/test-ulc-casecmp1.sh: New file.
44081         * tests/unicase/test-ulc-casecmp2.sh: New file.
44082         * tests/unicase/test-ulc-casecmp.c: New file.
44083
44084         New module 'unicase/ulc-casecmp'.
44085         * lib/unicase.h (ulc_casecmp): New declaration.
44086         * lib/unicase/ulc-casecmp.c: New file.
44087         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
44088         'const SRC_UNIT *'.
44089         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
44090         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
44091         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
44092         * modules/unicase/ulc-casecmp: New file.
44093
44094         Tests for module 'unicase/u32-is-cased'.
44095         * modules/unicase/u32-is-cased-tests: New file.
44096         * tests/unicase/test-u32-is-cased.c: New file.
44097
44098         Tests for module 'unicase/u16-is-cased'.
44099         * modules/unicase/u16-is-cased-tests: New file.
44100         * tests/unicase/test-u16-is-cased.c: New file.
44101
44102         Tests for module 'unicase/u8-is-cased'.
44103         * modules/unicase/u8-is-cased-tests: New file.
44104         * tests/unicase/test-u8-is-cased.c: New file.
44105         * tests/unicase/test-is-cased.h: New file.
44106
44107         New module 'unicase/u32-is-cased'.
44108         * lib/unicase/u32-is-cased.c: New file.
44109         * modules/unicase/u32-is-cased: New file.
44110
44111         New module 'unicase/u16-is-cased'.
44112         * lib/unicase/u16-is-cased.c: New file.
44113         * modules/unicase/u16-is-cased: New file.
44114
44115         New module 'unicase/u8-is-cased'.
44116         * lib/unicase/u8-is-cased.c: New file.
44117         * lib/unicase/u-is-cased.h: New file.
44118         * modules/unicase/u8-is-cased: New file.
44119
44120         Tests for module 'unicase/u32-is-casefolded'.
44121         * modules/unicase/u32-is-casefolded-tests: New file.
44122         * tests/unicase/test-u32-is-casefolded.c: New file.
44123
44124         Tests for module 'unicase/u16-is-casefolded'.
44125         * modules/unicase/u16-is-casefolded-tests: New file.
44126         * tests/unicase/test-u16-is-casefolded.c: New file.
44127
44128         Tests for module 'unicase/u8-is-casefolded'.
44129         * modules/unicase/u8-is-casefolded-tests: New file.
44130         * tests/unicase/test-u8-is-casefolded.c: New file.
44131         * tests/unicase/test-is-casefolded.h: New file.
44132
44133         New module 'unicase/u32-is-casefolded'.
44134         * lib/unicase/u32-is-casefolded.c: New file.
44135         * modules/unicase/u32-is-casefolded: New file.
44136
44137         New module 'unicase/u16-is-casefolded'.
44138         * lib/unicase/u16-is-casefolded.c: New file.
44139         * modules/unicase/u16-is-casefolded: New file.
44140
44141         New module 'unicase/u8-is-casefolded'.
44142         * lib/unicase/u8-is-casefolded.c: New file.
44143         * modules/unicase/u8-is-casefolded: New file.
44144
44145         Tests for module 'unicase/u32-is-titlecase'.
44146         * modules/unicase/u32-is-titlecase-tests: New file.
44147         * tests/unicase/test-u32-is-titlecase.c: New file.
44148
44149         Tests for module 'unicase/u16-is-titlecase'.
44150         * modules/unicase/u16-is-titlecase-tests: New file.
44151         * tests/unicase/test-u16-is-titlecase.c: New file.
44152
44153         Tests for module 'unicase/u8-is-titlecase'.
44154         * modules/unicase/u8-is-titlecase-tests: New file.
44155         * tests/unicase/test-u8-is-titlecase.c: New file.
44156         * tests/unicase/test-is-titlecase.h: New file.
44157
44158         New module 'unicase/u32-is-titlecase'.
44159         * lib/unicase/u32-is-titlecase.c: New file.
44160         * modules/unicase/u32-is-titlecase: New file.
44161
44162         New module 'unicase/u16-is-titlecase'.
44163         * lib/unicase/u16-is-titlecase.c: New file.
44164         * modules/unicase/u16-is-titlecase: New file.
44165
44166         New module 'unicase/u8-is-titlecase'.
44167         * lib/unicase/u8-is-titlecase.c: New file.
44168         * modules/unicase/u8-is-titlecase: New file.
44169
44170         Tests for module 'unicase/u32-is-lowercase'.
44171         * modules/unicase/u32-is-lowercase-tests: New file.
44172         * tests/unicase/test-u32-is-lowercase.c: New file.
44173
44174         Tests for module 'unicase/u16-is-lowercase'.
44175         * modules/unicase/u16-is-lowercase-tests: New file.
44176         * tests/unicase/test-u16-is-lowercase.c: New file.
44177
44178         Tests for module 'unicase/u8-is-lowercase'.
44179         * modules/unicase/u8-is-lowercase-tests: New file.
44180         * tests/unicase/test-u8-is-lowercase.c: New file.
44181         * tests/unicase/test-is-lowercase.h: New file.
44182
44183         New module 'unicase/u32-is-lowercase'.
44184         * lib/unicase/u32-is-lowercase.c: New file.
44185         * modules/unicase/u32-is-lowercase: New file.
44186
44187         New module 'unicase/u16-is-lowercase'.
44188         * lib/unicase/u16-is-lowercase.c: New file.
44189         * modules/unicase/u16-is-lowercase: New file.
44190
44191         New module 'unicase/u8-is-lowercase'.
44192         * lib/unicase/u8-is-lowercase.c: New file.
44193         * modules/unicase/u8-is-lowercase: New file.
44194
44195         Tests for module 'unicase/u32-is-uppercase'.
44196         * modules/unicase/u32-is-uppercase-tests: New file.
44197         * tests/unicase/test-u32-is-uppercase.c: New file.
44198
44199         Tests for module 'unicase/u16-is-uppercase'.
44200         * modules/unicase/u16-is-uppercase-tests: New file.
44201         * tests/unicase/test-u16-is-uppercase.c: New file.
44202
44203         Tests for module 'unicase/u8-is-uppercase'.
44204         * modules/unicase/u8-is-uppercase-tests: New file.
44205         * tests/unicase/test-u8-is-uppercase.c: New file.
44206         * tests/unicase/test-is-uppercase.h: New file.
44207
44208         New module 'unicase/u32-is-uppercase'.
44209         * lib/unicase/u32-is-uppercase.c: New file.
44210         * modules/unicase/u32-is-uppercase: New file.
44211
44212         New module 'unicase/u16-is-uppercase'.
44213         * lib/unicase/u16-is-uppercase.c: New file.
44214         * modules/unicase/u16-is-uppercase: New file.
44215
44216         New module 'unicase/u8-is-uppercase'.
44217         * lib/unicase/u8-is-uppercase.c: New file.
44218         * modules/unicase/u8-is-uppercase: New file.
44219
44220         New module 'unicase/u32-is-invariant'.
44221         * lib/unicase/u32-is-invariant.c: New file.
44222         * modules/unicase/u32-is-invariant: New file.
44223
44224         New module 'unicase/u16-is-invariant'.
44225         * lib/unicase/u16-is-invariant.c: New file.
44226         * modules/unicase/u16-is-invariant: New file.
44227
44228         New module 'unicase/u8-is-invariant'.
44229         * lib/unicase/u8-is-invariant.c: New file.
44230         * lib/unicase/invariant.h: New file.
44231         * lib/unicase/u-is-invariant.h: New file.
44232         * modules/unicase/u8-is-invariant: New file.
44233
44234         Tests for module 'unicase/u32-casecoll'.
44235         * modules/unicase/u32-casecoll-tests: New file.
44236         * tests/unicase/test-u32-casecoll.c: New file.
44237
44238         Tests for module 'unicase/u16-casecoll'.
44239         * modules/unicase/u16-casecoll-tests: New file.
44240         * tests/unicase/test-u16-casecoll.c: New file.
44241
44242         Tests for module 'unicase/u8-casecoll'.
44243         * modules/unicase/u8-casecoll-tests: New file.
44244         * tests/unicase/test-u8-casecoll.c: New file.
44245
44246         New module 'unicase/u32-casecoll'.
44247         * lib/unicase/u32-casecoll.c: New file.
44248         * modules/unicase/u32-casecoll: New file.
44249
44250         New module 'unicase/u16-casecoll'.
44251         * lib/unicase/u16-casecoll.c: New file.
44252         * modules/unicase/u16-casecoll: New file.
44253
44254         New module 'unicase/u8-casecoll'.
44255         * lib/unicase/u8-casecoll.c: New file.
44256         * lib/unicase/u-casecoll.h: New file.
44257         * modules/unicase/u8-casecoll: New file.
44258
44259         New module 'unicase/u32-casexfrm'.
44260         * lib/unicase/u32-casexfrm.c: New file.
44261         * modules/unicase/u32-casexfrm: New file.
44262
44263         New module 'unicase/u16-casexfrm'.
44264         * lib/unicase/u16-casexfrm.c: New file.
44265         * modules/unicase/u16-casexfrm: New file.
44266
44267         New module 'unicase/u8-casexfrm'.
44268         * lib/unicase/u8-casexfrm.c: New file.
44269         * lib/unicase/u-casexfrm.h: New file.
44270         * modules/unicase/u8-casexfrm: New file.
44271
44272         Tests for module 'unicase/u32-casecmp'.
44273         * modules/unicase/u32-casecmp-tests: New file.
44274         * tests/unicase/test-u32-casecmp.c: New file.
44275
44276         Tests for module 'unicase/u16-casecmp'.
44277         * modules/unicase/u16-casecmp-tests: New file.
44278         * tests/unicase/test-u16-casecmp.c: New file.
44279
44280         Tests for module 'unicase/u8-casecmp'.
44281         * modules/unicase/u8-casecmp-tests: New file.
44282         * tests/unicase/test-u8-casecmp.c: New file.
44283         * tests/unicase/test-casecmp.h: New file.
44284
44285         New module 'unicase/u32-casecmp'.
44286         * lib/unicase/u32-casecmp.c: New file.
44287         * modules/unicase/u32-casecmp: New file.
44288
44289         New module 'unicase/u16-casecmp'.
44290         * lib/unicase/u16-casecmp.c: New file.
44291         * modules/unicase/u16-casecmp: New file.
44292
44293         New module 'unicase/u8-casecmp'.
44294         * lib/unicase/u8-casecmp.c: New file.
44295         * lib/unicase/u-casecmp.h: New file.
44296         * modules/unicase/u8-casecmp: New file.
44297
44298         Tests for module 'unicase/u32-casefold'.
44299         * modules/unicase/u32-casefold-tests: New file.
44300         * tests/unicase/test-u32-casefold.c: New file.
44301
44302         Tests for module 'unicase/u16-casefold'.
44303         * modules/unicase/u16-casefold-tests: New file.
44304         * tests/unicase/test-u16-casefold.c: New file.
44305
44306         Tests for module 'unicase/u8-casefold'.
44307         * modules/unicase/u8-casefold-tests: New file.
44308         * tests/unicase/test-u8-casefold.c: New file.
44309
44310         New module 'unicase/u32-casefold'.
44311         * lib/unicase/u32-casefold.c: New file.
44312         * modules/unicase/u32-casefold: New file.
44313
44314         New module 'unicase/u16-casefold'.
44315         * lib/unicase/u16-casefold.c: New file.
44316         * modules/unicase/u16-casefold: New file.
44317
44318         New module 'unicase/u8-casefold'.
44319         * lib/unicase/u8-casefold.c: New file.
44320         * lib/unicase/u-casefold.h: New file.
44321         * modules/unicase/u8-casefold: New file.
44322
44323         New module 'unicase/tocasefold'.
44324         * lib/unicase/casefold.h: New file.
44325         * lib/unicase/tocasefold.c: New file.
44326         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
44327         * modules/unicase/tocasefold: New file.
44328
44329         Tests for module 'unicase/u32-totitle'.
44330         * modules/unicase/u32-totitle-tests: New file.
44331         * tests/unicase/test-u32-totitle.c: New file.
44332
44333         Tests for module 'unicase/u16-totitle'.
44334         * modules/unicase/u16-totitle-tests: New file.
44335         * tests/unicase/test-u16-totitle.c: New file.
44336
44337         Tests for module 'unicase/u8-totitle'.
44338         * modules/unicase/u8-totitle-tests: New file.
44339         * tests/unicase/test-u8-totitle.c: New file.
44340
44341         New module 'unicase/u32-totitle'.
44342         * lib/unicase/u32-totitle.c: New file.
44343         * modules/unicase/u32-totitle: New file.
44344
44345         New module 'unicase/u16-totitle'.
44346         * lib/unicase/u16-totitle.c: New file.
44347         * modules/unicase/u16-totitle: New file.
44348
44349         New module 'unicase/u8-totitle'.
44350         * lib/unicase/u8-totitle.c: New file.
44351         * lib/unicase/u-totitle.h: New file.
44352         * modules/unicase/u8-totitle: New file.
44353
44354         Tests for module 'unicase/u32-tolower'.
44355         * modules/unicase/u32-tolower-tests: New file.
44356         * tests/unicase/test-u32-tolower.c: New file.
44357
44358         Tests for module 'unicase/u16-tolower'.
44359         * modules/unicase/u16-tolower-tests: New file.
44360         * tests/unicase/test-u16-tolower.c: New file.
44361
44362         Tests for module 'unicase/u8-tolower'.
44363         * modules/unicase/u8-tolower-tests: New file.
44364         * tests/unicase/test-u8-tolower.c: New file.
44365
44366         New module 'unicase/u32-tolower'.
44367         * lib/unicase/u32-tolower.c: New file.
44368         * modules/unicase/u32-tolower: New file.
44369
44370         New module 'unicase/u16-tolower'.
44371         * lib/unicase/u16-tolower.c: New file.
44372         * modules/unicase/u16-tolower: New file.
44373
44374         New module 'unicase/u8-tolower'.
44375         * lib/unicase/u8-tolower.c: New file.
44376         * modules/unicase/u8-tolower: New file.
44377
44378         Tests for module 'unicase/u32-toupper'.
44379         * modules/unicase/u32-toupper-tests: New file.
44380         * tests/unicase/test-u32-toupper.c: New file.
44381
44382         Tests for module 'unicase/u16-toupper'.
44383         * modules/unicase/u16-toupper-tests: New file.
44384         * tests/unicase/test-u16-toupper.c: New file.
44385
44386         Tests for module 'unicase/u8-toupper'.
44387         * modules/unicase/u8-toupper-tests: New file.
44388         * tests/unicase/test-u8-toupper.c: New file.
44389
44390         New module 'unicase/u32-toupper'.
44391         * lib/unicase/u32-toupper.c: New file.
44392         * modules/unicase/u32-toupper: New file.
44393
44394         New module 'unicase/u16-toupper'.
44395         * lib/unicase/u16-toupper.c: New file.
44396         * modules/unicase/u16-toupper: New file.
44397
44398         New module 'unicase/u8-toupper'.
44399         * lib/unicase/u8-toupper.c: New file.
44400         * modules/unicase/u8-toupper: New file.
44401
44402         New module 'unicase/u32-casemap'.
44403         * lib/unicase/u32-casemap.c: New file.
44404         * modules/unicase/u32-casemap: New file.
44405
44406         New module 'unicase/u16-casemap'.
44407         * lib/unicase/u16-casemap.c: New file.
44408         * modules/unicase/u16-casemap: New file.
44409
44410         New module 'unicase/u8-casemap'.
44411         * lib/unicase/unicasemap.h: New file.
44412         * lib/unicase/u8-casemap.c: New file.
44413         * lib/unicase/u-casemap.h: New file.
44414         * modules/unicase/u8-casemap: New file.
44415
44416         New module 'unicase/special-casing'.
44417         * lib/unicase/special-casing.h: New file.
44418         * lib/unicase/special-casing.c: New file.
44419         * lib/unicase/special-casing-table.gperf: New file, generated by
44420         gen-uni-tables.c.
44421         * modules/unicase/special-casing: New file.
44422
44423         Tests for module 'unicase/locale-language'.
44424         * modules/unicase/locale-language-tests: New file.
44425         * tests/unicase/test-locale-language.sh: New file.
44426         * tests/unicase/test-locale-language.c: New file.
44427
44428         New module 'unicase/locale-language'.
44429         * lib/unicase/locale-language.c: New file.
44430         * lib/unicase/locale-languages.gperf: New file.
44431         * modules/unicase/locale-language: New file.
44432
44433         Generate more tables for case conversion and case folding.
44434         * lib/gen-uni-tables.c (SCC_*): New enum items.
44435         (struct special_casing_rule): New type.
44436         (casing_rules, num_casing_rules, allocated_casing_rules): New
44437         variables.
44438         (add_casing_rule, fill_casing_rules): New functions.
44439         (struct casefold_rule): New type.
44440         (casefolding_rules, num_casefolding_rules,
44441         allocated_casefolding_rules): New variables.
44442         (fill_casefolding_rules): New function.
44443         (unicode_casefold): New variable.
44444         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
44445         sort_casing_rules, output_casing_rules): New functions.
44446         (main): Accept to more arguments: SpecialCasing.txt and
44447         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
44448         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
44449         Output mapping for casefolding.
44450
44451         * lib/unicase.h: Include stdbool.h, uninorm.h.
44452         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
44453         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
44454         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
44455         arguments.
44456         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
44457         resultp arguments.
44458         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
44459         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
44460         resultp arguments.
44461         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
44462         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
44463         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
44464         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
44465         declarations.
44466         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
44467
44468 2009-03-08  Bruno Haible  <bruno@clisp.org>
44469
44470         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
44471         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
44472         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
44473         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
44474
44475 2009-03-07  Bruno Haible  <bruno@clisp.org>
44476
44477         Adjust u*_normcmp, u*_normcoll API.
44478         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
44479         u16_normcoll, u32_normcoll): Change failure conventions.
44480         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
44481         errno and return -1.
44482         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
44483
44484 2009-03-07  Bruno Haible  <bruno@clisp.org>
44485
44486         Tests for module 'uninorm/u32-normcoll'.
44487         * modules/uninorm/u32-normcoll-tests: New file.
44488         * tests/uninorm/test-u32-normcoll.c: New file.
44489
44490         Tests for module 'uninorm/u16-normcoll'.
44491         * modules/uninorm/u16-normcoll-tests: New file.
44492         * tests/uninorm/test-u16-normcoll.c: New file.
44493
44494         Tests for module 'uninorm/u8-normcoll'.
44495         * modules/uninorm/u8-normcoll-tests: New file.
44496         * tests/uninorm/test-u8-normcoll.c: New file.
44497
44498 2009-03-07  Bruno Haible  <bruno@clisp.org>
44499
44500         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
44501         tests/uninorm/test-u32-normcmp.c.
44502         * tests/uninorm/test-u32-normcmp.c: Include it.
44503         (test_nonascii): New function, extracted from main. Add some more
44504         tests.
44505         (main): Invoke test_ascii and test_nonascii.
44506         * modules/uninorm/u32-normcmp-tests (Files): Add
44507         tests/uninorm/test-u32-normcmp.h.
44508         (Depends-on): Remove uninorm/u32-normcmp.
44509
44510         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
44511         tests/uninorm/test-u16-normcmp.c.
44512         * tests/uninorm/test-u16-normcmp.c: Include it.
44513         (test_nonascii): New function, extracted from main. Add some more
44514         tests.
44515         (main): Invoke test_ascii and test_nonascii.
44516         * modules/uninorm/u16-normcmp-tests (Files): Add
44517         tests/uninorm/test-u16-normcmp.h.
44518         (Depends-on): Remove uninorm/u16-normcmp.
44519
44520         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
44521         tests/uninorm/test-u8-normcmp.c.
44522         * tests/uninorm/test-u8-normcmp.c: Include it.
44523         (test_nonascii): New function, extracted from main. Add some more
44524         tests.
44525         (main): Invoke test_ascii and test_nonascii.
44526         * modules/uninorm/u8-normcmp-tests (Files): Add
44527         tests/uninorm/test-u8-normcmp.h.
44528         (Depends-on): Remove uninorm/u8-normcmp.
44529
44530 2009-03-07  Bruno Haible  <bruno@clisp.org>
44531
44532         New module 'uninorm/u32-normcoll'.
44533         * lib/uninorm/u32-normcoll.c: New file.
44534         * modules/uninorm/u32-normcoll: New file.
44535
44536         New module 'uninorm/u16-normcoll'.
44537         * lib/uninorm/u16-normcoll.c: New file.
44538         * modules/uninorm/u16-normcoll: New file.
44539
44540         New module 'uninorm/u8-normcoll'.
44541         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
44542         declarations.
44543         * lib/uninorm/u8-normcoll.c: New file.
44544         * lib/uninorm/u-normcoll.h: New file.
44545         * modules/uninorm/u8-normcoll: New file.
44546
44547         New module 'uninorm/u32-normxfrm'.
44548         * lib/uninorm/u32-normxfrm.c: New file.
44549         * modules/uninorm/u32-normxfrm: New file.
44550
44551         New module 'uninorm/u16-normxfrm'.
44552         * lib/uninorm/u16-normxfrm.c: New file.
44553         * modules/uninorm/u16-normxfrm: New file.
44554
44555         New module 'uninorm/u8-normxfrm'.
44556         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
44557         declarations.
44558         * lib/uninorm/u8-normxfrm.c: New file.
44559         * lib/uninorm/u-normxfrm.h: New file.
44560         * modules/uninorm/u8-normxfrm: New file.
44561
44562 2009-03-07  Bruno Haible  <bruno@clisp.org>
44563
44564         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
44565         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
44566         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
44567
44568 2009-03-07  Bruno Haible  <bruno@clisp.org>
44569
44570         New module 'memxfrm'.
44571         * lib/memxfrm.h: New file.
44572         * lib/memxfrm.c: New file.
44573         * modules/memxfrm: New file.
44574
44575 2009-03-07  Bruno Haible  <bruno@clisp.org>
44576
44577         New module 'memcmp2'.
44578         * lib/memcmp2.h: New file.
44579         * lib/memcmp2.c: New file.
44580         * modules/memcmp2: New file.
44581
44582 2009-03-07  Bruno Haible  <bruno@clisp.org>
44583
44584         Tests for module 'uninorm/decomposing-form'.
44585         * modules/uninorm/decomposing-form-tests: New file.
44586         * tests/uninorm/test-decomposing-form.c: New file.
44587
44588         New module 'uninorm/decomposing-form'.
44589         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
44590         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
44591         Add 'decomposing_variant' field.
44592         * lib/uninorm/decomposing-form.c: New file.
44593         * lib/uninorm/nfc.c (uninorm_nfc): Update.
44594         * lib/uninorm/nfd.c (uninorm_nfd): Update.
44595         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
44596         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
44597         * modules/uninorm/decomposing-form: New file.
44598         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
44599         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
44600
44601 2009-03-07  Bruno Haible  <bruno@clisp.org>
44602
44603         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
44604         strings.
44605
44606 2009-03-06  Bruno Haible  <bruno@clisp.org>
44607
44608         Tests for module 'uninorm/u32-normcmp'.
44609         * tests/uninorm/test-u32-normcmp.c: New file.
44610         * modules/uninorm/u32-normcmp-tests: New file.
44611
44612         Tests for module 'uninorm/u16-normcmp'.
44613         * tests/uninorm/test-u16-normcmp.c: New file.
44614         * modules/uninorm/u16-normcmp-tests: New file.
44615
44616         Tests for module 'uninorm/u8-normcmp'.
44617         * tests/uninorm/test-u8-normcmp.c: New file.
44618         * modules/uninorm/u8-normcmp-tests: New file.
44619
44620         New module 'uninorm/u32-normcmp'.
44621         * lib/uninorm/u32-normcmp.c: New file.
44622         * modules/uninorm/u32-normcmp: New file.
44623
44624         New module 'uninorm/u16-normcmp'.
44625         * lib/uninorm/u16-normcmp.c: New file.
44626         * modules/uninorm/u16-normcmp: New file.
44627
44628         New module 'uninorm/u8-normcmp'.
44629         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
44630         declarations.
44631         * lib/uninorm/u8-normcmp.c: New file.
44632         * lib/uninorm/u-normcmp.h: New file.
44633         * modules/uninorm/u8-normcmp: New file.
44634
44635 2009-03-06  Bruno Haible  <bruno@clisp.org>
44636
44637         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
44638         Reported by Eric Blake.
44639
44640 2009-03-06  Eric Blake  <ebb9@byu.net>
44641             Bruno Haible  <bruno@clisp.org>
44642
44643         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
44644         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
44645         condition.
44646         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
44647         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
44648         condition.
44649         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
44650
44651 2009-03-06  Eric Blake  <ebb9@byu.net>
44652
44653         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
44654         to avoid compiler warnings.
44655         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
44656
44657 2009-03-05  Bruno Haible  <bruno@clisp.org>
44658
44659         * tests/test-ftell.c (main): Disable test beyond end of file on
44660         FreeMiNT.
44661         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
44662
44663 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
44664
44665         * lib/filevercmp.c: Move hidden files up in ordering.
44666         * tests/test-filevercmp.c: Add tests for hidden files.
44667
44668 2009-03-04  Bruno Haible  <bruno@clisp.org>
44669
44670         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
44671         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
44672         AM_CFLAGS.
44673         Reported by Simon Josefsson.
44674
44675 2009-03-03  Bruno Haible  <bruno@clisp.org>
44676
44677         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
44678         Reported by Simon Josefsson.
44679
44680         * doc/ld-version-script.texi: Update node reference.
44681
44682 2009-03-03  Bruno Haible  <bruno@clisp.org>
44683
44684         * modules/visibility (License): Change to 'unlimited'.
44685         Suggested by Simon Josefsson.
44686
44687 2009-03-03  Jim Meyering  <meyering@redhat.com>
44688
44689         unlinkdir: cannot_unlink_dir may modify process state
44690         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
44691         it's neither thread-safe nor appropriate for use in a library.
44692
44693 2009-03-03  Eric Blake  <ebb9@byu.net>
44694
44695         test-closein: silence test under Darwin
44696         * tests/test-closein.sh: Ignore stderr from cat, since we don't
44697         care if it dies from EPIPE or EBADF.
44698
44699 2009-03-03  Bruno Haible  <bruno@clisp.org>
44700
44701         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
44702         earlier.
44703         * doc/visibility.texi: Fix @node and @section.
44704
44705 2009-03-03  Simon Josefsson  <simon@josefsson.org>
44706
44707         * doc/gnulib.texi: Link to sections for ld version script and
44708         visibility.
44709         * doc/visibility.texi: Add @node and @section.
44710         * modules/ld-version-script: New module.
44711         * m4/ld-version-script.m4: New file.
44712         * doc/ld-version-script.texi: New file.
44713
44714 2009-03-02  David Lutterkort  <lutter@redhat.com>
44715
44716         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
44717         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44718
44719 2009-03-02  Bruno Haible  <bruno@clisp.org>
44720
44721         * doc/visibility.texi: Mention libtool's -export-symbols option.
44722
44723 2009-03-02  Jim Meyering  <meyering@redhat.com>
44724
44725         announce-gen: new option: --no-print-checksums
44726         * build-aux/announce-gen (usage): Describe it.
44727         (print_checksums): Print a newline here, not in the [*] footnote.
44728         (main): Honor it.
44729
44730 2009-03-01  Bruno Haible  <bruno@clisp.org>
44731
44732         Use socklen_t in the native Windows replacements prototypes.
44733         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
44734         instead of 'int'.
44735         * lib/getsockopt.c (rpl_getsockopt): Likewise.
44736         * lib/setsockopt.c (rpl_setsockopt): Likewise.
44737         * modules/getsockopt (Depends-on): Add socklen.
44738         * modules/setsockopt (Depends-on): Add socklen.
44739
44740 2009-03-01  Bruno Haible  <bruno@clisp.org>
44741
44742         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
44743         least 4.2.
44744
44745 2009-03-01  Eric Blake  <ebb9@byu.net>
44746             Bruno Haible  <bruno@clisp.org>
44747
44748         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
44749         error messages.
44750         * lib/wait-process.c (wait_subprocess): Omit error message about
44751         deadly signal sent to the child of termsigp != NULL.
44752
44753 2009-03-01  Eric Blake  <ebb9@byu.net>
44754
44755         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
44756
44757 2009-03-01  Bruno Haible  <bruno@clisp.org>
44758
44759         Avoid a gcc warning.
44760         * tests/test-sched.c (b): Make global.
44761         Reported by Eric Blake.
44762
44763 2009-01-19  Martin Lambers  <marlam@marlam.de>
44764
44765         Provide POSIX semantics for socket timeout options on W32.
44766         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
44767         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
44768         * modules/setsockopt: Depend on sys_time module for struct timeval.
44769         * modules/getsockopt: Depend on sys_time module for struct timeval.
44770
44771 2009-03-01  Simon Josefsson  <simon@josefsson.org>
44772
44773         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
44774         __USE_GNU, for consistency with netdb.in.h.
44775         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44776
44777 2009-03-01  Bruno Haible  <bruno@clisp.org>
44778
44779         More support for FreeMiNT.
44780         * lib/fseeko.c (rpl_fseeko): Complete last commit.
44781         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44782
44783 2009-03-01  Bruno Haible  <bruno@clisp.org>
44784
44785         More support for FreeMiNT.
44786         * lib/fpurge.c (fpurge): Correct last commit.
44787         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44788
44789 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44790
44791         Fix unportable awk script in vc-list-files.
44792         * build-aux/vc-list-files: In the replacement awk script, use
44793         substr with a second argument of 1, not zero.
44794         Report by Simon Josefsson.
44795
44796 2009-02-28  Bruno Haible  <bruno@clisp.org>
44797
44798         More support for FreeMiNT.
44799         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
44800         to FreeMiNT today.
44801         * lib/fwriting.c (fwriting): Likewise.
44802         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
44803
44804 2009-02-28  Bruno Haible  <bruno@clisp.org>
44805
44806         * tests/test-freadseek.c (main): Disable test beyond end of file on
44807         FreeMiNT.
44808         * tests/test-ftello.c (main): Likewise.
44809         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
44810
44811 2009-02-28  Bruno Haible  <bruno@clisp.org>
44812
44813         Add tentative support for FreeMiNT.
44814         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
44815         * lib/fpurge.c (fpurge): Likewise.
44816         * lib/freadable.c (freadable): Likewise.
44817         * lib/freading.c (freading): Likewise.
44818         * lib/freadptr.c (freadptr): Likewise.
44819         * lib/freadseek.c (freadptrinc): Likewise.
44820         * lib/fseeko.c (rpl_fseeko): Likewise.
44821         * lib/fseterr.c (fseterr): Likewise.
44822         * lib/fwritable.c (fwritable): Likewise.
44823         * lib/fwriting.c (fwriting): Likewise.
44824         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
44825         Hourihane.
44826         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44827
44828 2009-02-28  Bruno Haible  <bruno@clisp.org>
44829
44830         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
44831         SIGCHLD.
44832         Reported by Jim Meyering.
44833
44834 2009-02-28  Bruno Haible  <bruno@clisp.org>
44835
44836         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
44837         Mention the results of these tests on various platforms.
44838         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
44839         order.
44840         * doc/posix-functions/printf.texi: Likewise.
44841         * doc/posix-functions/snprintf.texi: Likewise.
44842         * doc/posix-functions/sprintf.texi: Likewise.
44843         * doc/posix-functions/vfprintf.texi: Likewise.
44844         * doc/posix-functions/vprintf.texi: Likewise.
44845         * doc/posix-functions/vsnprintf.texi: Likewise.
44846         * doc/posix-functions/vsprintf.texi: Likewise.
44847         * doc/glibc-functions/obstack_printf.texi: Likewise.
44848         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
44849
44850 2009-02-28  Bruno Haible  <bruno@clisp.org>
44851
44852         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
44853         Reported by Loïc Minier <lool@dooz.org>.
44854
44855 2009-02-27  Bruno Haible  <bruno@clisp.org>
44856
44857         * gnulib-tool (func_import): Make the sed expression used to create the
44858         sed script for updating the .gitignore file POSIX compliant.
44859         Reported by Eric Blake.
44860
44861 2009-02-27  Bruno Haible  <bruno@clisp.org>
44862
44863         * gnulib-tool (sed): Don't alias as "sed --posix".
44864         Reported by Eric Blake.
44865
44866 2009-02-27  Bruno Haible  <bruno@clisp.org>
44867
44868         Avoid test link errors.
44869         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
44870         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
44871         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
44872         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
44873         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44874
44875 2009-02-27  Bruno Haible  <bruno@clisp.org>
44876
44877         Avoid spurious "(cached)" in configure output.
44878         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
44879         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
44880         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44881         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44882         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44883         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
44884         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44885         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
44886         Reported by Eric Blake.
44887
44888 2009-02-27  Eric Blake  <ebb9@byu.net>
44889
44890         printf: fix regression in previous patch
44891         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
44892
44893 2009-02-27  Bruno Haible  <bruno@clisp.org>
44894
44895         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
44896         value.
44897         * lib/stdint.in.h: Likewise.
44898         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
44899
44900 2009-02-27  Eric Blake  <ebb9@byu.net>
44901
44902         doc: mention more functions added in cygwin 1.7.0
44903         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
44904         addition.
44905         * doc/posix-functions/open_wmemstream.texi: Likewise.
44906         * doc/posix-functions/wcsnlen.texi: Likewise.
44907         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44908         * doc/posix-functions/wcstod.texi: Likewise.
44909         * doc/posix-functions/wcstof.texi: Likewise.
44910         * doc/posix-functions/wcstoimax.texi: Likewise.
44911         * doc/posix-functions/wcstok.texi: Likewise.
44912         * doc/posix-functions/wcstoumax.texi: Likewise.
44913
44914         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
44915         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
44916         * doc/posix-functions/fprintf.texi: Update.
44917         * doc/posix-functions/printf.texi: Update.
44918         * doc/posix-functions/snprintf.texi: Update.
44919         * doc/posix-functions/sprintf.texi: Update.
44920         * doc/posix-functions/vfprintf.texi: Update.
44921         * doc/posix-functions/vprintf.texi: Update.
44922         * doc/posix-functions/vsnprintf.texi: Update.
44923         * doc/posix-functions/vsprintf.texi: Update.
44924         * doc/glibc-functions/obstack_printf.texi: Update.
44925         * doc/glibc-functions/obstack_vprintf.texi: Update.
44926
44927 2009-02-26  Eric Blake  <ebb9@byu.net>
44928
44929         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
44930         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
44931         compilation bug by using runtime conversion.
44932         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
44933         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
44934         * modules/ceill-tests (Files): Use nan.h.
44935         * modules/floorl-tests (Files): Likewise.
44936         * modules/frexpl-tests (Files): Likewise.
44937         * modules/isnanl-tests (Files): Likewise.
44938         * modules/ldexpl-tests (Files): Likewise.
44939         * modules/roundl-tests (Files): Likewise.
44940         * modules/truncl-tests (Files): Likewise.
44941         * tests/test-ceill.c (main): Use a working NaN.
44942         * tests/test-floorl.c (main): Likewise.
44943         * tests/test-frexpl.c (main): Likewise.
44944         * tests/test-isnan.c (test_long_double): Likewise.
44945         * tests/test-isnanl.h (main): Likewise.
44946         * tests/test-ldexpl.h (main): Likewise.
44947         * tests/test-roundl.h (main): Likewise.
44948         * tests/test-truncl.h (main): Likewise.
44949         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
44950
44951 2009-02-26  Eric Blake  <ebb9@byu.net>
44952             Bruno Haible  <bruno@clisp.org>
44953
44954         Work around a *printf bug with %ls on Solaris.
44955         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
44956         precision is specified, sprintf stops converting the wide string
44957         argument when the number of bytes that have been produced by this
44958         conversion equals or exceeds the precision.
44959         * doc/posix-functions/fprintf.texi: Update.
44960         * doc/posix-functions/printf.texi: Update.
44961         * doc/posix-functions/snprintf.texi: Update.
44962         * doc/posix-functions/sprintf.texi: Update.
44963         * doc/posix-functions/vfprintf.texi: Update.
44964         * doc/posix-functions/vprintf.texi: Update.
44965         * doc/posix-functions/vsnprintf.texi: Update.
44966         * doc/posix-functions/vsprintf.texi: Update.
44967         * doc/glibc-functions/obstack_printf.texi: Update.
44968         * doc/glibc-functions/obstack_vprintf.texi: Update.
44969
44970 2009-02-26  Eric Blake  <ebb9@byu.net>
44971
44972         stdlib: favor compiler check of random.h
44973         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
44974         to avoid an ObjC random.h installed by Swarm.
44975
44976 2009-02-26  Bruno Haible  <bruno@clisp.org>
44977
44978         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
44979         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
44980         Reported by Gary V. Vaughan <gary@gnu.org>.
44981
44982 2009-02-26  Bruno Haible  <bruno@clisp.org>
44983
44984         Fix *printf behaviour regarding the %ls directive.
44985         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
44986         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
44987         NEED_PRINTF_DIRECTIVE_LS.
44988         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
44989         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44990         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44991         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
44992         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
44993         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
44994         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44995         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44996         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44997         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44998         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44999         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45000         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45001         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45002         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45003         * doc/posix-functions/fprintf.texi: Update.
45004         * doc/posix-functions/printf.texi: Update.
45005         * doc/posix-functions/snprintf.texi: Update.
45006         * doc/posix-functions/sprintf.texi: Update.
45007         * doc/posix-functions/vfprintf.texi: Update.
45008         * doc/posix-functions/vprintf.texi: Update.
45009         * doc/posix-functions/vsnprintf.texi: Update.
45010         * doc/posix-functions/vsprintf.texi: Update.
45011         * doc/glibc-functions/obstack_printf.texi: Update.
45012         * doc/glibc-functions/obstack_vprintf.texi: Update.
45013         Reported by Eric Blake.
45014
45015 2009-02-25  Bruno Haible  <bruno@clisp.org>
45016
45017         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
45018         with known value.
45019         Reported by Gary V. Vaughan <gary@gnu.org>.
45020
45021 2009-02-25  Bruno Haible  <bruno@clisp.org>
45022
45023         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
45024         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
45025         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
45026         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
45027         Reported by Gary V. Vaughan <gary@gnu.org>.
45028
45029 2009-02-25  Bruno Haible  <bruno@clisp.org>
45030
45031         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
45032         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
45033         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
45034         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
45035         Reported by Gary V. Vaughan <gary@gnu.org>.
45036
45037 2009-02-25  Eric Blake  <ebb9@byu.net>
45038
45039         tests: skip fseek/ftell tests if ungetc is broken
45040         * m4/ungetc.m4: New file.
45041         * modules/fseek-tests: Split test, so ungetc dependency is
45042         separate from rest of test.
45043         * modules/fseeko-tests: Likewise.
45044         * modules/ftell-tests: Likewise.
45045         * modules/ftello-tests: Likewise.
45046         * tests/test-fseek.c (main): Isolate ungetc dependency.
45047         * tests/test-fseeko.c (main): Likewise.
45048         * tests/test-ftell.c (main): Likewise.
45049         * tests/test-ftello.c (main): Likewise.
45050         * tests/test-fseek2.sh: New file.
45051         * tests/test-fseeko2.sh: Likewise.
45052         * tests/test-ftell2.sh: Likewise.
45053         * tests/test-ftello2.sh: Likewise.
45054
45055 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
45056
45057         test-getaddrinfo: fix usage of skip return code 77
45058         * tests/test-gettaddrinfo.c: Return skip code 77 only
45059         for first occurance of skip (4x77 is not 77)
45060
45061 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
45062
45063         strtod: avoid C99 decl-after-statement
45064         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
45065
45066 2009-02-24  Eric Blake  <ebb9@byu.net>
45067
45068         strtod: detect HP-UX 11.31 bug
45069         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
45070         Reported by Gary V. Vaughan.
45071
45072 2009-02-23  Bruno Haible  <bruno@clisp.org>
45073
45074         Fix invalid read past end of memory block.
45075         * lib/vasnprintf.c (DCHAR_SET): Define.
45076         (local_wcslen): Define only when needed.
45077         (local_strnlen, local_wcsnlen): New functions.
45078         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
45079         directives that involve a conversion ourselves.
45080         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
45081         wcsnlen, mbrtowc, wcrtomb.
45082         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
45083         * tests/test-vasprintf-posix.c (test_function): Likewise.
45084         * tests/test-snprintf-posix.h (test_function): Likewise.
45085         * tests/test-sprintf-posix.h (test_function): Likewise.
45086         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45087
45088 2009-02-22  Bruno Haible  <bruno@clisp.org>
45089
45090         Implement new clarified decomposition of Hangul syllables.
45091         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
45092         of type LTV, return only a pairwise decomposition.
45093         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
45094         Likewise.
45095         * tests/uninorm/test-decomposition.c (main): Updated expected result.
45096         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
45097         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
45098
45099 2009-02-22  Bruno Haible  <bruno@clisp.org>
45100
45101         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
45102         zero-length results and shrink excess allocated memory.
45103         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
45104         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
45105         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
45106         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
45107         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
45108         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
45109         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
45110         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
45111         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
45112         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
45113         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
45114         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
45115
45116 2009-02-21  Bruno Haible  <bruno@clisp.org>
45117
45118         * doc/gnulib.texi: Include safe-alloc.texi earlier.
45119         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
45120         spaces after a period. Put a space between a macro name and its
45121         argument list. Trivial rewordings.
45122         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
45123         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
45124         (main): Return 0 explicitly.
45125
45126 2009-02-21  Bruno Haible  <bruno@clisp.org>
45127
45128         Tests for module 'uninorm/filter'.
45129         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
45130         * modules/uninorm/filter-tests: New file.
45131
45132         New module 'uninorm/filter'.
45133         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
45134         uninorm_filter_flush, uninorm_filter_free): New declarations.
45135         * lib/uninorm/uninorm-filter.c: New file.
45136         * modules/uninorm/filter: New file.
45137
45138 2009-02-21  Bruno Haible  <bruno@clisp.org>
45139
45140         Tests for module 'uninorm/nfkc'.
45141         * tests/uninorm/test-nfkc.c: New file.
45142         * tests/uninorm/test-u8-nfkc.c: New file.
45143         * tests/uninorm/test-u16-nfkc.c: New file.
45144         * tests/uninorm/test-u32-nfkc.c: New file.
45145         * tests/uninorm/test-u32-nfkc-big.sh: New file.
45146         * tests/uninorm/test-u32-nfkc-big.c: New file.
45147         * modules/uninorm/nfkc-tests: New file.
45148
45149         New module 'uninorm/nfkc'.
45150         * lib/uninorm/nfkc.c: New file.
45151         * modules/uninorm/nfkc: New file.
45152
45153         Tests for module 'uninorm/nfkd'.
45154         * tests/uninorm/test-nfkd.c: New file.
45155         * tests/uninorm/test-u8-nfkd.c: New file.
45156         * tests/uninorm/test-u16-nfkd.c: New file.
45157         * tests/uninorm/test-u32-nfkd.c: New file.
45158         * tests/uninorm/test-u32-nfkd-big.sh: New file.
45159         * tests/uninorm/test-u32-nfkd-big.c: New file.
45160         * modules/uninorm/nfkd-tests: New file.
45161
45162         New module 'uninorm/nfkd'.
45163         * lib/uninorm/nfkd.c: New file.
45164         * modules/uninorm/nfkd: New file.
45165
45166         Tests for module 'uninorm/nfc'.
45167         * tests/uninorm/test-nfc.c: New file.
45168         * tests/uninorm/test-u8-nfc.c: New file.
45169         * tests/uninorm/test-u16-nfc.c: New file.
45170         * tests/uninorm/test-u32-nfc.c: New file.
45171         * tests/uninorm/test-u32-nfc-big.sh: New file.
45172         * tests/uninorm/test-u32-nfc-big.c: New file.
45173         * modules/uninorm/nfc-tests: New file.
45174
45175         New module 'uninorm/nfc'.
45176         * lib/uninorm/nfc.c: New file.
45177         * modules/uninorm/nfc: New file.
45178
45179         Tests for module 'uninorm/nfd'.
45180         * tests/uninorm/test-nfd.c: New file.
45181         * tests/uninorm/test-u8-nfd.c: New file.
45182         * tests/uninorm/test-u16-nfd.c: New file.
45183         * tests/uninorm/test-u32-nfd.c: New file.
45184         * tests/uninorm/test-u32-nfd-big.sh: New file.
45185         * tests/uninorm/test-u32-nfd-big.c: New file.
45186         * tests/uninorm/test-u32-normalize-big.h: New file.
45187         * tests/uninorm/test-u32-normalize-big.c: New file.
45188         * tests/uninorm/NormalizationTest.txt: New file, created from
45189         Unicode 5.1.0 NormalizationTest.txt.
45190         * modules/uninorm/nfd-tests: New file.
45191
45192         New module 'uninorm/nfd'.
45193         * lib/uninorm/nfd.c: New file.
45194         * modules/uninorm/nfd: New file.
45195
45196         New module 'uninorm/u32-normalize'.
45197         * lib/uninorm/u32-normalize.c: New file.
45198         * modules/uninorm/u32-normalize: New file.
45199
45200         New module 'uninorm/u16-normalize'.
45201         * lib/uninorm/u16-normalize.c: New file.
45202         * modules/uninorm/u16-normalize: New file.
45203
45204         New module 'uninorm/u8-normalize'.
45205         * lib/uninorm/u8-normalize.c: New file.
45206         * lib/uninorm/normalize-internal.h: New file.
45207         * lib/uninorm/u-normalize-internal.h: New file.
45208         * modules/uninorm/u8-normalize: New file.
45209
45210         New module 'uninorm/decompose-internal'.
45211         * lib/uninorm/decompose-internal.c: New file.
45212         * modules/uninorm/decompose-internal: New file.
45213
45214         Tests for module 'uninorm/composition'.
45215         * tests/uninorm/test-composition.c: New file.
45216         * modules/uninorm/composition-tests: New file.
45217
45218         New module 'uninorm/composition'.
45219         * lib/uninorm/composition.c: New file.
45220         * lib/uninorm/composition-table.gperf: New file, generated by
45221         gen-uni-tables.
45222         * modules/uninorm/composition: New file.
45223
45224         Tests for module 'uninorm/compat-decomposition'.
45225         * tests/uninorm/test-compat-decomposition.c: New file.
45226         * modules/uninorm/compat-decomposition-tests: New file.
45227
45228         New module 'uninorm/compat-decomposition'.
45229         * lib/uninorm/decompose-internal.h: New file.
45230         * lib/uninorm/compat-decomposition.c: New file.
45231         * modules/uninorm/compat-decomposition: New file.
45232
45233         Tests for module 'uninorm/canonical-decomposition'.
45234         * tests/uninorm/test-canonical-decomposition.c: New file.
45235         * modules/uninorm/canonical-decomposition-tests: New file.
45236
45237         New module 'uninorm/canonical-decomposition'.
45238         * lib/uninorm/canonical-decomposition.c: New file.
45239         * modules/uninorm/canonical-decomposition: New file.
45240
45241         Tests for module 'uninorm/decomposition'.
45242         * tests/uninorm/test-decomposition.c: New file.
45243         * modules/uninorm/decomposition-tests: New file.
45244
45245         New module 'uninorm/decomposition'.
45246         * lib/uninorm/decomposition.c: New file.
45247         * modules/uninorm/decomposition: New file.
45248
45249         New module 'uninorm/decomposition-table'.
45250         * lib/uninorm/decomposition-table.h: New file.
45251         * lib/uninorm/decomposition-table.c: New file.
45252         * lib/uninorm/decomposition-table1.h: New file, generated by
45253         gen-uni-tables.
45254         * lib/uninorm/decomposition-table2.h: New file, generated by
45255         gen-uni-tables.
45256         * modules/uninorm/decomposition-table: New file.
45257
45258         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
45259         (UC_DECOMP_*): New enumeration items.
45260         (get_decomposition): New function.
45261         (struct decomp_table): New type.
45262         (output_decomposition, output_decomposition_tables): New functions.
45263         (unicode_composition_exclusions): New variable.
45264         (fill_composition_exclusions, debug_output_composition_tables): New
45265         functions.
45266         (main): Accept one more argument. Invoke fill_composition_exclusions.
45267         Output decomposition and composition tables.
45268
45269         New module 'uninorm/base'.
45270         * lib/uninorm.h: New file.
45271         * lib/unictype.h: Update comment.
45272         * modules/uninorm/base: New file.
45273
45274 2009-02-21  David Lutterkort  <lutter@redhat.com>
45275
45276         Tests for module 'safe-alloc'.
45277         * tests/test-safe-alloc.c: New file.
45278         * modules/safe-alloc-tests: New file.
45279
45280         New module 'safe-alloc'.
45281         * lib/safe-alloc.h: New file.
45282         * lib/safe-alloc.c: New file.
45283         * m4/safe-alloc.m4: New file.
45284         * modules/safe-alloc: New file.
45285         * doc/safe-alloc.texi: New file.
45286         * doc/gnulib.texi: Include it.
45287         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
45288         safe-alloc.
45289
45290 2009-02-18  Bruno Haible  <bruno@clisp.org>
45291
45292         Fix link error on non-glibc systems.
45293         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
45294         variable.
45295         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45296
45297 2009-02-18  Jim Meyering  <meyering@redhat.com>
45298
45299         fts: avoid used-uninitialized error due to recent change
45300         * lib/fts.c (fts_read): Guard uses of the new member,
45301         parent->fts_n_dirs_remaining, since it's not relevant for
45302         the parent of a directory specified on the command-line.
45303
45304 2009-02-17  James Youngman  <jay@gnu.org>
45305             Bruno Haible  <bruno@clisp.org>
45306
45307         * m4/include_next.m4: Reformulate comment.
45308
45309 2009-02-16  Jim Meyering  <meyering@redhat.com>
45310
45311         fts: add #if guards so that the fts_lgpl module still builds
45312         * lib/fts.c: Guard just-added hash-table-using parts with
45313         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
45314         Reported by Simon Josefsson.
45315
45316 2009-02-15  Bruno Haible  <bruno@clisp.org>
45317
45318         * modules/array-mergesort-tests: New file.
45319         * tests/test-array-mergesort.c: New file.
45320
45321         New module 'array-mergesort'.
45322         * modules/array-mergesort: New file.
45323         * lib/array-mergesort.h: New file.
45324
45325 2009-02-15  Bruno Haible  <bruno@clisp.org>
45326
45327         Fix 2009-02-07 commit.
45328         * lib/gen-uni-tables.c (output_predicate, output_category,
45329         output_combclass, output_bidi_category, output_decimal_digit,
45330         output_digit, output_numeric, output_mirror, output_scripts,
45331         output_ident_category, output_simple_mapping): Fix format directives.
45332         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
45333
45334 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
45335
45336         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
45337         fixes are available from IBM.
45338
45339 2009-02-13  Jim Meyering  <meyering@redhat.com>
45340
45341         fts: arrange not to stat non-directories in more cases
45342         This makes GNU find (when it doesn't need to stat each file)
45343         *much* more efficient at traversing reiserfs file systems.
45344         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
45345         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
45346         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
45347         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
45348         (leaf_optimization_applies): New function.
45349         (LCO_hash, LCO_compare): New helper functions.
45350         (link_count_optimize_ok): New function.
45351         (fts_stat): Initialize new member (if dir).
45352         (fts_read): Decrement parent's fts_n_dirs_remaining count if
45353         we've just stat'ed a directory.  Skip the stat call when possible.
45354         ---
45355         Note this AFS-related exchange:
45356         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
45357         and note find's pioctl call in find/fstype.c.
45358         But that is necessary only if you want to enable the
45359         optimization for AFS, and for now, I don't.
45360
45361         fts: move a function definition "up" (no semantic change)
45362         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
45363         "up" to precede upcoming use of a related function.
45364
45365 2009-02-11  Jim Meyering  <meyering@redhat.com>
45366
45367         fts: correct internal computation of nlinks (optimization-related)
45368         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
45369         whether the current entry is a directory, so don't test it.
45370
45371 2009-02-10  Bruno Haible  <bruno@clisp.org>
45372
45373         Tests for module 'uniwbrk/ulc-wordbreaks'.
45374         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
45375         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
45376         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
45377
45378         Tests for module 'uniwbrk/u32-wordbreaks'.
45379         * modules/uniwbrk/u32-wordbreaks-tests: New file.
45380         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
45381
45382         Tests for module 'uniwbrk/u16-wordbreaks'.
45383         * modules/uniwbrk/u16-wordbreaks-tests: New file.
45384         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
45385
45386         Tests for module 'uniwbrk/u8-wordbreaks'.
45387         * modules/uniwbrk/u8-wordbreaks-tests: New file.
45388         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
45389
45390 2009-02-10  Bruno Haible  <bruno@clisp.org>
45391
45392         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
45393         property.
45394         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
45395         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
45396         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
45397
45398 2009-02-10  Simon Josefsson  <simon@josefsson.org>
45399
45400         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
45401         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
45402
45403 2009-02-10  Bruno Haible  <bruno@clisp.org>
45404
45405         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
45406         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
45407         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
45408         * lib/unilbrk/u8-possible-linebreaks.c: Update.
45409         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
45410         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
45411
45412 2009-02-09  Simon Josefsson  <simon@josefsson.org>
45413
45414         * lib/sockets.h (gl_fd_to_handle): New function.
45415
45416         * tests/test-sockets.c: Call gl_fd_to_handle.
45417
45418 2009-02-09  Bruno Haible  <bruno@clisp.org>
45419
45420         * doc/havelib.texi: Document the conventions on bi-arch systems.
45421
45422 2009-02-08  Bruno Haible  <bruno@clisp.org>
45423
45424         Document the AC_LIB_LINKFLAGS macro.
45425         * doc/havelib.texi: New file, mostly written on 2005-05-24.
45426         * doc/gnulib.texi: Include it.
45427
45428 2009-02-08  Bruno Haible  <bruno@clisp.org>
45429
45430         Fix wrong order of sections, compared to TOC.
45431         * doc/gnulib.texi: Include relocatable-maint.texi after the
45432         "Regular expressions" node, not before.
45433
45434 2009-02-08  Bruno Haible  <bruno@clisp.org>
45435
45436         Tests for module 'unicase/totitle'.
45437         * modules/unicase/totitle-tests: New file.
45438
45439         Tests for module 'unicase/tolower'.
45440         * modules/unicase/tolower-tests: New file.
45441
45442         Tests for module 'unicase/toupper'.
45443         * modules/unicase/toupper-tests: New file.
45444         * tests/unicase/test-mapping-part1.h: New file.
45445         * tests/unicase/test-mapping-part2.h: New file.
45446
45447         New module 'unicase/totitle'.
45448         * modules/unicase/totitle: New file.
45449         * lib/unicase/totitle.c: New file.
45450
45451         New module 'unicase/tolower'.
45452         * modules/unicase/tolower: New file.
45453         * lib/unicase/tolower.c: New file.
45454
45455         New module 'unicase/toupper'.
45456         * modules/unicase/toupper: New file.
45457         * lib/unicase/toupper.c: New file.
45458         * lib/unicase/simple-mapping.h: New file.
45459
45460         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
45461         (mapping_table): New structure.
45462         (output_simple_mapping): New function.
45463         (main): Invoke output_simple_mapping_test and output_simple_mapping.
45464         * modules/gen-uni-tables (Description): Update.
45465         * lib/unicase/toupper.h: New file, automatically generated by
45466         gen-uni-tables.
45467         * lib/unicase/tolower.h: New file, automatically generated by
45468         gen-uni-tables.
45469         * lib/unicase/totitle.h: New file, automatically generated by
45470         gen-uni-tables.
45471         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
45472         gen-uni-tables.
45473         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
45474         gen-uni-tables.
45475         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
45476         gen-uni-tables.
45477
45478         New module 'unicase/base'.
45479         * modules/unicase/base: New file.
45480         * lib/unicase.h: New file.
45481
45482 2009-02-08  Bruno Haible  <bruno@clisp.org>
45483
45484         New module 'uniwbrk/ulc-wordbreaks'.
45485         * modules/uniwbrk/ulc-wordbreaks: New file.
45486         * lib/uniwbrk/ulc-wordbreaks.c: New file.
45487
45488         New module 'uniwbrk/u32-wordbreaks'.
45489         * modules/uniwbrk/u32-wordbreaks: New file.
45490         * lib/uniwbrk/u32-wordbreaks.c: New file.
45491
45492         New module 'uniwbrk/u16-wordbreaks'.
45493         * modules/uniwbrk/u16-wordbreaks: New file.
45494         * lib/uniwbrk/u16-wordbreaks.c: New file.
45495
45496         New module 'uniwbrk/u8-wordbreaks'.
45497         * modules/uniwbrk/u8-wordbreaks: New file.
45498         * lib/uniwbrk/u8-wordbreaks.c: New file.
45499         * lib/uniwbrk/u-wordbreaks.h: New file.
45500
45501         New module 'uniwbrk/table'.
45502         * modules/uniwbrk/table: New file.
45503         * lib/uniwbrk/wbrktable.h: New file.
45504         * lib/uniwbrk/wbrktable.c: New file.
45505
45506         New module 'uniwbrk/wordbreak-property'.
45507         * modules/uniwbrk/wordbreak-property: New file.
45508         * lib/uniwbrk/wordbreak-property.c: New file.
45509
45510         * lib/gen-uni-tables.c (WBP_*): New enum items.
45511         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
45512         (unicode_org_wbp): New variable.
45513         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
45514         New functions.
45515         (wbp_table): New structure.
45516         (output_wbp, output_wbrk_tables): New functions.
45517         (main): Accept additional argument. Invoke fill_org_wbp,
45518         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
45519         output_wbrk_tables.
45520         * modules/gen-uni-tables (Description): Update.
45521         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
45522         gen-uni-tables.
45523
45524         New module 'uniwbrk/base'.
45525         * modules/uniwbrk/base: New file.
45526         * lib/uniwbrk.h: New file.
45527
45528 2009-02-08  Bruno Haible  <bruno@clisp.org>
45529
45530         Update to Unicode 5.1.0.
45531         * lib/gen-uni-tables.c (is_property_alphabetic): Include
45532         U+2185..U+2188.
45533         (is_property_default_ignorable_code_point): Don't include characters
45534         of category Cc or Cs and not-a-characters.
45535         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
45536         U+0D79, U+109E, U+109F, U+A60C.
45537         * lib/unictype/bidi_of.h: Regenerated.
45538         * lib/unictype/blocks.h: Regenerated.
45539         * lib/unictype/categ_C.h: Regenerated.
45540         * lib/unictype/categ_Cf.h: Regenerated.
45541         * lib/unictype/categ_Cn.h: Regenerated.
45542         * lib/unictype/categ_L.h: Regenerated.
45543         * lib/unictype/categ_Ll.h: Regenerated.
45544         * lib/unictype/categ_Lm.h: Regenerated.
45545         * lib/unictype/categ_Lo.h: Regenerated.
45546         * lib/unictype/categ_Lu.h: Regenerated.
45547         * lib/unictype/categ_M.h: Regenerated.
45548         * lib/unictype/categ_Mc.h: Regenerated.
45549         * lib/unictype/categ_Me.h: Regenerated.
45550         * lib/unictype/categ_Mn.h: Regenerated.
45551         * lib/unictype/categ_N.h: Regenerated.
45552         * lib/unictype/categ_Nd.h: Regenerated.
45553         * lib/unictype/categ_Nl.h: Regenerated.
45554         * lib/unictype/categ_No.h: Regenerated.
45555         * lib/unictype/categ_P.h: Regenerated.
45556         * lib/unictype/categ_Pd.h: Regenerated.
45557         * lib/unictype/categ_Pe.h: Regenerated.
45558         * lib/unictype/categ_Pf.h: Regenerated.
45559         * lib/unictype/categ_Pi.h: Regenerated.
45560         * lib/unictype/categ_Po.h: Regenerated.
45561         * lib/unictype/categ_Ps.h: Regenerated.
45562         * lib/unictype/categ_S.h: Regenerated.
45563         * lib/unictype/categ_Sk.h: Regenerated.
45564         * lib/unictype/categ_Sm.h: Regenerated.
45565         * lib/unictype/categ_So.h: Regenerated.
45566         * lib/unictype/categ_of.h: Regenerated.
45567         * lib/unictype/combining.h: Regenerated.
45568         * lib/unictype/ctype_alnum.h: Regenerated.
45569         * lib/unictype/ctype_alpha.h: Regenerated.
45570         * lib/unictype/ctype_graph.h: Regenerated.
45571         * lib/unictype/ctype_lower.h: Regenerated.
45572         * lib/unictype/ctype_print.h: Regenerated.
45573         * lib/unictype/ctype_punct.h: Regenerated.
45574         * lib/unictype/ctype_upper.h: Regenerated.
45575         * lib/unictype/decdigit.h: Regenerated.
45576         * lib/unictype/digit.h: Regenerated.
45577         * lib/unictype/mirror.h: Regenerated.
45578         * lib/unictype/numeric.h: Regenerated.
45579         * lib/unictype/pr_alphabetic.h: Regenerated.
45580         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
45581         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
45582         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
45583         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
45584         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
45585         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
45586         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
45587         * lib/unictype/pr_combining.h: Regenerated.
45588         * lib/unictype/pr_dash.h: Regenerated.
45589         * lib/unictype/pr_decimal_digit.h: Regenerated.
45590         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
45591         * lib/unictype/pr_deprecated.h: Regenerated.
45592         * lib/unictype/pr_diacritic.h: Regenerated.
45593         * lib/unictype/pr_extender.h: Regenerated.
45594         * lib/unictype/pr_format_control.h: Regenerated.
45595         * lib/unictype/pr_grapheme_base.h: Regenerated.
45596         * lib/unictype/pr_grapheme_extend.h: Regenerated.
45597         * lib/unictype/pr_grapheme_link.h: Regenerated.
45598         * lib/unictype/pr_id_continue.h: Regenerated.
45599         * lib/unictype/pr_id_start.h: Regenerated.
45600         * lib/unictype/pr_ideographic.h: Regenerated.
45601         * lib/unictype/pr_ignorable_control.h: Regenerated.
45602         * lib/unictype/pr_lowercase.h: Regenerated.
45603         * lib/unictype/pr_math.h: Regenerated.
45604         * lib/unictype/pr_numeric.h: Regenerated.
45605         * lib/unictype/pr_other_alphabetic.h: Regenerated.
45606         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
45607         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
45608         * lib/unictype/pr_other_id_continue.h: Regenerated.
45609         * lib/unictype/pr_other_lowercase.h: Regenerated.
45610         * lib/unictype/pr_other_math.h: Regenerated.
45611         * lib/unictype/pr_punctuation.h: Regenerated.
45612         * lib/unictype/pr_sentence_terminal.h: Regenerated.
45613         * lib/unictype/pr_soft_dotted.h: Regenerated.
45614         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
45615         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
45616         * lib/unictype/pr_unified_ideograph.h: Regenerated.
45617         * lib/unictype/pr_uppercase.h: Regenerated.
45618         * lib/unictype/pr_xid_continue.h: Regenerated.
45619         * lib/unictype/pr_xid_start.h: Regenerated.
45620         * lib/unictype/pr_zero_width.h: Regenerated.
45621         * lib/unictype/scripts.h: Regenerated.
45622         * lib/unictype/scripts_byname.gperf: Regenerated.
45623         * lib/unictype/sy_java_ident.h: Regenerated.
45624         * lib/unilbrk/lbrkprop1.h: Regenerated.
45625         * lib/unilbrk/lbrkprop2.h: Regenerated.
45626         * tests/unictype/test-categ_C.c: Regenerated.
45627         * tests/unictype/test-categ_Cf.c: Regenerated.
45628         * tests/unictype/test-categ_Cn.c: Regenerated.
45629         * tests/unictype/test-categ_L.c: Regenerated.
45630         * tests/unictype/test-categ_Ll.c: Regenerated.
45631         * tests/unictype/test-categ_Lm.c: Regenerated.
45632         * tests/unictype/test-categ_Lo.c: Regenerated.
45633         * tests/unictype/test-categ_Lu.c: Regenerated.
45634         * tests/unictype/test-categ_M.c: Regenerated.
45635         * tests/unictype/test-categ_Mc.c: Regenerated.
45636         * tests/unictype/test-categ_Me.c: Regenerated.
45637         * tests/unictype/test-categ_Mn.c: Regenerated.
45638         * tests/unictype/test-categ_N.c: Regenerated.
45639         * tests/unictype/test-categ_Nd.c: Regenerated.
45640         * tests/unictype/test-categ_Nl.c: Regenerated.
45641         * tests/unictype/test-categ_No.c: Regenerated.
45642         * tests/unictype/test-categ_P.c: Regenerated.
45643         * tests/unictype/test-categ_Pd.c: Regenerated.
45644         * tests/unictype/test-categ_Pe.c: Regenerated.
45645         * tests/unictype/test-categ_Pf.c: Regenerated.
45646         * tests/unictype/test-categ_Pi.c: Regenerated.
45647         * tests/unictype/test-categ_Po.c: Regenerated.
45648         * tests/unictype/test-categ_Ps.c: Regenerated.
45649         * tests/unictype/test-categ_S.c: Regenerated.
45650         * tests/unictype/test-categ_Sk.c: Regenerated.
45651         * tests/unictype/test-categ_Sm.c: Regenerated.
45652         * tests/unictype/test-categ_So.c: Regenerated.
45653         * tests/unictype/test-ctype_alnum.c: Regenerated.
45654         * tests/unictype/test-ctype_alpha.c: Regenerated.
45655         * tests/unictype/test-ctype_graph.c: Regenerated.
45656         * tests/unictype/test-ctype_lower.c: Regenerated.
45657         * tests/unictype/test-ctype_print.c: Regenerated.
45658         * tests/unictype/test-ctype_punct.c: Regenerated.
45659         * tests/unictype/test-ctype_upper.c: Regenerated.
45660         * tests/unictype/test-decdigit.h: Regenerated.
45661         * tests/unictype/test-digit.h: Regenerated.
45662         * tests/unictype/test-numeric.h: Regenerated.
45663         * tests/unictype/test-pr_alphabetic.c: Regenerated.
45664         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
45665         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
45666         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
45667         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
45668         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
45669         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
45670         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
45671         * tests/unictype/test-pr_combining.c: Regenerated.
45672         * tests/unictype/test-pr_dash.c: Regenerated.
45673         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
45674         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
45675         * tests/unictype/test-pr_deprecated.c: Regenerated.
45676         * tests/unictype/test-pr_diacritic.c: Regenerated.
45677         * tests/unictype/test-pr_extender.c: Regenerated.
45678         * tests/unictype/test-pr_format_control.c: Regenerated.
45679         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
45680         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
45681         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
45682         * tests/unictype/test-pr_id_continue.c: Regenerated.
45683         * tests/unictype/test-pr_id_start.c: Regenerated.
45684         * tests/unictype/test-pr_ideographic.c: Regenerated.
45685         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
45686         * tests/unictype/test-pr_lowercase.c: Regenerated.
45687         * tests/unictype/test-pr_math.c: Regenerated.
45688         * tests/unictype/test-pr_numeric.c: Regenerated.
45689         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
45690         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
45691         Regenerated.
45692         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
45693         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
45694         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
45695         * tests/unictype/test-pr_other_math.c: Regenerated.
45696         * tests/unictype/test-pr_punctuation.c: Regenerated.
45697         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
45698         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
45699         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
45700         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
45701         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
45702         * tests/unictype/test-pr_uppercase.c: Regenerated.
45703         * tests/unictype/test-pr_xid_continue.c: Regenerated.
45704         * tests/unictype/test-pr_xid_start.c: Regenerated.
45705         * tests/unictype/test-pr_zero_width.c: Regenerated.
45706
45707         Update to Unicode 5.1.0.
45708         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
45709         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
45710         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
45711         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
45712         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
45713         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
45714         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
45715         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
45716         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
45717         (nonspacing_table_ind): Update.
45718         * tests/uniwidth/test-uc_width2.sh: Update expected result.
45719
45720         Update to Unicode 5.1.0.
45721         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
45722         code transform.
45723         * lib/uniname/uniname.c (unicode_character_name,
45724         unicode_name_character): Add the range 0x1Fxxx to the code transform.
45725         * lib/uniname/uninames.h: Regenerated.
45726         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
45727
45728 2009-02-07  Bruno Haible  <bruno@clisp.org>
45729
45730         Merge gen-ctype and gen-lbrk into a single program.
45731         * lib/gen-uni-tables.c: New file, incorporating
45732         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
45733         Add directory prefixes to the names of the generated files.
45734         * lib/unictype/gen-ctype.c: Remove file.
45735         * lib/unilbrk/gen-lbrk.c: Remove file.
45736         * modules/gen-uni-tables: New file.
45737         * modules/unictype/gen-ctype: Remove file.
45738         * modules/unilbrk/gen-lbrk: Remove file.
45739
45740 2009-02-07  Bruno Haible  <bruno@clisp.org>
45741
45742         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
45743
45744         New module 'unistr/u32-strcoll'.
45745         * modules/unistr/u32-strcoll: New file.
45746         * lib/unistr/u32-strcoll.c: New file.
45747
45748         New module 'unistr/u16-strcoll'.
45749         * modules/unistr/u16-strcoll: New file.
45750         * lib/unistr/u16-strcoll.c: New file.
45751
45752         New module 'unistr/u8-strcoll'.
45753         * modules/unistr/u8-strcoll: New file.
45754         * lib/unistr/u8-strcoll.c: New file.
45755         * lib/unistr/u-strcoll.h: New file.
45756
45757 2009-02-07  Bruno Haible  <bruno@clisp.org>
45758
45759         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
45760         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
45761         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
45762         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
45763         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
45764         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
45765
45766 2009-02-07  Bruno Haible  <bruno@clisp.org>
45767
45768         Make 64-bit clean.
45769         * lib/unictype/gen-ctype.c (output_predicate, output_category,
45770         output_combclass, output_bidi_category, output_decimal_digit,
45771         output_digit, output_numeric, output_mirror, output_scripts,
45772         output_ident_category): Use proper width specifier in format strings.
45773
45774 2009-02-07  Bruno Haible  <bruno@clisp.org>
45775
45776         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
45777         failure behaviour.
45778
45779 2009-02-07  Jim Meyering  <meyering@redhat.com>
45780
45781         regex: avoid compilation failure with upcoming gcc-4.4
45782         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
45783         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
45784         "... error: integer overflow in preprocessor expression".
45785
45786 2009-02-05  Ben Pfaff  <blp@gnu.org>
45787
45788         Fix link errors on Windows when close module is used.
45789         * modules/close: Add $(LIB_CLOSE) to Link section.
45790         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
45791         $(LIB_CLOSE) on Windows.
45792
45793 2009-02-05  Jim Meyering  <meyering@redhat.com>
45794
45795         still avoid unused-parameter warnings, but do it cleanly
45796         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
45797         (get_fs_usage): Cast to void instead.
45798         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
45799         (dev_from_mount_options, read_file_system_list): Cast to void.
45800         Prompted by Bruno Haible.
45801
45802 2009-02-04  Jim Meyering  <meyering@redhat.com>
45803
45804         fsusage.c: correct copyright year
45805         * lib/fsusage.c: Reflect year in which the change is pushed into
45806
45807         avoid misc. warnings
45808         * lib/fsusage.c (UNUSED_PARAM): Define.
45809         (get_fs_usage): Mark parameter "disk" as unused.
45810         * lib/getugroups.c (getgrent): Use "void" in prototype.
45811         * lib/mountlist.c: Mark unused parameters.
45812         (read_file_system_list): Declare a local with "const".
45813         * lib/nanosleep.c (getnow): Declare static.
45814         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
45815
45816         dirfd: set errno upon failure
45817         * lib/dirfd.c: Include <errno.h>.
45818         Set errno to ENOTSUP when returning -1.
45819         * modules/dirfd (Depends-on): Add errno.
45820         Suggested by John Kodis <kodis@comcast.net>.
45821
45822 2009-02-01  Bruno Haible  <bruno@clisp.org>
45823
45824         Don't assume sizeof (long) >= sizeof (void *).
45825         * lib/memcmp.c: Include stdint.h.
45826         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
45827         srcp2 to 'const byte *'.
45828         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
45829         types to uintptr_t.
45830         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
45831         * modules/memcmp (Depends-on): Add stdint.
45832         Reported by Ozkan Sezer <sezeroz@gmail.com>.
45833
45834 2009-01-30  Eric Blake  <ebb9@byu.net>
45835
45836         fix more require-before-expand issues
45837         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
45838         expand, AC_PROG_AWK.
45839         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
45840
45841 2009-01-28  Eric Blake  <ebb9@byu.net>
45842
45843         version-etc: use consistent URL formatting
45844         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
45845         Improve formatting.  Use fputs for string without %.
45846
45847 2009-01-28  Jim Meyering  <meyering@redhat.com>
45848
45849         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
45850         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
45851         "underquoted definition of NAME" from autoconf-2.59.
45852
45853 2009-01-28  Bruno Haible  <bruno@clisp.org>
45854
45855         * doc/gnulib.texi: Add "Obsolete modules" to index.
45856
45857 2009-01-28  Jim Meyering  <meyering@redhat.com>
45858
45859         useless-if-before-free: recognize more variants
45860         * build-aux/useless-if-before-free: Also recognize e.g.,
45861         if (NULL != p) free (p);
45862
45863 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
45864
45865         test-getaddrinfo: skip (don't fail) this test when there's no network
45866         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
45867         on the presumption that it means you lack network access.
45868
45869 2009-01-26  Jim Meyering  <meyering@redhat.com>
45870
45871         fflush: avoid warnings on modern systems
45872         * lib/fflush.c (rpl_fflush): Move declarations of locals,
45873         pos and result, into scopes where they're used.
45874
45875 2009-01-26  Eric Blake  <ebb9@byu.net>
45876
45877         Silence warning reintroduced by recent extensions patch.
45878         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
45879         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
45880         autoconf.
45881
45882         Backport improved autoconf semantics of AC_DEFUN_ONCE.
45883         * m4/00gnulib.m4: New file.
45884         * gnulib-tool (func_get_filelist): Always use it.
45885         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
45886         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
45887
45888 2009-01-25  Bruno Haible  <bruno@clisp.org>
45889
45890         Make test-quotearg work on MacOS X and AIX.
45891         * tests/test-quotearg.sh: New file.
45892         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
45893         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
45894         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
45895         include <libintl.h>.
45896         (fake_locale): Remove variable.
45897         (gettext, dgettext, dcgettext): Remove functions.
45898         (main): Instead of setting a fake locale, set a real locale. Call
45899         textdomain and bindtextdomain.
45900         * modules/quotearg-tests (Files): Add the new files.
45901         (Depends-on): Add gettext, setenv, unsetenv.
45902         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
45903         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
45904         Augment TESTS_ENVIRONMENT.
45905
45906 2009-01-25  Bruno Haible  <bruno@clisp.org>
45907
45908         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
45909         fr_FR.ISO8859-1 locale on MacOS X.
45910         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
45911         ja_JP.eucJP locale on MacOS X.
45912         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
45913         zh_CN.GB18030 locale on MacOS X.
45914
45915 2009-01-25  Bruno Haible  <bruno@clisp.org>
45916
45917         Avoid link errors on MacOS X 10.3.
45918         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
45919         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45920
45921 2009-01-25  Bruno Haible  <bruno@clisp.org>
45922
45923         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
45924         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
45925         * modules/pipe (Files): Remove m4/posix_spawn.m4.
45926         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
45927         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
45928         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
45929         posix_spawnattr_init, posix_spawnattr_setsigmask,
45930         posix_spawnattr_setflags, posix_spawnattr_destroy.
45931
45932         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
45933         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
45934         * modules/execute (Files): Remove m4/posix_spawn.m4.
45935         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
45936         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
45937         posix_spawnattr_init, posix_spawnattr_setsigmask,
45938         posix_spawnattr_setflags, posix_spawnattr_destroy.
45939
45940 2009-01-25  Bruno Haible  <bruno@clisp.org>
45941
45942         * lib/glthread/threadlib.c: Include <stdlib.h>.
45943
45944 2009-01-25  Bruno Haible  <bruno@clisp.org>
45945
45946         * lib/glthread/threadlib.c (dummy): New declaration.
45947
45948 2009-01-25  Bruno Haible  <bruno@clisp.org>
45949
45950         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
45951         multibyte characters also for the GB18030 encoding. Don't crash when
45952         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
45953
45954 2009-01-25  Bruno Haible  <bruno@clisp.org>
45955
45956         Avoid redefining 'struct random_data' on OSF/1 5.1.
45957         * lib/stdlib.in.h: Include <random.h> if it exists.
45958         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
45959         HAVE_RANDOM_H. Include <random.h> when testing whether
45960         'struct random_data' exists.
45961         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
45962
45963 2009-01-25  Bruno Haible  <bruno@clisp.org>
45964
45965         Don't install charset.alias on MacOS X >= 10.3.
45966         * lib/localcharset.c (DARWIN7): New macro.
45967         (get_charset_aliases): Hardcode the result for Darwin7.
45968         * modules/localcharset (install-exec-local): Don't install
45969         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
45970
45971 2009-01-25  Bruno Haible  <bruno@clisp.org>
45972
45973         Don't install charset.alias on mingw and Cygwin.
45974         * modules/localcharset (install-exec-local): Don't install
45975         charset.alias on mingw and Cygwin, if the file does not yet exist.
45976         The result for these platforms is hardcoded in localcharset.c.
45977
45978 2009-01-25  Bruno Haible  <bruno@clisp.org>
45979
45980         Make it possible again to use AC_GNU_SOURCE together with gnulib.
45981         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
45982         before requiring AC_USE_SYSTEM_EXTENSIONS.
45983
45984 2009-01-25  Jim Meyering  <meyering@redhat.com>
45985
45986         c-strtod: avoid warnings
45987         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
45988         "assignment discards qualifiers from pointer target type" warnings.
45989
45990 2009-01-24  Bruno Haible  <bruno@clisp.org>
45991
45992         Add support for non-UTF-8 locales on MacOS X.
45993         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
45994         canonical encodings. For Darwin 7 and newer, don't map traditional
45995         encodings to UTF-8.
45996         Reported by Vincent Lefevre <vincent@vinc17.org>
45997         at <http://savannah.gnu.org/bugs/?25235>.
45998
45999 2009-01-24  Bruno Haible  <bruno@clisp.org>
46000
46001         * doc/gnulib.texi (Obsolete modules): New section.
46002         Reported by Mike Frysinger <vapier@gentoo.org>.
46003
46004 2009-01-24  Bruno Haible  <bruno@clisp.org>
46005
46006         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46007         (%.dvi): New rule.
46008
46009 2009-01-24  Bruno Haible  <bruno@clisp.org>
46010
46011         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
46012         Reported by Eric Blake.
46013
46014 2009-01-24  Bruno Haible  <bruno@clisp.org>
46015
46016         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
46017         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
46018         Reported by Gary V. Vaughan <gary@gnu.org>.
46019
46020 2009-01-24  Bruno Haible  <bruno@clisp.org>
46021
46022         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
46023
46024 2009-01-23  Bruno Haible  <bruno@clisp.org>
46025
46026         Make c-strtod, c-strtold usable in libraries.
46027         * lib/c-strtod.c: Include string.h instead of xalloc.h.
46028         (C_STRTOD): Call strdup instead of xstrdup.
46029         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
46030         * modules/c-strtold (Depends-on): Likewise.
46031         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
46032         * NEWS: Mention the change.
46033         Reported by Michael Gold <mgold@ncf.ca>.
46034
46035 2009-01-23  Jim Meyering  <meyering@redhat.com>
46036
46037         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
46038         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
46039         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
46040
46041 2009-01-23  Simon Josefsson  <simon@josefsson.org>
46042
46043         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
46044         GNU CoreUtils.
46045         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
46046         * modules/version-etc (Description): Update.
46047
46048 2009-01-22  Bruno Haible  <bruno@clisp.org>
46049
46050         Cache the C locale object.
46051         * lib/c-strtod.c (c_locale_cache): New variable.
46052         (c_locale): New function.
46053         (C_STRTOD): Use it, and don't call freelocale.
46054         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
46055         Suggested by Paolo Bonzini.
46056
46057 2009-01-21  Bruno Haible  <bruno@clisp.org>
46058
46059         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
46060         conditions other than overflow.
46061
46062 2009-01-21  Bruno Haible  <bruno@clisp.org>
46063
46064         * lib/c-strtod.c: Include errno.h.
46065         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
46066         value from STRTOD_L and STRTOD.
46067
46068 2009-01-21  Bruno Haible  <bruno@clisp.org>
46069         and Jim Meyering  <meyering@redhat.com>
46070
46071         nanosleep: skip configure test (fail it) for apple universal builds
46072         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
46073         universal builds, assume that nanosleep does not work.
46074         * modules/nanosleep (Depends-on): Add multiarch.
46075
46076         mktime: skip configure test (fail it) for apple universal builds
46077         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
46078         universal builds, assume that mktime does not work.
46079         * modules/mktime (Depends-on): Add multiarch.
46080
46081 2009-01-21  Eric Blake  <ebb9@byu.net>
46082
46083         multiarch: avoid expand-before-require warning
46084         * modules/multiarch (configure.ac): Require, rather than expand,
46085         gl_MULTIARCH.
46086         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
46087         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
46088         enforce that all clients require it.  Partial reversion of
46089         2008-12-29 patch.
46090
46091         error: avoid expand-before-require warning
46092         * modules/errno (configure.ac): Require, rather than expand,
46093         gl_HEADER_ERRNO_H.
46094         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
46095         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
46096         enforce that all clients require it.
46097
46098         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
46099         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
46100         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
46101         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
46102
46103 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
46104
46105         Revert:
46106         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46107
46108         regex: do not depend on obsolete modules.
46109         * modules/regex: Remove memcmp and memmove.
46110
46111 2009-01-20  Bruno Haible  <bruno@clisp.org>
46112
46113         Make the 'link' module link on Windows NT 4.
46114         * lib/link.c (_WIN32_WINNT): Don't define.
46115         (CreateHardLinkFuncType): New type.
46116         (CreateHardLinkFunc, initialized): New variables.
46117         (initialize): New function.
46118         (link): Invoke CreateHardLink indirectly through the function pointer.
46119
46120 2009-01-20  Bruno Haible  <bruno@clisp.org>
46121
46122         Fix compilation failure on mingw.
46123         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
46124
46125 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
46126
46127         * doc/c-strtod.texi: Mention a couple of restrictions.
46128
46129 2009-01-20  Jim Meyering  <meyering@redhat.com>
46130
46131         gettimeofday: move more declarations out of functions
46132         * lib/gettimeofday.c: Move extern declarations of tzset and
46133         gmtime out of containing functions.  Prompted by Bruno Haible.
46134
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-19  Bruno Haible  <bruno@clisp.org>
46141
46142         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46143         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
46144         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46145         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
46146         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
46147
46148 2009-01-19  Bruno Haible  <bruno@clisp.org>
46149
46150         * tests/test-link.c: Include <errno.h>.
46151         (main): Exit with code 77 when a hard link cannot be created due to
46152         the file system.
46153         * tests/test-link.sh: Skip test when a hard link cannot be created due
46154         to the file system.
46155         Suggested by Eric Blake.
46156
46157 2009-01-19  Martin Lambers  <marlam@marlam.de>
46158
46159         * modules/link-tests: New file.
46160         * tests/test-link.sh: New file.
46161         * tests/test-link.c: New file.
46162
46163 2009-01-19  Eric Blake  <ebb9@byu.net>
46164
46165         doc: mention another function added in cygwin 1.7.0
46166         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
46167         Another new function in cygwin 1.7.
46168
46169 2009-01-19  Bruno Haible  <bruno@clisp.org>
46170
46171         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46172         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
46173         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
46174         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46175         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46176         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
46177         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46178         * m4/md4.m4 (gl_MD4): Likewise.
46179         * m4/md5.m4 (gl_MD5): Likewise.
46180         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
46181         * m4/sha1.m4 (gl_SHA1): Likewise.
46182         * m4/sha256.m4 (gl_SHA256): Likewise.
46183         * m4/sha512.m4 (gl_SHA512): Likewise.
46184
46185 2009-01-19  Bruno Haible  <bruno@clisp.org>
46186
46187         * modules/uniname/uniname-tests (Depends-on): Add progname.
46188         * tests/uniname/test-uninames.c: Include progname.h.
46189         (main): Call set_program_name.
46190
46191         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
46192         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
46193         (main): Call set_program_name.
46194
46195         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
46196         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
46197         (main): Call set_program_name.
46198
46199         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
46200         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
46201         (main): Call set_program_name.
46202
46203         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
46204         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
46205         (main): Call set_program_name.
46206
46207         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
46208         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
46209         (main): Call set_program_name.
46210
46211         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
46212         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
46213         (main): Call set_program_name.
46214
46215         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
46216         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
46217         (main): Call set_program_name.
46218
46219         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
46220         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
46221         (main): Call set_program_name.
46222
46223 2009-01-19  Eric Blake  <ebb9@byu.net>
46224
46225         test-unistd: test previous patch
46226         * tests/test-unistd.c: Test *_FILENO macros.
46227
46228         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
46229         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46230         Guarantee a definition.
46231         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
46232         * modules/unistd-safer (Depends-on): Add dependency on unistd.
46233         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
46234         * lib/dup-safer.c (STDERR_FILENO): Likewise.
46235         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46236         Likewise.
46237         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
46238         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
46239         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46240         Likewise.
46241         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
46242         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
46243         (STDERR_FILENO): Likewise.
46244         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
46245         (STDERR_FILENO): Likewise.
46246         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
46247         (STDERR_FILENO): Likewise.
46248         Reported by Elbert Pol.
46249
46250 2009-01-19  Eric Blake  <ebb9@byu.net>
46251
46252         doc: mention more functions added in cygwin 1.7.0
46253         * doc/posix-functions/abort.texi (abort): Update wording related
46254         to cygwin.
46255         * doc/posix-functions/daylight.texi (daylight): Likewise.
46256         * doc/posix-functions/optarg.texi (optarg): Likewise.
46257         * doc/posix-functions/optarg.texi (opterr): Likewise.
46258         * doc/posix-functions/optarg.texi (optind): Likewise.
46259         * doc/posix-functions/optarg.texi (optopt): Likewise.
46260         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
46261         worked in 1.5.x, and was withdrawn in 1.7.
46262         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
46263         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
46264         cygwin versions.
46265         * doc/posix-functions/perror.texi (perror): Likewise.
46266         * doc/posix-functions/printf.texi (printf): Likewise.
46267         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
46268         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
46269         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
46270         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
46271         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46272         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
46273         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
46274         Likewise.
46275         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
46276         Likewise.
46277         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
46278         this function.
46279         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
46280         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
46281         Likewise.
46282         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
46283         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
46284         * doc/posix-functions/confstr.texi (confstr): Likewise.
46285         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
46286         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
46287         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
46288         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
46289         * doc/posix-functions/fputws.texi (fputws): Likewise.
46290         * doc/posix-functions/fwide.texi (fwide): Likewise.
46291         * doc/posix-functions/getwc.texi (getwc): Likewise.
46292         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
46293         * doc/posix-functions/putwc.texi (putwc): Likewise.
46294         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
46295         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
46296         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
46297         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
46298         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
46299         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
46300         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
46301         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
46302         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
46303         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
46304         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
46305
46306 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46307
46308         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
46309         * lib/ioctl.c: Include <sys/ioctl.h>.
46310
46311 2009-01-19  Simon Josefsson  <simon@josefsson.org>
46312
46313         * modules/getdate-tests (Depends-on): Add progname.
46314         * tests/test-getdate.c: Use progname module, to avoid link errors
46315         on non-glibc systems.
46316
46317 2009-01-18  Simon Josefsson  <simon@josefsson.org>
46318
46319         * modules/filenamecat-tests (Depends-on): Add progname.
46320         * modules/fstrcmp-tests (Depends-on): Likewise.
46321
46322         * tests/test-filenamecat.c: Use progname module, to avoid link
46323         errors on non-glibc systems.
46324         * tests/test-fstrcmp.c: Likewise.
46325
46326 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46327
46328         gettimeofday: avoid warning: nested extern declaration of 'localtime'
46329         * lib/gettimeofday.c: Move extern declaration out of function.
46330
46331 2009-01-18  Bruno Haible  <bruno@clisp.org>
46332
46333         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
46334         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
46335         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
46336
46337 2009-01-18  Bruno Haible  <bruno@clisp.org>
46338
46339         * lib/strftime.c (MEMPCPY): Remove unused macro.
46340         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
46341
46342 2009-01-18  Martin Lambers  <marlam@marlam.de>
46343
46344         New module 'link'.
46345         * lib/unistd.in.h (link): New declaration.
46346         * lib/link.c: New file.
46347         * m4/link.m4: New file.
46348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
46349         HAVE_LINK.
46350         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
46351         * modules/link: New file.
46352         * doc/posix-functions/link.texi: Mention the new module.
46353
46354 2009-01-18  Bruno Haible  <bruno@clisp.org>
46355
46356         * tests/test-avltree_list.c (main): Call set_program_name.
46357         * tests/test-avltree_oset.c (main): Likewise.
46358         * tests/test-obstack-printf.c: Include progname.h.
46359         (main): Call set_program_name.
46360         * tests/test-quotearg.c: Include progname.h.
46361         (main): Call set_program_name.
46362         * tests/test-xmemdup0.c: Include progname.h.
46363         (main): Call set_program_name.
46364
46365 2009-01-18  Bruno Haible  <bruno@clisp.org>
46366
46367         New module 'alphasort'.
46368         * lib/dirent.in.h (alphasort): New declaration.
46369         * lib/alphasort.c: New file, from glibc with modifications.
46370         * m4/alphasort.m4: New file.
46371         * modules/alphasort: New file.
46372         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
46373         HAVE_ALPHASORT.
46374         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
46375         HAVE_ALPHASORT.
46376         * doc/posix-functions/alphasort.texi: Mention the new module and the
46377         portability problems.
46378
46379 2009-01-18  Bruno Haible  <bruno@clisp.org>
46380
46381         New module 'scandir'.
46382         * lib/dirent.in.h (scandir): New declaration.
46383         * lib/scandir.c: New file, from glibc with modifications.
46384         * m4/scandir.m4: New file.
46385         * modules/scandir: New file.
46386         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
46387         HAVE_SCANDIR.
46388         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
46389         HAVE_SCANDIR.
46390         * doc/posix-functions/scandir.texi: Mention the new module and the
46391         portability problems.
46392
46393 2009-01-17  Bruno Haible  <bruno@clisp.org>
46394
46395         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
46396         Update documentation.
46397         (func_remove_suffix): Escape all dots in the suffix. Update
46398         documentation.
46399         (func_filter_filelist): Update documentation.
46400         Reported by Ralf Wildenhues.
46401
46402 2009-01-17  Bruno Haible  <bruno@clisp.org>
46403
46404         * modules/dprintf-posix-tests: New file.
46405         * tests/test-dprintf-posix.sh: New file.
46406         * tests/test-dprintf-posix.c: New file.
46407
46408         New modules 'dprintf', 'dprintf-posix'.
46409         * lib/stdio.in.h (dprintf): New declaration.
46410         * lib/dprintf.c: New file.
46411         * m4/dprintf.m4: New file.
46412         * m4/dprintf-posix.m4: New file.
46413         * modules/dprintf: New file.
46414         * modules/dprintf-posix: New file.
46415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
46416         HAVE_DPRINTF, REPLACE_DPRINTF.
46417         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
46418         HAVE_DPRINTF, REPLACE_DPRINTF.
46419         * doc/posix-functions/dprintf.texi: Mention the new modules.
46420
46421 2009-01-17  Bruno Haible  <bruno@clisp.org>
46422
46423         * modules/vdprintf-posix-tests: New file.
46424         * tests/test-vdprintf-posix.sh: New file.
46425         * tests/test-vdprintf-posix.c: New file.
46426
46427         New modules 'vdprintf', 'vdprintf-posix'.
46428         * lib/stdio.in.h (vdprintf): New declaration.
46429         * lib/vdprintf.c: New file.
46430         * m4/vdprintf.m4: New file.
46431         * m4/vdprintf-posix.m4: New file.
46432         * modules/vdprintf: New file.
46433         * modules/vdprintf-posix: New file.
46434         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
46435         HAVE_VDPRINTF, REPLACE_VDPRINTF.
46436         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
46437         HAVE_VDPRINTF, REPLACE_VDPRINTF.
46438         * doc/posix-functions/vdprintf.texi: Mention the new modules.
46439
46440 2009-01-17  Bruno Haible  <bruno@clisp.org>
46441
46442         Fix replacement of fopen on mingw.
46443         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
46444         mingw.
46445
46446 2009-01-17  Bruno Haible  <bruno@clisp.org>
46447
46448         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
46449         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
46450
46451 2009-01-17  Bruno Haible  <bruno@clisp.org>
46452
46453         Avoid test-fflush2.sh failure on mingw.
46454         * tests/test-fflush2.c: Include binary-io.h.
46455         (main): Put standard input into binary mode.
46456         * modules/fflush-tests (Depends-on): Add binary-io.
46457
46458 2009-01-17  Bruno Haible  <bruno@clisp.org>
46459
46460         * lib/wchar.in.h: In another particular situation, include only the
46461         system's <wchar.h> file.
46462         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
46463         Reported by Albert Chin-A-Young <china@thewrittenword.com>
46464         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
46465
46466 2009-01-17  Bruno Haible  <bruno@clisp.org>
46467
46468         Support for stripping executables in --enable-relocatable.
46469         * build-aux/install-reloc: Expect one more argument, or an environment
46470         variable RELOC_STRIP_PROG. If set, strip the destination program and
46471         its wrapper.
46472         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
46473         RELOC_STRIP_PROG.
46474         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
46475         to set RELOCATABLE_STRIP.
46476         * NEWS: Mention the new Makefile requirement.
46477
46478 2009-01-17  Bruno Haible  <bruno@clisp.org>
46479
46480         * build-aux/install-reloc: Remove debugging information left over by
46481         C compiler on MacOS X.
46482
46483 2009-01-17  Bruno Haible  <bruno@clisp.org>
46484
46485         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
46486         * lib/progreloc.c (find_executable): Fix type of pointer passed to
46487         _NSGetExecutablePath.
46488
46489 2009-01-16  Jim Meyering  <meyering@redhat.com>
46490
46491         strerror: avoid warnings about discarding "const"
46492         * lib/strerror.c (rpl_strerror): Instead of returning a const
46493         string from each and every "case", use a variable, and add a single
46494         cast after the switch.
46495
46496 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
46497
46498         * lib/arpa_inet.in.h: Add extern "C" block for C++.
46499
46500 2009-01-16  Bruno Haible  <bruno@clisp.org>
46501
46502         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
46503         array initializer syntax that also works in C++ mode.
46504         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46505
46506 2009-01-16  Jim Meyering  <meyering@redhat.com>
46507
46508         poll: suppress a warning
46509         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
46510         to ignore "...unsigned expression < 0 is always false" warnings.
46511
46512 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
46513
46514         poll: remove declarations of unused variables
46515         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
46516         sockbuf and optlen.
46517
46518 2009-01-15  Bruno Haible  <bruno@clisp.org>
46519
46520         Make fflush-after-ungetc POSIX compliant on BSD systems.
46521         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
46522         (clear_ungetc_buffer): Implement also for other systems.
46523         (rpl_fflush): On glibc systems, invoke
46524         clear_ungetc_buffer_preserving_position. Otherwise, invoke
46525         clear_ungetc_buffer after fetching the stream's position, not before.
46526
46527 2009-01-15  Bruno Haible  <bruno@clisp.org>
46528
46529         Make fflush-after-ungetc POSIX compliant on glibc systems.
46530         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
46531         after ungetc.
46532         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
46533         (rpl_fflush): On glibc systems, simply call the system's fflush
46534         function after clearing the ungetc buffer.
46535         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
46536         Instead, lseek only to the end of file, then use the system's fseeko
46537         for the rest. On glibc systems, reset the EOF indicator bit.
46538
46539 2009-01-15  Jim Meyering  <meyering@redhat.com>
46540
46541         openmp.m4: revert quote-adding change, for portability to older autoconf
46542         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
46543         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
46544         Simon Josefsson noticed the problem when using autoconf-2.61.
46545
46546 2009-01-15  Bruno Haible  <bruno@clisp.org>
46547
46548         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
46549         * tests/test-fflush2.c (ASSERT): Always fail.
46550         (main): Add two tests for fflush() after ungetc(), taking into account
46551         the Austin Group's clarification.
46552         Suggested by Eric Blake.
46553
46554 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
46555
46556         mktime.m4: remove K&R-style function prototypes
46557         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
46558         for the Sun C++ compiler.
46559
46560 2009-01-14  Bruno Haible  <bruno@clisp.org>
46561
46562         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
46563         while including <wchar.h>.
46564         * lib/wchar.in.h: In two particular situations on HP-UX, include only
46565         the system's <wchar.h> file.
46566         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46567
46568 2009-01-14  Bruno Haible  <bruno@clisp.org>
46569
46570         * m4/csharp.m4: Don't mention gettext on the serial number line.
46571         * m4/csharpexec.m4: Likewise.
46572         * m4/eaccess.m4: Likewise.
46573         * m4/javaexec.m4: Likewise.
46574         * m4/sig_atomic_t.m4: Likewise.
46575         * m4/tmpdir.m4: Likewise.
46576         * m4/intldir.m4: Bump gettext version.
46577         * m4/lib-ld.m4: Likewise.
46578
46579 2009-01-14  Bruno Haible  <bruno@clisp.org>
46580
46581         * lib/progname.c (set_program_name): Add more comments.
46582         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
46583
46584 2009-01-14  Simon Josefsson  <simon@josefsson.org>
46585
46586         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
46587         were sys/stat.h does not define it.
46588
46589 2009-01-14  Jim Meyering  <meyering@redhat.com>
46590
46591         many *.m4 files: improve m4 quoting
46592         99% of this change was performed by running the following commands:
46593         git ls-files | grep '\.m4$' | xargs perl -pi \
46594           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
46595           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
46596           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
46597           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
46598         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
46599         The remainder were to add Copyright dates, increment serial numbers,
46600         undo some changes in comments, exclude m4/intl.m4, and add quotes
46601         around the "1" in ",1" where the unusual spacing prohibited the
46602         above regexps from doing the job.  For more details, see
46603         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
46604         * m4/acl.m4: Modified.
46605         * m4/afs.m4: Likewise.
46606         * m4/alloca.m4: Likewise.
46607         * m4/argp.m4: Likewise.
46608         * m4/argz.m4: Likewise.
46609         * m4/atexit.m4: Likewise.
46610         * m4/bison-i18n.m4: Likewise.
46611         * m4/bison.m4: Likewise.
46612         * m4/byteswap.m4: Likewise.
46613         * m4/c-stack.m4: Likewise.
46614         * m4/c-strtod.m4: Likewise.
46615         * m4/calloc.m4: Likewise.
46616         * m4/canonicalize-lgpl.m4: Likewise.
46617         * m4/chown.m4: Likewise.
46618         * m4/clock_time.m4: Likewise.
46619         * m4/codeset.m4: Likewise.
46620         * m4/copy-file.m4: Likewise.
46621         * m4/csharp.m4: Likewise.
46622         * m4/csharpcomp.m4: Likewise.
46623         * m4/csharpexec.m4: Likewise.
46624         * m4/d-ino.m4: Likewise.
46625         * m4/d-type.m4: Likewise.
46626         * m4/dirfd.m4: Likewise.
46627         * m4/double-slash-root.m4: Likewise.
46628         * m4/eaccess.m4: Likewise.
46629         * m4/eealloc.m4: Likewise.
46630         * m4/environ.m4: Likewise.
46631         * m4/errno_h.m4: Likewise.
46632         * m4/euidaccess.m4: Likewise.
46633         * m4/execute.m4: Likewise.
46634         * m4/fatal-signal.m4: Likewise.
46635         * m4/fchdir.m4: Likewise.
46636         * m4/fcntl_h.m4: Likewise.
46637         * m4/fileblocks.m4: Likewise.
46638         * m4/filenamecat.m4: Likewise.
46639         * m4/findprog.m4: Likewise.
46640         * m4/flexmember.m4: Likewise.
46641         * m4/fnmatch.m4: Likewise.
46642         * m4/fopen.m4: Likewise.
46643         * m4/fpending.m4: Likewise.
46644         * m4/fprintf-posix.m4: Likewise.
46645         * m4/free.m4: Likewise.
46646         * m4/frexp.m4: Likewise.
46647         * m4/frexpl.m4: Likewise.
46648         * m4/fsusage.m4: Likewise.
46649         * m4/ftruncate.m4: Likewise.
46650         * m4/gc-camellia.m4: Likewise.
46651         * m4/gc-random.m4: Likewise.
46652         * m4/gc.m4: Likewise.
46653         * m4/getaddrinfo.m4: Likewise.
46654         * m4/getcwd-abort-bug.m4: Likewise.
46655         * m4/getcwd-path-max.m4: Likewise.
46656         * m4/getdate.m4: Likewise.
46657         * m4/getdomainname.m4: Likewise.
46658         * m4/getgroups.m4: Likewise.
46659         * m4/gethostname.m4: Likewise.
46660         * m4/gethrxtime.m4: Likewise.
46661         * m4/getline.m4: Likewise.
46662         * m4/getloadavg.m4: Likewise.
46663         * m4/getndelim2.m4: Likewise.
46664         * m4/getpass.m4: Likewise.
46665         * m4/gettext.m4: Likewise.
46666         * m4/gettime.m4: Likewise.
46667         * m4/gettimeofday.m4: Likewise.
46668         * m4/gnulib-common.m4: Likewise.
46669         * m4/group-member.m4: Likewise.
46670         * m4/host-os.m4: Likewise.
46671         * m4/iconv.m4: Likewise.
46672         * m4/iconv_open.m4: Likewise.
46673         * m4/inet_ntop.m4: Likewise.
46674         * m4/inet_pton.m4: Likewise.
46675         * m4/inline.m4: Likewise.
46676         * m4/intldir.m4: Likewise.
46677         * m4/intlmacosx.m4: Likewise.
46678         * m4/intmax.m4: Likewise.
46679         * m4/intmax_t.m4: Likewise.
46680         * m4/inttypes.m4: Likewise.
46681         * m4/inttypes_h.m4: Likewise.
46682         * m4/inttypes-pri.m4: Likewise.
46683         * m4/isapipe.m4: Likewise.
46684         * m4/isnand.m4: Likewise.
46685         * m4/isnanf.m4: Likewise.
46686         * m4/isnanl.m4: Likewise.
46687         * m4/javacomp.m4: Likewise.
46688         * m4/javaexec.m4: Likewise.
46689         * m4/jm-winsz1.m4: Likewise.
46690         * m4/jm-winsz2.m4: Likewise.
46691         * m4/lchown.m4: Likewise.
46692         * m4/lcmessage.m4: Likewise.
46693         * m4/ldexpl.m4: Likewise.
46694         * m4/lib-ld.m4: Likewise.
46695         * m4/lib-link.m4: Likewise.
46696         * m4/libsigsegv.m4: Likewise.
46697         * m4/link-follow.m4: Likewise.
46698         * m4/localcharset.m4: Likewise.
46699         * m4/locale-fr.m4: Likewise.
46700         * m4/locale-ja.m4: Likewise.
46701         * m4/locale-tr.m4: Likewise.
46702         * m4/locale-zh.m4: Likewise.
46703         * m4/lock.m4: Likewise.
46704         * m4/longlong.m4: Likewise.
46705         * m4/ls-mntd-fs.m4: Likewise.
46706         * m4/lstat.m4: Likewise.
46707         * m4/malloc.m4: Likewise.
46708         * m4/mathl.m4: Likewise.
46709         * m4/mbrtowc.m4: Likewise.
46710         * m4/mbstate_t.m4: Likewise.
46711         * m4/mbswidth.m4: Likewise.
46712         * m4/memchr.m4: Likewise.
46713         * m4/memcmp.m4: Likewise.
46714         * m4/memcpy.m4: Likewise.
46715         * m4/memmem.m4: Likewise.
46716         * m4/memmove.m4: Likewise.
46717         * m4/mempcpy.m4: Likewise.
46718         * m4/memrchr.m4: Likewise.
46719         * m4/memset.m4: Likewise.
46720         * m4/minmax.m4: Likewise.
46721         * m4/mkdir-slash.m4: Likewise.
46722         * m4/mkdtemp.m4: Likewise.
46723         * m4/mktime.m4: Likewise.
46724         * m4/mmap-anon.m4: Likewise.
46725         * m4/mountlist.m4: Likewise.
46726         * m4/nanosleep.m4: Likewise.
46727         * m4/nls.m4: Likewise.
46728         * m4/nocrash.m4: Likewise.
46729         * m4/open.m4: Likewise.
46730         * m4/openat.m4: Likewise.
46731         * m4/openmp.m4: Likewise.
46732         * m4/pathmax.m4: Likewise.
46733         * m4/perl.m4: Likewise.
46734         * m4/physmem.m4: Likewise.
46735         * m4/pipe.m4: Likewise.
46736         * m4/po.m4: Likewise.
46737         * m4/poll.m4: Likewise.
46738         * m4/posixtm.m4: Likewise.
46739         * m4/posixver.m4: Likewise.
46740         * m4/printf-frexp.m4: Likewise.
46741         * m4/printf-frexpl.m4: Likewise.
46742         * m4/printf-posix.m4: Likewise.
46743         * m4/printf-posix-rpl.m4: Likewise.
46744         * m4/printf.m4: Likewise.
46745         * m4/progtest.m4: Likewise.
46746         * m4/putenv.m4: Likewise.
46747         * m4/readline.m4: Likewise.
46748         * m4/readlink.m4: Likewise.
46749         * m4/readutmp.m4: Likewise.
46750         * m4/realloc.m4: Likewise.
46751         * m4/regex.m4: Likewise.
46752         * m4/relocatable.m4: Likewise.
46753         * m4/relocatable-lib.m4: Likewise.
46754         * m4/rename-dest-slash.m4: Likewise.
46755         * m4/rename.m4: Likewise.
46756         * m4/rmdir-errno.m4: Likewise.
46757         * m4/rmdir.m4: Likewise.
46758         * m4/roundf.m4: Likewise.
46759         * m4/roundl.m4: Likewise.
46760         * m4/rpmatch.m4: Likewise.
46761         * m4/save-cwd.m4: Likewise.
46762         * m4/selinux-selinux-h.m4: Likewise.
46763         * m4/setenv.m4: Likewise.
46764         * m4/settime.m4: Likewise.
46765         * m4/sig2str.m4: Likewise.
46766         * m4/sig_atomic_t.m4: Likewise.
46767         * m4/signalblocking.m4: Likewise.
46768         * m4/signbit.m4: Likewise.
46769         * m4/sigpipe.m4: Likewise.
46770         * m4/sockets.m4: Likewise.
46771         * m4/sockpfaf.m4: Likewise.
46772         * m4/st_dm_mode.m4: Likewise.
46773         * m4/stat-time.m4: Likewise.
46774         * m4/stdbool.m4: Likewise.
46775         * m4/stdint.m4: Likewise.
46776         * m4/stdint_h.m4: Likewise.
46777         * m4/stpcpy.m4: Likewise.
46778         * m4/stpncpy.m4: Likewise.
46779         * m4/strcase.m4: Likewise.
46780         * m4/strchrnul.m4: Likewise.
46781         * m4/strcspn.m4: Likewise.
46782         * m4/strdup.m4: Likewise.
46783         * m4/strftime.m4: Likewise.
46784         * m4/strndup.m4: Likewise.
46785         * m4/strnlen.m4: Likewise.
46786         * m4/strpbrk.m4: Likewise.
46787         * m4/strptime.m4: Likewise.
46788         * m4/strsep.m4: Likewise.
46789         * m4/strtod.m4: Likewise.
46790         * m4/strtoimax.m4: Likewise.
46791         * m4/strtok_r.m4: Likewise.
46792         * m4/strtol.m4: Likewise.
46793         * m4/strtoll.m4: Likewise.
46794         * m4/strtoul.m4: Likewise.
46795         * m4/strtoull.m4: Likewise.
46796         * m4/strtoumax.m4: Likewise.
46797         * m4/strverscmp.m4: Likewise.
46798         * m4/threadlib.m4: Likewise.
46799         * m4/timegm.m4: Likewise.
46800         * m4/tm_gmtoff.m4: Likewise.
46801         * m4/tmpdir.m4: Likewise.
46802         * m4/tmpfile.m4: Likewise.
46803         * m4/tzset.m4: Likewise.
46804         * m4/uintmax_t.m4: Likewise.
46805         * m4/unlinkdir.m4: Likewise.
46806         * m4/unlocked-io.m4: Likewise.
46807         * m4/uptime.m4: Likewise.
46808         * m4/userspec.m4: Likewise.
46809         * m4/utimbuf.m4: Likewise.
46810         * m4/utime.m4: Likewise.
46811         * m4/utimes-null.m4: Likewise.
46812         * m4/utimes.m4: Likewise.
46813         * m4/vararrays.m4: Likewise.
46814         * m4/vasnprintf.m4: Likewise.
46815         * m4/vfprintf-posix.m4: Likewise.
46816         * m4/vprintf-posix.m4: Likewise.
46817         * m4/wait-process.m4: Likewise.
46818         * m4/wchar_t.m4: Likewise.
46819         * m4/wint_t.m4: Likewise.
46820         * m4/write-any-file.m4: Likewise.
46821         * m4/yield.m4: Likewise.
46822
46823 2009-01-13  Bruno Haible  <bruno@clisp.org>
46824
46825         Avoid test-copy-file.sh failures when ACL support insufficient.
46826         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
46827         TESTS_ENVIRONMENT.
46828         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
46829         Reported by Jim Meyering.
46830
46831 2009-01-13  Bruno Haible  <bruno@clisp.org>
46832
46833         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
46834         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
46835         * modules/unistdio/u8-printf-parse (Files): Likewise.
46836         * modules/unistdio/u32-printf-parse (Files): Likewise.
46837         * modules/unistdio/ulc-printf-parse (Files): Likewise.
46838
46839 2009-01-13  Simon Josefsson  <simon@josefsson.org>
46840
46841         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
46842         and m4/inttypes_h.m4 too.
46843
46844 2009-01-12  Eric Blake  <ebb9@byu.net>
46845
46846         tests: IRIX 6.2 cc can't compile -0.0 into .data
46847         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
46848         rather than at compile-time.
46849         * tests/test-floorl.c (minus_zero): Likewise.
46850         * tests/test-frexpl.c (minus_zero): Likewise.
46851         * tests/test-isnan.c (minus_zerol): Likewise.
46852         * tests/test-isnanl.h (minus_zero): Likewise.
46853         * tests/test-ldexpl.c (minus_zero): Likewise.
46854         * tests/test-roundl.c (minus_zero): Likewise.
46855         * tests/test-signbit.c (minus_zerol): Likewise.
46856         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46857         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46858         * tests/test-truncl.c (minus_zero): Likewise.
46859         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46860         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46861         Reported by Tom G. Christensen and Nelson H. F. Beebe.
46862
46863 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
46864
46865         regex: fix glibc bug 9697
46866         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
46867         handling.
46868
46869 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
46870
46871         regex: fix glibc bug 697
46872         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
46873         being NULL also if there are no backreferences.
46874
46875 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
46876
46877         regex: merge glibc changes
46878         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
46879         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
46880         re_string_skip_chars, re_string_reconstruct): Likewise.
46881         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
46882
46883 2009-01-07  Jim Meyering  <meyering@redhat.com>
46884
46885         poll: filter through cppi
46886         * lib/poll.c: Indent cpp directives to reflect nesting.
46887
46888 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
46889
46890         poll: don't return uninitialized
46891         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
46892
46893 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
46894
46895         avoid compile failure on AIX 6.1
46896         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
46897         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
46898
46899 2009-01-04  Jim Meyering  <meyering@redhat.com>
46900
46901         remove duplicate inclusion of <stdio.h>
46902         * tests/test-fprintf-posix.c: Likewise.
46903         * tests/test-printf-posix.c: Likewise.
46904         * tests/test-snprintf-posix.c: Likewise.
46905         * tests/test-sprintf-posix.c: Likewise.
46906         * tests/test-vasprintf-posix.c: Likewise.
46907         * tests/test-vfprintf-posix.c: Likewise.
46908         * tests/test-vprintf-posix.c: Likewise.
46909         * tests/test-vsnprintf-posix.c: Likewise.
46910         * tests/test-vsprintf-posix.c: Likewise.
46911
46912 2009-01-03  Jim Meyering  <meyering@redhat.com>
46913
46914         gnulib-tool: fix sed-based filtering
46915         * gnulib-tool (func_filter_filelist): Remove extra backslash
46916         in sed_fff_filter definition.
46917
46918 2009-01-02  Jim Meyering  <meyering@redhat.com>
46919
46920         strftime: avoid compilation failure on Solaris 2.6
46921         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
46922         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
46923         Don't #define mbrlen or mbsinit, since now they're guaranteed to
46924         be available.  Reported by Tom G. Christensen.  Details in
46925         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
46926
46927 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46928             Bruno Haible  <bruno@clisp.org>
46929
46930         Speed up gnulib-tool by doing more string processing through shell
46931         built-ins.
46932         * gnulib-tool (fast_func_append): New variable.
46933         (func_remove_prefix, func_remove_suffix): New functions.
46934         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
46935         (func_filter_filelist): New function.
46936         (func_get_dependencies): Use func_remove_suffix instead of sed.
46937         (func_get_automake_snippet): Use func_filter_filelist instead of a
46938         subshell and sed invocation.
46939
46940 2009-01-01  Bruno Haible  <bruno@clisp.org>
46941
46942         Fix a security bug.
46943         * gnulib-tool (func_import, import, update): Don't allow the characters
46944         '"', '$', '`', '\' in macro arguments that become part of commands that
46945         are evaluated.
46946
46947 2009-01-01  Bruno Haible  <bruno@clisp.org>
46948
46949         * gnulib-tool (func_reset_sigpipe): Add more comments.
46950
46951 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46952
46953         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
46954         func_emit_tests_Makefile_am, func_import): Abort loops early if we
46955         already know the answer.
46956
46957 2009-01-01  Jim Meyering  <meyering@redhat.com>
46958
46959         * lib/version-etc.c (version_etc_va): Update copyright year.
46960
46961 2008-12-30  Bruno Haible  <bruno@clisp.org>
46962
46963         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
46964         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
46965         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
46966
46967 2008-12-29  Eric Blake  <ebb9@byu.net>
46968
46969         multiarch: avoid autoconf AC_REQUIRE bug
46970         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
46971         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
46972         2.63 and older.
46973         Reported by Bruno Haible, and analyzed in
46974         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
46975
46976 2008-12-29  Bruno Haible  <bruno@clisp.org>
46977
46978         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
46979         files in subdirectories correctly.
46980         Reported by Ralf Wildenhues.
46981
46982 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46983
46984         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
46985         rather than 'join FILE -', for Solaris join.
46986
46987 2008-12-29  Bruno Haible  <bruno@clisp.org>
46988
46989         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
46990         quoting.
46991         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
46992         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
46993         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
46994         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
46995         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
46996         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
46997         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
46998         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
46999         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47000         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47001         * m4/nls.m4 (AM_NLS): Likewise.
47002         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47003         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47004         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47005         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47006         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47007         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47008         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47009         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47010         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47011         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47012         * m4/xsize.m4 (gl_XSIZE): Likewise.
47013         Suggested by Jim Meyering.
47014
47015 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47016
47017         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
47018         * lib/parse-duration.c: use a switch instead of cascading if's.
47019
47020 2008-12-29  Eric Blake  <ebb9@byu.net>
47021
47022         wchar.h: supply WEOF on Irix 5.3
47023         * lib/wchar.in.h (wint_t): Also supply WEOF.
47024         * lib/wctype.in.h (wint_t): Likewise.
47025         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
47026         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
47027         Reported by Tom G. Christensen.
47028
47029 2008-12-26  Bruno Haible  <bruno@clisp.org>
47030
47031         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
47032         i486, i586, i686.
47033
47034 2008-12-26  Bruno Haible  <bruno@clisp.org>
47035
47036         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
47037
47038 2008-12-26  Bruno Haible  <bruno@clisp.org>
47039
47040         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
47041         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
47042         not __STDC_CONSTANT_MACROS.
47043         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47044
47045 2008-12-25  Bruno Haible  <bruno@clisp.org>
47046
47047         Add support for universal builds to vasnprintf.
47048         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
47049         universal builds, guess no.
47050         * modules/vasnprintf-posix (Depends-on): Add multiarch.
47051         * modules/vasprintf-posix (Depends-on): Likewise.
47052         * modules/fprintf-posix (Depends-on): Likewise.
47053         * modules/vfprintf-posix (Depends-on): Likewise.
47054         * modules/snprintf-posix (Depends-on): Likewise.
47055         * modules/vsnprintf-posix (Depends-on): Likewise.
47056         * modules/sprintf-posix (Depends-on): Likewise.
47057         * modules/vsprintf-posix (Depends-on): Likewise.
47058         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47059         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47060         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47061         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47062         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47063         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47064         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47065
47066         Add support for universal builds to <inttypes.h>.
47067         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
47068         _SCNu64_PREFIX): In Apple
47069         universal builds, define directly, using _LP64.
47070         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
47071         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
47072         * modules/inttypes (Depends-on): Add multiarch.
47073         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47074
47075         Add support for universal builds to <stdint.h>.
47076         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
47077         universal builds, define directly, using _LP64.
47078         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
47079         Apple universal builds, don't test for the size and suffix of ptrdiff_t
47080         and size_t.
47081         * modules/stdint (Depends-on): Add multiarch.
47082         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47083
47084         New module 'multiarch'.
47085         * modules/multiarch: New file.
47086         * m4/multiarch.m4: New file.
47087
47088 2008-12-25  Bruno Haible  <bruno@clisp.org>
47089
47090         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
47091
47092 2008-12-25  Bruno Haible  <bruno@clisp.org>
47093
47094         * modules/btowc (License): Relicense under LGPLv2+.
47095         * modules/mbsinit (License): Likewise.
47096         * modules/mbrtowc (License): Likewise.
47097         * modules/wcrtomb (License): Likewise.
47098         * modules/streq (License): Likewise.
47099         Reported by David Lutterkort <lutter@redhat.com>.
47100
47101 2008-12-23  Bruno Haible  <bruno@clisp.org>
47102
47103         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
47104
47105 2008-12-23  Bruno Haible  <bruno@clisp.org>
47106
47107         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
47108         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
47109         GETADDRINFO_LIB, not in LIBS.
47110         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
47111         * modules/canon-host (Link): Likewise.
47112         * NEWS: Mention the change.
47113         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
47114         GETADDRINFO_LIB.
47115
47116 2008-12-22  Bruno Haible  <bruno@clisp.org>
47117
47118         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
47119         * doc/posix-functions/iswalpha_l.texi: Likewise.
47120         * doc/posix-functions/iswblank_l.texi: Likewise.
47121         * doc/posix-functions/iswcntrl_l.texi: Likewise.
47122         * doc/posix-functions/iswctype_l.texi: Likewise.
47123         * doc/posix-functions/iswdigit_l.texi: Likewise.
47124         * doc/posix-functions/iswgraph_l.texi: Likewise.
47125         * doc/posix-functions/iswlower_l.texi: Likewise.
47126         * doc/posix-functions/iswprint_l.texi: Likewise.
47127         * doc/posix-functions/iswpunct_l.texi: Likewise.
47128         * doc/posix-functions/iswspace_l.texi: Likewise.
47129         * doc/posix-functions/iswupper_l.texi: Likewise.
47130         * doc/posix-functions/iswxdigit_l.texi: Likewise.
47131         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
47132         * doc/posix-functions/open_wmemstream.texi: Likewise.
47133         * doc/posix-functions/swscanf.texi: Likewise.
47134         * doc/posix-functions/towctrans_l.texi: Likewise.
47135         * doc/posix-functions/towlower.texi: Likewise.
47136         * doc/posix-functions/towlower_l.texi: Likewise.
47137         * doc/posix-functions/towupper.texi: Likewise.
47138         * doc/posix-functions/towupper_l.texi: Likewise.
47139         * doc/posix-functions/vfwprintf.texi: Likewise.
47140         * doc/posix-functions/vfwscanf.texi: Likewise.
47141         * doc/posix-functions/vswscanf.texi: Likewise.
47142         * doc/posix-functions/vwprintf.texi: Likewise.
47143         * doc/posix-functions/vwscanf.texi: Likewise.
47144         * doc/posix-functions/wcpcpy.texi: Likewise.
47145         * doc/posix-functions/wcpncpy.texi: Likewise.
47146         * doc/posix-functions/wcscasecmp.texi: Likewise.
47147         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
47148         * doc/posix-functions/wcscoll_l.texi: Likewise.
47149         * doc/posix-functions/wcsdup.texi: Likewise.
47150         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47151         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
47152         * doc/posix-functions/wcsnlen.texi: Likewise.
47153         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47154         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
47155         * doc/posix-functions/wctrans_l.texi: Likewise.
47156         * doc/posix-functions/wctype_l.texi: Likewise.
47157         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
47158         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
47159         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
47160         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
47161         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
47162         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
47163         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
47164         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
47165         * doc/glibc-functions/wcschrnul.texi: Likewise.
47166         * doc/glibc-functions/wcsftime_l.texi: Likewise.
47167         * doc/glibc-functions/wcstod_l.texi: Likewise.
47168         * doc/glibc-functions/wcstof_l.texi: Likewise.
47169         * doc/glibc-functions/wcstol_l.texi: Likewise.
47170         * doc/glibc-functions/wcstold_l.texi: Likewise.
47171         * doc/glibc-functions/wcstoll_l.texi: Likewise.
47172         * doc/glibc-functions/wcstoq.texi: Likewise.
47173         * doc/glibc-functions/wcstoul_l.texi: Likewise.
47174         * doc/glibc-functions/wcstoull_l.texi: Likewise.
47175         * doc/glibc-functions/wcstouq.texi: Likewise.
47176         * doc/glibc-functions/wmempcpy.texi: Likewise.
47177
47178 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
47179             Eric Blake  <ebb9@byu.net>
47180             Paolo Bonzini  <bonzini@gnu.org>
47181             Bruno Haible  <bruno@clisp.org>
47182
47183         Make c-stack work on Haiku.
47184         * lib/c-stack.c (SA_ONSTACK): Define fallback.
47185         (c_stack_action): Use SA_ONSTACK flag.
47186
47187 2008-12-22  Bruno Haible  <bruno@clisp.org>
47188
47189         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
47190
47191 2008-12-22  Bruno Haible  <bruno@clisp.org>
47192
47193         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
47194         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
47195         being overridden.
47196         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
47197         New macros.
47198         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
47199         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
47200         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
47201         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
47202
47203 2008-12-22  Bruno Haible  <bruno@clisp.org>
47204
47205         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
47206         from test code.
47207
47208 2008-12-22  Eric Blake  <ebb9@byu.net>
47209
47210         Avoid gcc warnings on cygwin.
47211         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
47212         Avoid unused variable.
47213         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
47214         Likewise.
47215
47216 2008-12-22  Bruno Haible  <bruno@clisp.org>
47217
47218         Remove HAVE_MBRTOWC conditionals.
47219         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
47220         (mbscasecmp): Assume mbrtowc function.
47221         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
47222         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
47223         * lib/mbschr.c: Include mbuiter.h unconditionally.
47224         (mbschr): Assume mbrtowc function.
47225         * lib/mbscspn.c: Include mbuiter.h unconditionally.
47226         (mbscspn): Assume mbrtowc function.
47227         * lib/mbslen.c: Include mbuiter.h unconditionally.
47228         (mbslen): Assume mbrtowc function.
47229         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
47230         (mbsncasecmp): Assume mbrtowc function.
47231         * lib/mbsnlen.c: Include mbiter.h unconditionally.
47232         (mbsnlen): Assume mbrtowc function.
47233         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
47234         (mbspbrk): Assume mbrtowc function.
47235         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
47236         (mbspcasecmp): Assume mbrtowc function.
47237         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
47238         (mbsrchr): Assume mbrtowc function.
47239         * lib/mbssep.c: Include mbuiter.h unconditionally.
47240         (mbssep): Assume mbrtowc function.
47241         * lib/mbsspn.c: Include mbuiter.h unconditionally.
47242         (mbsspn): Assume mbrtowc function.
47243         * lib/mbsstr.c: Include mbuiter.h unconditionally.
47244         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
47245         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
47246         (mbstok_r): Assume mbrtowc function.
47247         * lib/propername.c: Include mbuiter.h unconditionally.
47248         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
47249         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
47250         (trim2): Assume mbrtowc function.
47251         * lib/mbswidth.c (mbsinit): Remove fallback definition.
47252         (mbsnwidth): Assume mbrtowc function.
47253         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
47254         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
47255         fallback definitions.
47256         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
47257
47258 2008-12-22  Bruno Haible  <bruno@clisp.org>
47259
47260         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
47261
47262 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
47263
47264         * modules/regex: Request emulations for the mb*/wc* functions we need.
47265         * m4/regex.m4: Don't look for those functions here.
47266         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
47267
47268 2008-12-22  Bruno Haible  <bruno@clisp.org>
47269
47270         * modules/fnmatch (Depends-on): Remove duplicated dependency.
47271
47272 2008-12-21  Bruno Haible  <bruno@clisp.org>
47273
47274         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
47275         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
47276         (Include): Remove conditionalization.
47277         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
47278         (Include): Remove conditionalization.
47279         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
47280         (Include): Remove conditionalization.
47281         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
47282         * m4/mbfile.m4 (gl_MBFILE): Likewise.
47283         * NEWS: Mention the change.
47284         Reported by Alan Hourihane <alanh@fairlite.co.uk>
47285         via Sergey Poznyakoff <gray@gnu.org.ua>.
47286
47287 2008-12-21  Bruno Haible  <bruno@clisp.org>
47288
47289         * MODULES.html.sh (Extended multibyte and wide character utilities
47290         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
47291         wcrtomb, wcsrtombs.
47292         (Support for systems lacking POSIX:2008): Add accept, bind, close,
47293         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
47294         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
47295         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
47296
47297 2008-12-21  Bruno Haible  <bruno@clisp.org>
47298
47299         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
47300
47301 2008-12-21  Bruno Haible  <bruno@clisp.org>
47302
47303         * modules/wcsnrtombs-tests: New file.
47304         * tests/test-wcsnrtombs1.sh: New file.
47305         * tests/test-wcsnrtombs2.sh: New file.
47306         * tests/test-wcsnrtombs3.sh: New file.
47307         * tests/test-wcsnrtombs4.sh: New file.
47308         * tests/test-wcsnrtombs.c: New file.
47309
47310         New module 'wcsnrtombs'.
47311         * lib/wchar.in.h (wcsnrtombs): New declaration.
47312         * lib/wcsnrtombs.c: New file.
47313         * lib/wcsrtombs-state.c: New file.
47314         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
47315         (internal_state): Remove variable.
47316         * m4/wcsnrtombs.m4: New file.
47317         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
47318         compilation units.
47319         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
47320         HAVE_WCSNRTOMBS.
47321         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
47322         HAVE_WCSNRTOMBS.
47323         * modules/wcsnrtombs: New file.
47324         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
47325         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
47326
47327 2008-12-21  Bruno Haible  <bruno@clisp.org>
47328
47329         * modules/wcsrtombs-tests: New file.
47330         * tests/test-wcsrtombs1.sh: New file.
47331         * tests/test-wcsrtombs2.sh: New file.
47332         * tests/test-wcsrtombs3.sh: New file.
47333         * tests/test-wcsrtombs4.sh: New file.
47334         * tests/test-wcsrtombs.c: New file.
47335
47336         New module 'wcsrtombs'.
47337         * lib/wchar.in.h (wcsrtombs): New declaration.
47338         * lib/wcsrtombs.c: New file.
47339         * m4/wcsrtombs.m4: New file.
47340         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
47341         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
47342         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
47343         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
47344         * modules/wcsrtombs: New file.
47345         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
47346         bugs.
47347
47348 2008-12-21  Bruno Haible  <bruno@clisp.org>
47349
47350         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
47351         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
47352         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
47353         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
47354         if not correct.
47355         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
47356         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
47357         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47358         m4/locale-zh.m4, m4/codeset.m4.
47359         * doc/posix-functions/wcrtomb.texi: Document the bug.
47360
47361 2008-12-21  Bruno Haible  <bruno@clisp.org>
47362
47363         Work around a btowc() bug on IRIX 6.5.
47364         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
47365         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
47366         REPLACE_WTOBC if not.
47367         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
47368         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
47369         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
47370
47371 2008-12-21  Bruno Haible  <bruno@clisp.org>
47372
47373         * modules/wcrtomb-tests: New file.
47374         * tests/test-wcrtomb.sh: New file.
47375         * tests/test-wcrtomb.c: New file.
47376
47377         New module 'wcrtomb'.
47378         * lib/wchar.in.h (wcrtomb): New declaration.
47379         * lib/wcrtomb.c: New file.
47380         * m4/wcrtomb.m4: New file.
47381         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
47382         HAVE_WCRTOMB.
47383         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
47384         HAVE_WCRTOMB.
47385         * modules/wcrtomb: New file.
47386         * doc/posix-functions/wcrtomb.texi: Mention the new module.
47387
47388 2008-12-21  Bruno Haible  <bruno@clisp.org>
47389
47390         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
47391         * modules/mbsrtowcs (Files): Likewise.
47392         * modules/wctob (Files): Likewise.
47393         * modules/c-strcase-tests (Files): Likewise.
47394         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
47395         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
47396         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
47397         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
47398         * modules/vasnprintf-posix-tests (Files): Likewise.
47399
47400 2008-12-21  William Pursell  <bill.pursell@gmail.com>
47401
47402         gitlog-to-changelog: pass all command-line arguments to git-log
47403         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
47404         it is sometimes convenient to filter the commits in various ways.
47405         gitlog-to-changelog only allows --since to specify a start date,
47406         but git-log itself supports many other filtering mechanisms.
47407         At the moment, I want to filter by branch name.  Rather than
47408         adding a --branch option to gitlog-to-changelog, it seems more
47409         flexible to simply pass all options directly to git-log and let
47410         git do the work.  Notice that this effectively makes --since a
47411         redundant option for gitlog-to-changelog, but removing it would
47412         require current usage to change since calls would then require
47413         an additional '--'.
47414
47415 2008-12-21  Bruno Haible  <bruno@clisp.org>
47416
47417         * modules/mbsnrtowcs-tests: New file.
47418         * tests/test-mbsnrtowcs1.sh: New file.
47419         * tests/test-mbsnrtowcs2.sh: New file.
47420         * tests/test-mbsnrtowcs3.sh: New file.
47421         * tests/test-mbsnrtowcs4.sh: New file.
47422         * tests/test-mbsnrtowcs.c: New file.
47423
47424         New module 'mbsnrtowcs'.
47425         * lib/wchar.in.h (mbsnrtowcs): New declaration.
47426         * lib/mbsnrtowcs.c: New file.
47427         * lib/mbsrtowcs-state.c: New file.
47428         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
47429         (internal_state): Remove variable.
47430         * m4/mbsnrtowcs.m4: New file.
47431         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
47432         compilation units.
47433         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
47434         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
47435         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
47436         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
47437         * modules/mbsnrtowcs: New file.
47438         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
47439         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
47440         portability problem.
47441
47442 2008-12-21  Bruno Haible  <bruno@clisp.org>
47443
47444         Work around mbsrtowcs bug.
47445         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
47446         (gl_FUNC_MBSRTOWCS): Invoke it.
47447         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47448         m4/locale-zh.m4.
47449         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
47450
47451 2008-12-21  Bruno Haible  <bruno@clisp.org>
47452
47453         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
47454
47455 2008-12-21  Bruno Haible  <bruno@clisp.org>
47456
47457         Update doc for AIX.
47458         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
47459         16-bit wchar_t type.
47460         * doc/posix-functions/btowc.texi: Likewise.
47461         * doc/posix-functions/fgetwc.texi: Likewise.
47462         * doc/posix-functions/fgetws.texi: Likewise.
47463         * doc/posix-functions/fputwc.texi: Likewise.
47464         * doc/posix-functions/fputws.texi: Likewise.
47465         * doc/posix-functions/fwide.texi: Likewise.
47466         * doc/posix-functions/fwprintf.texi: Likewise.
47467         * doc/posix-functions/fwscanf.texi: Likewise.
47468         * doc/posix-functions/getwchar.texi: Likewise.
47469         * doc/posix-functions/getwc.texi: Likewise.
47470         * doc/posix-functions/iswalnum.texi: Likewise.
47471         * doc/posix-functions/iswalpha.texi: Likewise.
47472         * doc/posix-functions/iswblank.texi: Likewise.
47473         * doc/posix-functions/iswcntrl.texi: Likewise.
47474         * doc/posix-functions/iswctype.texi: Likewise.
47475         * doc/posix-functions/iswdigit.texi: Likewise.
47476         * doc/posix-functions/iswgraph.texi: Likewise.
47477         * doc/posix-functions/iswlower.texi: Likewise.
47478         * doc/posix-functions/iswprint.texi: Likewise.
47479         * doc/posix-functions/iswpunct.texi: Likewise.
47480         * doc/posix-functions/iswspace.texi: Likewise.
47481         * doc/posix-functions/iswupper.texi: Likewise.
47482         * doc/posix-functions/iswxdigit.texi: Likewise.
47483         * doc/posix-functions/mbrtowc.texi: Likewise.
47484         * doc/posix-functions/mbsrtowcs.texi: Likewise.
47485         * doc/posix-functions/mbstowcs.texi: Likewise.
47486         * doc/posix-functions/mbtowc.texi: Likewise.
47487         * doc/posix-functions/putwchar.texi: Likewise.
47488         * doc/posix-functions/putwc.texi: Likewise.
47489         * doc/posix-functions/swprintf.texi: Likewise.
47490         * doc/posix-functions/tolower.texi: Likewise.
47491         * doc/posix-functions/toupper.texi: Likewise.
47492         * doc/posix-functions/towctrans.texi: Likewise.
47493         * doc/posix-functions/ungetwc.texi: Likewise.
47494         * doc/posix-functions/vswprintf.texi: Likewise.
47495         * doc/posix-functions/wcrtomb.texi: Likewise.
47496         * doc/posix-functions/wcscat.texi: Likewise.
47497         * doc/posix-functions/wcschr.texi: Likewise.
47498         * doc/posix-functions/wcscmp.texi: Likewise.
47499         * doc/posix-functions/wcscoll.texi: Likewise.
47500         * doc/posix-functions/wcscpy.texi: Likewise.
47501         * doc/posix-functions/wcscspn.texi: Likewise.
47502         * doc/posix-functions/wcsftime.texi: Likewise.
47503         * doc/posix-functions/wcslen.texi: Likewise.
47504         * doc/posix-functions/wcsncat.texi: Likewise.
47505         * doc/posix-functions/wcsncmp.texi: Likewise.
47506         * doc/posix-functions/wcsncpy.texi: Likewise.
47507         * doc/posix-functions/wcspbrk.texi: Likewise.
47508         * doc/posix-functions/wcsrchr.texi: Likewise.
47509         * doc/posix-functions/wcsrtombs.texi: Likewise.
47510         * doc/posix-functions/wcsspn.texi: Likewise.
47511         * doc/posix-functions/wcsstr.texi: Likewise.
47512         * doc/posix-functions/wcstod.texi: Likewise.
47513         * doc/posix-functions/wcstof.texi: Likewise.
47514         * doc/posix-functions/wcstoimax.texi: Likewise.
47515         * doc/posix-functions/wcstok.texi: Likewise.
47516         * doc/posix-functions/wcstold.texi: Likewise.
47517         * doc/posix-functions/wcstoll.texi: Likewise.
47518         * doc/posix-functions/wcstol.texi: Likewise.
47519         * doc/posix-functions/wcstombs.texi: Likewise.
47520         * doc/posix-functions/wcstoull.texi: Likewise.
47521         * doc/posix-functions/wcstoul.texi: Likewise.
47522         * doc/posix-functions/wcstoumax.texi: Likewise.
47523         * doc/posix-functions/wcswidth.texi: Likewise.
47524         * doc/posix-functions/wcsxfrm.texi: Likewise.
47525         * doc/posix-functions/wctob.texi: Likewise.
47526         * doc/posix-functions/wctomb.texi: Likewise.
47527         * doc/posix-functions/wctrans.texi: Likewise.
47528         * doc/posix-functions/wctype.texi: Likewise.
47529         * doc/posix-functions/wcwidth.texi: Likewise.
47530         * doc/posix-functions/wmemchr.texi: Likewise.
47531         * doc/posix-functions/wmemcmp.texi: Likewise.
47532         * doc/posix-functions/wmemcpy.texi: Likewise.
47533         * doc/posix-functions/wmemmove.texi: Likewise.
47534         * doc/posix-functions/wmemset.texi: Likewise.
47535         * doc/posix-functions/wprintf.texi: Likewise.
47536         * doc/posix-functions/wscanf.texi: Likewise.
47537
47538 2008-12-21  Bruno Haible  <bruno@clisp.org>
47539
47540         Update doc for HP-UX 11.11.
47541         * doc/posix-functions/btowc.texi: Clarify that the function is missing
47542         in HP-UX version 11.00, not in all versions of HP-UX 11.
47543         * doc/posix-functions/fwide.texi: Likewise.
47544         * doc/posix-functions/fwprintf.texi: Likewise.
47545         * doc/posix-functions/fwscanf.texi: Likewise.
47546         * doc/posix-functions/inet_ntop.texi: Likewise.
47547         * doc/posix-functions/inet_pton.texi: Likewise.
47548         * doc/posix-functions/mbrlen.texi: Likewise.
47549         * doc/posix-functions/mbrtowc.texi: Likewise.
47550         * doc/posix-functions/mbsinit.texi: Likewise.
47551         * doc/posix-functions/mbsrtowcs.texi: Likewise.
47552         * doc/posix-functions/swprintf.texi: Likewise.
47553         * doc/posix-functions/swscanf.texi: Likewise.
47554         * doc/posix-functions/towctrans.texi: Likewise.
47555         * doc/posix-functions/vfwprintf.texi: Likewise.
47556         * doc/posix-functions/vswprintf.texi: Likewise.
47557         * doc/posix-functions/vwprintf.texi: Likewise.
47558         * doc/posix-functions/wcrtomb.texi: Likewise.
47559         * doc/posix-functions/wcsrtombs.texi: Likewise.
47560         * doc/posix-functions/wcsstr.texi: Likewise.
47561         * doc/posix-functions/wctob.texi: Likewise.
47562         * doc/posix-functions/wctrans.texi: Likewise.
47563         * doc/posix-functions/wmemchr.texi: Likewise.
47564         * doc/posix-functions/wmemcmp.texi: Likewise.
47565         * doc/posix-functions/wmemcpy.texi: Likewise.
47566         * doc/posix-functions/wmemmove.texi: Likewise.
47567         * doc/posix-functions/wmemset.texi: Likewise.
47568         * doc/posix-functions/wprintf.texi: Likewise.
47569         * doc/posix-functions/wscanf.texi: Likewise.
47570
47571 2008-12-21  Bruno Haible  <bruno@clisp.org>
47572
47573         Work around a portability problem.
47574         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
47575         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
47576
47577 2008-12-20  Bruno Haible  <bruno@clisp.org>
47578
47579         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
47580         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
47581         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
47582         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
47583         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
47584
47585         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
47586         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
47587         set.
47588         (GNULIB_defined_mbstate_t): New macro.
47589         (mbsinit): Redefine if REPLACE_MBSINIT is set.
47590         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
47591         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
47592         reuses the system's mbrtowc function but works around the bugs.
47593         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
47594         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
47595         macros.
47596         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
47597         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
47598         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
47599         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
47600         REPLACE_MBSINIT if mbsinit needs to be overridden.
47601         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
47602         REPLACE_MBSINIT, REPLACE_MBRTOWC.
47603         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
47604         REPLACE_MBSINIT, REPLACE_MBRTOWC.
47605         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47606         m4/locale-zh.m4.
47607         (Depends): Add mbsinit.
47608         * modules/mbsinit (Depends): Add mbrtowc.
47609         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
47610
47611 2008-12-20  Bruno Haible  <bruno@clisp.org>
47612
47613         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
47614         so that there are no conversion errors on AIX.
47615         * tests/test-mbsrtowcs.c (main): LIkewise.
47616
47617 2008-12-20  Bruno Haible  <bruno@clisp.org>
47618
47619         Work around wctob bug on Solaris <= 9.
47620         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
47621         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
47622         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
47623         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
47624         * modules/wctob (Files): Add m4/locale-fr.m4.
47625         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
47626
47627 2008-12-20  Bruno Haible  <bruno@clisp.org>
47628
47629         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
47630         /dev/null.
47631         * tests/test-select-in.sh: Likewise.
47632         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47633
47634 2008-12-20  Bruno Haible  <bruno@clisp.org>
47635
47636         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
47637         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
47638         Cygwin 1.5.x.
47639
47640 2008-12-20  Bruno Haible  <bruno@clisp.org>
47641
47642         Ensure mbstate_t is defined on HP-UX 11.11.
47643         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
47644         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
47645         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
47646         AC_USE_SYSTEM_EXTENSIONS.
47647         * modules/fnmatch (Depends-on): Add extensions.
47648         * modules/mbrlen (Depends-on): Likewise.
47649         * modules/mbrtowc (Depends-on): Likewise.
47650         * modules/mbsinit (Depends-on): Likewise.
47651         * modules/mbsrtowcs (Depends-on): Likewise.
47652         * modules/mbswidth (Depends-on): Likewise.
47653         * modules/quotearg (Depends-on): Likewise.
47654         * modules/strftime (Depends-on): Likewise.
47655
47656 2008-12-20  Bruno Haible  <bruno@clisp.org>
47657
47658         Ensure wctob is declared on IRIX 6.5.
47659         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
47660         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
47661         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
47662         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
47663         of HAVE_WCTOB.
47664         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
47665         HAVE_WCTOB.
47666         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
47667
47668 2008-12-19  Bruno Haible  <bruno@clisp.org>
47669
47670         * modules/mbsrtowcs-tests: New file.
47671         * tests/test-mbsrtowcs1.sh: New file.
47672         * tests/test-mbsrtowcs2.sh: New file.
47673         * tests/test-mbsrtowcs3.sh: New file.
47674         * tests/test-mbsrtowcs4.sh: New file.
47675         * tests/test-mbsrtowcs.c: New file.
47676
47677         New module 'mbsrtowcs'.
47678         * lib/wchar.in.h (mbsrtowcs): New declaration.
47679         * lib/mbsrtowcs.c: New file.
47680         * m4/mbsrtowcs.m4: New file.
47681         * modules/mbsrtowcs: New file.
47682         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
47683         HAVE_MBSRTOWCS.
47684         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
47685         HAVE_MBSRTOWCS.
47686         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
47687
47688 2008-12-19  Bruno Haible  <bruno@clisp.org>
47689
47690         New module 'mbrlen'.
47691         * lib/wchar.in.h (mbrlen): New declaration.
47692         * lib/mbrlen.c: New file.
47693         * m4/mbrlen.m4: New file.
47694         * modules/mbrlen: New file.
47695         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
47696         HAVE_MBRLEN.
47697         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
47698         HAVE_MBRLEN.
47699         * doc/posix-functions/mbrlen.texi: Document the new module.
47700
47701 2008-12-19  Bruno Haible  <bruno@clisp.org>
47702
47703         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
47704         * modules/mbrtowc (Depends-on): Add verify.
47705         Suggested by Paul Eggert.
47706
47707 2008-12-18  Bruno Haible  <bruno@clisp.org>
47708
47709         * modules/mbsinit-tests: New file.
47710         * tests/test-mbsinit.sh: New file.
47711         * tests/test-mbsinit.c: New file.
47712
47713 2008-12-18  Bruno Haible  <bruno@clisp.org>
47714
47715         * modules/mbrtowc-tests: New file.
47716         * tests/test-mbrtowc1.sh: New file.
47717         * tests/test-mbrtowc2.sh: New file.
47718         * tests/test-mbrtowc3.sh: New file.
47719         * tests/test-mbrtowc4.sh: New file.
47720         * tests/test-mbrtowc.c: New file.
47721
47722         New module 'mbrtowc'.
47723         * lib/wchar.in.h (mbstate_t): Override when the system does not have
47724         mbsinit and mbrtowc.
47725         (mbrtowc): New declaration.
47726         * lib/mbrtowc.c: New file.
47727         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
47728         * modules/mbrtowc: New file.
47729         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
47730         HAVE_MBRTOWC.
47731         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
47732         HAVE_MBRTOWC.
47733         * doc/posix-functions/mbrtowc.texi: Document the new module.
47734
47735 2008-12-18  Bruno Haible  <bruno@clisp.org>
47736
47737         New module 'wctob'.
47738         * lib/wchar.in.h (wctob): New declaration.
47739         * lib/wctob.c: New file.
47740         * m4/wctob.m4: New file.
47741         * modules/wctob: New file.
47742         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
47743         HAVE_WCTOB.
47744         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
47745         * doc/posix-functions/wctob.texi: Document the new module.
47746
47747 2008-12-18  Bruno Haible  <bruno@clisp.org>
47748
47749         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
47750         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
47751
47752 2008-12-18  Simon Josefsson  <simon@josefsson.org>
47753
47754         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
47755         G. Christensen" <tgc@jupiterrise.com>.
47756
47757         * lib/flock.c: Need to include errno.h.  Reported by "Tom
47758         G. Christensen" <tgc@jupiterrise.com>.
47759
47760         * lib/flock.c: Need to include string.h.  Reported by "Tom
47761         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
47762         <ebb9@byu.net>.
47763
47764 2008-12-18  Bruno Haible  <bruno@clisp.org>
47765
47766         * m4/locale-ja.m4: New file, from GNU gettext.
47767
47768 2008-12-17  Bruno Haible  <bruno@clisp.org>
47769
47770         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
47771         Suggested by Eric Blake.
47772
47773 2008-12-17  Bruno Haible  <bruno@clisp.org>
47774
47775         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
47776
47777 2008-12-17  Bruno Haible  <bruno@clisp.org>
47778
47779         * lib/mbsinit.c: Include verify.h. Verify an assumption.
47780         * modules/mbsinit (Depends-on): Add verify.
47781         Suggested by Paul Eggert.
47782
47783 2008-12-17  Bruno Haible  <bruno@clisp.org>
47784
47785         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
47786         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
47787         gl_FUNC_MBRTOWC.
47788         * m4/mbiter.m4 (gl_MBITER): LIkewise.
47789         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
47790         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
47791         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
47792         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
47793         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
47794         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
47795         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
47796         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
47797         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
47798         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
47799         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
47800         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
47801         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
47802         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
47803         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47804         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
47805         * modules/trim (configure.ac): Likewise.
47806
47807 2008-12-17  Bruno Haible  <bruno@clisp.org>
47808
47809         * modules/btowc-tests: New file.
47810         * tests/test-btowc1.sh: New file.
47811         * tests/test-btowc2.sh: New file.
47812         * tests/test-btowc.c: New file.
47813
47814         New module 'btowc'.
47815         * lib/wchar.in.h (btowc): New declaration.
47816         * lib/btowc.c: New file.
47817         * m4/btowc.m4: New file.
47818         * modules/btowc: New file.
47819         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
47820         HAVE_BTOWC.
47821         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
47822         * doc/posix-functions/btowc.texi: Document the new module.
47823
47824 2008-12-17  Bruno Haible  <bruno@clisp.org>
47825
47826         New module 'mbsinit'.
47827         * lib/wchar.in.h (mbsinit): New declaration.
47828         * lib/mbsinit.c: New file.
47829         * m4/mbsinit.m4: New file.
47830         * modules/mbsinit: New file.
47831         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
47832         HAVE_MBSINIT.
47833         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
47834         HAVE_MBSINIT.
47835         * doc/posix-functions/mbsinit.texi: Document the new module.
47836
47837 2008-12-16  Bruno Haible  <bruno@clisp.org>
47838
47839         * lib/unistd.in.h: Add comment.
47840         * tests/test-environ.c: Don't include <stdlib.h>.
47841
47842 2008-12-16  Bruno Haible  <bruno@clisp.org>
47843
47844         * lib/parse-duration.h (parse_duration): Document return value
47845         convention.
47846         * lib/parse-duration.c: Include specification header first. Add
47847         comments.
47848         (_): Remove macro.
47849         (parse_year_month_day, parse_hour_minute_second): Move side effects
47850         outside of strchr call.
47851         (parse_non_iso8601): Move side effects outside of isspace call.
47852         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
47853         call.
47854
47855 2008-12-16  Bruno Haible  <bruno@clisp.org>
47856
47857         * tests/test-parse-duration.sh: Produce no output when the test
47858         succeeds.
47859
47860 2008-12-16  Bruno Haible  <bruno@clisp.org>
47861
47862         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
47863         expressions.
47864
47865 2008-12-15  Bruno Haible  <bruno@clisp.org>
47866
47867         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
47868         * doc/glibc-functions/flistxattr.texi: Likewise.
47869         * doc/glibc-functions/fopencookie.texi: Likewise.
47870         * doc/glibc-functions/fremovexattr.texi: Likewise.
47871         * doc/glibc-functions/fsetxattr.texi: Likewise.
47872         * doc/glibc-functions/getxattr.texi: Likewise.
47873         * doc/glibc-functions/lgetxattr.texi: Likewise.
47874         * doc/glibc-functions/listxattr.texi: Likewise.
47875         * doc/glibc-functions/llistxattr.texi: Likewise.
47876         * doc/glibc-functions/lremovexattr.texi: Likewise.
47877         * doc/glibc-functions/lsetxattr.texi: Likewise.
47878         * doc/glibc-functions/removexattr.texi: Likewise.
47879         * doc/glibc-functions/setxattr.texi: Likewise.
47880         * doc/posix-functions/open_memstream.texi: Likewise.
47881
47882 2008-12-15  Eric Blake  <ebb9@byu.net>
47883
47884         Update doc for cygwin 1.7.
47885         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
47886         functions.
47887         * doc/posix-functions/fchmodat.texi: Likewise.
47888         * doc/posix-functions/fchownat.texi: Likewise.
47889         * doc/posix-functions/fdopendir.texi: Likewise.
47890         * doc/posix-functions/fmemopen.texi: Likewise.
47891         * doc/posix-functions/freeaddrinfo.texi: Likewise.
47892         * doc/posix-functions/fstatat.texi: Likewise.
47893         * doc/posix-functions/futimens.texi: Likewise.
47894         * doc/posix-functions/gai_strerror.texi: Likewise.
47895         * doc/posix-functions/getaddrinfo.texi: Likewise.
47896         * doc/posix-functions/getnameinfo.texi: Likewise.
47897         * doc/posix-functions/if_freenameindex.texi: Likewise.
47898         * doc/posix-functions/if_indextoname.texi: Likewise.
47899         * doc/posix-functions/if_nameindex.texi: Likewise.
47900         * doc/posix-functions/if_nametoindex.texi: Likewise.
47901         * doc/posix-functions/insque.texi: Likewise.
47902         * doc/posix-functions/linkat.texi: Likewise.
47903         * doc/posix-functions/llrint.texi: Likewise.
47904         * doc/posix-functions/llrintf.texi: Likewise.
47905         * doc/posix-functions/llrintl.texi: Likewise.
47906         * doc/posix-functions/lockf.texi: Likewise.
47907         * doc/posix-functions/lrintl.texi: Likewise.
47908         * doc/posix-functions/mkdirat.texi: Likewise.
47909         * doc/posix-functions/mkfifoat.texi: Likewise.
47910         * doc/posix-functions/mknodat.texi: Likewise.
47911         * doc/posix-functions/mq_close.texi: Likewise.
47912         * doc/posix-functions/mq_getattr.texi: Likewise.
47913         * doc/posix-functions/mq_notify.texi: Likewise.
47914         * doc/posix-functions/mq_open.texi: Likewise.
47915         * doc/posix-functions/mq_receive.texi: Likewise.
47916         * doc/posix-functions/mq_send.texi: Likewise.
47917         * doc/posix-functions/mq_setattr.texi: Likewise.
47918         * doc/posix-functions/mq_timedreceive.texi: Likewise.
47919         * doc/posix-functions/mq_timedsend.texi: Likewise.
47920         * doc/posix-functions/mq_unlink.texi: Likewise.
47921         * doc/posix-functions/open_memstream.texi: Likewise.
47922         * doc/posix-functions/openat.texi: Likewise.
47923         * doc/posix-functions/posix_fadvise.texi: Likewise.
47924         * doc/posix-functions/posix_fallocate.texi: Likewise.
47925         * doc/posix-functions/posix_madvise.texi: Likewise.
47926         * doc/posix-functions/posix_memalign.texi: Likewise.
47927         * doc/posix-functions/posix_openpt.texi: Likewise.
47928         * doc/posix-functions/readlinkat.texi: Likewise.
47929         * doc/posix-functions/remque.texi: Likewise.
47930         * doc/posix-functions/renameat.texi: Likewise.
47931         * doc/posix-functions/rintl.texi: Likewise.
47932         * doc/posix-functions/sem_unlink.texi: Likewise.
47933         * doc/posix-functions/shm_open.texi: Likewise.
47934         * doc/posix-functions/shm_unlink.texi: Likewise.
47935         * doc/posix-functions/signgam.texi: Likewise.
47936         * doc/posix-functions/sigset.texi: Likewise.
47937         * doc/posix-functions/stpcpy.texi: Likewise.
47938         * doc/posix-functions/stpncpy.texi: Likewise.
47939         * doc/posix-functions/strerror.texi: Likewise.
47940         * doc/posix-functions/strtod.texi: Likewise.
47941         * doc/posix-functions/symlinkat.texi: Likewise.
47942         * doc/posix-functions/unlinkat.texi: Likewise.
47943         * doc/posix-functions/utimensat.texi: Likewise.
47944         * doc/glibc-functions/bindresvport.texi: Likewise.
47945         * doc/glibc-functions/dn_expand.texi: Likewise.
47946         * doc/glibc-functions/exp10.texi: Likewise.
47947         * doc/glibc-functions/exp10f.texi: Likewise.
47948         * doc/glibc-functions/fgetxattr.texi: Likewise.
47949         * doc/glibc-functions/flistxattr.texi: Likewise.
47950         * doc/glibc-functions/fopencookie.texi: Likewise.
47951         * doc/glibc-functions/freeifaddrs.texi: Likewise.
47952         * doc/glibc-functions/fremovexattr.texi: Likewise.
47953         * doc/glibc-functions/fsetxattr.texi: Likewise.
47954         * doc/glibc-functions/getifaddrs.texi: Likewise.
47955         * doc/glibc-functions/getxattr.texi: Likewise.
47956         * doc/glibc-functions/lgetxattr.texi: Likewise.
47957         * doc/glibc-functions/listxattr.texi: Likewise.
47958         * doc/glibc-functions/llistxattr.texi: Likewise.
47959         * doc/glibc-functions/lremovexattr.texi: Likewise.
47960         * doc/glibc-functions/lsetxattr.texi: Likewise.
47961         * doc/glibc-functions/pow10.texi: Likewise.
47962         * doc/glibc-functions/pow10f.texi: Likewise.
47963         * doc/glibc-functions/rcmd_af.texi: Likewise.
47964         * doc/glibc-functions/removexattr.texi: Likewise.
47965         * doc/glibc-functions/res_init.texi: Likewise.
47966         * doc/glibc-functions/res_mkquery.texi: Likewise.
47967         * doc/glibc-functions/res_query.texi: Likewise.
47968         * doc/glibc-functions/res_querydomain.texi: Likewise.
47969         * doc/glibc-functions/res_send.texi: Likewise.
47970         * doc/glibc-functions/rresvport_af.texi: Likewise.
47971         * doc/glibc-functions/setxattr.texi: Likewise.
47972         * doc/glibc-functions/strcasestr.texi: Likewise.
47973
47974 2008-12-15  Bruno Haible  <bruno@clisp.org>
47975
47976         Fix compilation error on OSF/1 4.0.
47977         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
47978         <sys/time.h>, simply delegate to the system header.
47979         Reported by Daniel Richard G. <oss@teragram.com>.
47980
47981 2008-12-15  Bruno Haible  <bruno@clisp.org>
47982
47983         * doc/posix-functions/openat.texi: Mention the 'openat' module.
47984         * doc/posix-functions/fchmodat.texi: Likewise.
47985         * doc/posix-functions/fchownat.texi: Likewise.
47986         * doc/posix-functions/fdopendir.texi: Likewise.
47987         * doc/posix-functions/fstatat.texi: Likewise.
47988         * doc/posix-functions/mkdirat.texi: Likewise.
47989         * doc/posix-functions/unlinkat.texi: Likewise.
47990
47991 2008-12-14  Bruno Haible  <bruno@clisp.org>
47992
47993         Update doc for POSIX:2008.
47994         * doc/posix-functions/faccessat.texi: New file.
47995         * doc/posix-functions/fchmodat.texi: New file.
47996         * doc/posix-functions/fchownat.texi: New file.
47997         * doc/posix-functions/fdopendir.texi: New file.
47998         * doc/posix-functions/fstatat.texi: New file.
47999         * doc/posix-functions/futimens.texi: New file.
48000         * doc/posix-functions/linkat.texi: New file.
48001         * doc/posix-functions/mkdirat.texi: New file.
48002         * doc/posix-functions/mkfifoat.texi: New file.
48003         * doc/posix-functions/mknodat.texi: New file.
48004         * doc/posix-functions/open_wmemstream.texi: New file.
48005         * doc/posix-functions/openat.texi: New file.
48006         * doc/posix-functions/psiginfo.texi: New file.
48007         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48008         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48009         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48010         * doc/posix-functions/readlinkat.texi: New file.
48011         * doc/posix-functions/renameat.texi: New file.
48012         * doc/posix-functions/strerror_l.texi: New file.
48013         * doc/posix-functions/symlinkat.texi: New file.
48014         * doc/posix-functions/unlinkat.texi: New file.
48015         * doc/posix-functions/utimensat.texi: New file.
48016         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48017
48018 2008-12-14  Bruno Haible  <bruno@clisp.org>
48019
48020         Update doc for POSIX:2008.
48021         * doc/posix-functions/alphasort.texi: Renamed from
48022         doc/glibc-functions/alphasort.texi.
48023         * doc/posix-functions/dirfd.texi: Renamed from
48024         doc/glibc-functions/dirfd.texi.
48025         * doc/posix-functions/dprintf.texi: Renamed from
48026         doc/glibc-functions/dprintf.texi.
48027         * doc/posix-functions/duplocale.texi: Renamed from
48028         doc/glibc-functions/duplocale.texi.
48029         * doc/posix-functions/fexecve.texi: Renamed from
48030         doc/glibc-functions/fexecve.texi.
48031         * doc/posix-functions/fmemopen.texi: Renamed from
48032         doc/glibc-functions/fmemopen.texi.
48033         * doc/posix-functions/freelocale.texi: Renamed from
48034         doc/glibc-functions/freelocale.texi.
48035         * doc/posix-functions/getdate_err.texi: Renamed from
48036         doc/glibc-functions/getdate_err.texi.
48037         * doc/posix-functions/isalnum_l.texi: Renamed from
48038         doc/glibc-functions/isalnum_l.texi.
48039         * doc/posix-functions/isalpha_l.texi: Renamed from
48040         doc/glibc-functions/isalpha_l.texi.
48041         * doc/posix-functions/isblank_l.texi: Renamed from
48042         doc/glibc-functions/isblank_l.texi.
48043         * doc/posix-functions/iscntrl_l.texi: Renamed from
48044         doc/glibc-functions/iscntrl_l.texi.
48045         * doc/posix-functions/isdigit_l.texi: Renamed from
48046         doc/glibc-functions/isdigit_l.texi.
48047         * doc/posix-functions/isgraph_l.texi: Renamed from
48048         doc/glibc-functions/isgraph_l.texi.
48049         * doc/posix-functions/islower_l.texi: Renamed from
48050         doc/glibc-functions/islower_l.texi.
48051         * doc/posix-functions/isprint_l.texi: Renamed from
48052         doc/glibc-functions/isprint_l.texi.
48053         * doc/posix-functions/ispunct_l.texi: Renamed from
48054         doc/glibc-functions/ispunct_l.texi.
48055         * doc/posix-functions/isspace_l.texi: Renamed from
48056         doc/glibc-functions/isspace_l.texi.
48057         * doc/posix-functions/isupper_l.texi: Renamed from
48058         doc/glibc-functions/isupper_l.texi.
48059         * doc/posix-functions/iswalnum_l.texi: Renamed from
48060         doc/glibc-functions/iswalnum_l.texi.
48061         * doc/posix-functions/iswalpha_l.texi: Renamed from
48062         doc/glibc-functions/iswalpha_l.texi.
48063         * doc/posix-functions/iswblank_l.texi: Renamed from
48064         doc/glibc-functions/iswblank_l.texi.
48065         * doc/posix-functions/iswcntrl_l.texi: Renamed from
48066         doc/glibc-functions/iswcntrl_l.texi.
48067         * doc/posix-functions/iswctype_l.texi: Renamed from
48068         doc/glibc-functions/iswctype_l.texi.
48069         * doc/posix-functions/iswdigit_l.texi: Renamed from
48070         doc/glibc-functions/iswdigit_l.texi.
48071         * doc/posix-functions/iswgraph_l.texi: Renamed from
48072         doc/glibc-functions/iswgraph_l.texi.
48073         * doc/posix-functions/iswlower_l.texi: Renamed from
48074         doc/glibc-functions/iswlower_l.texi.
48075         * doc/posix-functions/iswprint_l.texi: Renamed from
48076         doc/glibc-functions/iswprint_l.texi.
48077         * doc/posix-functions/iswpunct_l.texi: Renamed from
48078         doc/glibc-functions/iswpunct_l.texi.
48079         * doc/posix-functions/iswspace_l.texi: Renamed from
48080         doc/glibc-functions/iswspace_l.texi.
48081         * doc/posix-functions/iswupper_l.texi: Renamed from
48082         doc/glibc-functions/iswupper_l.texi.
48083         * doc/posix-functions/iswxdigit_l.texi: Renamed from
48084         doc/glibc-functions/iswxdigit_l.texi.
48085         * doc/posix-functions/isxdigit_l.texi: Renamed from
48086         doc/glibc-functions/isxdigit_l.texi.
48087         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
48088         doc/glibc-functions/mbsnrtowcs.texi.
48089         * doc/posix-functions/mkdtemp.texi: Renamed from
48090         doc/glibc-functions/mkdtemp.texi.
48091         * doc/posix-functions/newlocale.texi: Renamed from
48092         doc/glibc-functions/newlocale.texi.
48093         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
48094         doc/glibc-functions/nl_langinfo_l.texi.
48095         * doc/posix-functions/open_memstream.texi: Renamed from
48096         doc/glibc-functions/open_memstream.texi.
48097         * doc/posix-functions/opterr.texi: Renamed from
48098         doc/glibc-functions/opterr.texi.
48099         * doc/posix-functions/optind.texi: Renamed from
48100         doc/glibc-functions/optind.texi.
48101         * doc/posix-functions/optopt.texi: Renamed from
48102         doc/glibc-functions/optopt.texi.
48103         * doc/posix-functions/psignal.texi: Renamed from
48104         doc/glibc-functions/psignal.texi.
48105         * doc/posix-functions/scandir.texi: Renamed from
48106         doc/glibc-functions/scandir.texi.
48107         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
48108         doc/glibc-functions/sched_get_priority_min.texi.
48109         * doc/posix-functions/signgam.texi: Renamed from
48110         doc/glibc-functions/signgam.texi.
48111         * doc/posix-functions/stpcpy.texi: Renamed from
48112         doc/glibc-functions/stpcpy.texi.
48113         * doc/posix-functions/stpncpy.texi: Renamed from
48114         doc/glibc-functions/stpncpy.texi.
48115         * doc/posix-functions/strcasecmp_l.texi: Renamed from
48116         doc/glibc-functions/strcasecmp_l.texi.
48117         * doc/posix-functions/strcoll_l.texi: Renamed from
48118         doc/glibc-functions/strcoll_l.texi.
48119         * doc/posix-functions/strfmon_l.texi: Renamed from
48120         doc/glibc-functions/strfmon_l.texi.
48121         * doc/posix-functions/strftime_l.texi: Renamed from
48122         doc/glibc-functions/strftime_l.texi.
48123         * doc/posix-functions/strncasecmp_l.texi: Renamed from
48124         doc/glibc-functions/strncasecmp_l.texi.
48125         * doc/posix-functions/strndup.texi: Renamed from
48126         doc/glibc-functions/strndup.texi.
48127         * doc/posix-functions/strnlen.texi: Renamed from
48128         doc/glibc-functions/strnlen.texi.
48129         * doc/posix-functions/strsignal.texi: Renamed from
48130         doc/glibc-functions/strsignal.texi.
48131         * doc/posix-functions/strxfrm_l.texi: Renamed from
48132         doc/glibc-functions/strxfrm_l.texi.
48133         * doc/posix-functions/timer_gettime.texi: Renamed from
48134         doc/glibc-functions/timer_gettime.texi.
48135         * doc/posix-functions/tolower_l.texi: Renamed from
48136         doc/glibc-functions/tolower_l.texi.
48137         * doc/posix-functions/toupper_l.texi: Renamed from
48138         doc/glibc-functions/toupper_l.texi.
48139         * doc/posix-functions/towctrans_l.texi: Renamed from
48140         doc/glibc-functions/towctrans_l.texi.
48141         * doc/posix-functions/towlower_l.texi: Renamed from
48142         doc/glibc-functions/towlower_l.texi.
48143         * doc/posix-functions/towupper_l.texi: Renamed from
48144         doc/glibc-functions/towupper_l.texi.
48145         * doc/posix-functions/uselocale.texi: Renamed from
48146         doc/glibc-functions/uselocale.texi.
48147         * doc/posix-functions/vdprintf.texi: Renamed from
48148         doc/glibc-functions/vdprintf.texi.
48149         * doc/posix-functions/wcpcpy.texi:
48150         Renamed from doc/glibc-functions/wcpcpy.texi.
48151         * doc/posix-functions/wcpncpy.texi: Renamed from
48152         doc/glibc-functions/wcpncpy.texi.
48153         * doc/posix-functions/wcscasecmp.texi: Renamed from
48154         doc/glibc-functions/wcscasecmp.texi.
48155         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
48156         doc/glibc-functions/wcscasecmp_l.texi.
48157         * doc/posix-functions/wcscoll_l.texi: Renamed from
48158         doc/glibc-functions/wcscoll_l.texi.
48159         * doc/posix-functions/wcsdup.texi: Renamed from
48160         doc/glibc-functions/wcsdup.texi.
48161         * doc/posix-functions/wcsncasecmp.texi: Renamed from
48162         doc/glibc-functions/wcsncasecmp.texi.
48163         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
48164         doc/glibc-functions/wcsncasecmp_l.texi.
48165         * doc/posix-functions/wcsnlen.texi: Renamed from
48166         doc/glibc-functions/wcsnlen.texi.
48167         * doc/posix-functions/wcsnrtombs.texi: Renamed from
48168         doc/glibc-functions/wcsnrtombs.texi.
48169         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
48170         doc/glibc-functions/wcsxfrm_l.texi.
48171         * doc/posix-functions/wctrans_l.texi: Renamed from
48172         doc/glibc-functions/wctrans_l.texi.
48173         * doc/posix-functions/wctype_l.texi: Renamed from
48174         doc/glibc-functions/wctype_l.texi.
48175         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48176         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
48177         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
48178         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
48179         these subsections.
48180         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
48181         Remove sections.
48182
48183 2008-12-14  Bruno Haible  <bruno@clisp.org>
48184
48185         Update doc for POSIX:2008.
48186         * doc/posix-functions/*.texi: Update URL of POSIX specification.
48187
48188 2008-12-14  Bruno Haible  <bruno@clisp.org>
48189
48190         Update doc for POSIX:2008.
48191         * doc/pastposix-functions/bcmp.texi: Renamed from
48192         doc/posix-functions/bcmp.texi.
48193         * doc/pastposix-functions/bcopy.texi: Renamed from
48194         doc/posix-functions/bcopy.texi.
48195         * doc/pastposix-functions/bsd_signal.texi: Renamed from
48196         doc/posix-functions/bsd_signal.texi.
48197         * doc/pastposix-functions/bzero.texi: Renamed from
48198         doc/posix-functions/bzero.texi.
48199         * doc/pastposix-functions/ecvt.texi: Renamed from
48200         doc/posix-functions/ecvt.texi.
48201         * doc/pastposix-functions/fcvt.texi: Renamed from
48202         doc/posix-functions/fcvt.texi.
48203         * doc/pastposix-functions/ftime.texi: Renamed from
48204         doc/posix-functions/ftime.texi.
48205         * doc/pastposix-functions/gcvt.texi: Renamed from
48206         doc/posix-functions/gcvt.texi.
48207         * doc/pastposix-functions/getcontext.texi: Renamed from
48208         doc/posix-functions/getcontext.texi.
48209         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
48210         doc/posix-functions/gethostbyaddr.texi.
48211         * doc/pastposix-functions/gethostbyname.texi: Renamed from
48212         doc/posix-functions/gethostbyname.texi.
48213         * doc/pastposix-functions/getwd.texi: Renamed from
48214         doc/posix-functions/getwd.texi.
48215         * doc/pastposix-functions/h_errno.texi: Renamed from
48216         doc/posix-functions/h_errno.texi.
48217         * doc/pastposix-functions/index.texi: Renamed from
48218         doc/posix-functions/index.texi.
48219         * doc/pastposix-functions/makecontext.texi: Renamed from
48220         doc/posix-functions/makecontext.texi.
48221         * doc/pastposix-functions/mktemp.texi: Renamed from
48222         doc/posix-functions/mktemp.texi.
48223         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
48224         doc/posix-functions/pthread_attr_getstackaddr.texi.
48225         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
48226         doc/posix-functions/pthread_attr_setstackaddr.texi.
48227         * doc/pastposix-functions/rindex.texi: Renamed from
48228         doc/posix-functions/rindex.texi.
48229         * doc/pastposix-functions/scalb.texi: Renamed from
48230         doc/posix-functions/scalb.texi.
48231         * doc/pastposix-functions/setcontext.texi: Renamed from
48232         doc/posix-functions/setcontext.texi.
48233         * doc/pastposix-functions/swapcontext.texi: Renamed from
48234         doc/posix-functions/swapcontext.texi.
48235         * doc/pastposix-functions/ualarm.texi: Renamed from
48236         doc/posix-functions/ualarm.texi.
48237         * doc/pastposix-functions/usleep.texi: Renamed from
48238         doc/posix-functions/usleep.texi.
48239         * doc/pastposix-functions/vfork.texi: Renamed from
48240         doc/posix-functions/vfork.texi.
48241         * doc/pastposix-functions/wcswcs.texi: Renamed from
48242         doc/posix-functions/wcswcs.texi.
48243         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
48244         (Function Substitutes): Update.
48245
48246 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48247
48248         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
48249         m4/strerror.m4.
48250
48251 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48252             Bruno Haible  <bruno@clisp.org>
48253
48254         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
48255
48256 2008-12-13  Bruno Haible  <bruno@clisp.org>
48257
48258         * modules/strtoull (Depends-on): Remove unistd.
48259
48260 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48261
48262         * modules/strtoull (Depends-on): Add stdlib.
48263
48264 2008-12-11  Simon Josefsson  <simon@josefsson.org>
48265
48266         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
48267
48268 2008-12-10  Jim Meyering  <meyering@redhat.com>
48269
48270         gl_ASSERT: don't say assertions are disabled when they're not
48271         * m4/assert.m4 (gl_ASSERT): Do not make configure report
48272         "checking whether to enable assertions... no", when they are in
48273         fact enabled.  This is solely a bug in the output of configure.
48274         In spite of saying "no", NDEBUG was not defined in that case.
48275         Also, as noted by Eric Blake, leave assertions enabled upon
48276         --enable-assert=INVALID.
48277
48278 2008-12-10  Bruno Haible  <bruno@clisp.org>
48279
48280         Change MODULES.html to refer to POSIX:2008 where possible.
48281         * MODULES.html.sh (POSIX2008_URL): New variable.
48282         (posix_headers): Remove sys/timeb, ucontext.
48283         (posix2001_headers): New variable.
48284         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
48285         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
48286         index, makecontext, mktemp, pthread_attr_getstackaddr,
48287         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
48288         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
48289         (posix2001_functions): New variable.
48290         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
48291         otherwise.
48292
48293 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48294
48295         add missing include to parse-duration.c
48296         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
48297         * modules/parse-duration (Depends-on): Add xalloc.
48298
48299         fix sed script reading maint.mk
48300         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
48301         (syntax-check-rules): Use it.
48302
48303 2008-12-09  Bruno Haible  <bruno@clisp.org>
48304
48305         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
48306         MacOS X 10.4/PowerPC.
48307         Reported by Simon Josefsson.
48308
48309 2008-12-08  Jim Meyering  <meyering@redhat.com>
48310
48311         work around mingw's lack of some S_IF definitions
48312         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
48313         Reported by Simon Josefsson.
48314
48315 2008-12-08  Bruno Haible  <bruno@clisp.org>
48316
48317         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
48318         applied to variables. Needed on MacOS X 10.4/PowerPC.
48319         Reported by Simon Josefsson.
48320
48321 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
48322         and Eric Blake  <ebb9@byu.net>
48323
48324         assert: honor --enable-assert
48325         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
48326         order to honor --enable-assert, rather than treating it as a
48327         synonym for --disable-assert.
48328
48329 2008-12-08  Jim Meyering  <meyering@redhat.com>
48330
48331         * lib/posixtm.c: Remove now-useless declaration of mktime.
48332
48333         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
48334
48335 2008-12-07  Bruno Haible  <bruno@clisp.org>
48336
48337         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
48338         test_once): Mark functions as static.
48339         * tests/test-tls.c (test_tls): Likewise.
48340
48341 2008-12-07  Bruno Haible  <bruno@clisp.org>
48342
48343         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
48344         iconv_register_autodetect.
48345
48346 2008-12-07  Jim Meyering  <meyering@redhat.com>
48347
48348         posixtm.c: avoid a warning
48349         * lib/posixtm.c (posixtime): Don't initialize tm0.
48350         It's no longer needed to placate gcc4's -Wuninitialized,
48351         and the attempt to placate would elicit a new warning.
48352
48353         unicodeio.c: mark unused parameters
48354         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
48355         (fallback_failure_callback): Likewise.
48356
48357 2008-12-07  Bruno Haible  <bruno@clisp.org>
48358
48359         * gnulib-tool (func_create_testdir): When building the tests
48360         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
48361         Reported by Simon Josefsson.
48362
48363 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48364
48365         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
48366
48367 2008-12-06  Bruno Haible  <bruno@clisp.org>
48368
48369         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
48370         Suggested by Eric Blake.
48371
48372 2008-12-06  Bruno Haible  <bruno@clisp.org>
48373
48374         Fix a c-stack test failure on MacOS X.
48375         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
48376         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
48377         handler for SIGBUS as well.
48378         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
48379         install a signal handler for SIGBUS as well.
48380         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
48381
48382 2008-12-06  Bruno Haible  <bruno@clisp.org>
48383
48384         Advocacy documentation.
48385         * doc/gnulib-intro.texi (Benefits): New section.
48386         * doc/gnulib.texi: Update.
48387
48388 2008-12-06  Bruno Haible  <bruno@clisp.org>
48389
48390         Document the 'manywarnings' module.
48391         * doc/manywarnings.texi: New file.
48392         * doc/gnulib.texi: Include it.
48393
48394 2008-12-05  Eric Blake  <ebb9@byu.net>
48395
48396         tests: silence some gcc warnings
48397         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
48398         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
48399         type mismatches.
48400
48401 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48402             Bruno Haible  <bruno@clisp.org>
48403
48404         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
48405
48406 2008-11-29  Jim Meyering  <meyering@redhat.com>
48407
48408         unicodeio.c: mark unused parameters
48409         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
48410         (fallback_failure_callback): Likewise.
48411
48412         fts: fix a thinko
48413         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
48414         (set_stat_type): Return S_IF*-valued "type" directly.
48415         Prompted by James Youngman's spotting a related bug.
48416         Confirmed by further testing through find.
48417
48418         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
48419         * lib/fts.c (D_TYPE): Define.
48420         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
48421         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
48422         (s_ifmt_shift_bits): New function.
48423         (set_stat_type): New function.
48424         (fts_build): When not calling fts_stat, call set_stat_type
48425         to propagate dirent.d_type info to fts_read caller.
48426         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
48427         fts_statp->st_mode type information may be valid.
48428
48429 2008-11-28  Simon Josefsson  <simon@josefsson.org>
48430
48431         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
48432         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
48433         <sds@gnu.org>.
48434
48435 2008-11-20  Bruno Haible  <bruno@clisp.org>
48436
48437         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
48438         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
48439         INCLUDE_NEXT.
48440         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
48441         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
48442         * modules/math (Makefile.am): Substitute
48443         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
48444         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48445
48446 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
48447             Bruno Haible  <bruno@clisp.org>
48448
48449         * lib/stdint.in.h: Define all type macros so that their expansion is
48450         a single typedef'ed token. Fixes a compilation failure in Boost which
48451         does "using ::int8_t;".
48452
48453 2008-11-18  Simon Josefsson  <simon@josefsson.org>
48454
48455         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
48456         gl_MANYWARN_ALL_GCC.
48457         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
48458         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
48459         * modules/manywarnings: New file.
48460         * MODULES.html.sh: Mention manywarnings module.
48461
48462 2008-11-18  Bruno Haible  <bruno@clisp.org>
48463
48464         * doc/gnulib-tool.texi (Unit tests): New section.
48465
48466 2008-11-18  Simon Josefsson  <simon@josefsson.org>
48467
48468         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
48469         paths like 'lib/po/foo.po'.
48470
48471 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48472
48473         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
48474         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
48475
48476 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48477
48478         * m4/warnings.m4: Use CPPFLAGS to really check whether the
48479         parameter works.
48480
48481 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48482
48483         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
48484
48485 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48486
48487         * modules/parse-duration-tests: New file.
48488         * tests/test-parse-duration.sh: New file.
48489         * tests/test-parse-duration.c: New file.
48490
48491         New module 'parse-duration'.
48492         * lib/parse-duration.h: New file.
48493         * lib/parse-duration.c: New file.
48494         * modules/parse-duration: New file.
48495
48496 2008-11-17  Bruno Haible  <bruno@clisp.org>
48497
48498         * tests/test-select-out.sh: Comment out the first pipe test.
48499         Reported by Simon Josefsson.
48500
48501 2008-11-17  Bruno Haible  <bruno@clisp.org>
48502
48503         * modules/getaddrinfo (Depends-on): Add servent, hostent.
48504         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
48505         gl_HOSTENT.
48506
48507 2008-11-17  Bruno Haible  <bruno@clisp.org>
48508
48509         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
48510         -lnetwork and -lnet. Needed for Haiku and BeOS.
48511
48512 2008-11-16  Bruno Haible  <bruno@clisp.org>
48513
48514         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
48515
48516 2008-11-16  Bruno Haible  <bruno@clisp.org>
48517
48518         Avoid test failure on Haiku.
48519         * tests/test-fsync.c: Include <errno.h>.
48520         (main): Don't require that fsync (0) fails.
48521
48522 2008-11-15  Bruno Haible  <bruno@clisp.org>
48523
48524         New module 'hostent'.
48525         * modules/hostent: New file.
48526         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
48527
48528 2008-11-15  Bruno Haible  <bruno@clisp.org>
48529
48530         New module 'servent'.
48531         * modules/servent: New file.
48532         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
48533
48534 2008-11-15  Bruno Haible  <bruno@clisp.org>
48535
48536         Avoid generating same test program with two different rules.
48537         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
48538         test-frexp to test-frexp-nolibm.
48539         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
48540         test-frexpl to test-frexpl-nolibm.
48541
48542 2008-11-15  Bruno Haible  <bruno@clisp.org>
48543
48544         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
48545         $(FREXPL_LIBM).
48546
48547 2008-11-15  Bruno Haible  <bruno@clisp.org>
48548
48549         * lib/netdb.in.h: Activate the definitions also when the system's
48550         <netdb.h> has 'struct addrinfo'.
48551         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
48552         EAI_OVERFLOW or AI_NUMERICSERV.
48553         * doc/posix-headers/netdb.texi: Document the problem.
48554
48555 2008-11-15  Bruno Haible  <bruno@clisp.org>
48556
48557         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
48558
48559         Make the 'sched' module work on platforms where <sched.h> exists but
48560         is incomplete (such as Haiku).
48561         * lib/sched.in.h; Include the system's <sched.h> if it exists.
48562         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
48563         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
48564         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
48565         HAVE_STRUCT_SCHED_PARAM.
48566         * modules/sched (Depends-on): Add include_next.
48567         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
48568         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
48569         * doc/posix-headers/sched.texi: Document the issue.
48570
48571 2008-11-13  Jim Meyering  <meyering@redhat.com>
48572
48573         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
48574         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
48575         test would fail due to the difference in the Report bugs to ...
48576         line.  The expected address is empty, "<>", while the actual
48577         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
48578
48579 2008-11-12  Bruno Haible  <bruno@clisp.org>
48580
48581         lstat: don't compile lstat.c on systems lacking lstat
48582         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
48583         which don't have lstat; this is handled by lib/sys_stat.in.h already.
48584         Reported by Daniel P. Berrange via Jim Meyering.
48585
48586 2008-11-12  Jim Meyering  <meyering@redhat.com>
48587
48588         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
48589
48590 2008-11-12  Simon Josefsson  <simon@josefsson.org>
48591
48592         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
48593         instead.
48594
48595 2008-11-12  Bruno Haible  <bruno@clisp.org>
48596
48597         * lib/unicodeio.c: Include unistr.h.
48598         (utf8_wctomb): Remove function.
48599         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
48600
48601 2008-11-12  Simon Josefsson  <simon@josefsson.org>
48602
48603         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
48604         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
48605         <bruno@clisp.org>.
48606         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
48607
48608 2008-11-12  Simon Josefsson  <simon@josefsson.org>
48609
48610         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
48611         * doc/gnulib.texi: Add section for warnings.
48612
48613 2008-11-11  Bruno Haible  <bruno@clisp.org>
48614
48615         * lib/sockets.h: Add a comment.
48616
48617 2008-11-11  Karl Berry  <karl@gnu.org>
48618
48619         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
48620
48621 2008-11-11  Eric Blake  <ebb9@byu.net>
48622
48623         fdl.texi: avoid git symlinks
48624         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
48625
48626 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48627
48628         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
48629
48630 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48631
48632         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
48633         (gl_WARN_ADD): Substitute $2 if literal.
48634
48635 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48636
48637         * m4/warning.m4: Remove.
48638
48639 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48640
48641         * m4/warnings.m4: Almost complete rewrite. :-)
48642
48643 2008-11-10  Simon Josefsson  <simon@josefsson.org>
48644
48645         * modules/warnings: New module.
48646         * m4/warnings.m4: New file.
48647         * MODULES.html.sh: Mention warnings module.
48648         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
48649         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48650
48651 2008-11-10  Eric Blake  <ebb9@byu.net>
48652
48653         fdl.texi: make a symlink to the latest version
48654         * doc/standards.texi: Revert today's earlier change.
48655         * doc/fdl-1.2.texi: Rename from old fdl.texi...
48656         * doc/fdl.texi: ...and replace this with a symlink to the newer
48657         fdl-1.3.texi.
48658
48659 2008-11-10  Bruno Haible  <bruno@clisp.org>
48660
48661         * tests/test-select-fd.c (main): Accept the result file name as fourth
48662         argument.
48663         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
48664         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
48665
48666 2008-11-10  Bruno Haible  <bruno@clisp.org>
48667
48668         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
48669         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
48670         as autoconf-substituted macros.
48671         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
48672         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
48673         gl_NETDB_H_DEFAULTS. Set these variables.
48674         * modules/netdb (Makefile.am): Substitute these variables.
48675
48676 2008-11-10  Eric Blake  <ebb9@byu.net>
48677
48678         standards.texi: include correct file for FDL 1.3
48679         * doc/standards.texi (GNU Free Documentation License): Change
48680         include file to pull in FDL 1.3, not 1.2.
48681
48682         fdl.texi: revert accidental change to license
48683         * doc/fdl.texi: This is FDL 1.2, not 1.3.
48684
48685 2008-11-10  Bruno Haible  <bruno@clisp.org>
48686
48687         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
48688         cross-compiling guesses also when the native compile gives no result.
48689
48690 2008-11-10  Bruno Haible  <bruno@clisp.org>
48691
48692         * lib/spawni.c (__spawni): Force variable into the stack.
48693
48694 2008-11-10  Bruno Haible  <bruno@clisp.org>
48695
48696         Add support for Haiku.
48697         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
48698         glibc and BeOS, but also on Haiku.
48699         * lib/fpurge.c (fpurge): Likewise.
48700         * lib/freadable.c (freadable): Likewise.
48701         * lib/freadahead.c (freadahead): Likewise.
48702         * lib/freading.c (freading): Likewise.
48703         * lib/freadptr.c (freadptr): Likewise.
48704         * lib/freadseek.c (freadptrinc): Likewise.
48705         * lib/fseeko.c (rpl_fseeko): Likewise.
48706         * lib/fseterr.c (fseterr): Likewise.
48707         * lib/fwritable.c (fwritable): Likewise.
48708         * lib/fwriting.c (fwriting): Likewise.
48709         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
48710
48711 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
48712
48713         * lib/config.charset: Treat Haiku like BeOS.
48714
48715 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
48716
48717         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
48718         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
48719
48720 2008-11-08  Bruno Haible  <bruno@clisp.org>
48721
48722         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
48723         AC_CACHE_CHECK.
48724
48725 2008-11-08  Bruno Haible  <bruno@clisp.org>
48726
48727         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
48728
48729 2008-11-08  Bruno Haible  <bruno@clisp.org>
48730
48731         * tests/test-select-fd.c: New file.
48732         * tests/test-select-in.sh: New file.
48733         * tests/test-select-out.sh: New file.
48734         * tests/test-select-stdin.c: New file.
48735         * modules/select-tests (Files): Add the new files.
48736         (Depends-on): Add gettimeofday.
48737         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
48738         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
48739         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
48740
48741 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
48742             Bruno Haible  <bruno@clisp.org>
48743
48744         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
48745
48746 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
48747
48748         * build-aux/pmccabe2html: Added support for C++ source files.
48749
48750 2008-11-05  Ben Pfaff  <blp@gnu.org>
48751
48752         Fix lib/close.c build on Windows.
48753         * modules/close (Files): Add lib/w32sock.h.
48754
48755 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
48756
48757         Accept Bison's NEWS format.
48758         * build-aux/announce-gen (print_news_deltas): Tweak
48759         $re_prefix.
48760
48761 2008-11-04  Bruno Haible  <bruno@clisp.org>
48762
48763         * modules/random_r (Maintainer): Add glibc.
48764
48765 2008-11-04  Simon Josefsson  <simon@josefsson.org>
48766
48767         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
48768         by karl@freefriends.org (Karl Berry).
48769         * doc/alloca.texi: Likewise.
48770         * doc/c-ctype.texi: Likewise.
48771         * doc/c-strcase.texi: Likewise.
48772         * doc/c-strcaseeq.texi: Likewise.
48773         * doc/c-strcasestr.texi: Likewise.
48774         * doc/c-strstr.texi: Likewise.
48775         * doc/c-strtod.texi: Likewise.
48776         * doc/c-strtold.texi: Likewise.
48777         * doc/ctime.texi: Likewise.
48778         * doc/error.texi: Likewise.
48779         * doc/fdl.texi: Likewise.
48780         * doc/gcd.texi: Likewise.
48781         * doc/getdate.texi: Likewise.
48782         * doc/gnulib-intro.texi: Likewise.
48783         * doc/gnulib-tool.texi: Likewise.
48784         * doc/gnulib.texi: Likewise.
48785         * doc/inet_ntoa.texi: Likewise.
48786         * doc/maintain.texi: Likewise.
48787         * doc/make-stds.texi: Likewise.
48788         * doc/quote.texi: Likewise.
48789         * doc/regexprops-generic.texi: Likewise.
48790         * doc/standards.texi: Likewise.
48791         * doc/verify.texi: Likewise.
48792         * doc/visibility.texi: Likewise.
48793         * doc/gnulib.texi (GNU Free Documentation License): Include
48794         fdl-1.3.texi instead of fdl.texi.
48795
48796 2008-11-04  Simon Josefsson  <simon@josefsson.org>
48797
48798         * doc/fdl-1.3.texi: New file, from
48799         <http://www.gnu.org/licenses/fdl-1.3.texi>.
48800         * modules/fdl-1.3: Add.
48801         * MODULES.html.sh: Add fdl-1.3.
48802
48803 2008-11-03  Bruno Haible  <bruno@clisp.org>
48804
48805         Make determination of absolute name of header file work with AIX xlc.
48806         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
48807         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
48808         preprocessing.
48809         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48810         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48811
48812 2008-11-03  Simon Josefsson  <simon@josefsson.org>
48813
48814         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
48815         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
48816         <ludo@gnu.org>.
48817
48818 2008-11-02  Bruno Haible  <bruno@clisp.org>
48819
48820         Mark 'strpbrk' obsolete.
48821         * modules/strpbrk (Status, Notice): New sections.
48822         * modules/strtok_r (Depends-on): Add strpbrk.
48823
48824 2008-11-02  Bruno Haible  <bruno@clisp.org>
48825
48826         Mark 'strdup' obsolete.
48827         * modules/strdup (Status, Notice): New sections.
48828         * modules/findprog (Depends-on): Add strdup.
48829         * modules/getaddrinfo (Depends-on): Likewise.
48830         * modules/localename (Depends-on): Likewise.
48831         * modules/relocatable-lib (Depends-on): Likewise.
48832         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
48833         * modules/relocatable-prog (Depends-on): Likewise.
48834         * modules/trim (Depends-on): Likewise.
48835         * modules/unictype/gen-ctype (Depends-on): Likewise.
48836         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
48837
48838 2008-11-02  Bruno Haible  <bruno@clisp.org>
48839
48840         Mark 'strcspn' obsolete.
48841         * modules/strcspn (Status, Notice): New sections.
48842
48843 2008-11-02  Bruno Haible  <bruno@clisp.org>
48844
48845         Mark 'rmdir' obsolete.
48846         * modules/rmdir (Status, Notice): New sections.
48847         * modules/clean-temp (Depends-on): Add rmdir.
48848         * modules/openat (Depends-on): Likewise.
48849
48850 2008-11-02  Bruno Haible  <bruno@clisp.org>
48851
48852         Mark 'raise' obsolete.
48853         * modules/raise (Status, Notice): New sections.
48854         (Include): Specify <signal.h>.
48855         * modules/stdio (Depends-on): Add raise.
48856         * modules/write (Depends-on): Likewise.
48857
48858 2008-11-02  Bruno Haible  <bruno@clisp.org>
48859
48860         Mark 'memset' obsolete.
48861         * modules/memset (Status, Notice): New sections.
48862
48863 2008-11-02  Bruno Haible  <bruno@clisp.org>
48864
48865         Mark 'memmove' obsolete.
48866         * modules/memmove (Status, Notice): New sections.
48867         * modules/argp (Depends-on): Add memmove.
48868         * modules/argz (Depends-on): Likewise.
48869         * modules/canonicalize (Depends-on): Likewise.
48870         * modules/canonicalize-lgpl (Depends-on): Likewise.
48871         * modules/fts (Depends-on): Likewise.
48872         * modules/getcwd (Depends-on): Likewise.
48873         * modules/human (Depends-on): Likewise.
48874         * modules/regex (Depends-on): Likewise.
48875         * modules/striconveh (Depends-on): Likewise.
48876         * modules/trim (Depends-on): Likewise.
48877         * modules/unistr/u8-move (Depends-on): Likewise.
48878         * modules/unistr/u16-move (Depends-on): Likewise.
48879         * modules/unistr/u32-move (Depends-on): Likewise.
48880
48881 2008-11-02  Bruno Haible  <bruno@clisp.org>
48882
48883         Mark 'memcpy' obsolete.
48884         * modules/memcpy (Status, Notice): New sections.
48885
48886 2008-11-02  Bruno Haible  <bruno@clisp.org>
48887
48888         Mark 'memcmp' obsolete.
48889         * modules/memcmp (Status, Notice): New sections.
48890         * modules/argmatch (Depends-on): Add memchr.
48891         * modules/backupfile (Depends-on): Likewise.
48892         * modules/c-strcasestr (Depends-on): Likewise.
48893         * modules/crypto/des (Depends-on): Likewise.
48894         * modules/csharpcomp (Depends-on): Likewise.
48895         * modules/fnmatch (Depends-on): Likewise.
48896         * modules/git-merge-changelog (Depends-on): Likewise.
48897         * modules/isnand (Depends-on): Likewise.
48898         * modules/isnand-nolibm (Depends-on): Likewise.
48899         * modules/isnanf (Depends-on): Likewise.
48900         * modules/isnanf-nolibm (Depends-on): Likewise.
48901         * modules/isnanl (Depends-on): Likewise.
48902         * modules/isnanl-nolibm (Depends-on): Likewise.
48903         * modules/mbchar (Depends-on): Likewise.
48904         * modules/memcoll (Depends-on): Likewise.
48905         * modules/quotearg (Depends-on): Likewise.
48906         * modules/regex (Depends-on): Likewise.
48907         * modules/relocatable-prog (Depends-on): Likewise.
48908         * modules/same (Depends-on): Likewise.
48909         * modules/signbit (Depends-on): Likewise.
48910         * modules/strcasestr-simple (Depends-on): Likewise.
48911         * modules/unictype/gen-ctype (Depends-on): Likewise.
48912         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
48913         * modules/uniname/uniname (Depends-on): Likewise.
48914         * modules/unistr/u8-cmp (Depends-on): Likewise.
48915
48916 2008-11-02  Bruno Haible  <bruno@clisp.org>
48917
48918         Mark 'memchr' obsolete.
48919         * modules/memchr (Status, Notice): New sections.
48920         * modules/argp (Depends-on): Add memchr.
48921         * modules/base64 (Depends-on): Likewise.
48922         * modules/c-strcasestr (Depends-on): Likewise.
48923         * modules/chdir-long (Depends-on): Likewise.
48924         * modules/fnmatch (Depends-on): Likewise.
48925         * modules/getsubopt (Depends-on): Likewise.
48926         * modules/git-merge-changelog (Depends-on): Likewise.
48927         * modules/glob (Depends-on): Likewise.
48928         * modules/strcasestr-simple (Depends-on): Likewise.
48929         * modules/strnlen (Depends-on): Likewise.
48930
48931 2008-11-02  Bruno Haible  <bruno@clisp.org>
48932
48933         Mark 'atexit' obsolete.
48934         * modules/atexit (Status, Notice): New sections.
48935         * modules/chdir-long (Depends-on): Add atexit.
48936         * modules/wait-process (Depends-on): Likewise.
48937
48938 2008-11-02  Bruno Haible  <bruno@clisp.org>
48939
48940         * gnulib-tool: New option --with-obsolete.
48941         (func_usage): Document it.
48942         (func_modules_transitive_closure): Drop obsolete dependencies if
48943         incobsolete is not true.
48944         (func_import): Read and save the incobsolete variable to the cache.
48945
48946 2008-11-02  Bruno Haible  <bruno@clisp.org>
48947
48948         * modules/TEMPLATE-EXTENDED: New field 'Status'.
48949         * gnulib-tool: New option --extract-status.
48950         (func_usage): Document it.
48951         (sed_extract_prog): Recognize it.
48952         (func_get_status): New function.
48953
48954 2008-10-30  Simon Josefsson  <simon@josefsson.org>
48955
48956         * modules/sockets (License): Change from LGPL to LGPLv2+.
48957
48958 2008-10-28  Simon Josefsson  <simon@josefsson.org>
48959
48960         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
48961
48962 2008-10-28  Simon Josefsson  <simon@josefsson.org>
48963
48964         * MODULES.html.sh (Support for systems lacking POSIX:2001):
48965         Mention times and sys_times.
48966         * modules/sys_times, modules/sys_times-tests: New modules.
48967         * modules/times, modules/times-tests: Likewise
48968         * m4/sys_times_h.m4: New file.
48969         * lib/sys_times.in.h: Likewise
48970         * lib/times.c: Likewise.
48971         * tests/test-sys_times.c: Likewise.
48972         * tests/test-times.c: Likewise.
48973         * doc/posix-headers/sys_times.texi: Update.
48974         * doc/posix-functions/times.texi: Update.
48975
48976 2008-10-28  Jim Meyering  <meyering@redhat.com>
48977
48978         * modules/tempname (Depends-on): Add lstat.
48979
48980         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
48981
48982 2008-10-28  Simon Josefsson  <simon@josefsson.org>
48983
48984         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
48985         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
48986         using idiom used elsewhere in gnulib.
48987
48988 2008-10-27  Jim Meyering  <meyering@redhat.com>
48989
48990         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
48991
48992 2008-10-27  Simon Josefsson  <simon@josefsson.org>
48993
48994         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
48995         TESTS_ENVIRONMENT, for shell scripts that needs to call built
48996         programs.
48997         * tests/test-argp-2.sh: Use $EXEEXT when needed.
48998
48999 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49000
49001         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49002
49003 2008-10-27  Bruno Haible  <bruno@clisp.org>
49004
49005         * tests/test-lstat.c: Include <stdio.h>.
49006
49007 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49008
49009         * modules/lstat-tests: New module.
49010         * tests/test-lstat.c: New file.
49011
49012 2008-10-26  Jim Meyering  <meyering@redhat.com>
49013
49014         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
49015
49016 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49017             Bruno Haible  <bruno@clisp.org>
49018
49019         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
49020         * modules/configmake (Include): Add a note that the include must come
49021         after all system headers.
49022         * lib/javaversion.c: Include configmake.h after all other includes.
49023
49024 2008-10-26  Bruno Haible  <bruno@clisp.org>
49025
49026         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
49027         HAVE_STRUCT_RANDOM_DATA to 1.
49028         (gl_STDLIB_H): Simplify.
49029
49030 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49031
49032         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
49033         substitute HAVE_STRUCT_RANDOM_DATA.
49034         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
49035         random_data.
49036         * modules/stdlib (Makefile.am): Substitute
49037         HAVE_STRUCT_RANDOM_DATA.
49038
49039 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49040
49041         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
49042         * doc/gnulib-intro.texi (Copyright): Likewise.
49043
49044 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49045
49046         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
49047         findings.
49048
49049 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
49050             Bruno Haible  <bruno@clisp.org>
49051
49052         * lib/unistd.in.h: Include <winsock2.h>.
49053         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
49054         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
49055         Provide dummy declarations.
49056         (gethostname): Override.
49057         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
49058         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
49059         gl_PREREQ_SYS_H_WINSOCK2.
49060         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
49061         * doc/posix-functions/gethostname.texi: More details.
49062
49063 2008-10-25  Bruno Haible  <bruno@clisp.org>
49064
49065         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49066         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
49067         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
49068
49069         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
49070         here ...
49071         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
49072         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
49073         gl_UNISTD_H_DEFAULTS.
49074
49075 2008-10-25  Eric Blake  <ebb9@byu.net>
49076
49077         signbit: avoid spurious compiler failure
49078         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
49079         declarations inside function.
49080
49081 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49082             Bruno Haible  <bruno@clisp.org>
49083
49084         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
49085         * modules/random_r (Depends-on): Add stdint.
49086
49087 2008-10-24  Bruno Haible  <bruno@clisp.org>
49088
49089         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
49090         Eggert.
49091         * modules/strerror (License): Likewise.
49092
49093 2008-10-24  Jim Meyering  <meyering@redhat.com>
49094
49095         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
49096         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
49097
49098 2008-10-24  Eric Blake  <ebb9@byu.net>
49099
49100         getgroups: fix compilation when getgroups is available
49101         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
49102         but with <config.h> override of getgroups disabled.
49103
49104 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49105
49106         * doc/gnulib.texi (Header files): Add note about C++ problems.
49107         Explained by Bruno Haible <bruno@clisp.org>.
49108
49109 2008-10-23  Bruno Haible  <bruno@clisp.org>
49110
49111         Define a dummy SA_NODEFER macro on Interix.
49112         * lib/signal.in.h (SA_NODEFER): Define fallback.
49113         Reported by Aleksey Cheusov <cheusov@tut.by> via
49114         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
49115
49116 2008-10-23  Bruno Haible  <bruno@clisp.org>
49117
49118         * modules/freadahead (License): Change to LGPLv2+.
49119         Suggested by Simon Josefsson.
49120
49121 2008-10-23  Jim Meyering  <meyering@redhat.com>
49122
49123         random_r: new module
49124         * modules/random_r: New file.
49125         * m4/random_r.m4: New file.
49126         * lib/random_r.c: New file, from glibc.
49127         * modules/random_r-tests: New file.
49128         * tests/test-random_r.c: New file.
49129         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
49130          Declare.
49131         (RAND_MAX): Define.
49132         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
49133         * modules/stdlib: Substitute them, too.
49134         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
49135         * doc/glibc-functions/initstate_r.texi: Mention the new module.
49136         * doc/glibc-functions/random_r.texi: Likewise.
49137         * doc/glibc-functions/setstate_r.texi: Likewise.
49138         * doc/glibc-functions/srandom_r.texi: Likewise.
49139         * config/srclist.txt: Mention it.
49140
49141 2008-10-23  David Lutterkort  <lutter@redhat.com>
49142
49143         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
49144         link requirement
49145
49146 2008-10-23  Jim Meyering  <meyering@redhat.com>
49147
49148         selinux-h: mark parameters of stub functions as intentionally unused
49149         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
49150         * lib/se-context.in.h: Likewise.
49151
49152 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49153
49154         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
49155
49156 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49157
49158         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
49159
49160 2008-10-22  Eric Blake  <ebb9@byu.net>
49161
49162         glthread/thread: avoid compiler warning
49163         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
49164         Add unreachable abort to silence compiler.
49165
49166 2008-10-22  Eric Blake  <ebb9@byu.net>
49167
49168         netdb: also supply struct addrinfo for cygwin 1.5.x
49169         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
49170         older cygwin.
49171         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
49172         cygwin.
49173         * doc/posix-headers/netdb.texi (netdb.h): Document this.
49174
49175 2008-10-22  Bruno Haible  <bruno@clisp.org>
49176
49177         * users.txt: Update entry about pspp.
49178
49179 2008-10-21  Bruno Haible  <bruno@clisp.org>
49180
49181         Simplification.
49182         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
49183         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
49184
49185         Simplification.
49186         * lib/ioctl.c (ioctl): Don't undefine.
49187         * lib/socket.c (socket): Don't undefine.
49188
49189         Remove unused module indicator macros.
49190         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
49191         GNULIB_$1 as a C macro.
49192
49193         * doc/posix-functions/close.texi: Undo last change.
49194         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
49195         Windows platforms.
49196
49197 2008-10-21  Bruno Haible  <bruno@clisp.org>
49198
49199         Add gethostname() declaration to <unistd.h>.
49200         * lib/unistd.in.h (gethostname): New declaration.
49201         * lib/gethostname.c: Include <unistd.h>.
49202         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
49203         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
49204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
49205         and HAVE_GETHOSTNAME.
49206         * modules/gethostname (Depends-on): Add unistd.
49207         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49208         (Include): Specify <unistd.h>.
49209         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
49210         HAVE_GETHOSTNAME.
49211         * tests/test-gethostname.c: Include <unistd.h> first.
49212
49213 2008-10-21  Bruno Haible  <bruno@clisp.org>
49214
49215         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
49216         * modules/select-tests (Depends-on): Likewise.
49217         Reported by Simon Josefsson.
49218
49219 2008-10-21  Simon Josefsson  <simon@josefsson.org>
49220
49221         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
49222         * lib/accept.c: New file, based on winsock.c.
49223         * lib/bind.c: New file, based on winsock.c.
49224         * lib/connect.c: New file, based on winsock.c.
49225         * lib/getpeername.c: New file, based on winsock.c.
49226         * lib/getsockname.c: New file, based on winsock.c.
49227         * lib/getsockopt.c: New file, based on winsock.c.
49228         * lib/ioctl.c: New file, based on winsock.c.
49229         * lib/listen.c: New file, based on winsock.c.
49230         * lib/recv.c: New file, based on winsock.c.
49231         * lib/recvfrom.c: New file, based on winsock.c.
49232         * lib/send.c: New file, based on winsock.c.
49233         * lib/sendto.c: New file, based on winsock.c.
49234         * lib/setsockopt.c: New file, based on winsock.c.
49235         * lib/shutdown.c: New file, based on winsock.c.
49236         * lib/socket.c: New file, based on winsock.c.
49237         * lib/w32sock.h: New file, based on winsock.c.
49238         * lib/winsock.c: Remove file.
49239         * modules/accept: Likewise.
49240         * modules/bind: Likewise.
49241         * modules/connect: Likewise.
49242         * modules/getpeername: Likewise.
49243         * modules/getsockname: Likewise.
49244         * modules/getsockopt: Likewise.
49245         * modules/ioctl: Likewise.
49246         * modules/listen: Likewise.
49247         * modules/recv: Likewise.
49248         * modules/recvfrom: Likewise.
49249         * modules/send: Likewise.
49250         * modules/sendto: Likewise.
49251         * modules/setsockopt: Likewise.
49252         * modules/shutdown: Likewise.
49253         * modules/socket: Use socket.c instead of winsock.c.
49254         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
49255         * doc/posix-functions/accept.texi: Doc fix.
49256         * doc/posix-functions/bind.texi: Doc fix.
49257         * doc/posix-functions/close.texi: Doc fix.
49258         * doc/posix-functions/connect.texi: Doc fix.
49259         * doc/posix-functions/getpeername.texi: Doc fix.
49260         * doc/posix-functions/getsockname.texi: Doc fix.
49261         * doc/posix-functions/getsockopt.texi: Doc fix.
49262         * doc/posix-functions/ioctl.texi: Doc fix.
49263         * doc/posix-functions/listen.texi: Doc fix.
49264         * doc/posix-functions/recv.texi: Doc fix.
49265         * doc/posix-functions/recvfrom.texi: Doc fix.
49266         * doc/posix-functions/send.texi: Doc fix.
49267         * doc/posix-functions/sendto.texi: Doc fix.
49268         * doc/posix-functions/setsockopt.texi: Doc fix.
49269         * doc/posix-functions/shutdown.texi: Doc fix.
49270         * doc/posix-functions/socket.texi: Doc fix.
49271
49272 2008-10-20  Bruno Haible  <bruno@clisp.org>
49273
49274         Take into account the role of SIGABRT_COMPAT on Windows 2008.
49275         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
49276         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
49277         as an alias for SIGABRT.
49278         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
49279         (sigaction): Map it to SIGABRT.
49280         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
49281
49282 2008-10-20  Bruno Haible  <bruno@clisp.org>
49283
49284         * lib/fts.c: Don't include lstat.h.
49285         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
49286
49287         Move the lstat() declaration to <sys/stat.h>.
49288         * lib/lstat.h: Remove file.
49289         * lib/sys_stat.in.h: Add special invocation convention.
49290         (lstat): New declaration.
49291         * lib/lstat.c (orig_lstat): New function.
49292         (rpl_lstat): Use orig_lstat instead of lstat.
49293         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
49294         AC_C_INLINE. Set REPLACE_LSTAT.
49295         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
49296         and REPLACE_LSTAT.
49297         * modules/lstat (Files): Remove lib/lstat.h.
49298         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
49299         (Include): Specify <sys/stat.h> instead of lstat.h.
49300         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
49301         REPLACE_LSTAT.
49302         * NEWS: Mention the change.
49303
49304 2008-10-20  Bruno Haible  <bruno@clisp.org>
49305
49306         * modules/posix_spawn-tests: New file.
49307         * tests/test-posix_spawn3.c: New file.
49308
49309 2008-10-20  Bruno Haible  <bruno@clisp.org>
49310
49311         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
49312         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49313         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
49314         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49315         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
49316
49317 2008-10-20  Bruno Haible  <bruno@clisp.org>
49318
49319         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
49320         of posix_spawn on AIX 5.3.
49321
49322 2008-10-20  Bruno Haible  <bruno@clisp.org>
49323
49324         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
49325
49326 2008-10-20  Bruno Haible  <bruno@clisp.org>
49327
49328         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
49329         of AC_LANG_PROGRAM.
49330
49331 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49332
49333         * lib/netdb.in.h: Don't define GNU specific constants until they
49334         are supported or needed.  Reported by Bruno Haible
49335         <bruno@clisp.org>.
49336
49337 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49338
49339         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
49340
49341 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49342
49343         * lib/getaddrinfo.h: Remove file.
49344         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
49345         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
49346         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
49347         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
49348         * modules/netdb: Substitute GNULIB_GETADDRINFO.
49349         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
49350         * tests/test-getaddrinfo.c: Likewise.
49351         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
49352         * NEWS: Mention change.
49353
49354 2008-10-19  Bruno Haible  <bruno@clisp.org>
49355
49356         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
49357
49358 2008-10-19  Bruno Haible  <bruno@clisp.org>
49359
49360         * lib/wait-process.c: Include simply <sys/wait.h>.
49361         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
49362         WIFSTOPPED): Remove fallback definitions.
49363         * modules/wait-process (Depends-on): Add sys_wait.
49364
49365         New module 'sys_wait'.
49366         * modules/sys_wait: New file.
49367         * lib/sys_wait.in.h: New file, partially copied from
49368         lib/wait-process.c.
49369         * m4/sys_wait_h.m4: New file.
49370         * doc/posix-headers/sys_wait.texi: Mention the new module.
49371
49372 2008-10-19  Bruno Haible  <bruno@clisp.org>
49373
49374         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
49375
49376 2008-10-19  Bruno Haible  <bruno@clisp.org>
49377
49378         Assume that waitpid() fills an 'int' status, not a 'union wait'.
49379         * lib/wait-process.c (WAIT_T): Remove type.
49380         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
49381         (wait_subprocess): Update.
49382
49383 2008-10-19  Bruno Haible  <bruno@clisp.org>
49384
49385         New module 'atoll'.
49386         * modules/atoll: New file.
49387         * lib/stdlib.in.h (atoll): New declaration.
49388         * lib/atoll.c: New file, from glibc with modifications.
49389         * m4/atoll.m4: New file.
49390         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
49391         HAVE_ATOLL.
49392         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
49393         * doc/posix-functions/atoll.texi: Mention the new module.
49394
49395 2008-10-19  Bruno Haible  <bruno@clisp.org>
49396
49397         Add strtoull() declaration to <stdlib.h>.
49398         * lib/stdlib.in.h (strtoull): New declaration.
49399         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
49400         Set HAVE_STRTOULL.
49401         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
49402         HAVE_STRTOULL.
49403         * modules/strtoull (Depends-on): Add stdlib.
49404         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49405         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
49406         HAVE_STRTOULL.
49407
49408 2008-10-19  Bruno Haible  <bruno@clisp.org>
49409
49410         Add strtoll() declaration to <stdlib.h>.
49411         * lib/stdlib.in.h (strtoll): New declaration.
49412         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
49413         Set HAVE_STRTOLL.
49414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
49415         HAVE_STRTOLL.
49416         * modules/strtoll (Depends-on): Add stdlib.
49417         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49418         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
49419
49420 2008-10-19  Bruno Haible  <bruno@clisp.org>
49421
49422         * modules/bcopy (Depends-on): Add strings.
49423         (Include): Specify <strings.h>.
49424
49425 2008-10-19  Bruno Haible  <bruno@clisp.org>
49426
49427         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
49428
49429 2008-10-19  Bruno Haible  <bruno@clisp.org>
49430
49431         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
49432         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
49433         mingw.
49434
49435 2008-10-19  Bruno Haible  <bruno@clisp.org>
49436
49437         * lib/atanl.c: Don't include isnanl.h.
49438         * lib/cosl.c: Likewise.
49439         * lib/ldexpl.c: Likewise.
49440         * lib/logl.c: Likewise.
49441         * lib/sinl.c: Likewise.
49442         * lib/sqrtl.c: Likewise.
49443         * lib/tanl.c: Likewise.
49444
49445         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
49446         * lib/isnanf.h: Remove file.
49447         * lib/isnand.h: Remove file.
49448         * lib/isnanl.h: Remove file.
49449         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
49450         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
49451         macros.
49452         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
49453         HAVE_ISNANF, don't define it as a C macro.
49454         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
49455         HAVE_ISNAND, don't define it as a C macro.
49456         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
49457         HAVE_ISNANL, don't define it as a C macro.
49458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
49459         HAVE_ISNAN[FDL].
49460         * modules/isnanf (Files): Remove lib/isnanf.h.
49461         (Depends-on): Add math.
49462         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49463         (Include): Specify <math.h> instead of isnanf.h.
49464         * modules/isnand (Files): Remove lib/isnand.h.
49465         (Depends-on): Add math.
49466         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49467         (Include): Specify <math.h> instead of isnand.h.
49468         * modules/isnanl (Files): Remove lib/isnanl.h.
49469         (Depends-on): Add math.
49470         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49471         (Include): Specify <math.h> instead of isnanl.h.
49472         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
49473         HAVE_ISNAN[FDL].
49474         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
49475         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
49476         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
49477         * NEWS: Mention the change.
49478
49479 2008-10-18  Bruno Haible  <bruno@clisp.org>
49480
49481         Add getusershell(), setusershell(), endusershell() declarations to
49482         <unistd.h>.
49483         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
49484         declarations.
49485         * lib/getusershell.c: Include unistd.h.
49486         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
49487         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
49488         HAVE_GETUSERSHELL.
49489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
49490         and HAVE_GETUSERSHELL.
49491         * modules/getusershell (Depends-on): Add unistd, extensions.
49492         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49493         (Include): Specify <unistd.h>.
49494         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
49495         HAVE_GETUSERSHELL.
49496
49497 2008-10-18  Bruno Haible  <bruno@clisp.org>
49498
49499         Add a getloadavg() declaration to <stdlib.h>.
49500         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
49501         getloadavg declaration.
49502         (getloadavg): New declaration.
49503         * lib/getloadavg.c: Include <stdlib.h> first.
49504         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
49505         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
49506         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
49507         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
49508         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
49509         * modules/getloadavg (Depends-on): Add stdlib, extensions.
49510         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49511         (Include): Specify <stdlib.h>.
49512         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
49513         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
49514
49515 2008-10-18  Bruno Haible  <bruno@clisp.org>
49516
49517         * lib/dirchownmod.c: Don't include lchmod.h.
49518
49519         Move the lchmod() declaration to <sys/stat.h>.
49520         * lib/lchmod.h: Remove file.
49521         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
49522         (lchmod): New declaration, moved here from lib/lchown.h.
49523         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
49524         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
49525         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
49526         and HAVE_LCHMOD.
49527         * modules/lchmod (Files): Remove lib/lchmod.h.
49528         (Depends-on): Add sys_stat, extensions.
49529         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
49530         (Include): Specify <sys/stat.h> instead of lchmod.h.
49531         * modules/sys_stat (Depends-on): Add link-warning.
49532         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
49533         definition of GL_LINK_WARNING.
49534         * NEWS: Mention the change.
49535
49536 2008-10-18  Bruno Haible  <bruno@clisp.org>
49537
49538         * lib/fchdir.c: Don't include dirfd.h.
49539         * lib/fts.c: Likewise.
49540         * lib/getcwd.c: Likewise.
49541         * lib/glob.c: Likewise.
49542
49543         Move the dirfd() declaration to <dirent.h>.
49544         * lib/dirfd.h: Remove file.
49545         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
49546         (dirfd): New declaration.
49547         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
49548         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
49549         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
49550         HAVE_DECL_DIRFD.
49551         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
49552         HAVE_DECL_DIRFD.
49553         * modules/dirfd (Files): Remove lib/dirfd.h.
49554         (Depends-on): Add dirent, extensions.
49555         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
49556         (Include): Specify <dirent.h> instead of dirfd.h.
49557         * modules/dirent (Depends-on): Add link-warning.
49558         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
49559         definition of GL_LINK_WARNING.
49560         * NEWS: Mention the change.
49561
49562 2008-10-18  Bruno Haible  <bruno@clisp.org>
49563
49564         Move the euidaccess() declaration to <unistd.h>.
49565         * lib/euidaccess.h: Remove file.
49566         * lib/unistd.in.h (euidaccess): New declaration.
49567         * lib/euidaccess.c: Don't include euidaccess.h.
49568         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
49569         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
49570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
49571         and HAVE_EUIDACCESS.
49572         * modules/euidaccess (Files): Remove lib/euidaccess.h.
49573         (Depends-on): Add unistd.
49574         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49575         (Include): Specify <unistd.h> instead of euidaccess.h.
49576         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
49577         HAVE_EUIDACCESS.
49578         * NEWS: Mention the change.
49579
49580 2008-10-18  Bruno Haible  <bruno@clisp.org>
49581
49582         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
49583
49584         Move the getdomainname() declaration to <unistd.h>.
49585         * lib/getdomainname.h: Remove file.
49586         * lib/unistd.in.h (getdomainname): New declaration.
49587         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
49588         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
49589         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
49590         HAVE_GETDOMAINNAME.
49591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49592         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
49593         * modules/getdomainname (Files): Remove lib/getdomainname.h.
49594         (Depends-on): Add unistd, extensions.
49595         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49596         (Includes): Specify <unistd.h> instead of getdomainname.h.
49597         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
49598         HAVE_GETDOMAINNAME.
49599         * NEWS: Mention the change.
49600
49601 2008-10-18  Bruno Haible  <bruno@clisp.org>
49602
49603         * modules/dirent: New file.
49604         * m4/dirent_h.m4: New file.
49605         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
49606         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
49607         * modules/fchdir (Files): Remove lib/dirent.in.h.
49608         (Depends-on): Add dirent.
49609         (Makefile.am): Move rules to modules/dirent.
49610         * doc/posix-headers/dirent.texi: Mention the new module.
49611
49612 2008-10-18  Bruno Haible  <bruno@clisp.org>
49613
49614         Avoid -Wunused-parameter warnings in public gnulib header files.
49615         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
49616         macro.
49617         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
49618
49619 2008-10-18  Bruno Haible  <bruno@clisp.org>
49620
49621         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
49622         * doc/glibc-functions/error.texi: Mention the module 'error'.
49623         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
49624         * doc/glibc-functions/getdomainname.texi: Mention the module
49625         'getdomainname'.
49626         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
49627         * doc/glibc-functions/getpagesize.texi: Mention the module
49628         'getpagesize'.
49629         * doc/glibc-functions/getusershell.texi: Mention the module
49630         'getusershell'.
49631         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
49632         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
49633         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
49634         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
49635         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
49636         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
49637         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
49638         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
49639         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
49640         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
49641         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
49642         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
49643         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
49644         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
49645
49646 2008-10-17  Bruno Haible  <bruno@clisp.org>
49647
49648         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
49649         HP-UX and IRIX, use -0.0L.
49650         * tests/test-ceill.c (minus_zero): Likewise.
49651         * tests/test-floorl.c (minus_zero): Likewise.
49652         * tests/test-frexpl.c (minus_zero): Likewise.
49653         * tests/test-isnan.c (minus_zerol): Likewise.
49654         * tests/test-isnanl.h (minus_zero): Likewise.
49655         * tests/test-ldexpl.c (minus_zero): Likewise.
49656         * tests/test-roundl.c (minus_zero): Likewise.
49657         * tests/test-signbit.c (minus_zerol): Likewise.
49658         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49659         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49660         * tests/test-truncl.c (minus_zero): Likewise.
49661         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49662         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49663         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
49664         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49665
49666 2008-10-17  Bruno Haible  <bruno@clisp.org>
49667
49668         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
49669         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
49670         that it gets activated only for gcc >= 3.0.
49671         * lib/dirent.in.h: Likewise.
49672         * lib/errno.in.h: Likewise.
49673         * lib/fcntl.in.h: Likewise.
49674         * lib/float.in.h: Likewise.
49675         * lib/iconv.in.h: Likewise.
49676         * lib/inttypes.in.h: Likewise.
49677         * lib/locale.in.h: Likewise.
49678         * lib/math.in.h: Likewise.
49679         * lib/netdb.in.h: Likewise.
49680         * lib/netinet_in.in.h: Likewise.
49681         * lib/search.in.h: Likewise.
49682         * lib/signal.in.h: Likewise.
49683         * lib/spawn.in.h: Likewise.
49684         * lib/stdarg.in.h: Likewise.
49685         * lib/stdint.in.h: Likewise.
49686         * lib/stdio.in.h: Likewise.
49687         * lib/stdlib.in.h: Likewise.
49688         * lib/string.in.h: Likewise.
49689         * lib/strings.in.h: Likewise.
49690         * lib/sys_file.in.h: Likewise.
49691         * lib/sys_ioctl.in.h: Likewise.
49692         * lib/sys_select.in.h: Likewise.
49693         * lib/sys_socket.in.h: Likewise.
49694         * lib/sys_stat.in.h: Likewise.
49695         * lib/sys_time.in.h: Likewise.
49696         * lib/sysexits.in.h: Likewise.
49697         * lib/time.in.h: Likewise.
49698         * lib/unistd.in.h: Likewise.
49699         * lib/wchar.in.h: Likewise.
49700         * lib/wctype.in.h: Likewise.
49701         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49702
49703 2008-10-17  Jim Meyering  <meyering@redhat.com>
49704
49705         ignore-value: don't depend on inline module
49706         * modules/ignore-value (Depends-on): Remove 'inline'.
49707         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
49708         Suggestion from Bruno Haible.
49709
49710 2008-10-17  Bruno Haible  <bruno@clisp.org>
49711
49712         New implementation of condition variables for Win32.
49713         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
49714         (gl_linked_waitqueue_t): New type.
49715         (gl_cond_t): Use it.
49716         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
49717         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
49718         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
49719         (glthread_cond_init_func, glthread_cond_wait_func,
49720         glthread_cond_timedwait_func, glthread_cond_signal_func,
49721         glthread_cond_broadcast_func, glthread_cond_destroy_func):
49722         Reimplemented on the basis of gl_linked_waitqueue_t.
49723         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
49724         gl_waitqueue_t.
49725         (gl_rwlock_t): Update.
49726         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
49727
49728 2008-10-17  Simon Josefsson  <simon@josefsson.org>
49729
49730         * modules/recvfrom (Depends-on): Add dependency on getpeername.
49731         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49732
49733 2008-10-17  Jim Meyering  <meyering@redhat.com>
49734
49735         ignore-value: new module
49736         * modules/ignore-value: New file.
49737         * lib/ignore-value.h: New file.
49738         * MODULES.html.sh (Compiler warning management): New section,
49739         just for this module.  More to come.
49740
49741 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49742
49743         open-safer.c: avoid 'signed and unsigned in conditional...' warning
49744         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
49745         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
49746
49747 2008-10-16  Jim Meyering  <meyering@redhat.com>
49748
49749         openat-die.c: avoid 'no previous prototype' warning
49750         * lib/openat-die.c: Include "openat.h".
49751         Reported by Reuben Thomas <rrt@sc3d.org>.
49752
49753 2008-10-16  Simon Josefsson  <simon@josefsson.org>
49754
49755         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
49756         * lib/netdb.in.h: Fix typo.
49757         Reported by Bruno Haible  <bruno@clisp.org>
49758
49759         * lib/netdb.in.h: Include sys/socket.h for platforms without
49760         netdb.h, to get structures like hostent on MinGW.
49761         * modules/netdb (Depends-on): Add sys_socket.
49762
49763 2008-10-15  Simon Josefsson  <simon@josefsson.org>
49764
49765         * modules/netdb, modules/netdb-tests: New file.
49766         * m4/netdb_h.m4: New file.
49767         * lib/netdb.in.h: Add, currently just an empty file pending
49768         definitions.
49769         * tests/test-netdb.c: New file.
49770         * doc/posix-headers/netdb.texi: Mention that we replace it if
49771         needed.
49772         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49773         netdb.
49774
49775 2008-10-15  Simon Josefsson  <simon@josefsson.org>
49776
49777         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
49778         with code.
49779
49780 2008-10-13  Bruno Haible  <bruno@clisp.org>
49781
49782         * lib/glthread/cond.c (glthread_cond_wait_func,
49783         glthread_cond_timedwait_func): Add a comment.
49784
49785 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
49786
49787         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
49788         * tests/test-select.c: Likewise,
49789
49790 2008-10-13  Bruno Haible  <bruno@clisp.org>
49791
49792         * lib/glthread/cond.c (glthread_cond_wait_func,
49793         glthread_cond_timedwait_func): Fix variable name.
49794         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49795
49796 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
49797
49798         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
49799         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
49800         struct sockaddr.sa_len.
49801         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
49802
49803 2008-10-13  Simon Josefsson  <simon@josefsson.org>
49804
49805         * build-aux/pmccabe2html: Add css and css_url parameters.
49806
49807 2008-10-12  Bruno Haible  <bruno@clisp.org>
49808
49809         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
49810         calling aclx_get.
49811         Reported by Rainer Tammer <tammer@tammer.net>.
49812
49813 2008-10-12  Bruno Haible  <bruno@clisp.org>
49814
49815         Use msvcrt aware primitives for creation/termination of Win32 threads.
49816         * lib/glthread/thread.c: Include <process.h>.
49817         (glthread_create_func): Use _beginthreadex instead of CreateThread.
49818         (wrapper_func): Update signature.
49819         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
49820
49821 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
49822             Bruno Haible  <bruno@clisp.org>
49823
49824         Provide a Win32 implementation of the 'cond' module.
49825         * lib/glthread/cond.h [USE_WIN32]: New implementation.
49826         * lib/glthread/cond.c (glthread_cond_init_func,
49827         glthread_cond_wait_func, glthread_cond_timedwait_func,
49828         glthread_cond_signal_func, glthread_cond_broadcast_func,
49829         glthread_cond_destroy_func) [USE_WIN32]: New functions.
49830         * modules/cond (Dependencies): Add gettimeofday.
49831
49832 2008-10-11  Bruno Haible  <bruno@clisp.org>
49833
49834         Make sleep work on older versions of mingw.
49835         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
49836         only whether it exists.
49837         * doc/posix-functions/sleep.texi: Mention the problem with older
49838         versions of mingw.
49839
49840 2008-10-11  Bruno Haible  <bruno@clisp.org>
49841
49842         New module 'shutdown'.
49843         * modules/shutdown: New file.
49844         * lib/sys_socket.in.h (shutdown): New declaration.
49845         * lib/winsock.c (shutdown): New function.
49846         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
49847         GNULIB_SHUTDOWN.
49848         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
49849         * doc/posix-functions/shutdown.texi: Document the new module.
49850
49851 2008-10-11  Jim Meyering  <meyering@redhat.com>
49852
49853         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
49854
49855 2008-10-11  Bruno Haible  <bruno@clisp.org>
49856
49857         New module 'fclose'.
49858         * modules/fclose: New file.
49859         * lib/stdio.in.h (fclose): New declaration.
49860         * lib/fclose.c: New file.
49861         * m4/fclose.m4: New file.
49862         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
49863         REPLACE_FCLOSE.
49864         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
49865         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
49866         REPLACE_FCLOSE.
49867         * modules/close (Depends-on): fclose.
49868         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
49869
49870 2008-10-11  Bruno Haible  <bruno@clisp.org>
49871
49872         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
49873         set errno and don't call _close.
49874
49875 2008-10-10  Bruno Haible  <bruno@clisp.org>
49876
49877         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
49878         ACL, not afterwards. Fixes test failure on Cygwin.
49879
49880 2008-10-09  Ben Pfaff  <blp@gnu.org>
49881
49882         * build-aux/announce-gen: Fix gnulib version related part of usage
49883         message.  Die with a useful error message if no tarballs are
49884         found.
49885
49886 2008-10-10  Jim Meyering  <meyering@redhat.com>
49887
49888         bootstrap: use git's --depth=N option only if it's supported
49889         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
49890         recognize the --depth option.  Reported by Pádraig Brady.
49891
49892 2008-10-09  Bruno Haible  <bruno@clisp.org>
49893
49894         New module 'ioctl'.
49895         * modules/ioctl: New file.
49896         * lib/sys_socket.in.h (ioctl): Remove declaration.
49897         * lib/winsock.c: Include <sys/ioctl.h>.
49898         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
49899         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49900         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
49901         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
49902         * doc/posix-functions/ioctl.texi: Mention the new module.
49903
49904 2008-10-09  Bruno Haible  <bruno@clisp.org>
49905
49906         New module 'sys_ioctl'.
49907         * lib/sys_ioctl.in.h: New file.
49908         * m4/sys_ioctl_h.m4: New file.
49909         * modules/sys_ioctl: New file.
49910         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
49911
49912 2008-10-09  Bruno Haible  <bruno@clisp.org>
49913
49914         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
49915         * lib/winsock.c: Include <stdarg.h>.
49916         (rpl_ioctl): Change to second argument 'int' and then varargs.
49917
49918 2008-10-09  Bruno Haible  <bruno@clisp.org>
49919
49920         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
49921         when the sys_socket module is present and the system has <winsock2.h>.
49922
49923 2008-10-09  Bruno Haible  <bruno@clisp.org>
49924
49925         * doc/posix-functions/close.texi: Mention module 'close' instead of
49926         module 'sys_socket'.
49927
49928 2008-10-09  Bruno Haible  <bruno@clisp.org>
49929
49930         * doc/glibc-headers/sys_ioctl.texi: New file.
49931         * doc/gnulib.texi: Include it.
49932
49933 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49934             Bruno Haible  <bruno@clisp.org>
49935
49936         Combine the two replacements of 'close'.
49937         * lib/sys_socket.in.h (close): Define to a reminder to include
49938         <unistd.h>.
49939         (_gl_close_fd_maybe_socket): New declaration.
49940         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
49941         * lib/winsock.c (close): Remove undefinition.
49942         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
49943         needed for the gnulib module 'close'.
49944         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
49945         define to an error symbol or to a warning, if suitable.
49946         * lib/close.c: Include <sys/socket.h>.
49947         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
49948         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
49949         UNISTD_H_HAVE_WINSOCK2_H.
49950         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
49951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49952         UNISTD_H_HAVE_WINSOCK2_H.
49953         * modules/sys_socket (Files): Add m4/unistd_h.m4.
49954         (configure.ac): Set a module indicator.
49955         (Makefile.am): Substitute GNULIB_CLOSE.
49956         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
49957         * modules/poll-tests (Depends-on): Add close.
49958         * modules/select-tests (Depends-on): Likewise.
49959
49960 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49961             Bruno Haible  <bruno@clisp.org>
49962
49963         New module 'close'.
49964         * modules/close: New file.
49965         * lib/unistd.in.h (close): Move declaration out of the
49966         FCHDIR_REPLACEMENT scope.
49967         (_gl_unregister_fd): New declaration.
49968         * lib/close.c: New file.
49969         * lib/fchdir.c (rpl_close): Remove function.
49970         * m4/close.m4: New file.
49971         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
49972         close.
49973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
49974         REPLACE_CLOSE.
49975         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
49976         REPLACE_CLOSE.
49977         * modules/fchdir (Depends-on): Add close.
49978
49979 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49980             Bruno Haible  <bruno@clisp.org>
49981
49982         * lib/fcntl.in.h (open): Simplify conditionals.
49983         (_gl_register_fd): New declaration.
49984         * lib/fchdir.c (rpl_open): Remove function.
49985         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
49986         also.
49987         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
49988         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
49989         open.
49990
49991 2008-10-09  Jim Meyering  <meyering@redhat.com>
49992
49993         GNUmakefile: use the more name-space-friendly "_version"
49994         * top/GNUmakefile (_dummy): Update.
49995         (_version): Rename from "version".
49996
49997 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49998             Bruno Haible  <bruno@clisp.org>
49999
50000         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50001         rpl_close.
50002         (_gl_register_fd): New function, extracted from rpl_open.
50003         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50004         (rpl_open, rpl_opendir): Use _gl_register_fd.
50005
50006 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50007
50008         Fix organization of 'open' replacement.
50009         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50010         (gl_FUNC_OPEN): Use it.
50011         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
50012
50013 2008-10-08  Bruno Haible  <bruno@clisp.org>
50014
50015         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
50016
50017 2008-10-08  Simon Josefsson  <simon@josefsson.org>
50018
50019         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
50020         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
50021         listen).
50022
50023 2008-10-08  Eric Blake  <ebb9@byu.net>
50024
50025         GNUmakefile: add 'make version' target
50026         * top/GNUmakefile (_curr-ver): Split version update rules...
50027         (version): ...into a target.
50028
50029 2008-10-07  Bruno Haible  <bruno@clisp.org>
50030
50031         Use a more portable replacement expression for -0.0L.
50032         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
50033         instead of -0.0L. Fix m4 quotation.
50034
50035         * tests/test-signbit.c: Include <float.h>.
50036         (minus_zero): New variable.
50037         (test_signbitl): Use minus_zero instead of -zero.
50038         * modules/signbit-tests (Depends-on): Add float.
50039
50040         * tests/test-ceill.c: Include <float.h>.
50041         (zero): Remove variable.
50042         (minus_zero): New variable.
50043         (main): Use minus_zero instead of -zero.
50044         * modules/ceill-tests (Depends-on): Add float.
50045
50046         * tests/test-floorl.c: Include <float.h>.
50047         (zero): Remove variable.
50048         (minus_zero): New variable.
50049         (main): Use minus_zero instead of -zero.
50050         * modules/floorl-tests (Depends-on): Add float.
50051
50052         * tests/test-roundl.c: Include <float.h>.
50053         (zero): Remove variable.
50054         (minus_zero): New variable.
50055         (main): Use minus_zero instead of -zero.
50056         * modules/roundl-tests (Depends-on): Add float.
50057
50058         * tests/test-truncl.c: Include <float.h>.
50059         (zero): Remove variable.
50060         (minus_zero): New variable.
50061         (main): Use minus_zero instead of -zero.
50062         * modules/truncl-tests (Depends-on): Add float.
50063
50064         * tests/test-frexpl.c (zero): Remove variable.
50065         (minus_zero): New variable.
50066         (main): Use minus_zero instead of -zero.
50067         * modules/frexpl-tests (Depends-on): Add float.
50068
50069         * tests/test-isnan.c (zerol): Remove variable.
50070         (minus_zerol): New variable.
50071         (test_long_double): Use minus_zerol instead of -zerol.
50072         * modules/isnan-tests (Depends-on): Add float.
50073
50074         * tests/test-isnanl.h (zero): Remove variable.
50075         (minus_zero): New variable.
50076         (main): Use minus_zero instead of -zero.
50077         * modules/isnanl-nolibm-tests (Depends-on): Add float.
50078         * modules/isnanl-tests (Depends-on): Add float.
50079
50080         * tests/test-ldexpl.c (zero): Remove variable.
50081         (minus_zero): New variable.
50082         (main): Use minus_zero instead of -zero.
50083         * modules/ldexpl-tests (Depends-on): Add float.
50084
50085         * tests/test-snprintf-posix.h (zerol): Remove variable.
50086         (minus_zerol): New variable.
50087         (test_function): Use minus_zerol instead of -zerol.
50088         * modules/snprintf-posix-tests (Depends-on): Add float.
50089         * modules/vsnprintf-posix-tests (Depends-on): Add float.
50090
50091         * tests/test-sprintf-posix.h (zerol): Remove variable.
50092         (minus_zerol): New variable.
50093         (test_function): Use minus_zerol instead of -zerol.
50094         * modules/sprintf-posix-tests (Depends-on): Add float.
50095         * modules/vsprintf-posix-tests (Depends-on): Add float.
50096
50097         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
50098         (minus_zerol): New variable.
50099         (test_function): Use minus_zerol instead of -zerol.
50100         * modules/vasnprintf-posix-tests (Depends-on): Add float.
50101
50102         * tests/test-vasprintf-posix.c (zerol): Remove variable.
50103         (minus_zerol): New variable.
50104         (test_function): Use minus_zerol instead of -zerol.
50105         * modules/vasprintf-posix-tests (Depends-on): Add float.
50106
50107 2008-10-07  Simon Josefsson  <simon@josefsson.org>
50108
50109         * MODULES.html.sh (Support for building documentation): Mention
50110         pmccabe2html.  Sort entries.
50111
50112         Add pmccabe2html module, from gnupdf.
50113         * build-aux/pmccabe.css: New file.
50114         * build-aux/pmccabe2html: New file.
50115         * m4/pmccabe2html.m4: New file.
50116         * modules/pmccabe2html: New file.
50117
50118 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
50119
50120         flock: new module
50121         * MODULES.html.sh: Add to list of modules.
50122         * lib/flock.c: flock implementation for Windows and Unix systems
50123         which have fcntl.
50124         * doc/glibc-functions/flock.texi: Update documentation.
50125         * lib/sys_file.in.h: <sys/file.h> header file.
50126         * m4/flock.m4: M4 macros.
50127         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
50128         * modules/flock: flock module.
50129         * modules/flock-tests: flock tests module.
50130         * modules/sys_file: sys/file.h module.
50131         * tests/test-flock.c: test suite for flock.
50132
50133 2008-10-06  Jim Meyering  <meyering@redhat.com>
50134
50135         bootstrap: check for LT_INIT more portably still ;-)
50136         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
50137         Spotted by Bruno Haible.
50138
50139 2008-10-06  Eric Blake  <ebb9@byu.net>
50140
50141         test-signbit: avoid tripping Irix cc bug on -0.0L
50142         * tests/test-signbit.c (minus_zerol): Delete, and replace with
50143         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
50144         entire testsuite consistent and avoids an Irix 6.2 bug.
50145
50146 2008-10-05  Bruno Haible  <bruno@clisp.org>
50147             Jim Meyering  <jim@meyering.net>
50148
50149         Add an option for ignoring EPIPE during close_stdout.
50150         * lib/closeout.h: Include <stdbool.h>.
50151         (close_stdout_set_ignore_EPIPE): New declaration.
50152         * lib/closeout.c: Include <stdbool.h>.
50153         (ignore_EPIPE): New variable.
50154         (close_stdout_set_ignore_EPIPE): New function.
50155         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
50156         * lib/close-stream.c (close_stream): Mention the possible EPIPE
50157         failure.
50158         * modules/closeout (Depends-on): Add stdbool.
50159
50160 2008-10-05  Bruno Haible  <bruno@clisp.org>
50161
50162         * modules/accept: New file.
50163         * modules/bind: New file.
50164         * modules/connect: New file.
50165         * modules/getpeername: New file.
50166         * modules/getsockname: New file.
50167         * modules/getsockopt: New file.
50168         * modules/listen: New file.
50169         * modules/recv: New file.
50170         * modules/recvfrom: New file.
50171         * modules/send: New file.
50172         * modules/sendto: New file.
50173         * modules/setsockopt: New file.
50174         * modules/socket: New file.
50175         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
50176         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50177         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
50178         the particular module is requested. Add a link warning when the
50179         particular module is not requested.
50180         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
50181         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
50182         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
50183         the particular module is requested.
50184         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
50185         gl_SYS_SOCKET_H_DEFAULTS): New macros.
50186         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
50187         * modules/sys_socket (Depends-on): Add link-warning.
50188         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
50189         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
50190         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
50191         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
50192         GL_LINK_WARNING.
50193         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
50194         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
50195         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
50196         * doc/posix-functions/getpeername.texi: Mention the new module
50197         'getpeername'.
50198         * doc/posix-functions/getsockname.texi: Mention the new module
50199         'getsockname'.
50200         * doc/posix-functions/getsockopt.texi: Mention the new module
50201         'getsockopt'.
50202         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
50203         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
50204         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
50205         * doc/posix-functions/send.texi: Mention the new module 'send'.
50206         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
50207         * doc/posix-functions/setsockopt.texi: Mention the new module
50208         'setsockopt'.
50209         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
50210         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
50211         listen, connect, accept.
50212         * modules/select-tests (Depends-on): Likewise.
50213
50214 2008-10-05  Bruno Haible  <bruno@clisp.org>
50215
50216         * lib/winsock.c (strerror): Remove unused #undef.
50217         (rpl_close): Remove unused local variable.
50218
50219         * modules/sys_socket (Depends-on); Add errno.
50220
50221 2008-10-05  Bruno Haible  <bruno@clisp.org>
50222
50223         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
50224         (select): Add a link warning when the 'select' module is not used.
50225         * modules/sys_select (Depends-on): Add link-warning.
50226         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
50227         Suggested by Paolo Bonzini.
50228
50229 2008-10-05  Jim Meyering  <meyering@redhat.com>
50230
50231         bootstrap: check for LT_INIT more portably
50232         * build-aux/bootstrap: Avoid using grep -E, since it's not
50233         portable enough.  Suggestion from Bruno Haible.
50234
50235 2008-10-05  Bruno Haible  <bruno@clisp.org>
50236
50237         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
50238         as being fixed by gnulib.
50239
50240 2008-10-05  Bruno Haible  <bruno@clisp.org>
50241
50242         * modules/select-tests: New file, mostly copied from
50243         modules/sys_select-tests.
50244         * tests/test-select.c: New file, mostly copied from
50245         tests/test-sys_select.c.
50246         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
50247         * modules/sys_select-tests (Depends-on): Remove all dependencies.
50248         (Makefile.am): Remove test_sys_select_LDADD.
50249
50250         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
50251         to an undefined symbol, for an error message.
50252         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
50253         (gl_SYS_SELECT_H_DEFAULTS): New macro.
50254         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
50255         winsock-select.c here.
50256         * modules/sys_select (Files): Remove lib/winsock-select.c.
50257         (Depends-on): Remove alloca.
50258         (Makefile.am): Substitute GNULIB_SELECT.
50259         * modules/select: New file.
50260         * doc/posix-functions/select.texi: Update.
50261
50262 2008-10-05  Bruno Haible  <bruno@clisp.org>
50263
50264         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
50265         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
50266         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
50267         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
50268         getdtablesize.
50269         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
50270         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
50271
50272 2008-10-05  Bruno Haible  <bruno@clisp.org>
50273
50274         * modules/getdtablesize-tests: New file.
50275         * tests/test-getdtablesize.c: New file.
50276
50277         New module 'getdtablesize'.
50278         * lib/unistd.in.h (getdtablesize): New declaration.
50279         * lib/getdtablesize.c: New file.
50280         * m4/getdtablesize.m4: New file.
50281         * modules/getdtablesize: New file.
50282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50283         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
50284         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
50285         HAVE_GETDTABLESIZE.
50286         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
50287
50288 2008-10-05  Bruno Haible  <bruno@clisp.org>
50289
50290         * modules/sched (Makefile.am): Fix typo.
50291         Reported by Simon Josefsson.
50292
50293 2008-10-05  Jim Meyering  <meyering@redhat.com>
50294
50295         bootstrap: check for LT_INIT, too
50296         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
50297         are deprecated.  Suggestion from Ralf Wildenhues.
50298
50299 2008-10-05  Bruno Haible  <bruno@clisp.org>
50300
50301         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
50302         overriding them by ours.
50303         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
50304
50305 2008-10-05  Jim Meyering  <meyering@redhat.com>
50306
50307         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
50308         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
50309         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
50310
50311 2008-10-04  Bruno Haible  <bruno@clisp.org>
50312
50313         * modules/dup2 (License): Change to LGPLv2+.
50314         * modules/sleep (License): Likewise.
50315         * modules/perror (License): Likewise.
50316         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
50317         Blake.
50318         * modules/signal (License): Likewise.
50319         * modules/sigprocmask (License): Likewise.
50320         * modules/raise (License): Change to LGPLv2+, with approval by Jim
50321         Meyering.
50322
50323 2008-10-04  Bruno Haible  <bruno@clisp.org>
50324
50325         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
50326         Reported by Rainer Tammer <tammer@tammer.net>.
50327
50328 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
50329             Bruno Haible  <bruno@clisp.org>
50330
50331         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
50332         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
50333         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
50334
50335 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
50336
50337         filevercmp: new module
50338         * lib/filevercmp.h: New function filevercmp comparing version strings.
50339         * lib/filevercmp.c: Implementation of filevercmp function.
50340         * modules/filevercmp: Module metadata.
50341         * tests/test-filevercmp.c: Unit test for new module.
50342         * modules/filevercmp-tests: Unit test metadata.
50343         * MODULES.html.sh: Add filevercmp module.
50344
50345 2008-10-03  Bruno Haible  <bruno@clisp.org>
50346
50347         * lib/c-ctype.h: Add comment.
50348         Reported by Jim Meyering.
50349
50350 2008-10-02  Bruno Haible  <bruno@clisp.org>
50351
50352         * modules/posix_spawn-internal (Depends-on): Add 'open'.
50353
50354 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50355
50356         * build-aux/bootstrap: Allow renaming bootstrap, and change the
50357         name of bootstrap.conf accordingly.
50358
50359 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50360
50361         * build-aux/bootstrap: Install git-merge-changelog configuration
50362         items into .gitconfig if needed.
50363
50364 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50365
50366         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
50367         git repository, and initialize/update it accordingly.
50368
50369 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
50370
50371         * modules/fsync-tests: New file.
50372         * tests/test-fsync.c: New file.
50373
50374         New module 'fsync'.
50375         * lib/fsync.c: New file.
50376         * m4/fsync.m4: New file.
50377         * modules/fsync: New file.
50378         * lib/unistd.in.h (fsync): New declaration.
50379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
50380         GNULIB_FSYNC and HAVE_FSYNC.
50381         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
50382         * MODULES.html.sh (posix_functions): Add fsync.
50383         * doc/posix-functions/fsync.texi: Mention the new module.
50384
50385 2008-10-02  Jim Meyering  <meyering@redhat.com>
50386
50387         fts.c: sync with similar code from coreutils' remove.c
50388         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
50389         Guard also with "#if defined __linux__", since for now at least,
50390         this code is Linux-kernel-specific.
50391
50392 2008-10-02  Jim Meyering  <meyering@redhat.com>
50393
50394         fts: bug fixes
50395         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
50396         Include <sys/vfs.h>, not <sys/statfs.h>.
50397
50398         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
50399         Include <sys/vfs.h>, not <sys/statfs.h>.
50400
50401 2008-10-01  Bruno Haible  <bruno@clisp.org>
50402
50403         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
50404         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
50405         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
50406         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
50407         * doc/posix-functions/posix_spawnp.texi: Likewise.
50408         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
50409         whether posix_spawn actually works.
50410         * m4/pipe.m4 (gl_PIPE): Likewise.
50411         * modules/execute (Files): Add m4/posix_spawn.m4.
50412         * modules/pipe (Files): Add m4/posix_spawn.m4.
50413         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
50414
50415 2008-10-01  Jim Meyering  <meyering@redhat.com>
50416
50417         remove trailing spaces
50418         * NEWS: Likewise.
50419         * lib/poll.c (poll): Likewise.
50420         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
50421         * lib/winsock.c (rpl_close): Likewise.
50422         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
50423         * modules/yield: Likewise.
50424         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
50425         * tests/test-sys_select.c (connect_to_socket): Likewise.
50426
50427         fts.c: adjust a new interface to be more generally useful
50428         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
50429         (fts_build): Adjust caller.
50430
50431 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50432
50433         * modules/cond-tests: New file.
50434         * tests/test-cond.c: New file.
50435
50436 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50437             Bruno Haible  <bruno@clisp.org>
50438
50439         * modules/cond (Dependencies): Add errno, time.
50440         * lib/glthread/cond.h: Include <time.h>.
50441         (gl_cond_define, gl_cond_define_initialized): Use the same definition
50442         across platforms.
50443
50444 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50445             Bruno Haible  <bruno@clisp.org>
50446
50447         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
50448
50449 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50450             Bruno Haible  <bruno@clisp.org>
50451
50452         * modules/tls-tests (Depends-on): Add thread, yield.
50453         (configure.ac): Remove all checks.
50454         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
50455         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
50456         gl_thread_self): Remove definitions. Include glthread/thread.h and
50457         glthread/yield.h instead.
50458         (test_tls): Pass an additional NULL argument to gl_thread_join.
50459
50460 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50461             Bruno Haible  <bruno@clisp.org>
50462
50463         * modules/lock-tests (Depends-on): Add thread, yield.
50464         (configure.ac): Remove all checks.
50465         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
50466         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
50467         gl_thread_self): Remove definitions. Include glthread/thread.h and
50468         glthread/yield.h instead.
50469         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
50470         additional NULL argument to gl_thread_join.
50471
50472 2008-09-30  Bruno Haible  <bruno@clisp.org>
50473
50474         Fix the Win32 implementation of the 'thread' module.
50475         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
50476         pointer type.
50477         (gl_thread_self): Invoke gl_thread_self_func.
50478         (gl_thread_self_func): New declaration.
50479         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
50480         (do_init_self_key, init_self_key): New functions.
50481         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
50482         Remove some fields.
50483         (running_threads, running_lock): Remove variables.
50484         (get_current_thread_handle): New function.
50485         (gl_thread_self_func, wrapper_func, glthread_create_func,
50486         glthread_join_func, gl_thread_exit_func): Largely rewritten and
50487         simplified.
50488
50489 2008-09-30  Bruno Haible  <bruno@clisp.org>
50490
50491         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
50492         files.
50493
50494 2008-09-30  Jim Meyering  <meyering@redhat.com>
50495
50496         fts.m4: correct the test for statfs.f_type
50497         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
50498         when checking for statfs.f_type.
50499
50500 2008-09-15  Simon Josefsson  <simon@josefsson.org>
50501
50502         tests: avoid some compiler warnings
50503         * tests/test-memchr.c (main): Pass NULL indirectly.
50504         * tests/test-getdate.c (main): Remove unused variable 'ret'.
50505
50506 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
50507
50508         getdate.y: disallow countable dayshifts like "4 yesterday ago"
50509         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
50510         exactly specified dayshifts.
50511         (dayshift): New rule.
50512         (rel): Add dayshift.
50513         (relative_time_table) [tomorrow, yesterday, today, now]:
50514         Use tDAY_SHIFT in place of tDAY_UNIT.
50515         * tests/test-getdate.c: Add tests for now-disallowed countable
50516         dayshifts, e.g., "4 yesterday ago".
50517
50518 2008-09-29  Bruno Haible  <bruno@clisp.org>
50519
50520         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
50521         * tests/test-posix_spawn1.in.sh: Renamed from
50522         tests/test-posix_spawn.in.sh.
50523         * tests/test-posix_spawn2.c: New file.
50524         * tests/test-posix_spawn2.in.sh: New file.
50525         * modules/posix_spawnp-tests (Files): Update.
50526         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
50527
50528 2008-09-29  Bruno Haible  <bruno@clisp.org>
50529
50530         Propagate effects of putenv/setenv/unsetenv to child processes.
50531         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
50532         * lib/pipe.c (create_pipe): Likewise.
50533
50534 2008-09-29  Bruno Haible  <bruno@clisp.org>
50535
50536         Enable use of shell scripts as executables in mingw.
50537         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
50538         run the program as a shell script.
50539         * lib/pipe.c (create_pipe): Likewise.
50540         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
50541         resulting array.
50542
50543 2008-09-29  Eric Blake  <ebb9@byu.net>
50544
50545         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
50546
50547 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
50548
50549         * doc/posix-functions/accept.texi: Update mingw problems.
50550         * doc/posix-functions/bind.texi: Update mingw problems.
50551         * doc/posix-functions/close.texi: Update mingw problems.
50552         * doc/posix-functions/connect.texi: Update mingw problems.
50553         * doc/posix-functions/getpeername.texi: Update mingw problems.
50554         * doc/posix-functions/getsockname.texi: Update mingw problems.
50555         * doc/posix-functions/getsockopt.texi: Update mingw problems.
50556         * doc/posix-functions/ioctl.texi: Update mingw problems.
50557         * doc/posix-functions/listen.texi: Update mingw problems.
50558         * doc/posix-functions/recv.texi: Update mingw problems.
50559         * doc/posix-functions/recvfrom.texi: Update mingw problems.
50560         * doc/posix-functions/select.texi: Update mingw problems.
50561         * doc/posix-functions/send.texi: Update mingw problems.
50562         * doc/posix-functions/sendto.texi: Update mingw problems.
50563         * doc/posix-functions/setsockopt.texi: Update mingw problems.
50564         * doc/posix-functions/socket.texi: Update mingw problems.
50565
50566 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
50567             Bruno Haible  <bruno@clisp.org>
50568
50569         * lib/sys_select.in.h: Include sys/time.h.
50570         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
50571         * modules/sys_select: Depend on sys_time.
50572         * tests/test-sys_select.c: Test that sys/select.h defines struct
50573         timeval fully.
50574
50575 2008-09-29  Bruno Haible  <bruno@clisp.org>
50576
50577         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
50578         * lib/sys_select.in.h: Likewise.
50579
50580 2008-09-29  Bruno Haible  <bruno@clisp.org>
50581
50582         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
50583
50584 2008-09-29  Bruno Haible  <bruno@clisp.org>
50585
50586         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
50587         Set LIBSOCKET instead of augmenting LIBS.
50588         * modules/sockets (Link): New section.
50589         * modules/sockets-tests (test_sockets_LDADD): New variable.
50590         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
50591         * modules/poll-tests (test_poll_LDADD): New variable.
50592         * NEWS: Document the change.
50593
50594 2008-09-29  Bruno Haible  <bruno@clisp.org>
50595
50596         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
50597         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
50598         ARPA_INET_H directly.
50599         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50600
50601 2008-09-28  Bruno Haible  <bruno@clisp.org>
50602
50603         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
50604         from gl_HEADER_SYS_SOCKET.
50605         (gl_HEADER_SYS_SOCKET): Invoke it.
50606         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50607
50608 2008-09-28  Bruno Haible  <bruno@clisp.org>
50609
50610         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
50611         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
50612         Needed on OSF/1 4.0.
50613
50614 2008-09-28  Bruno Haible  <bruno@clisp.org>
50615
50616         Override open more carefully.
50617         * lib/open.c (orig_open): New function.
50618         (rpl_open): Use orig_open instead of open.
50619         * lib/fcntl.in.h: Add special invocation convention.
50620         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
50621         (gl_FUNC_OPEN): Invoke it.
50622
50623         Override freopen more carefully.
50624         * lib/freopen.c (orig_freopen): New function.
50625         (rpl_freopen): Use orig_freopen instead of freopen.
50626         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
50627         (gl_FUNC_FREOPEN): Invoke it.
50628
50629         Override fopen more carefully.
50630         * lib/fopen.c (orig_fopen): New function.
50631         (rpl_fopen): Use orig_fopen instead of fopen.
50632         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
50633         (gl_FUNC_FOPEN): Invoke it.
50634         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
50635
50636 2008-09-28  Bruno Haible  <bruno@clisp.org>
50637
50638         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
50639         SIGPIPE.
50640
50641 2008-09-28  Bruno Haible  <bruno@clisp.org>
50642
50643         * tests/test-sigaction.c (handler, main): Disable the check whether
50644         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
50645         glibc systems with LinuxThreads.
50646
50647 2008-09-28  Bruno Haible  <bruno@clisp.org>
50648
50649         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
50650
50651         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
50652         with AIX xlc.
50653         * lib/fcntl.in.h (open): Likewise.
50654         Reported by Rainer Tammer <tammer@tammer.net>.
50655
50656 2008-09-28  Bruno Haible  <bruno@clisp.org>
50657
50658         * modules/posix_spawnp-tests: New file.
50659         * tests/test-posix_spawn.c: New file.
50660         * tests/test-posix_spawn.in.sh: New file.
50661
50662         New module 'posix_spawnp'.
50663         * modules/posix_spawnp: New file.
50664         * lib/spawnp.c: New file, from GNU libc with modifications.
50665         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
50666
50667         New module 'posix_spawn'.
50668         * modules/posix_spawn: New file.
50669         * lib/spawn.c: New file, from GNU libc with modifications.
50670         * doc/posix-functions/posix_spawn.texi: Mention the new module.
50671
50672         New module 'posix_spawnattr_destroy'.
50673         * modules/posix_spawnattr_destroy: New file.
50674         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
50675         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
50676         module.
50677
50678         New module 'posix_spawnattr_setsigmask'.
50679         * modules/posix_spawnattr_setsigmask: New file.
50680         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
50681         modifications.
50682         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
50683         new module.
50684
50685         New module 'posix_spawnattr_getsigmask'.
50686         * modules/posix_spawnattr_getsigmask: New file.
50687         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
50688         modifications.
50689         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
50690         new module.
50691
50692         New module 'posix_spawnattr_setsigdefault'.
50693         * modules/posix_spawnattr_setsigdefault: New file.
50694         * lib/spawnattr_setdefault.c: New file, from GNU libc with
50695         modifications.
50696         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
50697         new module.
50698
50699         New module 'posix_spawnattr_getsigdefault'.
50700         * modules/posix_spawnattr_getsigdefault: New file.
50701         * lib/spawnattr_getdefault.c: New file, from GNU libc with
50702         modifications.
50703         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
50704         new module.
50705
50706         New module 'posix_spawnattr_setschedpolicy'.
50707         * modules/posix_spawnattr_setschedpolicy: New file.
50708         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
50709         modifications.
50710         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
50711         new module.
50712
50713         New module 'posix_spawnattr_getschedpolicy'.
50714         * modules/posix_spawnattr_getschedpolicy: New file.
50715         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
50716         modifications.
50717         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
50718         new module.
50719
50720         New module 'posix_spawnattr_setschedparam'.
50721         * modules/posix_spawnattr_setschedparam: New file.
50722         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
50723         modifications.
50724         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
50725         new module.
50726
50727         New module 'posix_spawnattr_getschedparam'.
50728         * modules/posix_spawnattr_getschedparam: New file.
50729         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
50730         modifications.
50731         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
50732         new module.
50733
50734         New module 'posix_spawnattr_setpgroup'.
50735         * modules/posix_spawnattr_setpgroup: New file.
50736         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
50737         modifications.
50738         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
50739         module.
50740
50741         New module 'posix_spawnattr_getpgroup'.
50742         * modules/posix_spawnattr_getpgroup: New file.
50743         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
50744         modifications.
50745         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
50746         module.
50747
50748         New module 'posix_spawnattr_setflags'.
50749         * modules/posix_spawnattr_setflags: New file.
50750         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
50751         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
50752         module.
50753
50754         New module 'posix_spawnattr_getflags'.
50755         * modules/posix_spawnattr_getflags: New file.
50756         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
50757         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
50758         module.
50759
50760         New module 'posix_spawnattr_init'.
50761         * modules/posix_spawnattr_init: New file.
50762         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
50763         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
50764         module.
50765
50766         New module 'posix_spawn_file_actions_destroy'.
50767         * modules/posix_spawn_file_actions_destroy: New file.
50768         * lib/spawn_faction_destroy.c: New file, from GNU libc with
50769         modifications.
50770         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
50771         the new module.
50772
50773         New module 'posix_spawn_file_actions_addopen'.
50774         * modules/posix_spawn_file_actions_addopen: New file.
50775         * lib/spawn_faction_addopen.c: New file, from GNU libc with
50776         modifications.
50777         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
50778         the new module.
50779
50780         New module 'posix_spawn_file_actions_adddup2'.
50781         * modules/posix_spawn_file_actions_adddup2: New file.
50782         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
50783         modifications.
50784         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
50785         the new module.
50786
50787         New module 'posix_spawn_file_actions_addclose'.
50788         * modules/posix_spawn_file_actions_addclose: New file.
50789         * lib/spawn_faction_addclose.c: New file, from GNU libc with
50790         modifications.
50791         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
50792         the new module.
50793
50794         New module 'posix_spawn_file_actions_init'.
50795         * modules/posix_spawn_file_actions_init: New file.
50796         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
50797         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
50798         new module.
50799
50800         New module 'posix_spawn-internal'.
50801         * modules/posix_spawn-internal: New file.
50802         * lib/spawn_int.h: New file, from GNU libc with modifications.
50803         * lib/spawni.c: New file, from GNU libc with modifications.
50804         * m4/posix_spawn.m4: New file.
50805
50806         New module 'spawn'.
50807         * modules/spawn: New file.
50808         * lib/spawn.in.h: New file, from GNU libc with modifications.
50809         * m4/spawn_h.m4: New file.
50810         * doc/posix-headers/spawn.texi: Mention the new module.
50811
50812 2008-09-28  Bruno Haible  <bruno@clisp.org>
50813
50814         * modules/sched-tests: New file.
50815         * tests/test-sched.c: New file.
50816
50817         New module 'sched'.
50818         * modules/sched: New file.
50819         * lib/sched.in.h: New file.
50820         * m4/sched_h.m4: New file.
50821         * doc/posix-headers/sched.texi: Mention the new module.
50822
50823 2008-09-27  Eric Blake  <ebb9@byu.net>
50824
50825         Fix previous patch, and tweak references to $0.
50826         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
50827         (func_version, func_gnulib_dir): Don't call this program
50828         gnulib-tool.
50829         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
50830         with using $0 in function.
50831         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
50832         (func_fatal_error): Reuse the name the user invoked us with.
50833
50834 2008-09-27  Bruno Haible  <bruno@clisp.org>
50835
50836         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
50837         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
50838         (gl_ICONV_H): Not here.
50839         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
50840         instead of assigning ICONV_H directly.
50841
50842         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
50843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
50844         WCHAR_H directly.
50845
50846 2008-09-27  Bruno Haible  <bruno@clisp.org>
50847
50848         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
50849         * modules/arpa_inet (Depends-on): Add link-warning.
50850         (Makefile.am): Insert the definition of GL_LINK-WARNING.
50851         * modules/unistd (Makefile.am): Likewise.
50852
50853 2008-09-26  Bruno Haible  <bruno@clisp.org>
50854
50855         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
50856         variables.
50857         (func_version): Essentially copied from gnulib-tool.
50858         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
50859         func_readlink): Copied from gnulib-tool.
50860
50861 2008-09-26  Bruno Haible  <bruno@clisp.org>
50862
50863         * gnulib-tool (func_version): Change directory to $gnulib_dir before
50864         invoking git-version-gen.
50865
50866 2008-09-26  Bruno Haible  <bruno@clisp.org>
50867
50868         * posix-modules: Update to directory names changed on 2008-01-19.
50869         Remove commas in output before splitting into words. No more need to
50870         avoid 'ftruncate' since 2007-02-19.
50871
50872 2008-09-26  Bruno Haible  <bruno@clisp.org>
50873
50874         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
50875
50876 2008-09-26  Bruno Haible  <bruno@clisp.org>
50877
50878         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
50879         * modules/fwriteerror (Depends-on): Add errno.
50880
50881 2008-09-26  Bruno Haible  <bruno@clisp.org>
50882
50883         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
50884         * tests/test-vc-list-files-cvs.sh: Likewise.
50885
50886 2008-09-26  Bruno Haible  <bruno@clisp.org>
50887
50888         * doc/posix-headers/sys_resource.texi: Reorder items.
50889
50890 2008-09-26  Jim Meyering  <meyering@redhat.com>
50891
50892         fts: tweak inode comparison function
50893         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
50894         inode numbers, as documented.
50895
50896         fts: sort dirent entries on inode number before traversing
50897         This avoids a quadratic, seek-related performance penalty when
50898         operating on a directory containing many entries (measurable at 10k;
50899         3.5 hours at 2 million entries with a cold cache) on certain types
50900         of file systems, including ext3 and ext4, but not tmpfs.
50901         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
50902         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
50903         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
50904         (fs_handles_readdir_ordered_dirents_efficiently): New function.
50905         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
50906         (fts_build): Set the stat.st_ino member from D_INO.
50907         If it is likely to be useful, sort dirent entries on inode number.
50908
50909         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
50910         and the struct statfs.f_type member.
50911         * modules/fts (Depends-on): Add d-ino.
50912
50913 2008-09-26  Bruno Haible  <bruno@clisp.org>
50914
50915         * modules/sigpipe-die (Depends-on): Add sigpipe.
50916
50917         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
50918         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
50919         and GNULIB_STDIO_H_SIGPIPE are set.
50920         * lib/stdio-write.c: New file.
50921         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
50922         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50923         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50924         REPLACE_STDIO_WRITE_FUNCS.
50925         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
50926         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50927         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50928         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
50929         * modules/stdio (Files): Add lib/stdio-write.c.
50930         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
50931         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50932         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50933         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
50934         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
50935         REPLACE_FPRINTF_POSIX.
50936         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
50937         REPLACE_PRINTF_POSIX.
50938         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
50939         REPLACE_VFPRINTF_POSIX.
50940         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
50941         REPLACE_VPRINTF_POSIX.
50942         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
50943         SIGPIPE issue.
50944         * doc/posix-functions/fputc.texi: Likewise.
50945         * doc/posix-functions/fputs.texi: Likewise.
50946         * doc/posix-functions/fwrite.texi: Likewise.
50947         * doc/posix-functions/printf.texi: Likewise.
50948         * doc/posix-functions/putc.texi: Likewise.
50949         * doc/posix-functions/putchar.texi: Likewise.
50950         * doc/posix-functions/puts.texi: Likewise.
50951         * doc/posix-functions/vfprintf.texi: Likewise.
50952         * doc/posix-functions/vprintf.texi: Likewise.
50953
50954         * modules/safe-write (Depends-on): Add write.
50955
50956         * modules/sigpipe-tests: New file.
50957         * tests/test-sigpipe.c: New file.
50958         * tests/test-sigpipe.sh: New file.
50959
50960         * modules/write: New file.
50961         * lib/unistd.in.h: Include <sys/types.h>.
50962         (write): New declaration.
50963         * lib/write.c: New file.
50964         * m4/write.m4: New file.
50965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50966         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
50967         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
50968         GNULIB_WRITE, REPLACE_WRITE.
50969         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
50970         and the SIGPIPE issue.
50971
50972         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
50973         (raise): New declaration.
50974         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
50975         (ext_signal): New function.
50976         (rpl_raise): New function.
50977         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
50978         GNULIB_SIGNAL_H_SIGPIPE.
50979         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
50980         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
50981
50982         * modules/sigpipe: New file.
50983         * m4/sigpipe.m4: New file.
50984
50985 2008-09-25  Derek Price  <derek@ximbiot.com>
50986             Bruno Haible  <bruno@clisp.org>
50987
50988         * gnulib-tool (func_import): Report all license incompatibilities, not
50989         just the first one.
50990
50991 2008-09-25  Bruno Haible  <bruno@clisp.org>
50992
50993         * gnulib-tool (func_import): When computing the edits, consider not
50994         only the Makefile.ams that exist but also those that will be generated.
50995
50996 2008-09-25  Simon Josefsson  <simon@josefsson.org>
50997
50998         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
50999         fixes gnulib-tool --test warning about duplicate dependency.
51000
51001 2008-09-25  Bruno Haible  <bruno@clisp.org>
51002
51003         * gnulib-tool: Don't ask the user to perform edits in the generated
51004         Makefile.ams.
51005         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51006         apply to the Makefile.am being generated.
51007         (func_emit_tests_Makefile_am): Execute edits that apply to the
51008         Makefile.am being generated.
51009         (func_import): Setup list of Makefile.am edits before emitting the
51010         Makefile.ams, not at the end.
51011         (func_create_testdir): Update.
51012         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51013
51014 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51015
51016         * gnulib-tool (func_import): Store the --tests-base option in the
51017         comment in gnulib-cache.m4.
51018
51019 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
51020
51021         * NEWS: Document increased portability that sys_select now provides.
51022
51023         * lib/sys_select.in.h: Install select wrapper.
51024         * lib/sys_socket.in.h: Use more descriptive name when there is no
51025         select wrapper.
51026         * lib/winsock-select.c: New.
51027         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
51028         Require gl_HEADER_SYS_SOCKET.
51029         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
51030         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
51031         * tests/test-sys_select.c: Add functional tests.
51032
51033 2008-09-24  Eric Blake  <ebb9@byu.net>
51034
51035         open, fopen: close fd leak in last patch
51036         * lib/open.c (rpl_open): Close fd before returning error.
51037         * lib/fopen.c (rpl_fopen): Close fd before returning error.
51038         * doc/posix-functions/open.texi (open): Document that Irix also
51039         has the bug.
51040         * doc/posix-functions/fopen.texi (fopen): Likewise.
51041         Reported by Paolo Bonzini.
51042
51043 2008-09-24  Bruno Haible  <bruno@clisp.org>
51044
51045         Ensure that a filename ending in a slash cannot be used to access a
51046         non-directory.
51047         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
51048         to check whether it's really a directory.
51049         * lib/fopen.c: Include fcntl.h, unistd.h.
51050         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
51051         and fdopen().
51052         * modules/fopen (Depends-on): Add unistd.
51053         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
51054         * tests/test-fopen.c (main): Likewise.
51055         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
51056         * doc/posix-functions/fopen.texi: Likewise.
51057         Reported by Eric Blake.
51058
51059 2008-09-23  Eric Blake  <ebb9@byu.net>
51060
51061         c-stack: avoid compiler optimizations when provoking overflow
51062         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
51063         recursion harder to optimize, to ensure a stack overflow occurs.
51064         * tests/test-c-stack.c (recurse): Likewise.
51065         Borrowed from libsigsegv.
51066
51067         c-stack: work around Irix sigaltstack bug
51068         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
51069         whether sigaltstack uses wrong end of stack_t (copied in part from
51070         libsigsegv).
51071         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
51072         Irix bug, without requiring an over-allocation.
51073         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
51074         bug.
51075
51076         fopen: document mingw bug on directories
51077         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
51078         not allowing a stream visiting a directory, even though reading
51079         from such a stream is not portable.
51080
51081 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51082
51083         * lib/poll.c: Rewrite.
51084         * modules/poll: Depend on alloca.
51085
51086 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51087
51088         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
51089         instead define prototypes for a full set of wrappers.  Ensure
51090         that Cygwin does not use the compatibility code, which is only
51091         for MinGW.
51092         * lib/winsock.c: New.
51093         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
51094         * modules/sys_socket: Add lib/winsock.c.
51095
51096         * modules/poll-tests: Add errno and perror.
51097         * tests/test-poll.c: Use ioctl, not ioctlsocket.
51098
51099 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51100
51101         * tests/test-poll.c: Downgrade minimum needed Winsock version.
51102
51103 2008-09-23  Bruno Haible  <bruno@clisp.org>
51104
51105         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
51106         * doc/glibc-functions/*: Likewise.
51107
51108 2008-09-23  Simon Josefsson  <simon@josefsson.org>
51109
51110         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
51111         success.
51112
51113 2008-09-22  Eric Blake  <ebb9@byu.net>
51114             Bruno Haible  <bruno@clisp.org>
51115
51116         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
51117         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
51118         supply %A but mishandle pseudo-NaN.
51119         Reported by Simon Josefsson.
51120
51121 2008-09-21  Bruno Haible  <bruno@clisp.org>
51122
51123         * tests/test-lock.c (main): Tweak skip message.
51124         * tests/test-tls.c (main): Likewise.
51125
51126 2008-09-21  Bruno Haible  <bruno@clisp.org>
51127
51128         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
51129         whether 'struct sigaction' has sa_sigaction here...
51130         (gl_PREREQ_SIG_HANDLER_H): ... not here.
51131         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
51132
51133 2008-09-21  Bruno Haible  <bruno@clisp.org>
51134
51135         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
51136         section.
51137         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
51138         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
51139         the new section.
51140         (Support for obsolete systems lacking POSIX:2001): New section.
51141         (String handling <string.h>): Move strdup to the new section.
51142         Suggested by Simon Josefsson and Paolo Bonzini.
51143
51144 2008-09-21  Bruno Haible  <bruno@clisp.org>
51145
51146         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
51147         exponents in %e and %g results on 'long double'. Needed for mingw's
51148         improved *printf functions.
51149         * tests/test-vasprintf-posix.c (test_function): Likewise.
51150         * tests/test-snprintf-posix.h (test_function): Likewise.
51151         * tests/test-sprintf-posix.h (test_function): Likewise.
51152         Reported by Eric Blake.
51153
51154 2008-09-21  Bruno Haible  <bruno@clisp.org>
51155
51156         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
51157         * tests/test-sprintf-posix.h (test_function): Likewise.
51158
51159 2008-09-21  Bruno Haible  <bruno@clisp.org>
51160
51161         * modules/getpass (Depends-on): Add strdup-posix.
51162
51163         New module 'strdup-posix'.
51164         * modules/strdup-posix: New file.
51165         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
51166         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
51167         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51168         REPLACE_STRDUP.
51169         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
51170         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
51171         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51172         strdup-posix.
51173
51174         * modules/strdup (Depends-on): Remove malloc-posix.
51175
51176 2008-09-20  Bruno Haible  <bruno@clisp.org>
51177
51178         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
51179         Wildenhues.
51180
51181 2008-09-20  Bruno Haible  <bruno@clisp.org>
51182
51183         Ensure that wint_t gets defined on IRIX 5.3.
51184         * lib/wchar.in.h (wint_t): Define if not defined by the system.
51185         * lib/wctype.in.h (wint_t): Likewise.
51186         (__wctype_wint_t): Remove type.
51187         (isw*): Use wint_t instead of __wctype_wint_t.
51188         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
51189         * modules/wchar (Files): Add m4/wint_t.m4.
51190         (Makefile.am): Substitute HAVE_WINT_T.
51191         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
51192         * tests/test-wctype.c: Check that wint_t is defined.
51193         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
51194         * doc/posix-headers/wctype.texi: Likewise.
51195         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51196
51197 2008-09-18  Bruno Haible  <bruno@clisp.org>
51198
51199         * gnulib-tool (func_exit): Update comment.
51200
51201 2008-09-18  Simon Josefsson  <simon@josefsson.org>
51202
51203         * modules/getaddrinfo (Depends-on): Remove strdup, this module
51204         assumes strdup exists and does not depend on strdup to return
51205         ENOMEM on out of memory conditions.
51206
51207 2008-09-18  Bruno Haible  <bruno@clisp.org>
51208
51209         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
51210         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
51211         digits for the exponent.
51212
51213 2008-09-18  Jim Meyering  <meyering@redhat.com>
51214             Bruno Haible  <bruno@clisp.org>
51215
51216         * lib/vasnprintf.c (decimal_point_char): Define also if
51217         NEED_PRINTF_INFINITE_LONG_DOUBLE.
51218
51219 2008-09-16  Bruno Haible  <bruno@clisp.org>
51220         and Eric Blake  <ebb9@byu.net>
51221
51222         vasnprintf: support Irix 5.3
51223         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
51224         that mishandle long double infinity.
51225         Reported by Tom G. Christensen.
51226
51227 2008-09-16  Bruno Haible  <bruno@clisp.org>
51228
51229         * doc/glibc-functions/scandir.texi: Mention the function is missing on
51230         Solaris 9.
51231         * doc/glibc-functions/alphasort.texi: Likewise.
51232         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
51233
51234 2008-09-16  Jim Meyering  <meyering@redhat.com>
51235
51236         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
51237         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
51238         a umask modification leak out of a subshell.  Otherwise, the
51239         opensolaris /bin/sh would be accepted and thus cause unwarranted
51240         failures in the coreutils test suite.
51241
51242 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
51243
51244         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
51245         to succeed.
51246
51247 2008-09-16  Jim Meyering  <meyering@redhat.com>
51248
51249         avoid spurious test failure when library is built without ACL support
51250         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
51251         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
51252         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
51253         * tests/test-copy-acl.sh: Likewise.
51254
51255 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51256
51257         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
51258         based on character occurrence counts.
51259
51260 2008-09-15  Eric Blake  <ebb9@byu.net>
51261
51262         tests: avoid some compiler warnings
51263         * tests/test-memchr.c (main): Pass NULL indirectly.
51264         * tests/test-closein.c (main): Avoid unused variable.
51265
51266 2008-09-15  Bruno Haible  <bruno@clisp.org>
51267
51268         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
51269         are missing on OpenBSD 4.0 individually.
51270         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51271
51272 2008-09-15  Bruno Haible  <bruno@clisp.org>
51273
51274         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
51275         * doc/posix-functions/strerror.texi: Mention also Cygwin.
51276         * doc/posix-functions/perror.texi: Likewise.
51277         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
51278         is missing.
51279         Reported by Eric Blake.
51280
51281         * lib/errno.in.h: Use replacement values >= 2000.
51282         Reported by Eric Blake.
51283
51284 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51285
51286         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
51287         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
51288         limit.
51289         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
51290         compareseq was aborted.
51291
51292 2008-09-14  Bruno Haible  <bruno@clisp.org>
51293
51294         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
51295         yvec_edit_count.
51296         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
51297         (fstrcmp_bounded): Simplify result computation accordingly.
51298
51299 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51300
51301         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
51302         (fstrcmp): Define in terms of fstrcmp_bounded.
51303         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
51304         lower_bound argument.
51305         Return quickly if the result is certainly < lower_bound.
51306         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
51307
51308 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51309
51310         * lib/diffseq.h (EARLY_ABORT): New macro.
51311         (compareseq): Change return type to bool. Return true when EARLY_ABORT
51312         evaluates to true.
51313
51314 2008-09-14  Bruno Haible  <bruno@clisp.org>
51315
51316         * modules/perror-tests: New file.
51317         * tests/test-perror.sh: New file.
51318         * tests/test-perror.c: New file.
51319
51320         New module 'perror'.
51321         * lib/stdio.in.h (perror): New declaration.
51322         * lib/perror.c: New file.
51323         * m4/perror.m4: New file.
51324         * modules/perror: New file.
51325         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
51326         * doc/posix-functions/perror.texi: Mention the perror module.
51327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
51328         REPLACE_PERROR.
51329         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
51330         REPLACE_PERROR.
51331
51332 2008-09-14  Bruno Haible  <bruno@clisp.org>
51333
51334         * modules/stdio (Makefile.am): Reorder to match the order in
51335         lib/stdio.in.h.
51336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51337
51338 2008-09-13  Bruno Haible  <bruno@clisp.org>
51339
51340         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
51341
51342 2008-09-13  Bruno Haible  <bruno@clisp.org>
51343
51344         Extend strerror to cover the added errno values.
51345         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
51346         (rpl_strerror): Provide error messages for the added errno values and
51347         for the WSA* values.
51348         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
51349         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
51350         strerror.
51351         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
51352         * modules/strerror (Depends-on): Add errno.
51353         * doc/posix-functions/strerror.texi: Document the change.
51354         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
51355         and EOVERFLOW.
51356
51357 2008-09-13  Bruno Haible  <bruno@clisp.org>
51358
51359         * modules/EOVERFLOW: Remove file.
51360         * m4/eoverflow.m4: Remove file.
51361         * modules/EOVERFLOW-tests: Remove file.
51362         * tests/test-EOVERFLOW.c: Remove file.
51363         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
51364         * modules/ftell (Depends-on): Likewise.
51365         * modules/getdelim (Depends-on): Likewise.
51366         * modules/getugroups (Depends-on): Likewise.
51367         * modules/poll (Depends-on): Likewise.
51368         * modules/snprintf (Depends-on): Likewise.
51369         * modules/sprintf-posix (Depends-on): Likewise.
51370         * modules/vasnprintf (Depends-on): Likewise.
51371         * modules/vasprintf (Depends-on): Likewise.
51372         * modules/vfprintf-posix (Depends-on): Likewise.
51373         * modules/vsnprintf (Depends-on): Likewise.
51374         * modules/vsprintf-posix (Depends-on): Likewise.
51375         * modules/xvasprintf (Depends-on): Likewise.
51376         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51377         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
51378         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
51379         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
51380         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51381         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
51382         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
51383         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
51384         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51385         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
51386         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
51387         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
51388         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51389         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
51390         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
51391         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
51392         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51393         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
51394         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
51395         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
51396         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51397         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
51398         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
51399         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
51400         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
51401         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51402         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
51403         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
51404         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
51405         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
51406         * MODULES.html.sh: Remove EOVERFLOW.
51407         * NEWS: Mention the change.
51408
51409 2008-09-13  Bruno Haible  <bruno@clisp.org>
51410
51411         * modules/errno-tests: New file.
51412         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
51413
51414         * lib/errno.in.h: New file.
51415         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
51416         * modules/errno: New file.
51417         * doc/posix-headers/errno.texi: Update documentation.
51418         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
51419
51420 2008-09-13  Bruno Haible  <bruno@clisp.org>
51421
51422         * tests/test-poll.c: Use #if for native Windows, rather than testing
51423         __MSVCRT__.
51424
51425 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51426             Bruno Haible  <bruno@clisp.org>
51427
51428         * lib/glob.c: Don't include <pwd.h> on native Windows.
51429         (WINDOWS32): New macro.
51430         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
51431
51432 2008-09-13  Bruno Haible  <bruno@clisp.org>
51433
51434         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
51435         (ETIMEDOUT): Remove macro.
51436         (glthread_cond_timedwait_multithreaded): New declaration.
51437         (glthread_cond_timedwait): Use it.
51438         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
51439         (glthread_cond_timedwait_multithreaded): New function.
51440
51441 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51442
51443         * modules/poll-tests: Do not check for io.h.
51444         * tests/test-poll.c: Check for __MSVCRT__ instead.
51445
51446 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51447
51448         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
51449         * modules/poll-tests: Add inet_pton, stdbool, sockets.
51450         * tests/test-poll.c: Use them.  Use _pipe on Windows.
51451
51452 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51453
51454         * modules/poll-tests: New.
51455         * tests/test-poll.c: New.
51456
51457 2008-09-12  Eric Blake  <ebb9@byu.net>
51458
51459         frexp: test for NetBSD failure on -0.0
51460         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
51461         not all, bugs from NetBSD 3.0 have been fixed.
51462         * doc/posix-functions/frexp.texi (frexp): Document bug.
51463         Reported by Thomas Klausner.
51464
51465         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
51466         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
51467         literal -0.0.
51468         Reported by Jonathan C. Patschke <jp@centtech.com>.
51469
51470 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51471
51472         * lib/glthread/cond.h: Use dummy implementation also if
51473         USE_WIN32_THREADS.
51474
51475 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51476
51477         * modules/fnmatch-posix (License): Change to LGPLv2+.
51478         * modules/fnmatch-gnu (License): Likewise.
51479
51480 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51481
51482         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
51483
51484 2008-09-11  Jim Meyering  <meyering@redhat.com>
51485
51486         * users.txt: Add gtk-vnc.
51487
51488 2008-09-08  Simon Josefsson  <simon@josefsson.org>
51489
51490         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
51491         rotate amounts.
51492
51493         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
51494         required for 16-bit and 8-bit rotates.
51495         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
51496         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
51497         UINT8_MAX instead of hard-coded constants.
51498         Suggested by Paul Eggert.
51499
51500 2008-09-07  Bruno Haible  <bruno@clisp.org>
51501
51502         * tests/test-striconveh.c (main): Check behaviour when converting from
51503         UTF-7.
51504
51505         Make striconveh work better with stateful encodings.
51506         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
51507         that iconv does not increment the inptr when returning -1/EINVAL.
51508
51509 2008-09-07  Bruno Haible  <bruno@clisp.org>
51510
51511         * build-aux/config.rpath: Update according to libtool-2.2.6.
51512         * build-aux/config.libpath: Likewise.
51513
51514 2008-09-06  Bruno Haible  <bruno@clisp.org>
51515
51516         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
51517         * lib/freadptr.c (freadptr): Likewise.
51518         * lib/freadseek.c (freadptrinc): Likewise.
51519         Reported by Simon Josefsson.
51520
51521 2008-09-06  Bruno Haible  <bruno@clisp.org>
51522
51523         * modules/freadptr (License): Change to LGPLv2+.
51524         * modules/freadseek (License): Likewise.
51525         Suggested by Eric Blake.
51526
51527         * modules/memchr2 (License): Change to LGPLv2+.
51528         Approved by Eric Blake.
51529
51530 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51531             Bruno Haible  <bruno@clisp.org>
51532
51533         Make gnulib-tool work with native 'sed' on AIX.
51534         * gnulib-tool (sed_noop): New variable.
51535         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
51536         func_add_or_update, func_create_testdir): Use it to initialize sed
51537         script variables.
51538         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51539
51540 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
51541             Bruno Haible  <bruno@clisp.org>
51542
51543         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
51544         also works after #include directives.
51545
51546 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
51547
51548         getdate.y: reject an out-of-range timezone value
51549         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
51550         the range [-24...+24].  When specified with only one or two digits,
51551         * tests/test-getdate.c: Tests for the fix.
51552         * doc/getdate.texi: Document this change.
51553
51554 2008-09-03  Bruno Haible  <bruno@clisp.org>
51555
51556         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
51557
51558 2008-09-02  Simon Josefsson  <simon@josefsson.org>
51559
51560         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
51561         <bruce.korb@gmail.com> with ideas from Ben Pfaff
51562         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
51563         Blake <ebb9@byu.net>.
51564
51565         * tests/test-bitrotate.c: Add more test vectors.
51566
51567 2008-09-02  Eric Blake  <ebb9@byu.net>
51568
51569         vasnprintf-posix: handle large precision via %.*d
51570         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
51571         when handling it ourselves.
51572         * tests/test-vasnprintf-posix.c (test_function): Add test.
51573         * tests/test-snprintf-posix.h (test_function): Likewise.
51574         * tests/test-sprintf-posix.h (test_function): Likewise.
51575         * tests/test-vasprintf-posix.c (test_function): Likewise.
51576         Reported by Alain Guibert.
51577
51578 2008-09-01  Eric Blake  <ebb9@byu.net>
51579
51580         c-stack: make configure-time check more robust
51581         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
51582         successful sigaction call.
51583         Reported by Tom G. Christensen.
51584
51585 2008-09-01  Bruno Haible  <bruno@clisp.org>
51586
51587         New module 'findprog-lgpl'.
51588         * modules/findprog-lgpl: New file.
51589         * lib/findprog-lgpl.c: New file.
51590         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
51591         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
51592         to decide whether to use strdup or xstrdup, concatenated_filename or
51593         xconcatenated_filename.
51594
51595 2008-09-01  Bruno Haible  <bruno@clisp.org>
51596
51597         Split module 'concat-filename' into 'concat-filename' (LGPL) and
51598         'xconcat-filename' (GPL).
51599         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
51600         (License): Change to LGPLv2+.
51601         * modules/xconcat-filename: New file.
51602         * lib/concat-filename.h (concatenated_filename): Change specification.
51603         (xconcatenated_filename): New declaration.
51604         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
51605         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
51606         memory situations.
51607         * lib/xconcat-filename.c: New file.
51608         * NEWS: Mention the change.
51609         * lib/findprog.c: Include concat-filename.h, not filename.h.
51610         (find_in_path): Use xconcatenated_filename instead of
51611         concatenated_filename.
51612         * lib/javacomp.c: Include concat-filename.h, not filename.h.
51613         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
51614         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
51615         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
51616         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
51617         instead of concatenated_filename.
51618         * lib/javaexec.c: Include concat-filename.h, not filename.h.
51619         (execute_java_class): Use xconcatenated_filename instead of
51620         concatenated_filename.
51621         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
51622         * modules/javacomp (Depends-on): Likewise.
51623         * modules/javaexec (Depends-on): Likewise.
51624
51625 2008-09-01  Bruno Haible  <bruno@clisp.org>
51626
51627         Split module 'filename' into 'filename' and 'concat-filename'.
51628         * modules/filename: Keep only lib/filename.h.
51629         (License): Change to LGPLv2+.
51630         * modules/concat-filename: New file, extracted from modules/filename.
51631         * lib/filename.h (concatenated_filename): Remove declaration.
51632         * lib/concat-filename.h: New file, extracted from lib/filename.h.
51633         * lib/concat-filename.c: Include concat-filename.h.
51634         * NEWS: Mention the change.
51635
51636 2008-09-01  Simon Josefsson  <simon@josefsson.org>
51637
51638         * lib/bitrotate.h (rotl8, rotr8): Add.
51639
51640         * modules/bitrotate (configure.ac): Need
51641         AC_REQUIRE([AC_C_INLINE]).
51642         (Description): Mention stdint.h.  Reported by Bruno Haible
51643         <bruno@clisp.org>.
51644
51645         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
51646         Paolo Bonzini <bonzini@gnu.org>.
51647
51648 2008-08-31  Bruno Haible  <bruno@clisp.org>
51649
51650         Assume Solaris specific bi-arch conventions on Solaris systems.
51651         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
51652         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
51653         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
51654         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
51655         like acl_libdirstem.
51656         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
51657         acl_libdirstem.
51658         * NEWS: Mention the change.
51659         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
51660
51661 2008-08-31  Jim Meyering  <meyering@redhat.com>
51662
51663         * lib/strftime.h: Add comments describing the two added arguments.
51664
51665         remove duplicate #include directives
51666         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
51667         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
51668
51669 2008-08-31  Bruno Haible  <bruno@clisp.org>
51670
51671         New module 'sigpipe-die'.
51672         * modules/sigpipe-die: New file.
51673         * lib/sigpipe-die.h: New file.
51674         * lib/sigpipe-die.c: New file.
51675         * MODULES.html.sh (Signal handling): Add sigpipe-die.
51676
51677 2008-08-31  Bruno Haible  <bruno@clisp.org>
51678
51679         Don't override previously installed signal handlers.
51680         * lib/fatal-signal.c (saved_sigactions): New variable.
51681         (uninstall_handlers): Reset the signal to the saved handler, not
51682         to SIG_DFL (except when ignored).
51683         (install_handlers): Save the previous handlers.
51684
51685 2008-08-30  Bruno Haible  <bruno@clisp.org>
51686
51687         * gnulib-tool (func_reset_sigpipe): New function.
51688         (func_get_automake_snippet, func_modules_transitive_closure,
51689         func_import): Invoke it before a join command that reads from stdin,
51690         to avoid "echo: write error: Broken pipe" error messages on stderr.
51691         Reported by Sam Steingold <sds@gnu.org>.
51692
51693 2008-08-30  Bruno Haible  <bruno@clisp.org>
51694
51695         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
51696         Code copied from m4/open.m4.
51697         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
51698         access and the filename ends in a slash. Code copied from lib/open.c.
51699         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
51700         * tests/test-fopen.c (main): Check against bug with trailing slash.
51701
51702 2008-08-29  Bruno Haible  <bruno@clisp.org>
51703
51704         Avoid some "gcc -pedantic" warnings.
51705         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
51706         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
51707         * lib/dirent.in.h: Likewise.
51708         * lib/fcntl.in.h: Likewise.
51709         * lib/float.in.h: Likewise.
51710         * lib/iconv.in.h: Likewise.
51711         * lib/inttypes.in.h: Likewise.
51712         * lib/locale.in.h: Likewise.
51713         * lib/math.in.h: Likewise.
51714         * lib/netinet_in.in.h: Likewise.
51715         * lib/search.in.h: Likewise.
51716         * lib/signal.in.h: Likewise.
51717         * lib/stdarg.in.h: Likewise.
51718         * lib/stdint.in.h: Likewise.
51719         * lib/stdio.in.h: Likewise.
51720         * lib/stdlib.in.h: Likewise.
51721         * lib/string.in.h: Likewise.
51722         * lib/strings.in.h: Likewise.
51723         * lib/sys_select.in.h: Likewise.
51724         * lib/sys_socket.in.h: Likewise.
51725         * lib/sys_stat.in.h: Likewise.
51726         * lib/sys_time.in.h: Likewise.
51727         * lib/sysexits.in.h: Likewise.
51728         * lib/time.in.h: Likewise.
51729         * lib/unistd.in.h: Likewise.
51730         * lib/wchar.in.h: Likewise.
51731         * lib/wctype.in.h: Likewise.
51732         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
51733         * modules/fchdir (Makefile.am): Likewise.
51734         * modules/fcntl (Makefile.am): Likewise.
51735         * modules/float (Makefile.am): Likewise.
51736         * modules/iconv_open (Makefile.am): Likewise.
51737         * modules/inttypes (Makefile.am): Likewise.
51738         * modules/locale (Makefile.am): Likewise.
51739         * modules/math (Makefile.am): Likewise.
51740         * modules/netinet_in (Makefile.am): Likewise.
51741         * modules/search (Makefile.am): Likewise.
51742         * modules/signal (Makefile.am): Likewise.
51743         * modules/stdarg (Makefile.am): Likewise.
51744         * modules/stdint (Makefile.am): Likewise.
51745         * modules/stdio (Makefile.am): Likewise.
51746         * modules/stdlib (Makefile.am): Likewise.
51747         * modules/string (Makefile.am): Likewise.
51748         * modules/strings (Makefile.am): Likewise.
51749         * modules/sys_select (Makefile.am): Likewise.
51750         * modules/sys_socket (Makefile.am): Likewise.
51751         * modules/sys_stat (Makefile.am): Likewise.
51752         * modules/sys_time (Makefile.am): Likewise.
51753         * modules/sysexits (Makefile.am): Likewise.
51754         * modules/time (Makefile.am): Likewise.
51755         * modules/unistd (Makefile.am): Likewise.
51756         * modules/wchar (Makefile.am): Likewise.
51757         * modules/wctype (Makefile.am): Likewise.
51758         Reported by Reuben Thomas <rrt@sc3d.org>.
51759
51760 2008-08-29  Bruno Haible  <bruno@clisp.org>
51761
51762         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
51763         any more.
51764
51765 2008-08-29  Simon Josefsson  <simon@josefsson.org>
51766
51767         * MODULES.html.sh (Misc): Add bitrotate.
51768
51769         * modules/bitrotate: New file.
51770
51771         * lib/bitrotate.h: New file.
51772
51773         * modules/bitrotate-tests: New file.
51774
51775         * tests/test-bitrotate.c: New file.
51776
51777         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
51778         on the bitrotate module.
51779
51780         * lib/arctwo.c: Use new bitrotate module.
51781
51782 2008-08-29  Jim Meyering  <meyering@redhat.com>
51783
51784         bootstrap: merge changes from coreutils
51785         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
51786         of copied files.  Remove a kludge, now that this is fixed.
51787         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
51788         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
51789         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
51790
51791 2008-08-29  Bruno Haible  <bruno@clisp.org>
51792
51793         * MODULES.html.sh: Remove --cvs-urls option.
51794
51795 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
51796
51797         maint.mk: adjust to file name change
51798         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
51799
51800 2008-08-28  Jim Meyering  <meyering@redhat.com>
51801
51802         * modules/getndelim2 (License): Relicense to LGPLv2+.
51803         Approved by Richard Stallman for the version of 1995, and by
51804         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
51805
51806 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
51807
51808         * lib/getdelim.c (flockfile, funlockfile): Make all of them
51809         dummy if one is not available.  Do not touch them if
51810         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
51811         (getc_maybe_unlocked): New.
51812         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
51813
51814 2008-08-26  Eric Blake  <ebb9@byu.net>
51815
51816         doc/INSTALL: resync from autoconf
51817         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
51818         (INSTALL_PRELUDE): Delete; this is done more efficiently by
51819         moving...
51820         * install.texi [!autoconf]: ...here.  Resync from autoconf.
51821         * INSTALL: Regenerate.
51822         * INSTALL.ISO: New file.
51823         * INSTALL.UTF-8: Likewise.
51824
51825 2008-08-26  Jim Meyering  <meyering@redhat.com>
51826
51827         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
51828         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
51829         these definitions conditional, so that they may be overridden, too.
51830
51831 2008-08-26  Bruno Haible  <bruno@clisp.org>
51832
51833         Generate INSTALL file variants with prettier quotes.
51834         * doc/Makefile (INSTALL_PRELUDE): New macro.
51835         (INSTALL): Use it.
51836         (INSTALL.ISO, INSTALL.UTF-8): New rules.
51837
51838 2008-08-26  Bruno Haible  <bruno@clisp.org>
51839
51840         Run makeinfo in an English locale.
51841         * doc/Makefile (MAKEINFO): New variable.
51842
51843 2008-08-26  Bruno Haible  <bruno@clisp.org>
51844
51845         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
51846         Suggested by Eric Blake.
51847
51848 2008-08-25  Bruno Haible  <bruno@clisp.org>
51849
51850         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
51851
51852 2008-08-25  Eric Blake  <ebb9@byu.net>
51853
51854         c-stack: test that stack overflow can be caught
51855         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
51856         that platform allows handling stack overflow; at least OS/2 EMX
51857         has sigaltstack, but crashes before transferring control to
51858         handler on stack overflow.
51859         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
51860         check for HAVE_STACK_OVERFLOW_HANDLING.
51861         Reported by Elbert Pol.
51862
51863 2008-08-25  Bruno Haible  <bruno@clisp.org>
51864
51865         * doc/posix-functions/strftime.texi: Fix description of strftime
51866         module.
51867
51868 2008-08-24  Bruno Haible  <bruno@clisp.org>
51869
51870         * tests/uniwidth/test-uc_width2.c: New file.
51871         * tests/uniwidth/test-uc_width2.sh: New file.
51872         * modules/uniwidth/width-tests (Files): Add the new files.
51873         (TESTS): Add uniwidth/test-uc_width2.sh.
51874         (TESTS_ENVIRONMENT): New variable.
51875         (check_PROGRAMS): Add test-uc_width2.
51876         (test_uc_width2_SOURCES): New variable.
51877
51878         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
51879         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
51880         not 0x00AB.
51881         Reported by Alexander V. Lukyanov <lav@netis.ru>.
51882
51883 2008-08-22  Eric Blake  <ebb9@byu.net>
51884
51885         test-lock, test-tls: mention why a test is skipped
51886         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
51887         skipped.
51888         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
51889
51890         count-one-bits: relax license
51891         * modules/count-one-bits (License): Relicense to LGPLv2+.
51892         Suggested by Ludovic Courtès, approved by Ben Pfaff.
51893
51894 2008-08-22  Andreas Schwab  <schwab@suse.de>
51895
51896         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
51897         Remove spurious space in assignment.
51898
51899 2008-08-21  Simon Josefsson  <simon@josefsson.org>
51900
51901         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
51902         Paul Eggert <eggert@CS.UCLA.EDU>.
51903
51904 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
51905
51906         * modules/gettext: Add m4/threadlib.m4.
51907
51908 2008-08-19  Eric Blake  <ebb9@byu.net>
51909
51910         test-c-stack: fix compilation failure on FreeBSD 5.0
51911         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
51912         headers before <sys/resource.h>.
51913         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
51914         the bug.
51915         Reported by Nelson H. F. Beebe.
51916
51917         strverscmp: migrate from "strverscmp.h" to <string.h>
51918         * modules/string (Makefile.am): Add new hooks.
51919         * modules/strverscmp (Files): Remove strverscmp.h.
51920         (Depends-on): Add string.
51921         (configure.ac): Add indicator.
51922         (Include): Mention new header.
51923         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
51924         defaults.
51925         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
51926         results.
51927         * lib/strverscmp.h: Delete.
51928         * lib/string.in.h (strverscmp): Provide declaration, when needed.
51929         * tests/test-strverscmp.c (includes): Adjust client.
51930         * lib/check-version.c (includes): Likewise.
51931         * NEWS: Document the change.
51932
51933         strverscmp: add unit test
51934         * modules/strverscmp-tests: New file.
51935         * tests/test-strverscmp.c: Likewise.
51936
51937 2008-08-19  Simon Josefsson  <simon@josefsson.org>
51938
51939         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
51940         regarding Windows crypto stuff, from Mono.
51941
51942 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
51943
51944         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
51945         if present, for intel RND.  Return error on failures.
51946
51947 2008-08-18  Ben Pfaff  <blp@gnu.org>
51948
51949         gitlog-to-changelog: give better diagnostic for failed pipe-open
51950         * build-aux/gitlog-to-changelog: Improve error message: suggest
51951         that the version of Git may be too old.
51952
51953 2008-08-18  Simon Josefsson  <simon@josefsson.org>
51954
51955         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
51956         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
51957
51958 2008-08-18  Bruno Haible  <bruno@clisp.org>
51959
51960         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
51961         pthread_in_use().
51962
51963 2008-08-18  Bruno Haible  <bruno@clisp.org>
51964
51965         * lib/glthread/threadlib.c: Include <pthread.h>.
51966
51967 2008-08-18  Bruno Haible  <bruno@clisp.org>
51968
51969         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
51970         glthread_recursive_lock_* macros.
51971         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
51972         Fix syntax error.
51973
51974 2008-08-18  Bruno Haible  <bruno@clisp.org>
51975
51976         * lib/glthread/thread.c: Avoid forcing a context switch right after
51977         thread creation.
51978
51979 2008-08-17  Bruno Haible  <bruno@clisp.org>
51980
51981         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
51982         * lib/glthread/thread.h: Provide Win32 specific implementation.
51983         * modules/thread (Files): Add lib/glthread/thread.c.
51984         (Depends-on): Add lock.
51985         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
51986
51987 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51988
51989         New module 'yield'.
51990         * modules/yield: New file.
51991         * lib/glthread/yield.h: New file.
51992         * m4/yield.m4: New file.
51993         * MODULES.html.sh (Multithreading): Add yield.
51994
51995 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51996
51997         New module 'thread'.
51998         * modules/thread: New file.
51999         * lib/glthread/thread.h: New file.
52000         * m4/thread.m4: New file.
52001         * MODULES.html.sh (Multithreading): Add thread.
52002
52003 2008-08-17  Bruno Haible  <bruno@clisp.org>
52004
52005         * lib/glthread/lock.h: Include <stdlib.h> always.
52006         * lib/glthread/tls.h: Likewise.
52007         * lib/glthread/cond.h: Likewise.
52008
52009 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52010
52011         New module 'cond'.
52012         * modules/cond: New file.
52013         * lib/glthread/cond.h: New file.
52014         * lib/glthread/cond.c: New file.
52015         * m4/cond.m4: New file.
52016         * MODULES.html.sh (Multithreading): Add cond.
52017
52018 2008-08-16  Eric Blake  <ebb9@byu.net>
52019
52020         c-stack: fix regression on Irix 5.3 from 2008-06-21
52021         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
52022         sa_sigaction...
52023         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
52024         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
52025         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
52026         * modules/signal (Makefile.am): Use the value.
52027         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
52028         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
52029         * doc/posix-headers/signal.texi (signal.h): Document this
52030         portability issue.
52031         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
52032         Reported by Tom G. Christensen.
52033
52034 2008-08-17  Bruno Haible  <bruno@clisp.org>
52035
52036         New module 'threadlib'.
52037         * modules/threadlib: New file.
52038         * lib/glthread/threadlib.c: New file, extracted from
52039         lib/glthread/lock.c.
52040         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
52041         functions.
52042         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
52043         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
52044         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
52045         macros.
52046         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
52047         (gl_DISABLE_THREADS): Remove macro.
52048         * modules/lock (Files): Remove build-aux/config.rpath.
52049         (Depends-on): Remove havelib. Add threadlib.
52050         (configure.ac-early): Remove section.
52051         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
52052         * modules/tls (Depends-on): Remove lock. Add threadlib.
52053         (Link): New section, copied from threadlib.
52054         * MODULES.html.sh (Multithreading): Add threadlib.
52055
52056 2008-08-14  Bruno Haible  <bruno@clisp.org>
52057
52058         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
52059         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
52060         glthread_rwlock_unlock, glthread_rwlock_destroy,
52061         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
52062         glthread_recursive_lock_destroy): Define as macros always.
52063         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
52064         glthread_lock_lock.
52065         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
52066         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
52067         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
52068         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
52069         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
52070         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
52071         (glthread_recursive_lock_lock_func): Renamed from
52072         glthread_recursive_lock_lock.
52073         (glthread_recursive_lock_unlock_func): Renamed from
52074         glthread_recursive_lock_unlock.
52075         (glthread_recursive_lock_destroy_func): Renamed from
52076         glthread_recursive_lock_destroy.
52077
52078 2008-08-14  Bruno Haible  <bruno@clisp.org>
52079
52080         * lib/glthread/lock.h: Renamed from lib/lock.h.
52081         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
52082         * lib/glthread/tls.h: Renamed from lib/tls.h.
52083         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
52084         * lib/fstrcmp.c: Update includes.
52085         * lib/strsignal.c: Update includes.
52086         * modules/lock (Files, Makefile.am): Update.
52087         (Include): Change to "glthread/lock.h".
52088         * modules/tls (Files, Makefile.am): Update.
52089         (Include): Change to "glthread/tls.h".
52090         * tests/test-lock.c: Update includes.
52091         * tests/test-tls.c: Update includes.
52092         * NEWS: Mention the renamed header files.
52093
52094 2008-08-11  Jim Meyering  <meyering@redhat.com>
52095
52096         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
52097
52098 2008-08-11  Eric Blake  <ebb9@byu.net>
52099
52100         test-c-stack: avoid C99-ism
52101         * tests/test-c-stack.c (main): Fix whitespace, move declaration
52102         before statement.
52103         Reported by Alain Guibert.
52104
52105 2008-08-10  Jim Meyering  <meyering@redhat.com>
52106
52107         ensure that return value of uinttostr et al are not ignored
52108         * lib/inttostr.h (__GNUC_PREREQ): Define.
52109         (__attribute_warn_unused_result__): Define.
52110         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
52111
52112 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
52113
52114         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
52115         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
52116
52117 2008-08-07  Jim Meyering  <meyering@redhat.com>
52118
52119         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
52120
52121         * modules/mkstemp (License): Relicense under LGPLv2+.
52122         * modules/tempname (License): Likewise.
52123
52124 2008-08-06  Bruno Haible  <bruno@clisp.org>
52125
52126         * lib/poll.c (poll): Further micro-optimization.
52127
52128 2008-08-06  Jim Meyering  <meyering@redhat.com>
52129
52130         inet_pton.c: use locale-independent tolower
52131         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
52132         (inet_pton6): Use c_tolower rather than tolower.
52133         * modules/inet_pton (Depends-on): Add c-ctype.
52134
52135 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
52136
52137         * lib/poll.c (poll): Avoid division when timeout is 0, cache
52138         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
52139
52140 2008-08-06  Jim Meyering  <meyering@redhat.com>
52141
52142         * modules/inet_pton (License): Relicense under LGPLv2+.
52143
52144 2008-08-03  Bruno Haible  <bruno@clisp.org>
52145
52146         Additional non-aborting API for lock and tls.
52147         * lib/lock.h: Include <errno.h>.
52148         (glthread_lock_init): New macro/function.
52149         (gl_lock_init): Define as wrapper around glthread_lock_init.
52150         (glthread_lock_lock): New macro/function.
52151         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
52152         (glthread_lock_unlock): New macro/function.
52153         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
52154         (glthread_lock_destroy): New macro/function.
52155         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
52156         (glthread_rwlock_init): New macro/function.
52157         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
52158         (glthread_rwlock_rdlock): New macro/function.
52159         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
52160         (glthread_rwlock_wrlock): New macro/function.
52161         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
52162         (glthread_rwlock_unlock): New macro/function.
52163         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
52164         (glthread_rwlock_destroy): New macro/function.
52165         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
52166         (glthread_recursive_lock_init): New macro/function.
52167         (gl_recursive_lock_init): Define as wrapper around
52168         glthread_recursive_lock_init.
52169         (glthread_recursive_lock_lock): New macro/function.
52170         (gl_recursive_lock_lock): Define as wrapper around
52171         glthread_recursive_lock_lock.
52172         (glthread_recursive_lock_unlock): New macro/function.
52173         (gl_recursive_lock_unlock): Define as wrapper around
52174         glthread_recursive_lock_unlock.
52175         (glthread_recursive_lock_destroy): New macro/function.
52176         (gl_recursive_lock_destroy): Define as wrapper around
52177         glthread_recursive_lock_destroy.
52178         (glthread_once): New macro/function.
52179         (gl_once): Define as wrapper around glthread_once.
52180         Update function declarations.
52181         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
52182         glthread_rwlock_init. Return error code.
52183         (glthread_rwlock_rdlock_multithreaded): Renamed from
52184         glthread_rwlock_rdlock. Return error code.
52185         (glthread_rwlock_wrlock_multithreaded): Renamed from
52186         glthread_rwlock_wrlock. Return error code.
52187         (glthread_rwlock_unlock_multithreaded): Renamed from
52188         glthread_rwlock_unlock. Return error code.
52189         (glthread_rwlock_destroy_multithreaded): Renamed from
52190         glthread_rwlock_destroy. Return error code.
52191         (glthread_recursive_lock_init_multithreaded): Renamed from
52192         glthread_recursive_lock_init. Return error code.
52193         (glthread_recursive_lock_lock_multithreaded): Renamed from
52194         glthread_recursive_lock_lock. Return error code.
52195         (glthread_recursive_lock_unlock_multithreaded): Renamed from
52196         glthread_recursive_lock_unlock. Return error code.
52197         (glthread_recursive_lock_destroy_multithreaded): Renamed from
52198         glthread_recursive_lock_destroy. Return error code.
52199         (glthread_once_call): Make static.
52200         (glthread_once_multithreaded): Renamed from glthread_once.
52201         * lib/tls.h: Include <errno.h>.
52202         (glthread_tls_key_init): New macro/function.
52203         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
52204         (glthread_tls_set): New macro/function.
52205         (gl_tls_set): Define as wrapper around glthread_tls_set.
52206         (glthread_tls_key_destroy): New macro/function.
52207         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
52208         Update function declarations.
52209         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
52210         glthread_tls_get.
52211         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52212
52213 2008-08-04  Eric Blake  <ebb9@byu.net>
52214
52215         gnumakefile: use space, not TAB, outside of targets
52216         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
52217
52218 2008-08-02  Jim Meyering  <meyering@redhat.com>
52219
52220         getdate.y: avoid locale-dependent date parsing failure
52221         In Turkish locales, getdate would fail to recognize keywords
52222         containing a lowercase "i".  The solution is not to rely on
52223         locale-sensitive case-conversion.
52224         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
52225         (lookup_word): Use c_toupper in place of toupper.
52226         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
52227         Reported by Vefa Bicakci <bicave@superonline.com> in
52228         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
52229         * modules/getdate (Depends-on): Add c-ctype.
52230
52231 2008-08-02  Bruno Haible  <bruno@clisp.org>
52232
52233         * gnulib-tool (func_import): When updating or creating a .gitignore
52234         file, prepend each added line with a slash, and ignore leading slashes
52235         from the existing lines.
52236         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52237
52238 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52239
52240         Portability fix for GNU make 3.79.1.
52241         * top/GNUmakefile: Avoid 'else COND', which older GNU make
52242         versions do not understand.
52243
52244 2008-08-01  Bruno Haible  <bruno@clisp.org>
52245
52246         Work around bug of HP-UX 10.20 cc with -0.0 literal.
52247         * tests/test-isnanf.h (zero): New variable.
52248         (main): Avoid literal -0.0f.
52249         * tests/test-isnand.h (zero): New variable.
52250         (main): Avoid literal -0.0.
52251         * tests/test-isnanl.h (zero): New variable.
52252         (main): Avoid literal -0.0L.
52253         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
52254         (test_float, test_double, test_long_double): Avoid literals -0.0f,
52255         -0.0, -0.0L.
52256         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
52257         (test_signbitd): Avoid literal -0.0.
52258         (test_signbitl): Avoid literal -0.0L.
52259         * tests/test-ceilf1.c (zero): New variable.
52260         (main): Avoid literal -0.0f.
52261         * tests/test-ceill.c (zero): New variable.
52262         (main): Avoid literal -0.0L.
52263         * tests/test-floorf1.c (zero): New variable.
52264         (main): Avoid literal -0.0f.
52265         * tests/test-floorl.c (zero): New variable.
52266         (main): Avoid literal -0.0L.
52267         * tests/test-roundf1.c (zero): New variable.
52268         (main): Avoid literal -0.0f.
52269         * tests/test-round1.c (zero): New variable.
52270         (main): Avoid literal -0.0.
52271         * tests/test-roundl.c (zero): New variable.
52272         (main): Avoid literal -0.0L.
52273         * tests/test-truncf1.c (zero): New variable.
52274         (main): Avoid literal -0.0f.
52275         * tests/test-trunc1.c (zero): New variable.
52276         (main): Avoid literal -0.0.
52277         * tests/test-truncl.c (zero): New variable.
52278         (main): Avoid literal -0.0L.
52279         * tests/test-frexp.c (zero): New variable.
52280         (main): Avoid literal -0.0.
52281         * tests/test-frexpl.c (zero): New variable.
52282         (main): Avoid literal -0.0L.
52283         * tests/test-ldexpl.c (zero): New variable.
52284         (main): Avoid literal -0.0L.
52285         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52286         (zerod, zerol): New variables.
52287         (test_function): Avoid literals -0.0, -0.0L.
52288         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52289         (zerod, zerol): New variables.
52290         (test_function): Avoid literals -0.0, -0.0L.
52291         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52292         (zerod, zerol): New variables.
52293         (test_function): Avoid literals -0.0, -0.0L.
52294         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52295         (zerod, zerol): New variables.
52296         (test_function): Avoid literals -0.0, -0.0L.
52297         * tests/test-strtod.c (zero): New variable.
52298         (main): Avoid literal -0.0.
52299         Reported by Jonathan C. Patschke <jp@centtech.com>.
52300
52301 2008-07-31  Jim Meyering  <meyering@redhat.com>
52302
52303         sha256.h: correct definition of SHA224_DIGEST_SIZE
52304         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
52305         Reported by Paulie Pena IV <paulie4@gmail.com>.
52306         Define as 224 / 8, rather than as a literal.
52307         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
52308         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
52309         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
52310
52311 2008-07-31  Bruno Haible  <bruno@clisp.org>
52312
52313         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
52314         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
52315         Reported by Jonathan Patschke <jp@centtech.com>.
52316
52317 2008-07-31  Bruno Haible  <bruno@clisp.org>
52318
52319         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
52320         Reported by Paolo Bonzini <bonzini@gnu.org>.
52321
52322 2008-07-30  Eric Blake  <ebb9@byu.net>
52323
52324         test-strtod: allow compilation without -lm
52325         * tests/test-strtod.c (main): Avoid link dependence on fabs.
52326         Reported by Dennis Clarke <blastwave@gmail.com>.
52327
52328 2008-07-28  Jim Meyering  <meyering@redhat.com>
52329
52330         bootstrap: work also when there are no .po files in po/
52331         * build-aux/bootstrap (update_po_files): Complete the change
52332         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
52333
52334 2008-07-27  Jim Meyering  <meyering@redhat.com>
52335
52336         * users.txt: Add zile.
52337
52338 2008-07-26  Ben Pfaff  <blp@gnu.org>
52339
52340         Add missing dependencies on new m4/exponent[fdl].m4 files.
52341         * modules/isnanf-nolibm: Add m4/exponentf.m4.
52342         * modules/isnand-nolibm: Add m4/exponentd.m4.
52343         * modules/isnanl-nolibm: Add m4/exponentl.m4.
52344         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
52345         m4/isnan[fdl].m4, because the macros actually used moved.
52346         Reported by Jim Meyering.
52347
52348 2008-07-14  Ben Pfaff  <blp@gnu.org>
52349
52350         Add isinf module.
52351         * lib/isinf.c: New file.
52352         * lib/math.in.h: Define isinf macro if we have decided to replace
52353         it.
52354         * m4/isinf.m4: New file.
52355         * m4/math_h.m4: Initialize and substitute variables for isinf
52356         module.
52357         * modules/isinf: New file.
52358         * modules/isinf-tests: New file.
52359         * modules/math: Add substitutions for new module.
52360         * tests/test-isinf.c: New file.
52361         * doc/posix-functions/isinf.texi: Mention new module.
52362         * MODULES.html.sh: Mention new module.
52363
52364 2008-07-14  Ben Pfaff  <blp@gnu.org>
52365
52366         Factor out some macros for use by additional modules.
52367         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
52368         exponentf.m4.
52369         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
52370         exponentd.m4.
52371         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
52372         file exponentl.m4.
52373         * m4/exponentf.m4: New file.
52374         * m4/exponentd.m4: New file.
52375         * m4/exponentl.m4: New file.
52376         * modules/isnanf: Use new file m4/exponentf.m4.
52377         * modules/isnand: Use new file m4/exponentd.m4.
52378         * modules/isnanl: Use new file m4/exponentl.m4.
52379
52380 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
52381
52382         mktime.c: normalize tp->tm_isdst value to -1/0/1.
52383         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
52384         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
52385         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
52386
52387         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
52388         readlink on platforms without PATH_MAX.
52389
52390 2008-07-21  Eric Blake  <ebb9@byu.net>
52391
52392         Warn, not fail, on stale version.
52393         * top/GNUmakefile (_curr-ver): Tone down previous patch.
52394
52395         Don't allow installation with stale devel version number.
52396         * top/GNUmakefile (_is-install-target): New macro.
52397         (_curr-ver): Forbid installation with stale version number.
52398
52399 2008-07-20  Bruno Haible  <bruno@clisp.org>
52400
52401         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
52402         TESTS_ENVIRONMENT.
52403         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
52404
52405 2008-07-20  Bruno Haible  <bruno@clisp.org>
52406
52407         * lib/c-stack.h (c_stack_action): Add documentation.
52408         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
52409
52410 2008-07-20  Bruno Haible  <bruno@clisp.org>
52411
52412         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
52413         * modules/readlink (License): Likewise.
52414
52415 2008-07-17  Eric Blake  <ebb9@byu.net>
52416
52417         * modules/c-stack (Link): Fix typo.
52418
52419         Make c-stack use libsigsegv, when available.
52420         * modules/c-stack (Depends-on): Add libsigsegv.
52421         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
52422         needed.
52423         * lib/c-stack.c (SIGSTKSZ): Define fallback.
52424         (segv_handler, overflow_handler, c_stack_action)
52425         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
52426         implementation when libsigsegv is available, but only when using
52427         the library is necessary.
52428         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
52429         comment, explaining why XSI check fails on Linux.
52430         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
52431         * tests/test-c-stack2.sh: Tweak skip message.
52432         * NEWS: Document new link-time requirements.
52433
52434 2008-07-16  Eric Blake  <ebb9@byu.net>
52435
52436         c-stack: Expose false positives when not using libsigsegv.
52437         * modules/c-stack-tests (Files): Expand test.
52438         * tests/test-c-stack.c (main): Add means to conditionally trigger
52439         non-overflow SIGSEGV.
52440         * tests/test-c-stack2.sh: New file.
52441
52442 2008-07-14  Bruno Haible  <bruno@clisp.org>
52443
52444         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
52445         Reported by Eric Blake.
52446
52447 2008-07-14  Sam Steingold  <sds@gnu.org>
52448             Bruno Haible  <bruno@clisp.org>
52449
52450         New module libsigsegv.
52451         * modules/libsigsegv: New file.
52452         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
52453         modifications.
52454         * MODULES.html.sh (Signal handling): New section.
52455
52456 2008-07-14  Bruno Haible  <bruno@clisp.org>
52457
52458         * modules/unictype/ctype-* (Description): Add the word "function".
52459         Improves the resulting doc in MODULES.html.
52460
52461 2008-07-12  Ben Pfaff  <blp@gnu.org>
52462
52463         Add longlong module.
52464         * modules/longlong: New file.
52465
52466 2008-07-12  Bruno Haible  <bruno@clisp.org>
52467
52468         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
52469         to empty.
52470
52471 2008-07-10  Ben Pfaff  <blp@gnu.org>
52472
52473         Add isnan module.
52474         * doc/posix-functions/isnan.texi: Mention new module.
52475         * lib/math.in.h: Define isnan macro if we have decided to replace
52476         it.
52477         * m4/isnan.m4: New file.
52478         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
52479         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
52480         also.
52481         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
52482         redundancy.
52483         * m4/math_h.m4: Initialize and substitute variables for isnan
52484         module.
52485         * modules/isnan: New file.
52486         * modules/isnan-tests: New file.
52487         * modules/math: Add substitutions for new module.
52488         * tests/test-isnan.c: New file.
52489         * MODULES.html.sh: Mention new module.
52490
52491 2008-07-10  Ben Pfaff  <blp@gnu.org>
52492
52493         Add isnanf module.
52494         * lib/isnanf.m4: New file.
52495         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
52496         (gl_HAVE_ISNANF_IN_LIBM): New macro.
52497         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
52498         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
52499         * modules/isnanf: New file.
52500         * modules/isnanf-tests: New file.
52501         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
52502         files.
52503         * tests/test-isnanf-nolibm.c: factored most of its contents into
52504         new file tests/test-isnanf.h.
52505         * tests/test-isnanf.h: New file.
52506         * tests/test-isnanf.c: New file.
52507         * MODULES.html.sh: Mention new module.
52508         * doc/glibc-functions/isnanf.texi: Mention new module.
52509
52510 2008-07-10  Ben Pfaff  <blp@gnu.org>
52511
52512         Add isnand module.
52513         * lib/isnand.h: New file.
52514         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
52515         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
52516         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
52517         functionality also.
52518         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
52519         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
52520         (gl_HAVE_ISNAND_IN_LIBM): New macro.
52521         * modules/isnand: New file.
52522         * modules/isnand-tests: New file.
52523         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
52524         files.
52525         * tests/test-isnand-nolibm.c: factored most of its contents into
52526         new file tests/test-isnand.h.
52527         * tests/test-isnand.h: New file.
52528         * tests/test-isnand.c: New file.
52529         * MODULES.html.sh: Mention new module.
52530
52531 2008-07-10  Ben Pfaff  <blp@gnu.org>
52532
52533         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
52534         * lib/isnand.h: Rename lib/isnand-nolibm.h.
52535         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
52536         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
52537         * modules/isnanf-nolibm: Update references to renamed files.
52538         * modules/isnand-nolibm: Likewise.
52539         * modules/isnanf-nolibm-tests: Likewise.
52540         * modules/isnand-nolibm-tests: Likewise.
52541         * lib/frexp.c: Likewise.
52542         * lib/isfinite.c: Likewise.
52543         * lib/signbitd.c: Likewise.
52544         * lib/signbitf.c: Likewise.
52545         * lib/vasnprintf.c: Likewise.
52546         * tests/test-ceilf1.c: Likewise.
52547         * tests/test-ceilf2.c: Likewise.
52548         * tests/test-floorf1.c: Likewise.
52549         * tests/test-floorf2.c: Likewise.
52550         * tests/test-frexp.c: Likewise.
52551         * tests/test-round1.c: Likewise.
52552         * tests/test-round2.c: Likewise.
52553         * tests/test-roundf1.c: Likewise.
52554         * tests/test-strtod.c: Likewise.
52555         * tests/test-trunc1.c: Likewise.
52556         * tests/test-trunc2.c: Likewise.
52557         * tests/test-truncf1.c: Likewise.
52558         * tests/test-truncf2.c: Likewise.
52559         * NEWS: Mention the renamed header files.
52560
52561 2008-07-11  Jim Meyering  <meyering@redhat.com>
52562
52563         vc-list-files: make the last-resort awk code more portable
52564         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
52565         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
52566         does not support it.
52567
52568 2008-07-10  Eric Blake  <ebb9@byu.net>
52569
52570         Work with tar's bootstrap.
52571         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
52572         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
52573         an m4 comment.
52574
52575 2008-07-09  Jim Meyering  <meyering@redhat.com>
52576
52577         posix-shell.m4: fix typo that made this test malfunction
52578         * m4/posix-shell.m4: Remove capitalization in variable name.
52579
52580 2008-07-08  Bruno Haible  <bruno@clisp.org>
52581
52582         * m4/onceonly.m4: Update comments.
52583         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52584
52585 2008-07-04  Jim Meyering  <meyering@redhat.com>
52586
52587         * users.txt: Add vc-dwim.
52588         (bison, coreutils): Use the gitweb URL.
52589
52590 2008-07-03  Jim Meyering  <meyering@redhat.com>
52591
52592         * users.txt: Add libffcall.  From Sam Steingold.
52593
52594 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
52595
52596         getdate.y: do not ignore TZ with relative day, month or year offset
52597         * lib/getdate.y (get_date): Move the tz-handling block to follow the
52598         relative-date-handling, since otherwise, the latter would clobber the
52599         sole output (an updated Start value) of the tz-handling block.
52600         * tests/test-getdate.c: Tests for the fix
52601
52602 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52603
52604         Recognize 'foo_LIBRARIES += libgnu.a'.
52605         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
52606         makefile snippet has already specified an installation location,
52607         also using '+='.
52608
52609 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
52610
52611         getdate.y: factor out common actions
52612         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
52613         Use them in place of open-coded actions.
52614
52615 2008-07-01  Simon Josefsson  <simon@josefsson.org>
52616
52617         Add self-test for getdate module.
52618         * modules/getdate-tests: New file.
52619         * tests/test-getdate.c: New file.
52620
52621 2008-06-29  Bruno Haible  <bruno@clisp.org>
52622
52623         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
52624         .gitignore.
52625         Reported by Sylvain Beucler <beuc@beuc.net>.
52626
52627 2008-06-29  Bruno Haible  <bruno@clisp.org>
52628
52629         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
52630         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
52631
52632 2008-06-29  Bruno Haible  <bruno@clisp.org>
52633
52634         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
52635         EXTRA_DIST.
52636         Reported by Sylvain Beucler <beuc@beuc.net>.
52637
52638 2008-06-26  Jim Meyering  <meyering@redhat.com>
52639
52640         make several modules depend on the "open" module
52641         This provides slightly increased consistency when opening-for-write
52642         the name of a non-directory spelled with a trailing slash.
52643         * modules/chdir-safer: Likewise.
52644         * modules/chown: Likewise.
52645         * modules/clean-temp: Likewise.
52646         * modules/copy-file: Likewise.
52647         * modules/fchdir: Likewise.
52648         * modules/fcntl-safer: Likewise.
52649         * modules/pipe: Likewise.
52650         * modules/utime: Likewise.
52651         Prompted by Eric Blake and Bruno Haible.
52652
52653 2008-06-24  Andreas Schwab  <schwab@suse.de>
52654
52655         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
52656         literals can be used as initializers for global variables.
52657
52658 2008-06-23  Eric Blake  <ebb9@byu.net>
52659
52660         Make gnulib-cache.m4 easier to diff.
52661         * gnulib-tool (func_import): Allow newlines when reading cached
52662         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
52663
52664 2008-06-23  Bruno Haible  <bruno@clisp.org>
52665
52666         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
52667         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
52668         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
52669         m4/signalblocking.m4.
52670         (gl_PREREQ_SIGACTION): Don't invoke it.
52671         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
52672         gl_PREREQ_SIG_HANDLER_H.
52673         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
52674         Don't check for sigaction here.
52675
52676 2008-06-23  Bruno Haible  <bruno@clisp.org>
52677
52678         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
52679         (install_handlers): Don't set the SA_RESETHAND flag.
52680
52681 2008-06-23  Bruno Haible  <bruno@clisp.org>
52682
52683         * m4/sigaction.m4: Comment fixes.
52684         * lib/signal.in.h: Likewise.
52685
52686 2008-06-23  Eric Blake  <ebb9@byu.net>
52687
52688         Fix typo.
52689         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
52690
52691         Avoid SA_ namespace.
52692         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
52693         Reported by Ralf Wildenhues.
52694
52695         Avoid test failure due to SA_RESTORER.
52696         * tests/test-sigaction.c (SA_MASK): New macro.
52697         (main): Avoid failing due to extension flags being set.
52698         Reported by Jim Meyering.
52699
52700         Revert use of sig-handler.h in sigprocmask.c.
52701         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
52702         it requires the existence of struct sigaction.
52703         * lib/sigprocmask.c (handler_t): Restore typedef.
52704         (rpl_signal, old_handlers): Use local type.
52705
52706 2008-06-22  Bruno Haible  <bruno@clisp.org>
52707
52708         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
52709         conditionally.
52710         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52711
52712 2008-06-22  Bruno Haible  <bruno@clisp.org>
52713
52714         * doc/posix-functions/siginterrupt.texi: Move note.
52715
52716         * lib/signal.in.h (SA_RESTART): New macro.
52717         * lib/sigaction.c: Update comment.
52718
52719         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
52720
52721         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
52722         (gl_PREREQ_SIGPROCMASK): Invoke it.
52723         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
52724
52725         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
52726
52727         * lib/sigprocmask.c: Update a comment.
52728
52729 2008-06-21  Eric Blake  <ebb9@byu.net>
52730
52731         Use sigaction module rather than signal().
52732         * modules/c-stack (Depends-on): Add sigaction.
52733         * modules/fatal-signal (Depends-on): Likewise.
52734         * modules/nanosleep (Depends-on): Likewise.
52735         * modules/sigprocmask (Files): Add sig-handler.h.
52736         * modules/sigaction (Files): Likewise.
52737         * lib/sig-handler.h (get_handler): New file, suggested by Paul
52738         Eggert.
52739         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
52740         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
52741         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
52742         (init_fatal_signals): Likewise.
52743         * lib/nanosleep.c (rpl_nanosleep): Likewise.
52744         (siginterrupt): Delete fallback.
52745         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
52746         instead.
52747         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
52748         siginterrupt.
52749
52750         New module sigaction, for mingw.
52751         * modules/sigaction: New module...
52752         * modules/sigaction-tests: ...and its test.
52753         * m4/sigaction.m4: New file.
52754         * lib/sigaction.c: Likewise.
52755         * tests/test-sigaction.c: Likewise.
52756         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
52757         * modules/signal (Makefile.am): Likewise.
52758         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
52759         needed.
52760         * doc/posix-headers/signal.texi (signal.h): Mention provided
52761         types.
52762         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
52763         that sigaction is preferable.
52764         * doc/posix-functions/sigaction.texi (sigaction): Mention new
52765         module.
52766         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52767         sigaction.
52768
52769         Improve robustness of sigprocmask by overriding signal.
52770         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
52771         is in use.
52772         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
52773         (SIGKILL, SIGSTOP): Provide fallbacks.
52774         (rpl_signal): Implement.
52775         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
52776         signal can be called inside handlers.
52777
52778         Fix nanosleep module on mingw.
52779         * modules/nanosleep (Depends-on): Add sys_select.
52780         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
52781
52782         Fix licensing of sigprocmask.
52783         * modules/raise (License): Relicense as LGPL.
52784
52785 2008-06-21  Bruno Haible  <bruno@clisp.org>
52786
52787         * lib/propername.c (proper_name_utf8): Don't use the transliterated
52788         result if it contains question marks.
52789         Reported by Michael Geng <linux@michaelgeng.de>.
52790
52791 2008-06-19  Bruno Haible  <bruno@clisp.org>
52792
52793         Fix CVS-ism.
52794         * doc/gnulib.texi: Include updated-stamp.texi.
52795         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
52796         (updated-stamp.texi): New rule.
52797         (gnulib.info): Depend on it.
52798         * doc/.gitignore: Add updated-stamp.texi.
52799         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
52800
52801 2008-06-19  Bruno Haible  <bruno@clisp.org>
52802
52803         * doc/Makefile (gnulib.info): Update and simplify dependencies.
52804         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52805
52806 2008-06-19  Eric Blake  <ebb9@byu.net>
52807
52808         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
52809         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
52810         Reported by Stepan Kasal.
52811
52812 2008-06-18  Bruno Haible  <bruno@clisp.org>
52813
52814         * lib/fatal-signal.c (init_fatal_signals): Add comment.
52815         Reported by Eric Blake.
52816
52817 2008-06-18  Eric Blake  <ebb9@byu.net>
52818
52819         Work around cygwin 1.5.25 strsignal bug.
52820         * tests/test-strsignal.c: Allow for const char *.
52821         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
52822
52823 2008-06-18  Simon Josefsson  <simon@josefsson.org>
52824
52825         * users.txt: Update URL to article and add author/date
52826         information.
52827
52828 2008-06-17  Bruno Haible  <bruno@clisp.org>
52829
52830         New macro gl_DISABLE_THREADS.
52831         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
52832         if the user did not pass --enable-threads or --disable-threads option.
52833         (gl_DISABLE_THREADS): New macro.
52834         Reported by Eric Blake <ebb9@byu.net>.
52835
52836 2008-06-17  Bruno Haible  <bruno@clisp.org>
52837
52838         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
52839         when the macro ignores it.
52840         Based on a patch by Eric Blake <ebb9@byu.net>.
52841
52842 2008-06-17  Bruno Haible  <bruno@clisp.org>
52843
52844         * modules/tls (License): Change to LGPLv2+.
52845         Reported by Eric Blake.
52846
52847 2008-06-17  Eric Blake  <ebb9@byu.net>
52848
52849         Simplify c-stack prerequisites.
52850         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
52851         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
52852         no longer requires <ucontext.h> to exist.  Optimize setrlimit
52853         check.
52854         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
52855         <sys/resource.h>.
52856
52857         Move c-stack test into testsuite.
52858         * modules/c-stack-tests: New file.
52859         * lib/c-stack.c [DEBUG]: Move test program...
52860         * tests/test-c-stack.c: ...into this new file.  Skip rather than
52861         fail test if sigaltstack is lacking.
52862         * tests/test-c-stack.sh: New driver file.
52863
52864 2008-06-16  Eric Blake  <ebb9@byu.net>
52865
52866         Use raise module consistently.
52867         * modules/fatal-signal (Depends-on): Add raise.
52868         * modules/sigprocmask (Depends-on): Likewise.
52869         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
52870         * lib/sigprocmask.c (sigprocmask): Likewise.
52871         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
52872         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
52873
52874         Fix compliance bug in sigpending.
52875         * lib/sigprocmask.c (sigpending): Return pending array via
52876         parameter, not return value.
52877
52878 2008-06-14  Eric Blake  <ebb9@byu.net>
52879
52880         Improve obstack-printf test code.
52881         * tests/test-obstack-printf.c (test_function): Fix comment, and
52882         simplify usage of obstack_* in macros.  Add a test for coverage.
52883         Reported by Bruno Haible.
52884
52885 2008-06-14  Bruno Haible  <bruno@clisp.org>
52886
52887         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
52888         array size as a constant, not as a const variable.
52889         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
52890         AC_USE_SYSTEM_EXTENSIONS.
52891         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
52892         Test whether the obstack_printf function actually exists.
52893         * modules/obstack-printf (Depends-on): Add extensions.
52894         (Include): Remove obstack.h.
52895         * modules/obstack-printf-posix (Depends-on): Add extensions.
52896         (Include): Remove obstack.h.
52897
52898 2008-06-13  Eric Blake  <ebb9@byu.net>
52899
52900         Add obstack-printf and obstack-printf-posix modules.
52901         * modules/obstack-printf: New file.
52902         * modules/obstack-printf-posix: Likewise.
52903         * MODULES.html.sh (Misc): Mention them.
52904         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52905         Likewise.
52906         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52907         Likewise.
52908         * modules/stdio (Makefile.am): Accomodate new modules.
52909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52910         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
52911         Declare.
52912         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
52913         functions.
52914         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
52915         (gl_REPLACE_OBSTACK_PRINTF): New macros
52916         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
52917         * tests/test-obstack-printf.c: New file.
52918         * modules/obstack-printf-tests: Likewise.
52919         * modules/obstack-printf-posix-tests: Likewise.
52920
52921 2008-06-11  Bruno Haible  <bruno@clisp.org>
52922
52923         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
52924         * lib/open.c: Include errno.h.
52925         (open): Fail when attempting to write to a file that has a trailing
52926         slash.
52927         * tests/test-open.c (main): Test against trailing slash bug.
52928         * doc/posix-functions/open.texi: Mention the trailing slash bug.
52929
52930 2008-06-10  Bruno Haible  <bruno@clisp.org>
52931
52932         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
52933         for $? to work inside the trap command, with various /bin/sh-s.
52934         * tests/test-vc-list-files-cvs.sh: Likewise.
52935
52936 2008-06-10  Bruno Haible  <bruno@clisp.org>
52937
52938         * lib/acl-internal.h: Don't include gettext.h here.
52939         * lib/set-mode-acl.c: Include gettext.h here.
52940         * lib/copy-acl.c: Likewise.
52941
52942 2008-06-10  Bruno Haible  <bruno@clisp.org>
52943
52944         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
52945         * lib/wait-process.c (wait_subprocess): Likewise.
52946         * lib/execute.h (execute): Add termsigp argument.
52947         * lib/execute.c (execute): Likewise.
52948         * lib/csharpcomp.c (compile_csharp_using_pnet,
52949         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
52950         * lib/csharpexec.c (execute_csharp_using_pnet,
52951         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
52952         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
52953         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
52954         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
52955         is_jikes_present): Update.
52956         * lib/javaexec.c (execute_java_class): Update.
52957         * lib/javaversion.c (execute_and_read_line): Update.
52958         * NEWS: Document the changes.
52959         Reported by Eric Blake.
52960
52961 2008-06-10  Eric Blake  <ebb9@byu.net>
52962
52963         Add missing include.
52964         * tests/test-strstr.c (includes): Add <signal.h>.
52965         * tests/test-strcasestr.c (includes): Likewise.
52966         * tests/test-memmem.c (includes): Likewise.
52967
52968 2008-06-10  Bruno Haible  <bruno@clisp.org>
52969
52970         * lib/wait-process.c (wait_subprocess): Add an assertion.
52971
52972 2008-06-10  Bruno Haible  <bruno@clisp.org>
52973
52974         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
52975
52976 2008-06-10  Bruno Haible  <bruno@clisp.org>
52977
52978         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
52979         using alarm().
52980         * tests/test-strcasestr.c (main): Likewise.
52981         * tests/test-strstr.c (main): Likewise.
52982
52983 2008-06-09  Bruno Haible  <bruno@clisp.org>
52984
52985         Work around the Solaris 10 ACE ACLs ABI change.
52986         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
52987         declare if ACL_NO_TRIVIAL is present.
52988         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
52989         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
52990         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
52991         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
52992         define if ACL_NO_TRIVIAL is present.
52993         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
52994         and use the current ABI.
52995         (file_has_acl): Use same #if condition as elsewhere.
52996         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
52997         in use, and use the current ABI.
52998         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
52999         Reported by Jim Meyering.
53000
53001 2008-06-09  Eric Blake  <ebb9@byu.net>
53002
53003         Work around environments that (stupidly) ignore SIGALRM.
53004         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53005         before using alarm().
53006         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53007         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53008         Reported by Ian Beckwith <ianb@erislabs.net>.
53009
53010         Produce autobuild blurb earlier in log.
53011         * modules/autobuild (configure.ac-early): Move AB_INIT here.
53012
53013 2008-06-09  Jim Meyering  <meyering@redhat.com>
53014         and Ondřej Vašík  <ovasik@redhat.com>
53015
53016         utimens.c: correct kernel bug work-around
53017         Ondřej Vašík found that the invalid return value of 280 indicates
53018         failure, not success, and the kernel bug we're trying to work
53019         around affects not just the utimensat call, but also the fallback
53020         futimens call.
53021         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
53022         not success.
53023         [HAVE_FUTIMENS]: Use the same work-around, here.
53024
53025 2008-06-09  Jim Meyering  <meyering@redhat.com>
53026
53027         add more guards around definition of ACE_-related code
53028         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
53029         ALLOW and ACE_OWNER are also defined.
53030
53031 2008-06-08  Bruno Haible  <bruno@clisp.org>
53032
53033         * lib/acl-internal.h: Add me as co-author.
53034         * lib/file-has-acl.c: Likewise.
53035         * lib/set-mode-acl.c: Likewise.
53036         * lib/copy-acl.c: Likewise.
53037
53038 2008-06-08  Bruno Haible  <bruno@clisp.org>
53039
53040         Add support for AIX ACLs.
53041         * lib/acl-internal.h (acl_nontrivial): New declaration.
53042         * lib/file-has-acl.c (acl_nontrivial): New function.
53043         (file_has_acl): Add implementation using AIX 4 ACL API.
53044         * lib/set-mode-acl.c (qset_acl): Likewise.
53045         * lib/copy-acl.c (qcopy_acl): Likewise.
53046
53047 2008-06-08  Bruno Haible  <bruno@clisp.org>
53048
53049         Add support for HP-UX ACLs.
53050         * lib/acl-internal.h (acl_nontrivial): New declaration.
53051         * lib/file-has-acl.c (acl_nontrivial): New function.
53052         (file_has_acl): Add implementation using HP-UX 11 ACL API.
53053         * lib/set-mode-acl.c (qset_acl): Likewise.
53054         * lib/copy-acl.c (qcopy_acl): Likewise.
53055
53056 2008-06-08  Bruno Haible  <bruno@clisp.org>
53057
53058         Add support for Cygwin ACLs.
53059         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
53060         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
53061         the chmod_or_fchmod call.
53062         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
53063
53064 2008-06-08  Bruno Haible  <bruno@clisp.org>
53065
53066         Fix bug with setuid modes in Solaris 10+ code.
53067         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
53068         succeeded, when the mode contains some special bits.
53069
53070 2008-06-08  Bruno Haible  <bruno@clisp.org>
53071
53072         Add support for Solaris 7..10 ACLs.
53073         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
53074         declarations.
53075         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
53076         functions.
53077         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
53078         * lib/set-mode-acl.c (qset_acl): Likewise.
53079         * lib/copy-acl.c (qcopy_acl): Likewise.
53080
53081 2008-06-08  Bruno Haible  <bruno@clisp.org>
53082
53083         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
53084         declaration.
53085         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
53086         (acl_access_nontrivial): Remove MacOS X case.
53087         (file_has_acl): Use acl_extended_nontrivial.
53088         * lib/copy-acl.c (qcopy_acl): Likewise.
53089
53090 2008-06-08  Bruno Haible  <bruno@clisp.org>
53091
53092         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
53093
53094 2008-06-08  Jim Meyering  <meyering@redhat.com>
53095
53096         * modules/acl (Maintainer): Add Bruno Haible.
53097
53098 2008-06-07  Bruno Haible  <bruno@clisp.org>
53099
53100         Improve support for Tru64 ACLs.
53101         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
53102         ACL on OSF/1.
53103
53104 2008-06-07  Bruno Haible  <bruno@clisp.org>
53105
53106         Add support for MacOS X ACLs.
53107         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
53108         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
53109         * lib/set-mode-acl.c (qset_acl): Likewise.
53110         * lib/copy-acl.c (qcopy_acl): Likewise.
53111
53112 2008-06-07  Bruno Haible  <bruno@clisp.org>
53113
53114         Fix memory leak introduced on 2008-05-22.
53115         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
53116         use.
53117
53118 2008-06-07  Bruno Haible  <bruno@clisp.org>
53119
53120         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
53121         to construct an empty ACL.
53122
53123 2008-06-07  Bruno Haible  <bruno@clisp.org>
53124
53125         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
53126         precisely.
53127         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
53128
53129 2008-06-07  Bruno Haible  <bruno@clisp.org>
53130
53131         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
53132         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
53133
53134 2008-06-07  Bruno Haible  <bruno@clisp.org>
53135
53136         * doc/posix-functions/_setjmp.texi: Explain the use of this function
53137         regardless of POSIX.
53138         * doc/posix-functions/_longjmp.texi: Likewise.
53139         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
53140         SystemV platform in this case.
53141
53142 2008-06-06  Eric Blake  <ebb9@byu.net>
53143
53144         Document abort() bugs.
53145         * doc/posix-functions/abort.texi (abort): Mention anomalies.
53146
53147         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
53148         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
53149         sigsetjmp.
53150         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
53151         siglongjmp, but only as a macro.
53152         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
53153         is obsolete.
53154         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
53155
53156         Tweak documentation to cover cygwin argz bugs.
53157         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
53158         argz bug fix; no code change needed since no cygwin releases
53159         occurred between the last fix and the bug being tested.
53160         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
53161         module and recently fixed cygwin bugs.
53162         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
53163         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
53164         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
53165         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
53166         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
53167         Likewise.
53168         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
53169         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
53170         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
53171         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
53172         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
53173         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
53174         Likewise.
53175
53176         Avoid gcc warning on cygwin.
53177         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
53178         !ACL_NO_TRIVIAL]: Avoid unused variable.
53179
53180 2008-06-05  Eric Blake  <ebb9@byu.net>
53181
53182         Be tolerant of UNKNOWN version in gnulib-tool test dir.
53183         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
53184         git-version-gen fails to come up with a version.
53185         Reported by Simon Josefsson.
53186
53187 2008-06-05  Jim Meyering  <meyering@redhat.com>
53188             Paul Eggert  <eggert@cs.ucla.edu>
53189
53190         utimens.c: work around a probable Linux kernel bug
53191         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
53192         appears to be a kernel bug that causes utimensat to return 280
53193         instead of 0, indicating success.
53194
53195 2008-06-04  Bruno Haible  <bruno@clisp.org>
53196
53197         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
53198         2008-06-01 commit.
53199
53200 2008-06-04  Bruno Haible  <bruno@clisp.org>
53201
53202         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
53203         * lib/file-has-acl.c (acl_access_nontrivial): New function.
53204         (file_has_acl): Use it. Save errno afterwards.
53205         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
53206
53207 2008-06-03  Bruno Haible  <bruno@clisp.org>
53208
53209         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
53210         draft code. Simplify #ifs.
53211         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
53212         Put Solaris code after POSIX-draft code. Fix comments regarding
53213         Solaris 10, HP-UX. Mention Cygwin.
53214         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
53215
53216 2008-06-03  Eric Blake  <ebb9@byu.net>
53217
53218         Provide fallback for older kernels.
53219         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
53220         Provide runtime fallback if kernel lacks support.
53221         Reported by Mike Frysinger.
53222
53223 2008-06-02  Bruno Haible  <bruno@clisp.org>
53224
53225         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
53226         it exists.
53227
53228 2008-06-02  Bruno Haible  <bruno@clisp.org>
53229
53230         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
53231         * lib/copy-acl.c (qcopy_acl): Update comment.
53232
53233 2008-06-02  Bruno Haible  <bruno@clisp.org>
53234
53235         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
53236         like ACL APIs.
53237
53238 2008-06-02  Bruno Haible  <bruno@clisp.org>
53239
53240         * tests/test-file-has-acl.sh: Use different code for Cygwin.
53241         * tests/test-set-mode-acl.sh: Likewise.
53242         * tests/test-copy-acl.sh: Likewise.
53243         * tests/test-copy-file.sh: Likewise.
53244
53245 2008-06-02  Bruno Haible  <bruno@clisp.org>
53246
53247         * tests/test-file-has-acl.sh: Remove unused code.
53248
53249 2008-06-01  Bruno Haible  <bruno@clisp.org>
53250
53251         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
53252         (copy_acl): Just a wrapper around qcopy_acl that emits the error
53253         messages.
53254         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
53255
53256 2008-06-01  Bruno Haible  <bruno@clisp.org>
53257
53258         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
53259         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
53260         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
53261         APIs.
53262         * modules/acl-tests (configure.ac): Remove tests now contained in
53263         m4/acl.m4.
53264
53265 2008-06-02  Jim Meyering  <meyering@redhat.com>
53266
53267         announce-gen: use a better key-server host name
53268         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
53269         it may be more consistently reliable.  Suggested by Werner Koch
53270         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
53271
53272 2008-06-01  Bruno Haible  <bruno@clisp.org>
53273
53274         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
53275         Reported by Voroskoi Andras <voroskoi@gmail.com>.
53276
53277 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
53278
53279         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
53280
53281 2008-06-01  Bruno Haible  <bruno@clisp.org>
53282
53283         New ACL tests.
53284         * tests/test-file-has-acl.sh: New file.
53285         * tests/test-file-has-acl.c: New file.
53286         * tests/test-set-mode-acl.sh: New file.
53287         * tests/test-set-mode-acl.c: New file.
53288         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
53289         * tests/test-copy-acl.c: New file.
53290         * modules/acl-tests: New file, based on modules/copy-file-tests.
53291         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
53292         (Depends-on): Add acl-tests.
53293         (configure.ac): Remove checks.
53294         (Makefile.am): Don't create test-sameacls program here any more.
53295
53296 2008-06-01  Bruno Haible  <bruno@clisp.org>
53297
53298         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
53299         * tests/test-sameacls.c: Include progname.h.
53300         (main): Invoke set_program_name. Portability fixes for MacOS X,
53301         Solaris, HP-UX.
53302
53303 2008-06-01  Bruno Haible  <bruno@clisp.org>
53304
53305         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
53306         function.
53307         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
53308
53309 2008-06-01  Bruno Haible  <bruno@clisp.org>
53310
53311         * modules/rpmatch (Depends-on): Add strdup.
53312
53313 2008-06-01  Bruno Haible  <bruno@clisp.org>
53314
53315         * lib/pipe.c: Include unistd-safer.h.
53316         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
53317         * modules/pipe (Depends-on): Add unistd-safer.
53318
53319 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53320
53321         * modules/autobuild (configure.ac): Call AB_INIT.
53322
53323 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53324
53325         * tests/test-getaddrinfo.c: Don't print debug messages by default.
53326         Suggested by Bruno Haible <bruno@clisp.org>.
53327
53328 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53329
53330         * tests/test-base64.c: Cast size_t to unsigned long when invoking
53331         printf.  Use %lu instead of %d.  Reported by Bruno Haible
53332         <bruno@clisp.org>.
53333
53334 2008-05-29  Eric Blake  <ebb9@byu.net>
53335
53336         Prefer new POSIX 200x interfaces over futimesat.
53337         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
53338         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
53339         when available.
53340         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
53341
53342 2008-05-28  Bruno Haible  <bruno@clisp.org>
53343
53344         * modules/stpcpy (License): Change to LGPLv2+.
53345         Requested by David Lutterkort <dlutter@redhat.com>.
53346
53347 2008-05-27  Bruno Haible  <bruno@clisp.org>
53348
53349         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
53350         current mingw.
53351         Reported by Jose E. Marchesi <jemarch@gnu.org>.
53352
53353 2008-05-27  Bruno Haible  <bruno@clisp.org>
53354
53355         * modules/iconv_open (Link): New section, from module 'iconv'.
53356         * modules/striconv (Link): Likewise.
53357         * modules/striconveh (Link): Likewise.
53358         * modules/xstriconv (Link): Likewise.
53359         * modules/unicodeio (Link): Likewise.
53360         * modules/propername (Link): Likewise.
53361         Reported by Jim Meyering.
53362
53363 2008-05-26  Jim Meyering  <meyering@redhat.com>
53364
53365         sha256: do not artificially restrict buffer length to be < 2^32
53366         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
53367         uint32_t to size_t.
53368         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
53369         to match.
53370
53371         avoid unaligned access errors, e.g., on sparc
53372         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
53373         direct access through a possibly-unaligned uint64* pointer.
53374         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
53375         direct access through a possibly-unaligned uint32* pointer.
53376         Prompted by this patch from Tom "spot" Callaway:
53377         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
53378
53379         sha512.c: fix typo in comment
53380         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
53381
53382 2008-05-25  Bruno Haible  <bruno@clisp.org>
53383
53384         * lib/set-mode-acl.c: Renamed from lib/acl.c.
53385         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
53386         (Makefile.am): Update lib_SOURCES.
53387
53388 2008-05-25  Bruno Haible  <bruno@clisp.org>
53389
53390         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
53391
53392 2008-05-25  Jim Meyering  <meyering@redhat.com>
53393
53394         useless-if-before-free: freed expr may have white-space differences
53395         * build-aux/useless-if-before-free: Recognize cases in which the
53396         freed expression differs from the tested one in embedded white
53397         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
53398         $1 was used, so we can't make any regexp shy.  Improved tests now
53399         detect this.
53400
53401         useless-if-before-free: accept white space in the expression.
53402         * build-aux/useless-if-before-free: For now, any white space
53403         in the expression must be identical in the free argument.
53404
53405         useless-if-before-free: efficiency tweak
53406         * build-aux/useless-if-before-free: Make the expression-matching
53407         regexp "shy".
53408         Make the *outer* regexp shy, not the expr-matching one.
53409
53410         update code-in-comment to accept cast of free arg
53411         * build-aux/useless-if-before-free: Update regexp.
53412
53413 2008-05-25  Bruno Haible  <bruno@clisp.org>
53414
53415         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
53416         * modules/copy-file-tests (Files, Makefile.am): Update.
53417         * tests/test-copy-file.c (func_test_copy): Update.
53418
53419 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
53420
53421         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
53422
53423 2008-05-23  Bruno Haible  <bruno@clisp.org>
53424
53425         Improve support for ACLs on OSF/1.
53426         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
53427         Remove fallback for unknown flavors of ACLs.
53428
53429 2008-05-22  Bruno Haible  <bruno@clisp.org>
53430
53431         Add support for ACLs on OSF/1.
53432         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
53433         replacements.
53434         (acl_free_text): New macro fallback.
53435         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
53436         acl_free.
53437         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
53438         acl_free_text function. Require AC_C_INLINE.
53439
53440 2008-05-22  Bruno Haible  <bruno@clisp.org>
53441
53442         Make copy_acl work on MacOS X 10.5.
53443         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
53444         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
53445         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
53446         If MODE_INSIDE_ACL, don't assume that every system has the same text
53447         representation for ACLs as FreeBSD.
53448         * lib/copy-acl.c (copy_acl): Add support for platforms with
53449         !MODE_INSIDE_ACL.
53450         * lib/file-has-acl.c (file_has_acl): Likewise.
53451         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
53452         FreeBSD, MacOS X, or IRIX, respectively.
53453
53454 2008-05-22  Bruno Haible  <bruno@clisp.org>
53455
53456         * lib/acl.h: Don't include <sys/acl.h>.
53457         (GETACLCNT): Move fallback to lib/acl-internal.h.
53458         * lib/acl-internal.h: Include <sys/acl.h> here.
53459         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
53460
53461 2008-05-22  Bruno Haible  <bruno@clisp.org>
53462
53463         Split off copy_acl function to separate file.
53464         * lib/copy-acl.c: New file, extracted from lib/acl.c.
53465         * lib/acl.c (copy_acl): Moved function to separate file.
53466         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
53467         * modules/acl (Files): Add lib/copy-acl.c.
53468         (Makefiles.am): Augment lib_SOURCES.
53469
53470 2008-05-22  Bruno Haible  <bruno@clisp.org>
53471
53472         * modules/copy-file-tests: New file.
53473         * tests/test-copy-file.sh: New file.
53474         * tests/test-copy-file.c: New file.
53475         * tests/test-copy-file-sameacls.c: New file.
53476
53477 2008-05-22  Eric Blake  <ebb9@byu.net>
53478
53479         Avoid gcc warning.
53480         * tests/test-memcmp.c (main): Pass NULL indirectly.
53481
53482 2008-05-21  Bruno Haible  <bruno@clisp.org>
53483
53484         Add reference doc about ACLs.
53485         * doc/acl-resources.txt: New file.
53486         * doc/acl-cygwin.txt: New file.
53487
53488 2008-05-21  Bruno Haible  <bruno@clisp.org>
53489
53490         Avoid one more warning from gcc.
53491         * lib/vasnprintf.c (IF_LINT): Update comments.
53492         (VASNPRINTF): Use it also for the 'prefix' array initializer.
53493
53494 2008-05-21  Jim Meyering  <meyering@redhat.com>
53495
53496         avoid a warning from gcc
53497         * lib/vasnprintf.c (IF_LINT): Define.
53498         (scale10_round_decimal_long_double):
53499         Use it to avoid a "may be used uninitialized" warning.
53500         (scale10_round_decimal_double): Likewise.
53501
53502 2008-05-21  Simon Josefsson  <simon@josefsson.org>
53503
53504         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
53505         declared.
53506
53507 2008-05-20  Bruno Haible  <bruno@clisp.org>
53508
53509         * tests/test-memcmp.c (main): Test also the sign of the result. Test
53510         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
53511
53512 2008-05-20  Simon Josefsson  <simon@josefsson.org>
53513
53514         * modules/memcmp-tests: New file.
53515         * tests/test-memcmp.c: New file.
53516
53517 2008-05-19  Bruno Haible  <bruno@clisp.org>
53518
53519         * modules/propername (Notice, configure.ac): Put quoted "..." into
53520         --keyword option.
53521         * lib/propername.h: Update comments accordingly.
53522         Reported by Eric Blake.
53523
53524 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
53525
53526         * modules/getpass-gnu (Depends-on): Add fseeko.
53527
53528 2008-05-19  Simon Josefsson  <simon@josefsson.org>
53529
53530         * modules/base64-tests: New file.
53531
53532 2008-05-19  Bo Borgerson <gigabo@gmail.com>
53533
53534         * lib/base64.c (base64_decode_ctx): If a decode context structure
53535         was passed in use it to ignore newlines.  If a context structure
53536         was _not_ passed in, continue to treat newlines as garbage (this
53537         is the historical behavior).  Formerly base64_decode.
53538         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
53539         takes a decode context structure.
53540         * lib/base64.h (base64_decode): Macro for four-argument calls.
53541         (base64_decode_alloc): Likewise.
53542         * lib/base64.c (base64_decode_ctx): If a decode context structure
53543         was passed in use it to ignore newlines.  If a context structure
53544         was _not_ passed in, continue to treat newlines as garbage (this
53545         is the historical behavior).  Formerly base64_decode.
53546         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
53547         takes a decode context structure.
53548         * lib/base64.h (base64_decode): Macro for four-argument calls.
53549         (base64_decode_alloc): Likewise.
53550
53551 2008-05-19  Jim Meyering  <meyering@redhat.com>
53552
53553         avoid a warning from gcc
53554         * lib/trim.c (IF_LINT): Define.
53555         (trim2): Use it to avoid a "may be used uninitialized" warning.
53556
53557         Fix doc typo.
53558         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
53559
53560 2008-05-19  Bruno Haible  <bruno@clisp.org>
53561
53562         * doc/glibc-functions/getpass.texi: Document limits of other
53563         implementations.
53564
53565 2008-05-19  Simon Josefsson  <simon@josefsson.org>
53566             Bruno Haible <bruno@clisp.org>
53567
53568         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
53569
53570 2008-05-18  Bruno Haible  <bruno@clisp.org>
53571
53572         * modules/propername: New file, from GNU gettext.
53573         * lib/propername.h: New file, from GNU gettext.
53574         * lib/propername.c: New file, from GNU gettext.
53575         * MODULES.html.sh (Internationalization functions): Add propername.
53576
53577 2008-05-16  Jim Meyering  <meyering@redhat.com>
53578             Bruno Haible  <bruno@clisp.org>
53579
53580         Avoid some warnings from "gcc -Wshadow".
53581         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
53582
53583 2008-05-15  Eric Blake  <ebb9@byu.net>
53584
53585         Extend previous patch to cygwin 1.7.0.
53586         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
53587         fast implementation in cygwin >= 1.7.0.
53588         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53589         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53590
53591 2008-05-15  Bruno Haible  <bruno@clisp.org>
53592
53593         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
53594         implementation in glibc >= 2.9.
53595         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53596         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53597
53598 2008-05-15  Bruno Haible  <bruno@clisp.org>
53599
53600         * MODULES.html.sh (Internationalization functions): Remove linebreak.
53601         (Unicode string functions): Add unilbrk/*.
53602         Reported by Karl Berry.
53603
53604 2008-05-15  Eric Blake  <ebb9@byu.net>
53605
53606         Fix violation of <stdbool.h> replacement in regex.
53607         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
53608         * lib/regexec.c (re_search_internal): Likewise.
53609         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
53610
53611 2008-05-15  Jim Meyering  <meyering@redhat.com>
53612
53613         avoid distracting test output when git or cvs is not found
53614         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
53615         * tests/test-vc-list-files-git.sh: Likewise.
53616
53617 2008-05-15  Eric Blake  <ebb9@byu.net>
53618
53619         Glibc finally accepted the memmem speedup code, bugzilla #5514.
53620         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
53621         glibc version.
53622         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
53623         * doc/posix-functions/strstr.texi (strstr): Likewise.
53624         * lib/str-two-way.h (MAX): Sychronize with glibc.
53625
53626 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
53627
53628         * lib/regcomp.c (optimize_utf8): Add a note on why we test
53629         opr.ctx_type.
53630         (calc_first): Initialize constraint field.
53631         (duplicate_node_closure): Use it instead of special casing ANCHORS.
53632         Fix grammar.
53633         (duplicate_node): Merge constraint field for all node types.
53634         (calc_eclosure_iter): Look at constraint field for all node types.
53635         * lib/regex_internal.c (create_cd_newstate): Don't look at
53636         opr.ctx_type.
53637
53638 2008-05-14  Bruno Haible  <bruno@clisp.org>
53639
53640         Help GCC to do better code generation.
53641         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
53642         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
53643         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
53644         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
53645         Declare with attribute 'malloc' if supported.
53646
53647 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
53648
53649         use "echo STR|wc -c" rather than unportable "expr length STR"
53650         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
53651         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
53652
53653 2008-05-14  Jim Meyering  <meyering@redhat.com>
53654
53655         use dd ibs=$n count=1 ... rather than less-portable head -c$n
53656         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
53657         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
53658         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
53659         via Collin Lasse.
53660
53661 2008-05-14  Eric Blake  <ebb9@byu.net>
53662
53663         Avoid quadratic growth in gl_LIBSOURCES.
53664         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
53665         Suggested by Bruno Haible.
53666
53667         Test xmemdup0.
53668         * modules/xmemdup0-tests: New file.
53669         * tests/test-xmemdup0.c: Likewise.
53670
53671 2008-05-13  Eric Blake  <ebb9@byu.net>
53672
53673         Split xmemdup0 into its own module.
53674         * modules/xmemdup0: New file.
53675         * lib/xmemdup0.h: Likewise.
53676         * lib/xmemdup0.c: Likewise.
53677         * MODULES.html.sh (Memory management functions): Add xmemdup0.
53678         * lib/xalloc.h (xmemdup0): Remove.
53679         * lib/xmalloc.c (xmemdup0): Likewise.
53680
53681 2008-05-13  Eric Blake  <ebb9@byu.net>
53682             Bruno Haible  <bruno@clisp.org>
53683
53684         Reduce number of forks required during autoconf.
53685         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
53686         and gl_LIBSOURCES_DIR.
53687         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
53688         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
53689         m4_syscmd per file.
53690         <m4_foreach_w>: Move...
53691         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
53692
53693 2008-05-13  Eric Blake  <ebb9@byu.net>
53694
53695         * gnulib-tool: Fix various comment typos.
53696
53697 2008-05-12  Bruno Haible  <bruno@clisp.org>
53698
53699         Tailor the linebreaking algorithm.
53700         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
53701
53702 2008-05-12  Bruno Haible  <bruno@clisp.org>
53703
53704         Update to Unicode 5.0.0.
53705         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
53706         LBP_JV, LBP_JT. Redistribute values.
53707         (unilbrk_table): Change size.
53708         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
53709         Unicode TR#14 rev. 22.
53710         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
53711         LBP_JV, LBP_JT. Redistribute values.
53712         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
53713         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
53714         Update.
53715         * lib/unilbrk/lbrkprop1.h: Regenerated.
53716         * lib/unilbrk/lbrkprop2.h: Regenerated.
53717         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
53718         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
53719         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
53720         Likewise.
53721         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
53722         Likewise.
53723         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
53724         result.
53725         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
53726         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
53727         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
53728         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
53729         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
53730         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
53731
53732 2008-05-11  Bruno Haible  <bruno@clisp.org>
53733
53734         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
53735
53736 2008-05-11  Bruno Haible  <bruno@clisp.org>
53737
53738         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
53739         * modules/unilbrk/gen-lbrk: New file.
53740
53741 2008-05-11  Bruno Haible  <bruno@clisp.org>
53742
53743         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
53744         * m4/sha512.m4 (gl_SHA512): Likewise.
53745
53746 2008-05-11  Jim Meyering  <meyering@redhat.com>
53747
53748         New modules: crypto/sha256, crypto/sha512 (from coreutils)
53749         * modules/crypto/sha256: New file.
53750         * modules/crypto/sha512: Likewise.
53751         * lib/sha256.c: Likewise.
53752         * lib/sha256.h: Likewise.
53753         * lib/sha512.c: Likewise.
53754         * lib/sha512.h: Likewise.
53755         * lib/u64.h: Likewise.
53756         * m4/sha256.m4: Likewise.
53757         * m4/sha512.m4: Likewise.
53758         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
53759
53760 2008-05-10  Bruno Haible  <bruno@clisp.org>
53761
53762         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
53763         (Input/Output <stdio.h>): Add xprintf.
53764         (Signal handling <signal.h>): Add strsignal.
53765         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
53766         (Core language properties): Add func.
53767         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
53768         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
53769         strings.
53770         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
53771         (Input/output): New section.
53772         (File system functions): Add openat-die, stat-macros.
53773         (Networking functions): Add sockets.
53774         (Unicode string functions): Add unictype/*.
53775         (Support for building libraries and executables): Add gperf.
53776         (Support for building documentation): Add agpl-3.0.
53777         (Misc): Add nocrash.
53778
53779 2008-05-10  Bruno Haible  <bruno@clisp.org>
53780
53781         * modules/unictype/gen-ctype: New file.
53782
53783 2008-05-10  Jim Meyering  <meyering@redhat.com>
53784
53785         Make chdir-safer.c more efficient on a system with no symlinks.
53786         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
53787         also if ELOOP is zero.  Suggested by Bruno Haible.
53788
53789         Make chdir-safer.c slightly safer.
53790         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
53791         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
53792
53793         Avoid compile failure on systems without ELOOP (like mingw).
53794         * lib/chdir-safer.c (ELOOP): Define if not already defined.
53795         Reported by Bruno Haible.
53796
53797 2008-05-10  Bruno Haible  <bruno@clisp.org>
53798
53799         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
53800         (is_utf8_encoding): Use a case-insensitive comparison.
53801         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
53802         streq.
53803
53804 2008-05-10  Bruno Haible  <bruno@clisp.org>
53805
53806         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
53807         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
53808         * lib/unilbrk/ulc-common.h (iconv_string_length,
53809         iconv_string_keeping_offsets): Remove declarations.
53810         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
53811         Don't include <iconv.h>, streq.h, xsize.h.
53812         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
53813         conversion.
53814         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
53815         <iconv.h>, streq.h, xsize.h.
53816         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
53817         conversion.
53818         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
53819         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
53820         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
53821         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
53822
53823 2008-05-10  Bruno Haible  <bruno@clisp.org>
53824
53825         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
53826         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
53827
53828         * modules/unilbrk/u32-width-linebreaks-tests: New file.
53829         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
53830
53831         * modules/unilbrk/u16-width-linebreaks-tests: New file.
53832         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
53833
53834         * modules/unilbrk/u8-width-linebreaks-tests: New file.
53835         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
53836
53837         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
53838         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
53839
53840         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
53841         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
53842
53843         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
53844         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
53845
53846         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
53847         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
53848
53849 2008-05-10  Bruno Haible  <bruno@clisp.org>
53850
53851         Split up 'linebreak' module.
53852         * lib/unilbrk.h: New file, based on lib/linebreak.h.
53853         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
53854         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
53855         modifications.
53856         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
53857         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
53858         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
53859         lib/linebreak.c.
53860         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
53861         lib/linebreak.c.
53862         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
53863         lib/linebreak.c.
53864         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
53865         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
53866         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
53867         lib/linebreak.c.
53868         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
53869         lib/linebreak.c.
53870         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
53871         lib/linebreak.c.
53872         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
53873         lib/linebreak.c.
53874         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
53875         lib/linebreak.c.
53876         * modules/unilbrk/base: New file.
53877         * modules/unilbrk/tables: New file.
53878         * modules/unilbrk/u8-possible-linebreaks: New file.
53879         * modules/unilbrk/u16-possible-linebreaks: New file.
53880         * modules/unilbrk/u32-possible-linebreaks: New file.
53881         * modules/unilbrk/ulc-common: New file.
53882         * modules/unilbrk/ulc-possible-linebreaks: New file.
53883         * modules/unilbrk/u8-width-linebreaks: New file.
53884         * modules/unilbrk/u16-width-linebreaks: New file.
53885         * modules/unilbrk/u32-width-linebreaks: New file.
53886         * modules/unilbrk/ulc-width-linebreaks: New file.
53887         * lib/linebreak.h: Remove file.
53888         * lib/linebreak.c: Remove file.
53889         * m4/linebreak.m4: Remove file.
53890         * modules/linebreak: Remove file.
53891         * NEWS: Mention the changes.
53892
53893 2008-05-09  Eric Blake  <ebb9@byu.net>
53894
53895         Add xmemdup0.
53896         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
53897         implementation.
53898         * lib/xmalloc.c (xmemdup0): New C implementation.
53899
53900 2008-05-08  Bruno Haible  <bruno@clisp.org>
53901
53902         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
53903
53904 2008-05-07  Eric Blake  <ebb9@byu.net>
53905
53906         Support cross-compilation of <wctype.h>.
53907         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
53908         AC_CACHE_CHECK.
53909
53910 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
53911
53912         * build-aux/vc-list-files: Add support for bzr.
53913
53914 2008-05-03  Jim Meyering  <meyering@redhat.com>
53915
53916         avoid failed assertion with tight malloc
53917         * tests/test-getndelim2.c: Correct an off-by-one assertion.
53918
53919 2008-05-03  Simon Josefsson  <simon@josefsson.org>
53920
53921         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
53922         are needed from arpa/inet.h.
53923         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
53924         Reported by Bruno Haible.
53925
53926 2008-05-02  Jim Meyering  <meyering@redhat.com>
53927
53928         avoid compilation error on FreeBSD 6
53929         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
53930
53931 2008-05-01  Jim Meyering  <meyering@redhat.com>
53932
53933         useless-if-before-free: correct --help's exit status description
53934         * build-aux/useless-if-before-free (usage): Like grep, exit 0
53935         for one or more matches, etc.  Reported by Bruno Haible.
53936
53937         vc-list-files: make the stand-alone gnulib test work
53938         * modules/vc-list-files-tests (configure.ac):
53939         Define and AC_SUBST abs_aux_dir.
53940         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
53941         $(abs_top_srcdir) to each script and having each of them
53942         duplicate the work of setting PATH, set PATH here, using
53943         the new variable, abs_aux_dir instead.
53944         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
53945         * tests/test-vc-list-files-git.sh: Likewise.
53946         Reported by Bruno Haible.
53947
53948 2008-05-01  Bruno Haible  <bruno@clisp.org>
53949
53950         * lib/getndelim2.c (getndelim2): Fix newsize computation during
53951         reallocation. Rename 'done' to 'found_delimiter'.
53952
53953 2008-05-01  Jim Meyering  <meyering@redhat.com>
53954
53955         vc-list-files: accommodate /bin/sh like the one from Solaris 10
53956         * build-aux/vc-list-files: Use `...`, not $(...).
53957
53958 2008-04-30  Jim Meyering  <meyering@redhat.com>
53959
53960         add tests for vc-list-files
53961         * modules/vc-list-files-tests: New module.
53962         * tests/test-vc-list-files-cvs.sh: New file.
53963         * tests/test-vc-list-files-git.sh: New file.
53964
53965         avoid a warning from gcc
53966         * lib/getndelim2.c (IF_LINT): Define.
53967         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
53968
53969         vc-list-files: work properly with build-aux/cvsu, too
53970         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
53971         to all cvs-based clauses.
53972
53973         vc-list-files: work properly in the CVS+awk case, too
53974         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
53975
53976         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
53977         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
53978         take more than one file argument, so .  Add quotes, just in case $dir
53979         ever contains a shell meta-character.  Prompted by Soren Hansen in
53980         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
53981
53982 2008-04-29  Eric Blake  <ebb9@byu.net>
53983
53984         Optimize getndelim2 to use block operations when possible.
53985         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
53986         freadseek, and memchr2.
53987         * lib/getndelim2.c (getndelim2): Use them for block reads.
53988
53989 2008-04-29  Bruno Haible  <bruno@clisp.org>
53990
53991         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
53992         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53993         * modules/inet_ntop (Depends-on): Add extensions.
53994         * modules/inet_pton (Depends-on): Likewise.
53995         Reported by Simon Josefsson.
53996
53997 2008-04-29  Jim Meyering  <meyering@redhat.com>
53998
53999         When the is more than one match in a block, match all of them.
54000         * build-aux/useless-if-before-free: Iterate through each block
54001         until there are no more matches.
54002
54003         Fix broken useless-if-before-free script.
54004         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54005         the expression to match cast of argument to free-like function.
54006
54007 2008-04-29  Eric Blake  <ebb9@byu.net>
54008
54009         Use new header.
54010         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
54011
54012 2008-04-29  Jim Meyering  <meyering@redhat.com>
54013
54014         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
54015         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
54016         by gnulib to exist and to declare e.g., inet_ntop.
54017         Don't include "inet_ntop.h", now removed.
54018
54019         * m4/arpa_inet_h.m4: Remove trailing blanks.
54020
54021 2008-04-29  Eric Blake  <ebb9@byu.net>
54022
54023         Silence valgrind on safe reads beyond potential array bounds.
54024         * lib/rawmemchr.valgrind: New file.
54025         * lib/strchrnul.valgrind: Likewise.
54026         * modules/rawmemchr (Files): Distribute new file.
54027         * modules/strchrnul (Files): Likewise.
54028         Suggested by Bruno Haible.
54029
54030 2008-04-29  Bruno Haible  <bruno@clisp.org>
54031
54032         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
54033         (inet_ntop, inet_pton): Change portability warning's wording.
54034         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
54035         Invoke gl_CHECK_NEXT_HEADERS.
54036         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
54037         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
54038         set ARPA_INET_H.
54039         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54040         * modules/arpa_inet (Description): No longer only for systems that
54041         lack it.
54042         (Depends-on): Add include_next.
54043         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
54044         HAVE_ARPA_INET_H.
54045
54046 2008-04-29  Jim Meyering  <meyering@redhat.com>
54047
54048         * modules/mkdir (License): Re-license as LGPLv2+.
54049
54050 2008-04-29  Bruno Haible  <bruno@clisp.org>
54051
54052         * modules/rawmemchr (Maintainer): Set to Eric.
54053         * modules/strchrnul (Maintainer): Likewise.
54054
54055 2008-04-29  Simon Josefsson  <simon@josefsson.org>
54056
54057         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
54058         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
54059
54060         * modules/arpa_inet (arpa/inet.h): Use them.
54061
54062 2008-04-28  Eric Blake  <ebb9@byu.net>
54063
54064         Test getndelim2.
54065         * modules/getndelim2-tests: New file.
54066         * tests/test-getndelim2.c: Likewise.
54067         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
54068         stream.
54069         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
54070
54071         * MODULES.html.sh: Document new module.
54072
54073 2008-04-20  Bruno Haible  <bruno@clisp.org>
54074
54075         * lib/c-stack.c (die): Use raise.
54076         * modules/c-stack (Depends-on): Add raise.
54077
54078 2008-04-28  Bruno Haible  <bruno@clisp.org>
54079
54080         Expect rpmatch to be declared.
54081         * lib/yesno.c (rpmatch): Remove declaration.
54082
54083         Declare rpmatch.
54084         * lib/stdlib.in.h (rpmatch): New declaration.
54085         * lib/rpmatch.c: Include <stdlib.h> first.
54086         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
54087         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
54088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
54089         HAVE_RPMATCH.
54090         * modules/rpmatch (Depends-on): Add stdlib, extensions.
54091         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54092         (Include): Set to <stdlib.h>.
54093         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
54094         HAVE_RPMATCH.
54095         * NEWS: Document the change.
54096
54097 2008-04-28  Bruno Haible  <bruno@clisp.org>
54098
54099         Change rpmatch to use nl_langinfo when appropriate.
54100         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
54101         (N_): New macro.
54102         (localized_pattern): New function/macro.
54103         (try): Remove match, nomatch arguments. Copy the pattern into safe
54104         memory before caching it.
54105         (rpmatch): Use localized_pattern. Add translator comments.
54106         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
54107         Suggested by Eric Blake.
54108         * modules/rpmatch (Depends-on): Add stdbool.
54109
54110 2008-04-28  Eric Blake  <ebb9@byu.net>
54111
54112         Add rawmemchr module, matching glibc.
54113         * modules/string (Makefile.am): New indicator.
54114         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
54115         * lib/string.in.h (rawmemchr): Declare when appropriate.
54116         * modules/rawmemchr: New file.
54117         * m4/rawmemchr.m4: Likewise.
54118         * lib/rawmemchr.c: Likewise.
54119         * modules/rawmemchr-tests: Likewise.
54120         * tests/test-rawmemchr.c: Likewise.
54121         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
54122         module.
54123         * modules/strchrnul (Depends-on): Add rawmemchr.
54124         * lib/strchrnul.c (strchrnul): Optimize a corner case.
54125
54126         Whitespace cleanup.
54127         * tests/test-strchrnul.c: Reindent.
54128         * lib/strchrnul.c: Likewise.
54129
54130         Optimize and test strchrnul.
54131         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
54132         * modules/strchrnul-tests: New file.
54133         * tests/test-strchrnul.c: Likewise.
54134
54135         Remove intprops dependency.
54136         * modules/memchr (Depends-on): Remove intprops.
54137         * modules/memrchr (Depends-on): Likewise.
54138         * modules/memchr2 (Depends-on): Likewise.
54139         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
54140         * lib/memrchr.c (__memrchr): Likewise.
54141         * lib/memrchr2.c (memchr2): Likewise.
54142         Reported by Simon Josefsson.
54143
54144 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54145
54146         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
54147         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54148
54149 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54150
54151         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
54152
54153         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
54154
54155         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
54156
54157         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
54158         declarations.
54159         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
54160
54161         * m4/inet_pton.m4: Don't check for header files.
54162
54163         * m4/inet_ntop.m4: Don't check for header files.
54164
54165 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54166
54167         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
54168         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
54169         trigger for cygwin).
54170         Reported by Bruno Haible  <bruno@clisp.org>.
54171
54172 2008-04-28  Bruno Haible  <bruno@clisp.org>
54173
54174         * doc/posix-functions/strdup.texi: Mention mingw problem.
54175
54176 2008-04-27  Bruno Haible  <bruno@clisp.org>
54177
54178         * modules/stat-time-tests (Depends-on): Add sleep.
54179         * tests/test-stat-time.c (force_unlink): New function.
54180         (cleanup): Use it.
54181         (test_mtime): Remove the ctime related tests.
54182         (test_ctime): New function, containing the ctime related tests.
54183         (main): Call test_ctime, except on native Windows platforms.
54184
54185 2008-04-27  Bruno Haible  <bruno@clisp.org>
54186
54187         * lib/rpmatch.c (rpmatch): Add some comments.
54188         Reported by James Youngman <jay@gnu.org>.
54189
54190 2008-04-27  Bruno Haible  <bruno@clisp.org>
54191
54192         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
54193         quiet NaNs.
54194
54195 2008-04-27  Bruno Haible  <bruno@clisp.org>
54196
54197         Make test-yesno.sh work on mingw.
54198         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
54199         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
54200         (main): Set stdin to binary mode.
54201         * modules/yesno-tests (Depends-on): Add binary-io.
54202
54203 2008-04-27  Bruno Haible  <bruno@clisp.org>
54204
54205         Fix 'isfinite' on x86, x86_64, ia64 platforms.
54206         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
54207         argument that lie outside the IEEE 854 domain.
54208         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
54209         (gl_ISFINITE): Use it.
54210         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
54211
54212 2008-04-27  Bruno Haible  <bruno@clisp.org>
54213
54214         Allow local renaming in config.h.
54215         * lib/memrchr.c (memrchr): Don't undefine outside libc.
54216
54217 2008-04-27  Bruno Haible  <bruno@clisp.org>
54218
54219         * lib/memchr.c (__memchr): Change type of 'i'.
54220         * lib/memchr2.c (memchr2): Likewise.
54221
54222 2008-04-26  Eric Blake  <ebb9@byu.net>
54223         and Bruno Haible  <bruno@clisp.org>
54224
54225         Optimize and test memrchr.
54226         * modules/memrchr (Depends-on): Add intprops.
54227         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
54228         * modules/memrchr-tests: New file.
54229         * tests/test-memrchr.c: New file.
54230
54231 2008-04-26  Bruno Haible  <bruno@clisp.org>
54232
54233         Add tentative support for DragonFly BSD.
54234         * lib/stdio-impl.h: Add macros for DragonFly BSD.
54235         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
54236         fp.
54237         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54238         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
54239         * lib/fpurge.c (fpurge): Likewise.
54240         * lib/freadable.c (freaadable): Likewise.
54241         * lib/freadahead.c (freadahead): Likewise.
54242         * lib/freading.c (freading): Likewise.
54243         * lib/freadptr.c (freadptr): Likewise.
54244         * lib/freadseek.c (freadptrinc): Likewise.
54245         * lib/fseeko.c (fseeko): Likewise.
54246         * lib/fseterr.c (fseterr): Likewise.
54247         * lib/fwritable.c (fwritable): Likewise.
54248         * lib/fwriting.c (fwriting): Likewise.
54249
54250 2008-04-26  Bruno Haible  <bruno@clisp.org>
54251
54252         * lib/stdio-impl.h: New file.
54253         * lib/fbufmode.c: Include stdio-impl.h.
54254         (fbufmode): Use fp_, remove redundant #defines.
54255         * lib/fflush.c: Include stdio-impl.h.
54256         (clear_ungetc_buffer): Remove redundant #defines.
54257         * lib/fpurge.c: Include stdio-impl.h.
54258         (fpurge): Remove redundant #defines.
54259         * lib/freadable.c: Include stdio-impl.h.
54260         (freadable): Remove redundant #defines.
54261         * lib/freadahead.c: Include stdio-impl.h.
54262         (freadahead): Remove redundant #defines.
54263         * lib/freading.c: Include stdio-impl.h.
54264         (freading): Remove redundant #defines.
54265         * lib/freadptr.c: Include stdio-impl.h.
54266         (freadptr): Remove redundant #defines.
54267         * lib/freadseek.c: Include stdio-impl.h.
54268         (freadptrinc): Remove redundant #defines.
54269         * lib/fseeko.c: Include stdio-impl.h.
54270         (rpl_fseeko): Remove redundant #defines.
54271         * lib/fseterr.c: Include stdio-impl.h.
54272         (fseterr): Remove redundant #defines.
54273         * lib/fwritable.c: Include stdio-impl.h.
54274         (fwritable: Remove redundant #defines.
54275         * lib/fwriting.c: Include stdio-impl.h.
54276         (fwriting): Remove redundant #defines.
54277         * modules/fbufmode (Files): Add lib/stdio-impl.h.
54278         * modules/fflush (Files): Likewise.
54279         * modules/fpurge (Files): Likewise.
54280         * modules/freadable (Files): Likewise.
54281         * modules/freadahead (Files): Likewise.
54282         * modules/freading (Files): Likewise.
54283         * modules/freadptr (Files): Likewise.
54284         * modules/freadseek (Files): Likewise.
54285         * modules/fseeko (Files): Likewise.
54286         * modules/fseterr (Files): Likewise.
54287         * modules/fwritable (Files): Likewise.
54288         * modules/fwriting (Files): Likewise.
54289
54290 2008-04-26  Bruno Haible  <bruno@clisp.org>
54291
54292         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54293         restore_seek_optimization, update_fpos_cache): New functions, extracted
54294         from rpl_fflush.
54295         (rpl_fflush): Use them.
54296         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
54297         (gl_REPLACE_FFLUSH): Use it.
54298
54299 2008-04-26  Bruno Haible  <bruno@clisp.org>
54300
54301         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
54302         on Solaris.
54303         * tests/test-xstrtoimax.sh: Likewise.
54304         * tests/test-xstrtoumax.sh: Likewise.
54305         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54306
54307 2008-04-26  Bruno Haible  <bruno@clisp.org>
54308
54309         * modules/memchr-tests: New file.
54310         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
54311
54312 2008-04-26  Eric Blake  <ebb9@byu.net>
54313             Bruno Haible  <bruno@clisp.org>
54314
54315         * lib/memchr.c: Include intprops.h.
54316         (__memchr): Optimize parallel detection of matching bytes. Rename local
54317         variables. Add explanatory comments.
54318
54319 2008-04-26  Bruno Haible  <bruno@clisp.org>
54320
54321         Fix module 'memchr', broken since 2000-10-28.
54322         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
54323
54324 2008-04-26  Bruno Haible  <bruno@clisp.org>
54325
54326         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
54327         comments.
54328
54329 2008-04-25  Eric Blake  <ebb9@byu.net>
54330
54331         Use native fstatat on cygwin 1.7.0.
54332         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
54333         first.
54334
54335 2008-04-23  Eric Blake  <ebb9@byu.net>
54336
54337         Improve memchr2 performance.
54338         * lib/memchr2.c (memchr2): Further optimize parallel detection of
54339         NUL bytes.
54340         * modules/memchr2 (Depends-on): Use intprops.h.
54341
54342 2008-04-23  Simon Josefsson  <simon@josefsson.org>
54343
54344         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
54345         an inline function instead of a CPP macro.  Patch by Ben Pfaff
54346         <blp@cs.stanford.edu>.
54347
54348 2008-04-23  Simon Josefsson  <simon@josefsson.org>
54349
54350         * lib/arpa_inet.in.h: New file.
54351
54352         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
54353         (Makefile.am): Sed in substitute header file.
54354
54355         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
54356         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
54357
54358         * modules/inet_ntop (configure.ac): Use
54359         gl_ARPA_INET_MODULE_INDICATOR.
54360
54361         * modules/inet_pton (configure.ac): Use
54362         gl_ARPA_INET_MODULE_INDICATOR.
54363
54364 2008-04-22  Jim Meyering  <meyering@redhat.com>
54365
54366         * modules/verify (License): Re-license as LGPLv2+.
54367
54368 2008-04-22  Simon Josefsson  <simon@josefsson.org>
54369
54370         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
54371         parameter to void* as per POSIX standard (MinGW uses char*).
54372
54373 2008-04-21  Bruno Haible  <bruno@clisp.org>
54374
54375         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
54376         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
54377         Define to replacements if REPLACE_ISWCNTRL is 1.
54378         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
54379         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
54380         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
54381         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
54382         what it fixes.
54383         * doc/posix-functions/iswalpha.texi: Likewise.
54384         * doc/posix-functions/iswblank.texi: Likewise.
54385         * doc/posix-functions/iswcntrl.texi: Likewise.
54386         * doc/posix-functions/iswdigit.texi: Likewise.
54387         * doc/posix-functions/iswgraph.texi: Likewise.
54388         * doc/posix-functions/iswlower.texi: Likewise.
54389         * doc/posix-functions/iswprint.texi: Likewise.
54390         * doc/posix-functions/iswpunct.texi: Likewise.
54391         * doc/posix-functions/iswspace.texi: Likewise.
54392         * doc/posix-functions/iswupper.texi: Likewise.
54393         * doc/posix-functions/iswxdigit.texi: Likewise.
54394         Reported by Alain Guibert.
54395
54396 2008-04-21  Bruno Haible  <bruno@clisp.org>
54397
54398         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
54399         Patch by Alain Guibert.
54400
54401 2008-04-21  Bruno Haible  <bruno@clisp.org>
54402
54403         Fix test failures on mingw.
54404         * tests/test-xstrtol.c (print_no_progname): New function.
54405         (main): Install it in error_print_progname hook.
54406         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
54407         * tests/test-xstrtoimax.sh: Likewise.
54408         * tests/test-xstrtoumax.sh: Likewise.
54409
54410 2008-04-21  Bruno Haible  <bruno@clisp.org>
54411
54412         Fix test failure on mingw.
54413         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
54414
54415 2008-04-21  Bruno Haible  <bruno@clisp.org>
54416
54417         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
54418         Actually assign a value.
54419
54420 2008-04-20  Bruno Haible  <bruno@clisp.org>
54421
54422         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
54423         take 2.
54424         * lib/canonicalize.c (canonicalize_file_name): Elide if the
54425         'canonicalize-lgpl' module is also used.
54426         * lib/canonicalize-lgpl.c: Undo last change.
54427         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
54428
54429 2008-04-20  Bruno Haible  <bruno@clisp.org>
54430
54431         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
54432         config.h. Provide _mkdir based fallback for mingw.
54433         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
54434         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
54435         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
54436         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
54437         rather than defining mkdir in config.h.
54438         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
54439         (gl_SYS_STAT_H_DEFAULTS): New macro.
54440         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
54441         HAVE_IO_H any more.
54442         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
54443         HAVE_DECL_MKDIR and HAVE_IO_H.
54444
54445 2008-04-20  Bruno Haible  <bruno@clisp.org>
54446
54447         * lib/isapipe.c: Port to native Windows platforms.
54448
54449 2008-04-20  Bruno Haible  <bruno@clisp.org>
54450
54451         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
54452
54453 2008-04-21  Eric Blake  <ebb9@byu.net>
54454
54455         Work around preprocessors that don't handle UINTMAX_MAX.
54456         * lib/memchr2.c (memchr2): Avoid embedded #if.
54457         Reported by Alain Guibert, fix suggested by Bruno Haible.
54458
54459 2008-04-21  Simon Josefsson  <simon@josefsson.org>
54460
54461         * doc/posix-functions/strftime.texi (strftime): Explain better
54462         Windows incompatibility.  Suggested by Micah Cowan
54463         <micah@cowan.name>.
54464
54465 2008-04-20  Bruno Haible  <bruno@clisp.org>
54466
54467         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
54468         unistr/u8-mblen.
54469
54470 2008-04-20  Bruno Haible  <bruno@clisp.org>
54471
54472         Fix test failure on platforms with non-GNU iconv.
54473         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
54474         (U_TO_U8): Use it, rather than u16_to_u8.
54475         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
54476         units at the end of the input string.
54477         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
54478
54479 2008-04-20  Bruno Haible  <bruno@clisp.org>
54480
54481         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
54482         when the resulting length is 0.
54483         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
54484
54485 2008-04-20  Bruno Haible  <bruno@clisp.org>
54486
54487         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
54488         works.
54489         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
54490
54491 2008-04-20  Bruno Haible  <bruno@clisp.org>
54492
54493         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
54494         * modules/tsearch-tests (configure.ac): Test for initstate function.
54495
54496 2008-04-20  Bruno Haible  <bruno@clisp.org>
54497
54498         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
54499         for nlink_t if missing.
54500         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
54501
54502 2008-04-19  Bruno Haible  <bruno@clisp.org>
54503
54504         Work around snprintf bug on Linux libc5.
54505         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
54506         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54507         gl_SNPRINTF_SIZE1.
54508         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54509         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
54510         that test failed.
54511         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
54512         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
54513         * modules/snprintf (Files): Add m4/printf.m4.
54514         * modules/vsnprintf (Files): Likewise.
54515         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
54516         * doc/posix-functions/vsnprintf.texi: Likewise.
54517
54518 2008-04-19  Bruno Haible  <bruno@clisp.org>
54519
54520         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
54521         from 0.0058 to less than 10^-7.
54522
54523 2008-04-19  Bruno Haible  <bruno@clisp.org>
54524
54525         Fix rounding when a precision is given.
54526         * lib/vasnprintf.c (is_borderline): New function.
54527         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
54528         9...9x.
54529         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
54530         %e, %g.
54531         * tests/test-vasprintf-posix.c (test_function): Likewise.
54532         * tests/test-snprintf-posix.h (test_function): Likewise.
54533         * tests/test-sprintf-posix.h (test_function): Likewise.
54534         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
54535         * tests/test-printf-posix.h (test_function): Likewise.
54536         * tests/test-printf-posix.output: Update.
54537         Reported by John Darrington <john@darrington.wattle.id.au> via
54538         Ben Pfaff <blp@cs.stanford.edu>.
54539
54540 2008-04-18  Simon Josefsson  <simon@josefsson.org>
54541
54542         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
54543         Suggested by Bruno Haible <bruno@clisp.org>.
54544
54545 2008-04-17  Bruno Haible  <bruno@clisp.org>
54546
54547         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
54548         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
54549         implementation.
54550         Patch by Bruce Merry <bmerry@gmail.com>.
54551
54552 2008-04-17  Simon Josefsson  <simon@josefsson.org>
54553
54554         * doc/posix-functions/strftime.texi (strftime): Mention that %e
54555         doesn't work under Windows.
54556
54557 2008-04-16  Bruno Haible  <bruno@clisp.org>
54558
54559         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
54560         New macros.
54561         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
54562         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
54563         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
54564         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
54565         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
54566         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
54567         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
54568         macros.
54569         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
54570         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
54571         Northern Sotho, Uighur.
54572
54573 2008-04-16  Bruno Haible  <bruno@clisp.org>
54574
54575         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
54576         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
54577         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
54578         Reported by Daniel Bergström <daniel@octocode.com>.
54579
54580 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
54581             Bruno Haible  <bruno@clisp.org>
54582
54583         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
54584         function.
54585         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
54586         New functions, mostly extracted from gl_locale_name_default.
54587         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
54588
54589 2008-04-16  Eric Blake  <ebb9@byu.net>
54590
54591         Adjust strtod detection to catch glibc 2.7 bug.
54592         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
54593         Reported by John Gatewood Ham.
54594
54595 2008-04-16  Bruno Haible  <bruno@clisp.org>
54596
54597         Add tentative support for Linux libc5.
54598         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
54599         * lib/fpurge.c (fpurge): Likewise.
54600         * lib/freadable.c (freadable): Likewise.
54601         * lib/freadahead.c (freadahead): Likewise.
54602         * lib/freading.c (freading): Likewise.
54603         * lib/freadptr.c (freadptr): Likewise.
54604         * lib/freadseek.c (freadptrinc): Likewise.
54605         * lib/fseeko.c (rpl_fseeko): Likewise.
54606         * lib/fseterr.c (fseterr): Likewise.
54607         * lib/fwritable.c (fwritable): Likewise.
54608         * lib/fwriting.c (fwriting): Likewise.
54609         Reported by Alain Guibert <alguibert+bts@free.fr>.
54610
54611 2008-04-15  Bruno Haible  <bruno@clisp.org>
54612
54613         * modules/mathl (configure.ac): Define module indicator.
54614
54615 2008-04-15  Bruno Haible  <bruno@clisp.org>
54616
54617         * lib/logl.c (logl): Remove unused variables.
54618
54619 2008-04-15  Bruno Haible  <bruno@clisp.org>
54620
54621         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
54622         fails.
54623
54624 2008-04-15  Bruno Haible  <bruno@clisp.org>
54625
54626         * lib/trim.c (trim2): Fix argument of isspace() macro.
54627
54628 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
54629
54630         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
54631         to 0.
54632         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
54633
54634 2008-04-14  Bruno Haible  <bruno@clisp.org>
54635
54636         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
54637         AC_LANG_PROGRAM argument.
54638         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
54639         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
54640         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
54641         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54642         * m4/math_h.m4 (gl_MATH_H): Likewise.
54643         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
54644         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54645         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54646         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
54647         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
54648         * m4/regex.m4 (gl_REGEX): Likewise.
54649         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
54650         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
54651         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54652         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
54653         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54654         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54655         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54656         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54657
54658 2008-04-14  Jim Meyering  <meyering@redhat.com>
54659
54660         test-strtod: fix typos: s/abs/fabs/
54661         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
54662
54663 2008-04-13  Bruno Haible  <bruno@clisp.org>
54664
54665         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
54666         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
54667         module is also used and while not building the reloc-wrapper.
54668
54669 2008-04-13  Bruno Haible  <bruno@clisp.org>
54670
54671         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
54672
54673 2008-04-13  Bruno Haible  <bruno@clisp.org>
54674
54675         Fix AIX compilation failure introduced on 2008-04-02.
54676         * tests/test-frexp.c (exp): Undefine before redefining.
54677         * tests/test-frexpl.c (exp): Likewise.
54678
54679 2008-04-13  Bruno Haible  <bruno@clisp.org>
54680
54681         Work around a HP-UX stdio bug.
54682         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
54683         * tests/test-ftello.c (main): Likewise.
54684         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
54685         * doc/posix-functions/ftello.texi: Likewise.
54686
54687 2008-04-13  Bruno Haible  <bruno@clisp.org>
54688
54689         Make test-signbit pass on HP-UX/hppa.
54690         * tests/test-signbit.c (minus_zerol): New variable.
54691         (test_signbitl): Use it.
54692
54693 2008-04-13  Bruno Haible  <bruno@clisp.org>
54694
54695         Make truncl work on OSF/1 4.0.
54696         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
54697         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
54698         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
54699         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
54700         HAVE_DECL_TRUNCL.
54701         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
54702         HAVE_DECL_TRUNCL.
54703         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
54704
54705 2008-04-13  Bruno Haible  <bruno@clisp.org>
54706
54707         * lib/unictype.h: Remove trailing comma from enumeration definitions.
54708
54709 2008-04-13  Bruno Haible  <bruno@clisp.org>
54710
54711         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
54712         expression, so as to avoid HP-UX 11 cc compiler bug.
54713
54714 2008-04-13  Bruno Haible  <bruno@clisp.org>
54715
54716         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
54717
54718 2008-04-13  Bruno Haible  <bruno@clisp.org>
54719
54720         * lib/git-merge-changelog.c: Remove empty declaration outside of
54721         functions.
54722
54723 2008-04-13  Bruno Haible  <bruno@clisp.org>
54724
54725         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
54726
54727 2008-04-13  Bruno Haible  <bruno@clisp.org>
54728
54729         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
54730         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
54731         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
54732         also if it exists but lacks definitions of the SHUT_* macros.
54733         * modules/sys_socket (Description): Update.
54734         Reported by Elbert Pol <e.pol@chello.nl>.
54735
54736 2008-04-13  Bruno Haible  <bruno@clisp.org>
54737
54738         * lib/localcharset.c (OS2): Don't redefine if already defined.
54739         Reported by Elbert Pol <e.pol@chello.nl>.
54740
54741 2008-04-13  Bruno Haible  <bruno@clisp.org>
54742
54743         * lib/binary-io.h [__EMX__]: Include <io.h>.
54744         Reported by Elbert Pol <e.pol@chello.nl>.
54745
54746 2008-04-12  Bruno Haible  <bruno@clisp.org>
54747
54748         * lib/fpucw.h: Enable the definitions also for x86_64.
54749         Needed for NetBSD/x86_64.
54750         Reported by Thomas Klausner <tk@giga.or.at>.
54751
54752 2008-04-12  Bruno Haible  <bruno@clisp.org>
54753
54754         * tests/test-strtod.c: Include isnand.h.
54755         (main): Use isnand instead of isnan.
54756         Reported by Jim Meyering.
54757
54758 2008-04-12  Bruno Haible  <bruno@clisp.org>
54759
54760         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
54761         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
54762
54763 2008-04-12  Jim Meyering  <meyering@redhat.com>
54764
54765         * m4/math_h.m4 (gl_MATH_H): Fix typos.
54766
54767 2008-04-12  Bruno Haible  <bruno@clisp.org>
54768
54769         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
54770         Reported by Elbert Pol <e.pol@chello.nl>.
54771
54772 2008-04-12  Eric Blake  <ebb9@byu.net>
54773
54774         Work around Solaris 10 math.h bug.
54775         * m4/math_h.m4 (gl_MATH_H): Check for bug.
54776         (gl_MATH_H_DEFAULTS): Set up default.
54777         * modules/math (Makefile.am): Replace new indicators.
54778         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
54779         * tests/test-math.c (main): Test this.
54780         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
54781         * doc/posix-headers/math.texi (math.h): Mention bug.
54782         Reported by Nelson H. F. Beebe and Jim Meyering.
54783
54784 2008-04-11  Bruno Haible  <bruno@clisp.org>
54785
54786         Adapt to future versions of Apple GCC.
54787         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
54788         Reported by Peter O'Gorman <peter@pogma.com>.
54789
54790 2008-04-11  Bruno Haible  <bruno@clisp.org>
54791
54792         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
54793
54794 2008-04-11  Bruno Haible  <bruno@clisp.org>
54795
54796         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
54797
54798         * modules/getaddrinfo-tests (Makefile.am): Define
54799         test_getaddrinfo_LDADD.
54800
54801 2008-04-11  Bruno Haible  <bruno@clisp.org>
54802
54803         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
54804         (init): Fix syntax error.
54805         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
54806         is declared.
54807
54808 2008-04-11  Bruno Haible  <bruno@clisp.org>
54809
54810         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
54811         * modules/glob (Depends-on): Add stdbool.
54812
54813 2008-04-11  Bruno Haible  <bruno@clisp.org>
54814
54815         * lib/trim.c: Include <string.h>.
54816
54817 2008-04-11  Eric Blake  <ebb9@byu.net>
54818
54819         Avoid compile failure on OS/2.
54820         * lib/regex_internal.h (internal_function): Disable optimization
54821         on OS/2 (__EMX__), where it caused compiler error.
54822         Reported by Elbert Pol.
54823
54824 2008-04-11  Bruno Haible  <bruno@clisp.org>
54825
54826         Flush the standard error stream before aborting. Needed on mingw.
54827         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
54828         * tests/test-array_list.c (ASSERT): Likewise.
54829         * tests/test-array_oset.c (ASSERT): Likewise.
54830         * tests/test-avltree_list.c (ASSERT): Likewise.
54831         * tests/test-avltree_oset.c (ASSERT): Likewise.
54832         * tests/test-avltreehash_list.c (ASSERT): Likewise.
54833         * tests/test-binary-io.c (ASSERT): Likewise.
54834         * tests/test-byteswap.c (ASSERT): Likewise.
54835         * tests/test-c-ctype.c (ASSERT): Likewise.
54836         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
54837         * tests/test-c-strcasestr.c (ASSERT): Likewise.
54838         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
54839         * tests/test-c-strstr.c (ASSERT): Likewise.
54840         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
54841         * tests/test-canonicalize.c (ASSERT): Likewise.
54842         * tests/test-carray_list.c (ASSERT): Likewise.
54843         * tests/test-ceilf1.c (ASSERT): Likewise.
54844         * tests/test-ceilf2.c (ASSERT): Likewise.
54845         * tests/test-ceill.c (ASSERT): Likewise.
54846         * tests/test-count-one-bits.c (ASSERT): Likewise.
54847         * tests/test-fbufmode.c (ASSERT): Likewise.
54848         * tests/test-fflush2.c (ASSERT): Likewise.
54849         * tests/test-floorf1.c (ASSERT): Likewise.
54850         * tests/test-floorf2.c (ASSERT): Likewise.
54851         * tests/test-floorl.c (ASSERT): Likewise.
54852         * tests/test-fopen.c (ASSERT): Likewise.
54853         * tests/test-fpending.c (ASSERT): Likewise.
54854         * tests/test-fprintf-posix.c (ASSERT): Likewise.
54855         * tests/test-fpurge.c (ASSERT): Likewise.
54856         * tests/test-freadable.c (ASSERT): Likewise.
54857         * tests/test-freadahead.c (ASSERT): Likewise.
54858         * tests/test-freading.c (ASSERT): Likewise.
54859         * tests/test-freadptr.c (ASSERT): Likewise.
54860         * tests/test-freadptr2.c (ASSERT): Likewise.
54861         * tests/test-freadseek.c (ASSERT): Likewise.
54862         * tests/test-freopen.c (ASSERT): Likewise.
54863         * tests/test-frexp.c (ASSERT): Likewise.
54864         * tests/test-frexpl.c (ASSERT): Likewise.
54865         * tests/test-fseek.c (ASSERT): Likewise.
54866         * tests/test-fseeko.c (ASSERT): Likewise.
54867         * tests/test-fstrcmp.c (ASSERT): Likewise.
54868         * tests/test-ftell.c (ASSERT): Likewise.
54869         * tests/test-ftello.c (ASSERT): Likewise.
54870         * tests/test-func.c (ASSERT): Likewise.
54871         * tests/test-fwritable.c (ASSERT): Likewise.
54872         * tests/test-fwriting.c (ASSERT): Likewise.
54873         * tests/test-getdelim.c (ASSERT): Likewise.
54874         * tests/test-getline.c (ASSERT): Likewise.
54875         * tests/test-i-ring.c (ASSERT): Likewise.
54876         * tests/test-iconv-utf.c (ASSERT): Likewise.
54877         * tests/test-iconv.c (ASSERT): Likewise.
54878         * tests/test-isfinite.c (ASSERT): Likewise.
54879         * tests/test-isnand.c (ASSERT): Likewise.
54880         * tests/test-isnanf.c (ASSERT): Likewise.
54881         * tests/test-isnanl.h (ASSERT): Likewise.
54882         * tests/test-ldexpl.c (ASSERT): Likewise.
54883         * tests/test-linked_list.c (ASSERT): Likewise.
54884         * tests/test-linkedhash_list.c (ASSERT): Likewise.
54885         * tests/test-localename.c (ASSERT): Likewise.
54886         * tests/test-lseek.c (ASSERT): Likewise.
54887         * tests/test-mbscasecmp.c (ASSERT): Likewise.
54888         * tests/test-mbscasestr1.c (ASSERT): Likewise.
54889         * tests/test-mbscasestr2.c (ASSERT): Likewise.
54890         * tests/test-mbscasestr3.c (ASSERT): Likewise.
54891         * tests/test-mbscasestr4.c (ASSERT): Likewise.
54892         * tests/test-mbschr.c (ASSERT): Likewise.
54893         * tests/test-mbscspn.c (ASSERT): Likewise.
54894         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
54895         * tests/test-mbspbrk.c (ASSERT): Likewise.
54896         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
54897         * tests/test-mbsrchr.c (ASSERT): Likewise.
54898         * tests/test-mbsspn.c (ASSERT): Likewise.
54899         * tests/test-mbsstr1.c (ASSERT): Likewise.
54900         * tests/test-mbsstr2.c (ASSERT): Likewise.
54901         * tests/test-mbsstr3.c (ASSERT): Likewise.
54902         * tests/test-memchr2.c (ASSERT): Likewise.
54903         * tests/test-memmem.c (ASSERT): Likewise.
54904         * tests/test-open.c (ASSERT): Likewise.
54905         * tests/test-printf-frexp.c (ASSERT): Likewise.
54906         * tests/test-printf-frexpl.c (ASSERT): Likewise.
54907         * tests/test-printf-posix.c (ASSERT): Likewise.
54908         * tests/test-quotearg.c (ASSERT): Likewise.
54909         * tests/test-rbtree_list.c (ASSERT): Likewise.
54910         * tests/test-rbtree_oset.c (ASSERT): Likewise.
54911         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
54912         * tests/test-round1.c (ASSERT): Likewise.
54913         * tests/test-roundf1.c (ASSERT): Likewise.
54914         * tests/test-roundl.c (ASSERT): Likewise.
54915         * tests/test-signbit.c (ASSERT): Likewise.
54916         * tests/test-sleep.c (ASSERT): Likewise.
54917         * tests/test-snprintf-posix.c (ASSERT): Likewise.
54918         * tests/test-snprintf.c (ASSERT): Likewise.
54919         * tests/test-sprintf-posix.c (ASSERT): Likewise.
54920         * tests/test-stat-time.c (ASSERT): Likewise.
54921         * tests/test-strcasestr.c (ASSERT): Likewise.
54922         * tests/test-strerror.c (ASSERT): Likewise.
54923         * tests/test-striconv.c (ASSERT): Likewise.
54924         * tests/test-striconveh.c (ASSERT): Likewise.
54925         * tests/test-striconveha.c (ASSERT): Likewise.
54926         * tests/test-strsignal.c (ASSERT): Likewise.
54927         * tests/test-strstr.c (ASSERT): Likewise.
54928         * tests/test-strtod.c (ASSERT): Likewise.
54929         * tests/test-trunc1.c (ASSERT): Likewise.
54930         * tests/test-trunc2.c (ASSERT): Likewise.
54931         * tests/test-truncf1.c (ASSERT): Likewise.
54932         * tests/test-truncf2.c (ASSERT): Likewise.
54933         * tests/test-truncl.c (ASSERT): Likewise.
54934         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
54935         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
54936         * tests/test-vasnprintf.c (ASSERT): Likewise.
54937         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
54938         * tests/test-vasprintf.c (ASSERT): Likewise.
54939         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
54940         * tests/test-vprintf-posix.c (ASSERT): Likewise.
54941         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
54942         * tests/test-vsnprintf.c (ASSERT): Likewise.
54943         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
54944         * tests/test-wcwidth.c (ASSERT): Likewise.
54945         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
54946         * tests/test-xprintf-posix.c (ASSERT): Likewise.
54947         * tests/test-xvasprintf.c (ASSERT): Likewise.
54948         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
54949         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
54950         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
54951         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
54952         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
54953         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
54954         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
54955         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
54956         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
54957         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
54958         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
54959         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
54960         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
54961         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
54962         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
54963         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
54964         * tests/unictype/test-block_list.c (ASSERT): Likewise.
54965         * tests/unictype/test-block_of.c (ASSERT): Likewise.
54966         * tests/unictype/test-block_test.c (ASSERT): Likewise.
54967         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
54968         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
54969         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
54970         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
54971         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
54972         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
54973         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
54974         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
54975         * tests/unictype/test-combining.c (ASSERT): Likewise.
54976         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
54977         * tests/unictype/test-digit.c (ASSERT): Likewise.
54978         * tests/unictype/test-mirror.c (ASSERT): Likewise.
54979         * tests/unictype/test-numeric.c (ASSERT): Likewise.
54980         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
54981         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
54982         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
54983         * tests/unictype/test-scripts.c (ASSERT): Likewise.
54984         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
54985         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
54986         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
54987         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
54988         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
54989         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
54990         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
54991         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
54992         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
54993         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
54994         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
54995         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
54996         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
54997         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
54998         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
54999         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55000         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55001         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55002         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55003         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55004         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55005         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55006         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55007         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55008         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55009         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55010         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
55011         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
55012         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
55013         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
55014         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
55015         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
55016         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
55017         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
55018         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
55019         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
55020         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
55021         Reported by Eric Blake.
55022
55023 2008-04-11  Bruno Haible  <bruno@clisp.org>
55024
55025         * lib/wchar.in.h: Tweak comment.
55026
55027 2008-04-11  Bruno Haible  <bruno@clisp.org>
55028
55029         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
55030         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
55031         gl_COMMON.
55032         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
55033
55034 2008-04-11  Bruno Haible  <bruno@clisp.org>
55035
55036         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
55037
55038 2008-04-11  Simon Josefsson  <simon@josefsson.org>
55039
55040         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
55041         of attempting to use non-existing /dev/*random.  Based on patch
55042         from Adam Strzelecki <ono@java.pl> in
55043         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
55044
55045 2008-04-08  Bruno Haible  <bruno@clisp.org>
55046
55047         Add tentative support for emx+gcc.
55048         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
55049         * lib/fpurge.c (fpurge): Likewise.
55050         * lib/freadable.c (freadable): Likewise.
55051         * lib/freadahead.c (freadahead): Likewise.
55052         * lib/freading.c (freading): Likewise.
55053         * lib/freadptr.c (freadptr): Likewise.
55054         * lib/freadseek.c (freadptrinc): Likewise.
55055         * lib/fseeko.c (rpl_fseeko): Likewise.
55056         * lib/fseterr.c (fseterr): Likewise.
55057         * lib/fwritable.c (fwritable): Likewise.
55058         * lib/fwriting.c (fwriting): Likewise.
55059         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
55060
55061 2008-04-09  Eric Blake  <ebb9@byu.net>
55062
55063         Avoid some autoconf warnings.
55064         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
55065         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
55066         * m4/afs.m4 (gl_AFS): Likewise.
55067         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
55068         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
55069         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55070         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
55071         (gl_INTEGER_TYPE_SUFFIX): Likewise.
55072         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
55073         (AC_CHECK_DECLS_ONCE): Likewise.
55074         Rename file...
55075         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
55076         gnulib-tool requires autoconf 2.59 or better.
55077         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
55078
55079 2008-04-08  Eric Blake  <ebb9@byu.net>
55080
55081         Use 'git describe --match' if present (added in git 1.5.5).
55082         * build-aux/git-version-gen: Limit result to tags that match 'v*'
55083         if possible.
55084
55085 2008-04-08  Bruno Haible  <bruno@clisp.org>
55086
55087         Add tentative support for OpenServer.
55088         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
55089         _ptr, _cnt.
55090         * lib/fpurge.c (fpurge): Likewise.
55091         * lib/freadable.c (freadable): Likewise.
55092         * lib/freadahead.c (freadahead): Likewise.
55093         * lib/freading.c (freading): Likewise.
55094         * lib/freadptr.c (freadptr): Likewise.
55095         * lib/freadseek.c (freadptrinc): Likewise.
55096         * lib/fseeko.c (rpl_fseeko): Likewise.
55097         * lib/fseterr.c (fseterr): Likewise.
55098         * lib/fwritable.c (fwritable): Likewise.
55099         * lib/fwriting.c (fwriting): Likewise.
55100         Reported by Roger Cornelius <rac@tenzing.org> and
55101         Brian K. White <brian@aljex.com>.
55102
55103 2008-04-06  Jim Meyering  <meyering@redhat.com>
55104
55105         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
55106
55107 2008-04-06  Bruno Haible  <bruno@clisp.org>
55108
55109         Avoid possible error with non-ASCII bytes in UTF-8 locales.
55110         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
55111         * tests/test-printf-posix.sh: Likewise.
55112         * tests/test-vfprintf-posix.sh: Likewise.
55113         * tests/test-vprintf-posix.sh: Likewise.
55114         * tests/test-xprintf-posix.sh: Likewise.
55115
55116 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55117
55118         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
55119         hide error from 'ls', needed on OS/2.
55120         Report by Elbert Pol <elbert.pol@gmail.com>.
55121
55122 2008-04-04  Eric Blake  <ebb9@byu.net>
55123
55124         Make test-fseeko.c failures meaningful.
55125         * tests/test-fseeko.c: Print line number on failure.
55126         * tests/test-fseek.c: Likewise.
55127         Reported by Nelson H. F. Beebe.
55128
55129         Improve strtod bug detection check.
55130         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
55131         required for Solaris 10.
55132         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
55133
55134 2008-04-04  Bruno Haible  <bruno@clisp.org>
55135
55136         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
55137         by m4/setenv.m4.
55138
55139 2008-04-03  Eric Blake  <ebb9@byu.net>
55140
55141         Ensure sane .version contents.
55142         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
55143         version string.
55144         * build-aux/git-version-gen: Improve documentation.
55145
55146         Make GNU make output nicer.
55147         * top/GNUmakefile [!_have-Makefile]: Add dependency on
55148         MAKECMDGOALS to enforce message for all command line targets.  Set
55149         srcdir for use in maint.mk.
55150
55151         Another maintainer tweak.
55152         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
55153         a target that regenerates version.
55154
55155 2008-04-03  Jim Meyering  <meyering@redhat.com>
55156
55157         vc-list-files: don't cause coreutils "make po-check" failure
55158         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
55159
55160 2008-04-03  Eric Blake  <ebb9@byu.net>
55161
55162         Allow VPATH usage of vc-list-files.
55163         * build-aux/vc-list-files (scriptversion): Add timestamp.
55164         (options): Add --help, --version, -C.
55165         (CVS): Support installed cvsu.
55166
55167 2008-04-02  Bruno Haible  <bruno@clisp.org>
55168
55169         Avoid some "statement with no effect" warnings from gcc.
55170         * tests/test-wctype.c (main): Explicitly ignore unused values.
55171         Reported by Jim Meyering.
55172
55173 2008-04-02  Jim Meyering  <meyering@redhat.com>
55174
55175         Avoid some warnings from "gcc -Wshadow".
55176         * tests/test-frexp.c (exp): Define to a different identifier.
55177         * tests/test-frexpl.c (exp): Likewise.
55178
55179 2008-04-03  Jim Meyering  <meyering@redhat.com>
55180
55181         bootstrap: remove dangling *.[ch] symlinks from lib
55182         * build-aux/bootstrap [dangling symlink removal]: Move find's
55183         -depth option to precede all others, to avoid a warning.
55184         Remove *.[ch] files too, and from "$source_base" (usually lib/).
55185
55186 2008-04-02  Bruno Haible  <bruno@clisp.org>
55187
55188         Avoid some warnings from "gcc -Wshadow".
55189         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
55190         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
55191         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
55192         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
55193         Reported by Jim Meyering.
55194
55195 2008-04-01  Bruno Haible  <bruno@clisp.org>
55196
55197         Fix test to work on IRIX 6.5 with cc.
55198         * tests/test-math.c (numeric_equal): New function.
55199         (main): Use it.
55200
55201 2008-04-01  Bruno Haible  <bruno@clisp.org>
55202
55203         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
55204
55205 2008-04-01  Bruno Haible  <bruno@clisp.org>
55206
55207         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
55208         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55209         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
55210         (Depends-on): Remove math.
55211
55212         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
55213         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55214         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
55215         (Depends-on): Remove math.
55216
55217         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
55218         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55219         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
55220         (Depends-on): Remove math.
55221         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
55222         (Depends-on): Remove math.
55223
55224         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
55225         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55226         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
55227         (Depends-on): Remove math.
55228         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
55229         (Depends-on): Remove math.
55230
55231         * tests/test-round1.c: Include nan.h.
55232         (main): Use NaNd instead of NAN.
55233         * modules/round-tests (Files): Add tests/nan.h.
55234
55235         * tests/test-trunc1.c: Include nan.h.
55236         (main): Use NaNd instead of NAN.
55237         * modules/trunc-tests (Files): Add tests/nan.h.
55238
55239         * tests/test-roundf1.c: Include nan.h.
55240         (main): Use NaNf instead of NAN.
55241         * modules/roundf-tests (Files): Add tests/nan.h.
55242
55243         * tests/test-truncf1.c: Include nan.h.
55244         (main): Use NaNf instead of NAN.
55245         * modules/truncf-tests (Files): Add tests/nan.h.
55246
55247         * tests/test-ceilf1.c: Include nan.h.
55248         (main): Use NaNf instead of NAN.
55249         * modules/ceilf-tests (Files): Add tests/nan.h.
55250
55251         * tests/test-floorf1.c: Include nan.h.
55252         (main): Use NaNf instead of NAN.
55253         * modules/floorf-tests (Files): Add tests/nan.h.
55254
55255         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
55256         (main): Use NaNf instead of NAN.
55257         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
55258
55259         * tests/test-isnand.c: Include nan.h instead of <math.h>.
55260         (main): Use NaNd instead of NAN.
55261         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
55262
55263         * tests/test-frexp.c: Include nan.h.
55264         (main): Use NaNd instead of NAN.
55265         * modules/frexp-tests (Files): Add tests/nan.h.
55266
55267         * lib/isnan.c: Don't include <math.h>.
55268         (FUNC): Don't use NAN macro.
55269         * modules/isnand-nolibm (Depends-on): Remove math.
55270         * modules/isnanf-nolibm (Depends-on): Remove math.
55271         * modules/isnanl (Depends-on): Remove math.
55272         * modules/isnanl-nolibm (Depends-on): Remove math.
55273
55274         * tests/nan.h: New file.
55275
55276 2008-04-01  Eric Blake  <ebb9@byu.net>
55277
55278         Fix typos.
55279         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
55280         values to be the right type.
55281
55282         For now, cater to gnulib strtod inaccuracies.
55283         * tests/test-strtod.c (main): Allow 1-ulp error on expected
55284         fractional results.  While not as nice from a QoI perspective, it
55285         is a quicker patch than correctly implementing decimal to binary
55286         rounding.
55287
55288 2008-03-31  Eric Blake  <ebb9@byu.net>
55289
55290         Guarantee a definition of NAN.
55291         * lib/math.in.h (NAN): Define if missing.
55292         * tests/test-math.c (main): Test it.
55293         * doc/posix-headers/math.texi (math.h): Document this.
55294         * lib/isnan.c (rpl_isnand): Use it.
55295         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
55296         * tests/test-floorf1.c (NaN): Likewise.
55297         * tests/test-frexp.c (NaN): Likewise.
55298         * tests/test-isnand.c (NaN): Likewise.
55299         * tests/test-isnanf.c (NaN): Likewise.
55300         * tests/test-round1.c (NaN): Likewise.
55301         * tests/test-roundf1.c (NaN): Likewise.
55302         * tests/test-snprintf-posix.h (NaN): Likewise.
55303         * tests/test-sprintf-posix.h (NaN): Likewise.
55304         * tests/test-trunc1.c (NaN): Likewise.
55305         * tests/test-truncf1.c (NaN): Likewise.
55306         * tests/test-vasnprintf-posix.c (NaN): Likewise.
55307         * tests/test-vasprintf-posix.c (NaN): Likewise.
55308         * modules/isnand-nolibm (Depends-on): Add math.
55309         * modules/isnanf-nolibm (Depends-on): Likewise.
55310         * modules/isnanl (Depends-on): Likewise.
55311         * modules/isnanl-nolibm (Depends-on): Likewise.
55312         * modules/snprintf-posix-tests (Depends-on): Likewise.
55313         * modules/sprintf-posix-tests (Depends-on): Likewise.
55314         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
55315         * modules/vsprintf-posix-tests (Depends-on): Likewise.
55316         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
55317         * modules/vasprintf-posix-tests (Depends-on): Likewise.
55318
55319 2008-03-31  Bruno Haible  <bruno@clisp.org>
55320
55321         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
55322         * doc/posix-functions/strtod.texi: Likewise.
55323
55324 2008-03-31  Bruno Haible  <bruno@clisp.org>
55325
55326         * tests/test-strtod.c (main): Don't use C99 syntax.
55327
55328 2008-03-31  Bruno Haible  <bruno@clisp.org>
55329
55330         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
55331         Reported by Eric Blake.
55332
55333 2008-03-31  Jim Meyering  <meyering@redhat.com>
55334
55335         Don't compare actual signbit return values.
55336         * tests/test-strtod.c (main): Rather, compare only their
55337         zero/non-zero nature.
55338
55339 2008-03-31  Eric Blake  <ebb9@byu.net>
55340
55341         More strtod documentation.
55342         * doc/posix-functions/strtod.texi (strtod): Interpret more test
55343         failures as distinct bugs.
55344
55345 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55346
55347         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
55348         Problem reported by Erik Benada in
55349         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
55350
55351 2008-03-30  Bruno Haible  <bruno@clisp.org>
55352
55353         * tests/test-strtod.c: Add comments about which assertion fails on which
55354         platform.
55355         * doc/posix-functions/strtod.texi: Add info about many more platforms.
55356
55357 2008-03-30  Eric Blake  <ebb9@byu.net>
55358
55359         Test signbit behavior on zeros.
55360         * tests/test-signbit.c (test_signbitf): Add tests for zero.
55361         (test_signbitd, test_signbitl): Likewise.
55362
55363         More strtod touchups.
55364         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
55365         sign of negative underflow, for now.  Use .5, not .1.
55366         * doc/posix-functions/strtod.texi (strtod): Mention these
55367         limitations.
55368         Reported by Jim Meyering.
55369
55370 2008-03-30  Bruno Haible  <bruno@clisp.org>
55371
55372         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
55373         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
55374
55375 2008-03-30  Bruno Haible  <bruno@clisp.org>
55376
55377         Avoid failure when attempting to return empty iconv results on some
55378         platforms.
55379         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
55380         allocation, don't report ENOMEM when the resulting string is empty.
55381
55382 2008-03-30  Bruno Haible  <bruno@clisp.org>
55383
55384         Fix buffer overrun.
55385         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
55386         Don't consider the width for tmp_length. Check count against tmp_length
55387         before doing the padding. Ensure enough allocation during padding.
55388
55389 2008-03-30  Eric Blake  <ebb9@byu.net>
55390
55391         strtod touchups.
55392         * lib/strtod.c (strtod): Avoid compiler warnings.
55393         Reported by Jim Meyering.
55394
55395 2008-03-30  Bruno Haible  <bruno@clisp.org>
55396
55397         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
55398         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
55399         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
55400         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
55401         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
55402         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
55403         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
55404         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
55405
55406         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
55407         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
55408         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
55409         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
55410         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
55411         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
55412         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
55413         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
55414
55415         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
55416         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
55417         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
55418         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
55419         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
55420         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
55421         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
55422         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
55423
55424         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
55425         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
55426
55427         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
55428         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
55429
55430         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
55431         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
55432
55433         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
55434         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
55435         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
55436
55437         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
55438         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
55439         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
55440
55441         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
55442         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
55443         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
55444
55445         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
55446         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
55447         * modules/vasprintf (Depends-on): Add EOVERFLOW.
55448
55449         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
55450         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
55451         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
55452         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
55453         (Depends-on): Add EOVERFLOW.
55454         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
55455         (Depends-on): Add EOVERFLOW.
55456         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
55457         (Depends-on): Add EOVERFLOW.
55458         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
55459         (Depends-on): Add EOVERFLOW.
55460         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
55461         (Depends-on): Add EOVERFLOW.
55462         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
55463         (Depends-on): Add EOVERFLOW.
55464         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
55465         (Depends-on): Add EOVERFLOW.
55466         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
55467         (Depends-on): Add EOVERFLOW.
55468
55469         * lib/sprintf.c (EOVERFLOW): Remove fallback.
55470         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
55471         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
55472
55473         * lib/snprintf.c (EOVERFLOW): Remove fallback.
55474         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
55475         * modules/snprintf (Depends-on): Add EOVERFLOW.
55476
55477         * lib/poll.c (EOVERFLOW): Remove fallback.
55478         * modules/poll (Depends-on): Add EOVERFLOW.
55479
55480         * lib/getugroups.c (EOVERFLOW): Remove fallback.
55481         * modules/getugroups (Depends-on): Add EOVERFLOW.
55482
55483         * lib/getdelim.c (EOVERFLOW): Remove fallback.
55484         * modules/getdelim (Depends-on): Add EOVERFLOW.
55485
55486         * lib/ftell.c (EOVERFLOW): Remove fallback.
55487         * modules/ftell (Depends-on): Add EOVERFLOW.
55488
55489         * lib/fprintf.c (EOVERFLOW): Remove fallback.
55490         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
55491         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
55492
55493         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
55494
55495         * modules/EOVERFLOW-tests: New file.
55496         * tests/test-EOVERFLOW.c: New file.
55497
55498         * modules/EOVERFLOW: New file.
55499         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
55500
55501 2008-03-30  Bruno Haible  <bruno@clisp.org>
55502
55503         Fix bug introduced on 2007-06-10.
55504         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
55505         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
55506
55507 2008-03-30  Bruno Haible  <bruno@clisp.org>
55508
55509         Improve freadseek's efficiency after ungetc.
55510         * lib/freadseek.c: Include freadahead.h.
55511         (freadptrinc): New function, extracted from freadseek.
55512         (freadseek): Use it in a loop. Use freadahead to determine the number
55513         of loop iterations.
55514         * modules/freadseek (Depends-on): Add freadahead.
55515         (configure.ac): Require AC_C_INLINE.
55516
55517 2008-03-30  Bruno Haible  <bruno@clisp.org>
55518
55519         * lib/freadseek.c (freadseek): Don't ignore the return value of
55520         freadptr.
55521
55522 2008-03-29  Eric Blake  <ebb9@byu.net>
55523
55524         Add hex float support.
55525         * modules/strtod (Depends-on): Add c-ctype.
55526         (Link): Mention POW_LIB.
55527         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
55528         whitespace between 'e' and exponent.
55529         * tests/test-strtod.c (main): Enable hex float tests.
55530         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
55531         now provides.
55532
55533         Document various strtod bugs, with some fixes.
55534         * doc/posix-functions/strtod.texi (strtod): Document bugs with
55535         "-0x", "inf", "nan", and hex constants.
55536         * doc/posix-functions/atof.texi (atof): Likewise.
55537         * modules/stdlib (Makefile.am): Support strtod.
55538         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
55539         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
55540         detect additional strtod bugs.
55541         * lib/stdlib.in.h (rpl_strtod): Add declarations.
55542         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
55543         bool where appropriate.  Parse 'inf' and 'nan'.
55544         * tests/test-strtod.c: New file.
55545         * modules/strtod (Depends-on): Add stdbool, stdlib.
55546         (configure.ac): Turn on module indicator.
55547         * modules/strtod-tests: New module.
55548
55549 2008-03-29  Eric Blake  <ebb9@byu.net>
55550
55551         Fix ftell on mingw.
55552         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
55553         * modules/ftell-tests (Depends-on): Add binary-io.
55554         * modules/ftello-tests (Depends-on): Likewise.
55555         * tests/test-ftell.c (main): Enhance test to cover behavior after
55556         ungetc.  Enforce binary mode.
55557         * tests/test-ftello.c (main): Likewise.
55558
55559         Pass test-freadseek on cygwin.
55560         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
55561         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
55562         ungetc buffer.
55563
55564         * tests/test-fflush2.c (main): Fix typo.
55565
55566 2008-03-29  Bruno Haible  <bruno@clisp.org>
55567
55568         * tests/test-fflush2.c (main): Temporarily disable the contents of
55569         this test.
55570         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
55571         Reported by Eric Blake.
55572
55573 2008-03-28  Simon Josefsson  <simon@josefsson.org>
55574
55575         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
55576         (GC_SHA224_DIGEST_SIZE): Add.
55577
55578         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
55579         (gc_hash_digest_length): Likewise.
55580         (gc_hash_buffer): Likewise.
55581
55582 2008-03-25  Bruno Haible  <bruno@clisp.org>
55583
55584         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
55585         detail which gettext release to use.
55586         Reported by Simon Josefsson.
55587
55588 2008-03-26  Jim Meyering  <meyering@redhat.com>
55589
55590         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
55591         * modules/gnumakefile (clean-GNUmakefile): Also, use
55592         test ... && ... || : syntax rather than if-then ... fi.
55593
55594         gnumakefile: Don't double-quote-expand $(VPATH) value.
55595         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
55596
55597 2008-03-24  Eric Blake  <ebb9@byu.net>
55598
55599         Alter GNUmakefile to install into top directory.
55600         * modules/maintainer-makefile: Split, and add dependency...
55601         * modules/gnumakefile: to this new module.
55602         * build-aux/GNUmakefile: Move...
55603         * top/GNUmakefile: ...here.
55604         * build-aux/maint.mk: Move...
55605         * top/maint.mk: ...here.
55606         * MODULES.html.sh (Support for maintaining...): Document new
55607         module.
55608
55609 2008-03-23  Bruno Haible  <bruno@clisp.org>
55610
55611         * gnulib-tool: New options --vc-files, --no-vc-files.
55612         (func_usage): Document them.
55613         (vc_files): New variable.
55614         (func_import): Consider vc_files.
55615         (func_create_testdir): Set vc_files to empty.
55616         Suggested by Jim Meyering and Karl Berry.
55617
55618 2008-03-23  Bruno Haible  <bruno@clisp.org>
55619
55620         Fix regex compilation error on HP-UX 11.
55621         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
55622         * modules/regex (Files): Add m4/mbstate_t.m4.
55623         Reported by Ton Voon <ton.voon@altinity.com>.
55624
55625 2008-03-23  Bruno Haible  <bruno@clisp.org>
55626
55627         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
55628
55629 2008-03-23  Eric Blake  <ebb9@byu.net>
55630             Bruno Haible  <bruno@clisp.org>
55631
55632         Install files from top/ in the destination directory.
55633         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55634         augmentation also for the files from top/.
55635         (func_import, func_create_testdir): Rewrite file names:
55636         top/filename -> filename.
55637
55638 2008-03-23  Bruno Haible  <bruno@clisp.org>
55639
55640         Tweak "gnulib --version" output.
55641         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
55642
55643 2008-03-23  Bruno Haible  <bruno@clisp.org>
55644
55645         Tweak "gnulib --version" output.
55646         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
55647         rather than contents of ChangeLog, when possible.
55648
55649 2008-03-21  Eric Blake  <ebb9@byu.net>
55650
55651         More --version tweaks.
55652         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
55653         date of last ChangeLog entry.
55654
55655 2008-03-21  Jim Meyering  <meyering@redhat.com>
55656
55657         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
55658
55659 2008-03-20  Eric Blake  <ebb9@byu.net>
55660
55661         VPATH fix.
55662         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
55663
55664 2008-03-20  Simon Josefsson  <simon@josefsson.org>
55665
55666         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
55667         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
55668
55669 2008-03-20  Eric Blake  <ebb9@byu.net>
55670
55671         Sync GNUmakefile with coreutils.
55672         * build-aux/GNUmakefile (have-Makefile): Rename...
55673         (_have-Makefile): ...to this, for namespace consideration.
55674         (GNUmakefile.cfg): Include, if present.
55675         (_autoreconf): Define a default.
55676         (_is-dist-target): New rule for rebuilds to pick up intra-release
55677         version.
55678         (maint-cfg.mk): Rename...
55679         (cfg.mk): ...to this.
55680
55681 2008-03-18  Jim Meyering  <meyering@redhat.com>
55682
55683         New script and module: mktempd
55684         * MODULES.html.sh (maint+release support): Add mktempd.
55685         * build-aux/mktempd: New file.
55686         * modules/mktempd: New file.
55687
55688 2008-03-15  Jim Meyering  <meyering@redhat.com>
55689
55690         Undo last change.
55691         * lib/sha1.c, lib/md5.c: 63 != ~63.
55692         Reported by Andreas Schwab.
55693
55694         sha1.c, md5.c: Hoist a redundant expression.
55695         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
55696         "ctx->buflen" only once, before calling *_process_block.
55697         * lib/md5.c (md5_process_bytes): Likewise.
55698
55699 2008-03-14  Eric Blake  <ebb9@byu.net>
55700
55701         Bump copyright year in files generated by gnulib-tool.
55702         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
55703         gnulib-tool, rather than hard-coding it.
55704
55705         Fix 'gnulib-tool --version' output to work with git.
55706         * gnulib-tool (func_gnulib_dir): New function, extracted from...
55707         (startup): ...here.
55708         (func_version): Use it to invoke git-version-gen, rather than
55709         relying on CVS keyword expansion.  Modernize wording.
55710         (cvsdatestamp, last_checkin_date, version): Kill unused
55711         variables.
55712
55713 2008-03-12  Jim Meyering  <meyering@redhat.com>
55714
55715         Recognize optional cast of the argument to free.
55716         * build-aux/useless-if-before-free: Update regexps.
55717
55718         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
55719
55720 2008-03-11  Bruno Haible  <bruno@clisp.org>
55721
55722         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
55723         by a single package.
55724         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
55725         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
55726         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
55727         Reported by Sam Steingold <sds@gnu.org>.
55728
55729 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55730
55731         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
55732         repositories.
55733
55734 2008-03-11  Bruno Haible  <bruno@clisp.org>
55735
55736         Avoid conflicts between local macro definitions.
55737         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55738         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
55739
55740 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
55741             Bruno Haible  <bruno@clisp.org>
55742
55743         Make va_copy work with some version of xlc on AIX 5.1.
55744         * lib/stdarg.in.h: New file.
55745         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
55746         On AIX, use a <stdarg.h> file substitute.
55747         * modules/stdarg (Files): Add lib/stdarg.in.h.
55748         (Depends-on): Add include_next.
55749         (Makefile.am): Build a stdarg.h substitute if requested.
55750         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
55751
55752 2008-03-10  Bruno Haible  <bruno@clisp.org>
55753
55754         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
55755         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55756         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
55757
55758 2008-03-10  Bruno Haible  <bruno@clisp.org>
55759
55760         * modules/stdlib (Depends-on): Add include_next, remove
55761         absolute-header.
55762
55763 2008-03-09  Bruno Haible  <bruno@clisp.org>
55764
55765         * lib/freadahead.h (freadahead): Document more precisely.
55766         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
55767         the sum of both buffer sizes.
55768         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
55769         * NEWS: Document the change.
55770
55771 2008-03-09  Bruno Haible  <bruno@clisp.org>
55772
55773         Extend freadptr to return also the buffer size.
55774         * lib/freadptr.h (freadptr): Add sizep argument.
55775         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
55776         (freadptr): Add sizep argument. Determine buffer size like freadahead
55777         does.
55778         * tests/test-freadptr.c: Don't include freadahead.h.
55779         (main): Adapt for new calling convention of freadptr.
55780         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
55781         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
55782         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
55783         tests/test-freadptr2.sh.
55784         (Depends): Remove freadahead.
55785         (TESTS): Add test-freadptr2.sh.
55786         (check_PROGRAMS): Add test-freadptr2.
55787
55788 2008-03-09  Bruno Haible  <bruno@clisp.org>
55789
55790         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
55791         Report and solution by Simon Josefsson.
55792
55793 2008-03-06  Bruno Haible  <bruno@clisp.org>
55794
55795         Make fflush after ungetc work on BSD platforms.
55796         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
55797         * tests/test-fflush2.c: New file.
55798         * tests/test-fflush2.sh: New file.
55799         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
55800         tests/test-fflush2.c.
55801         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
55802         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
55803
55804 2008-03-06  Eric Blake  <ebb9@byu.net>
55805
55806         Likewise for ftello.
55807         * modules/ftello (Dependencies): Add extensions.
55808         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
55809
55810 2008-03-06  Bruno Haible  <bruno@clisp.org>
55811
55812         * modules/fseeko (Dependencies): Add extensions.
55813         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
55814         Needed on glibc systems.
55815
55816 2008-03-06  Bruno Haible  <bruno@clisp.org>
55817
55818         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
55819         email address.
55820         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55821
55822 2008-03-06  Bruno Haible  <bruno@clisp.org>
55823
55824         * users.txt: Add libgnupdf.
55825
55826 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55827
55828         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
55829         (Header File Substitutes, Function Substitutes,
55830         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
55831         (Build robot for gnulib): Fix typo.
55832
55833 2008-03-06  Bruno Haible  <bruno@clisp.org>
55834
55835         * doc/gnulib-tool.texi (VCS Issues): Small updates.
55836         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55837
55838 2008-03-06  Bruno Haible  <bruno@clisp.org>
55839
55840         * doc/func.texi: New file, extracted from doc/gnulib.texi.
55841         * doc/gnulib.texi: Include it.
55842
55843 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55844
55845         * modules/func (License): Change license to unlimited; there was
55846         no LGPL parts in the module anyway.
55847
55848 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55849
55850         * modules/__func__: Renamed to modules/func.
55851         * modules/__func__-tests: Renamed to modules/func-tests.
55852         * tests/test-__func__.c: Renamed to tests/test-func.c.
55853         * m4/__func__.m4: Renamed to m4/func.m4.
55854         * doc/gnulib.texi (__func__): Section renamed to func.
55855         Suggested by Eric Blake <ebb9@byu.net>.
55856
55857 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55858
55859         * doc/gnulib.texi (__func__): Use C99 terminology when talking
55860         about __func__.  Make example self-contained.  Suggested by Eric
55861         Blake <ebb9@byu.net>.
55862
55863         * tests/test-__func__.c (main): Avoid extraneous () around __func.
55864         Suggested by Eric Blake <ebb9@byu.net>.
55865
55866 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55867
55868         * modules/__func__: New file.
55869         * modules/__func__-tests: New file.
55870         * tests/test-__func__.c: New file.
55871         * m4/__func__.m4: New file.
55872         * doc/gnulib.texi (__func__): Document __func__ module.
55873
55874 2008-03-05  Simon Josefsson  <simon@josefsson.org>
55875
55876         * modules/byteswap (License): Re-license as LGPLv2+.
55877
55878 2008-03-05  Simon Josefsson  <simon@josefsson.org>
55879
55880         * doc/Makefile: Add pdf target.
55881
55882 2008-03-05  Simon Josefsson  <simon@josefsson.org>
55883
55884         * modules/inline (License): Use 'unlimited', since there are only
55885         *.m4 files in this module.
55886
55887 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
55888             Bruno Haible  <bruno@clisp.org>
55889
55890         Add support for HP C 7.1 on OpenVMS 8.3.
55891         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
55892
55893 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
55894
55895         Update VMS specifics.
55896         * lib/getopt.c [VMS]: Remove include of unixlib.h.
55897
55898 2008-03-02  Jim Meyering  <meyering@redhat.com>
55899
55900         Remove the last dependency on the "free" module.
55901         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
55902         Reported by Bob Proulx.
55903
55904         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
55905
55906         Remove useless "if" tests before free.  Deprecate "free" module.
55907         * doc/posix-functions/free.texi: Mention that this
55908         module is no longer useful.
55909         * modules/free (Notice): Say this module is obsolete.
55910         * modules/readutmp (Depends-on): Remove free.
55911         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
55912         * lib/putenv.c (putenv): Likewise.
55913         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
55914         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
55915         * tests/test-c-strcasestr.c (main): Likewise.
55916         * tests/test-c-strstr.c (main): Likewise.
55917         * tests/test-mbscasestr1.c (main): Likewise.
55918         * tests/test-mbscasestr2.c (main): Likewise.
55919         * tests/test-mbsstr1.c (main): Likewise.
55920         * tests/test-mbsstr2.c (main): Likewise.
55921         * tests/test-memmem.c (main): Likewise.
55922         * tests/test-strcasestr.c (main): Likewise.
55923         * tests/test-striconv.c (main): Likewise.
55924         * tests/test-striconveh.c (main): Likewise.
55925         * tests/test-striconveha.c (main): Likewise.
55926         * tests/test-strstr.c (main): Likewise.
55927
55928         * build-aux/git-version-gen: Adjust a comment and the Usage string.
55929
55930         bootstrap: sync from coreutils again
55931         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
55932
55933 2008-03-01  Jim Meyering  <meyering@redhat.com>
55934
55935         bootstrap: sync from coreutils
55936         * build-aux/bootstrap (update_po_files): Copy a .po file into place
55937         also when the target doesn't exist.
55938
55939 2008-03-01  Eric Blake  <ebb9@byu.net>
55940
55941         Fix bugs in last patch.
55942         * lib/memchr2.c (memchr2): Fix typo.
55943         * tests/test-memchr2.c: Test previous bug, and don't use GNU
55944         extension.
55945         Reported by Bruce Korb.
55946
55947         New module 'memchr2'.
55948         * modules/memchr2: New file.
55949         * modules/memchr2-tests: Likewise.
55950         * lib/memchr2.h: Likewise.
55951         * lib/memchr2.c: Likewise, based on memchr.c.
55952         * tests/test-memchr2.c: New test.
55953         * MODULES.html.sh (String handling): Add memchr2.
55954
55955 2008-02-29  Bruno Haible  <bruno@clisp.org>
55956
55957         * modules/freadseek-tests: New file.
55958         * tests/test-freadseek.sh: New file.
55959         * tests/test-freadseek.c: New file.
55960
55961         New module 'freadseek'.
55962         * modules/freadseek: New file.
55963         * lib/freadseek.h: New file.
55964         * lib/freadseek.c: New file.
55965         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
55966
55967 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
55968
55969         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
55970         wydawca.
55971
55972         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
55973         program_invocation_name and program_invocation_short_name are
55974         present.
55975
55976 2008-02-28  Bruno Haible  <bruno@clisp.org>
55977
55978         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
55979         * tests/test-freadptr.sh: Also test non-seekable stdin.
55980
55981 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
55982
55983         * build-aux/bootstrap (source_base, m4_base)
55984         (doc_base, tests_base): New variables.
55985         (gnulib_tool_options): Do not hardcode base directories, use
55986         the above variables instead.
55987
55988 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
55989
55990         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
55991
55992 2008-02-28  Bruno Haible  <bruno@clisp.org>
55993
55994         * modules/freadptr-tests: New file.
55995         * tests/test-freadptr.sh: New file.
55996         * tests/test-freadptr.c: New file.
55997
55998         New module 'freadptr'.
55999         * modules/freadptr: New file.
56000         * lib/freadptr.h: New file.
56001         * lib/freadptr.c: New file.
56002         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56003
56004 2008-02-26  Karl Berry  <karl@freefriends.org>
56005
56006         Sync from Libtool:
56007         * libltdl/argz.c (argz_add, argz_count): New functions.
56008         * libltdl/argz.in.h: Declare them.
56009         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56010
56011 2008-02-22  Bruno Haible  <bruno@clisp.org>
56012
56013         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
56014         is a pointer type.  Needed for HP-UX 10.
56015         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
56016         * doc/posix-functions/gmtime_r.texi: Likewise.
56017         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56018
56019 2008-02-24  Bruno Haible  <bruno@clisp.org>
56020
56021         * modules/environ-tests: New file.
56022         * tests/test-environ.c: New file.
56023
56024         New module 'environ'.
56025         * modules/environ: New file.
56026         * lib/unistd.in.h (environ): New declaration.
56027         * m4/environ.m4: New file.
56028         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
56029         after use.
56030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
56031         HAVE_DECL_ENVIRON.
56032         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
56033         HAVE_DECL_ENVIRON.
56034         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
56035         wrong claim that 'environ' is missing on some systems.
56036         * modules/execute (Depends-on): Add environ.
56037         * lib/execute.c (environ): Remove fallback declaration.
56038         * modules/pipe (Depends-on): Add environ.
56039         * lib/pipe.c (environ): Remove fallback declaration.
56040         * modules/setenv (Depends-on): Add environ.
56041         * lib/setenv.c (environ): Remove fallback declaration.
56042         * modules/unsetenv (Depends-on): Add environ.
56043         * lib/unsetenv.c (environ): Remove fallback declaration.
56044         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
56045         m4/environ.m4.
56046         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
56047         (gl_PREREQ_UNSETENV): Likewise.
56048
56049 2008-02-24  Bruno Haible  <bruno@clisp.org>
56050
56051         * doc/posix-functions/environ.texi: Document the MacOS X problem.
56052
56053 2008-02-20  Bob Proulx  <bob@proulx.com>
56054
56055         Enable use of older two part flavor 'git describe'.
56056         * build-aux/git-version-gen: If using the older two part flavor of
56057         git version then recreate the third part now present in the
56058         newer three part flavor of git describe.
56059
56060 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
56061
56062         * lib/fts.c (fts_build): Typo correction to comment.
56063
56064 2008-02-17  Bruno Haible  <bruno@clisp.org>
56065
56066         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
56067         generating no-op conflicts.
56068
56069 2008-02-17  Bruno Haible  <bruno@clisp.org>
56070
56071         Speed up by 10%.
56072         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
56073         result_entries, rather than an index-based loop.
56074
56075 2008-02-17  Bruno Haible  <bruno@clisp.org>
56076
56077         Speed up by 25%.
56078         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
56079         'hashcode_cached'.
56080         (entry_create): New function.
56081         (entry_hashcode): Use the cached hashcode if possible.
56082         (read_changelog_file, try_split_merged_entry): Use entry_create.
56083
56084 2008-02-17  Bruno Haible  <bruno@clisp.org>
56085
56086         Speed up from O(n^2) to O(n) for long ChangeLog files.
56087         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
56088         (read_changelog_file): Change implementation of entries_reversed list
56089         to rbtreehash.
56090         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
56091
56092 2008-02-17  Bruno Haible  <bruno@clisp.org>
56093
56094         New option --split-merged-entry.
56095         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
56096         (find_paragraph_end, try_split_merged_entry): New functions.
56097         (long_options): Add option --split-merged-entry.
56098         (usage): Document option --split-merged-entry.
56099         (main): Implement option --split-merged-entry.
56100         Reported by Eric Blake.
56101
56102 2008-02-17  Bruno Haible  <bruno@clisp.org>
56103
56104         * lib/git-merge-changelog.c: Include c-strstr.h.
56105         (main): Support the "git pull --rebase" situation.
56106         * modules/git-merge-changelog (Depends-on): Add c-strstr.
56107         Reported by Eric Blake.
56108
56109 2008-02-16  Eric Blake  <ebb9@byu.net>
56110
56111         Avoid doubling \ in common case of "c-maybe" quoting style.
56112         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
56113         eliding outer quotes.
56114         * lib/quotearg.h: Document this.
56115         * tests/test-quotearg.c (result_strings, inputs, results_g)
56116         (flag_results, locale_results): Test it by adding a new string to
56117         each test group.
56118         (compare_strings): Test new string.
56119
56120 2008-02-13  Eric Blake  <ebb9@byu.net>
56121
56122         Avoid trigraph quoting in default output.
56123         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
56124         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
56125         unless explicitly requested.
56126         * tests/test-quotearg.c (flag_results, main): Add additional tests.
56127
56128 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
56129
56130         Don't rely on signed integer overflowing to negative value.
56131         * lib/getugroups.c (getugroups): Include <limits.h>.
56132         Instead, compare against INT_MAX, and increment only if the test passes.
56133
56134 2008-02-13  Jim Meyering  <meyering@redhat.com>
56135         and Eric Blake  <ebb9@byu.net>
56136
56137         Avoid shadowing warning and compile errors on Linux.
56138         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
56139         forwarding macros on Linux.
56140         (dcgettext): Define a stub, for Linux.
56141         (results_g, main): Avoid warnings.
56142
56143 2008-02-12  Eric Blake  <ebb9@byu.net>
56144
56145         Silence warning in last patch.
56146         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
56147
56148         Quotearg part 4: add tests, fix c-maybe colon quoting.
56149         * lib/quotearg.h: Improve documentation.
56150         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
56151         escapes when adding outer quotes.  When quoting trigraphs, use
56152         valid C notation.  When quoting NUL, omit extra characters if next
56153         character is not digit.  Alter prototype.
56154         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
56155         callers.
56156         * modules/quotearg-tests: New module.
56157         * tests/test-quotearg.c: New test.
56158
56159 2008-02-07  Eric Blake  <ebb9@byu.net>
56160
56161         Quotearg part 3: add flag to control outer quote elision.
56162         * lib/quotearg.h (c_maybe_quoting_style): New style.
56163         (enum quoting_flags): Better documentation of flags.
56164         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
56165         c-maybe style.
56166         (quotearg_buffer_restyled): Handle new flag to elide outer
56167         quotes.
56168
56169         Quotearg part 2: add flag that can control NUL elision.
56170         * lib/quotearg.h (set_quoting_flags): New prototype.
56171         * lib/quotearg.c (struct quoting_options): Add flag field.
56172         (set_quoting_flags): New function.
56173         (quotearg_buffer_restyled): Add flags parameter.
56174         (quotearg_alloc_mem): Set the flag if length cannot be returned.
56175         (quotearg_n_options): Set the flag, since length cannot be
56176         returned.
56177         (quoting_options_from_style): Default flags correctly.
56178
56179         Quotearg part 1: more wrappers, restore quotearg_char state.
56180         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
56181         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
56182         (quotearg_colon_mem): New wrappers.
56183         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
56184         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
56185         functions.
56186         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
56187         (quotearg_colon_mem): New functions.
56188
56189 2008-02-11  Bruno Haible  <bruno@clisp.org>
56190
56191         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
56192         library in the current directory: it does not work with parallel make.
56193         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56194
56195 2008-02-11  Bruno Haible  <bruno@clisp.org>
56196
56197         * .gitattributes: New file.
56198
56199 2008-02-11  Jim Meyering  <meyering@redhat.com>
56200
56201         useless-if-before-free: Fix reversed exit values.
56202         * build-aux/useless-if-before-free: Use correct values
56203         for EXIT_MATCH and EXIT_NO_MATCH.
56204
56205         * build-aux/useless-if-before-free: Close stdout carefully.
56206
56207 2008-02-10  Bruno Haible  <bruno@clisp.org>
56208
56209         New module 'git-merge-changelog'.
56210         * modules/git-merge-changelog: New file.
56211         * lib/git-merge-changelog.c: New file.
56212
56213 2008-02-10  Jim Meyering  <meyering@redhat.com>
56214
56215         useless-if-before-free: New option: --list (-l).
56216
56217         useless-if-before-free: Don't exit immediately upon open failure.
56218         * build-aux/useless-if-before-free: Exit 2 for errors.
56219         Upon failure to open a file, don't exit immediately.
56220         Rather, just warn and continue with any remaining files.
56221
56222 2008-02-10  Bruno Haible  <bruno@clisp.org>
56223
56224         New abstract list operation 'node_set_value'.
56225         * lib/gl_list.h (gl_list_node_set_value): New function.
56226         (struct gl_list_implementation): New field node_set_value.
56227         * lib/gl_list.c (gl_list_node_set_value): New function.
56228         * lib/gl_array_list.c (gl_array_node_set_value): New function.
56229         (gl_array_list_implementation): Update.
56230         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
56231         (gl_carray_list_implementation): Update.
56232         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
56233         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56234         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56235         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
56236         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56237         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56238         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56239         Update.
56240         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56241         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
56242         (gl_sublist_list_implementation): Update.
56243
56244 2008-02-10  Bruno Haible  <bruno@clisp.org>
56245
56246         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
56247         Needed when ELEMENT is #defined to 'some_type *'.
56248
56249 2008-02-10  Jim Meyering  <meyering@redhat.com>
56250
56251         New script and module: useless-if-before-free
56252         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
56253         * build-aux/useless-if-before-free: New file.
56254         * modules/useless-if-before-free: New file.
56255
56256         * build-aux/gitlog-to-changelog: Use committer date, not author date.
56257
56258         xstrtol_error: Fix typo.
56259         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
56260         s/exit_failure/exit_status/.
56261
56262 2008-02-09  Jim Meyering  <meyering@redhat.com>
56263
56264         New script and module: gitlog-to-changelog
56265         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
56266         * modules/gitlog-to-changelog: New file.
56267         * build-aux/gitlog-to-changelog: New file.
56268
56269 2008-02-08  Jim Meyering  <meyering@redhat.com>
56270
56271         Avoid two "parameter unused" warnings.
56272         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
56273         Mark "st" as used.
56274
56275         Use "git COMMAND", not "git-COMMAND".
56276         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
56277         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
56278         * build-aux/git-version-gen: Use "git status", not "git-status".
56279
56280 2008-02-07  Bruno Haible  <bruno@clisp.org>
56281
56282         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
56283         Avoids a crash on Windows Vista.
56284         Reported by Adam Strzelecki <ono@java.pl> via
56285         Simon Josefsson <simon@josefsson.org>.
56286
56287 2008-02-06  Bruno Haible  <bruno@clisp.org>
56288
56289         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
56290         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
56291         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
56292         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
56293         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56294         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56295         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
56296         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
56297         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56298         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56299         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56300         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56301         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56302         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56303         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56304         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
56305         left-adjust flag.
56306         * tests/test-snprintf-posix.h (test_function): Likewise.
56307         * tests/test-sprintf-posix.h (test_function): Likewise.
56308         * tests/test-vasprintf-posix.c (test_function): Likewise.
56309         * doc/posix-functions/fprintf.texi: Update.
56310         * doc/posix-functions/printf.texi: Update.
56311         * doc/posix-functions/snprintf.texi: Update.
56312         * doc/posix-functions/sprintf.texi: Update.
56313         * doc/posix-functions/vfprintf.texi: Update.
56314         * doc/posix-functions/vprintf.texi: Update.
56315         * doc/posix-functions/vsnprintf.texi: Update.
56316         * doc/posix-functions/vsprintf.texi: Update.
56317         Reported by Peter Fales <psfales@alcatel-lucent.com>.
56318
56319 2008-02-06  Bruno Haible  <bruno@clisp.org>
56320
56321         Fix bug introduced on 2008-01-26.
56322         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
56323
56324 2008-02-06  Bruno Haible  <bruno@clisp.org>
56325
56326         Fix bug introduced on 2007-06-10.
56327         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
56328         !NEED_PRINTF_FLAG_ZERO.
56329
56330 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
56331
56332         getloadavg: use libperfstat on AIX5
56333         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
56334
56335 2008-02-03  Bruno Haible  <bruno@clisp.org>
56336
56337         * lib/diffseq.h: Add comments about required #includes.
56338         Reported by Michael Biggs <gnulib@doubleplum.net>.
56339
56340 2008-02-01  Bruno Haible  <bruno@clisp.org>
56341
56342         * users.txt: Add gnuit.
56343
56344 2008-01-31  Bruno Haible  <bruno@clisp.org>
56345
56346         * lib/md4.c (set_uint32): Mark as inline.
56347         * lib/md5.c (set_uint32): Likewise.
56348         * lib/sha1.c (set_uint32): Likewise.
56349         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
56350         * m4/md5.m4 (gl_MD5): Likewise.
56351         * m4/sha1.m4 (gl_SHA1): Likewise.
56352
56353 2008-01-31  Jim Meyering  <meyering@redhat.com>
56354
56355         Use "sizeof VAR", rather than a literal "4".
56356         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
56357         * lib/md4.c (md4_read_ctx): Likewise.
56358         * lib/sha1.c (sha1_read_ctx): Likewise.
56359
56360 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56361
56362         * tests/test-sha1.c: New file, based on test-md5.c.
56363
56364         * modules/crypto/sha1-tests: New file.
56365
56366 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56367
56368         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
56369
56370 2008-01-31  Jim Meyering  <meyering@redhat.com>
56371
56372         Prefer "sizeof v" over the equivalent "4".
56373         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
56374         * lib/md5.c (set_uint32): Likewise.
56375         * lib/sha1.c (set_uint32): Likewise.
56376
56377 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56378
56379         * lib/sha1.c (set_uint32): Mark function as static.
56380
56381 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56382
56383         md2: clarify comments to say that alignment is not required.
56384         * lib/md2.h: Remove warning about alignment in comment.
56385         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
56386         never been required.
56387
56388 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56389
56390         md4: adapt alignment constraint fix from sha1.
56391         * lib/md4.c (set_uint32): New function, from sha1.c
56392         (md4_read_ctx): Use it.
56393         (md4_finish_ctx): Doc fix.
56394         * lib/md4.h: Doc fix.
56395
56396 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56397
56398         md5: adapt alignment constraint fix from sha1.
56399         * lib/md5.c (set_uint32): New function, from sha1.c
56400         (md5_read_ctx): Use it.
56401         (md5_finish_ctx): Doc fix.
56402         * lib/md5.h: Doc fix.
56403
56404 2008-01-30  Peter Palfrader  <weasel@debian.org>
56405
56406         sha1: remove the result buffer alignment constraint
56407         * lib/sha1.c (set_uint32): New function.
56408         (sha1_read_ctx): Rewrite to remove the result buffer alignment
56409         constraint.
56410         (sha1_finish_ctx): Remove comment warning about alignment constraint.
56411         * lib/sha1.h: Likewise.
56412
56413 2008-01-30  Andreas Schwab  <schwab@suse.de>
56414             Bruno Haible  <bruno@clisp.org>
56415
56416         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
56417         correct definition of LDBL_MIN_EXP.
56418
56419 2008-01-30  Karl Berry  <karl@gnu.org>
56420
56421         * config/srclist-update: try to preserve x bit on updates.
56422         * config/srclistvars.sh: update for karl.
56423
56424 2008-01-29  Jim Meyering  <meyering@redhat.com>
56425
56426         vasnprintf.c: Avoid warning about unused label
56427         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
56428         "overflow" label definition and associated code with the
56429         same cpp condition that guards the sole use of that label.
56430
56431 2008-01-26  Bruno Haible  <bruno@clisp.org>
56432
56433         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
56434         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
56435         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
56436         * lib/isnanl-nolibm.h (isnanl): Likewise.
56437         Reported by Paul Eggert <eggert@cs.ucla.edu>.
56438
56439 2008-01-26  Bruno Haible  <bruno@clisp.org>
56440
56441         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
56442         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
56443
56444 2008-01-26  Bruno Haible  <bruno@clisp.org>
56445
56446         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
56447         GCC >= 4.0 built-in.
56448         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
56449
56450 2008-01-26  Bruno Haible  <bruno@clisp.org>
56451
56452         Rename isnan, applicable to 'double' only, to isnand.
56453         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
56454         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
56455         (configure.ac): Update.
56456         (Include): Replace "isnan.h" with "isnand.h".
56457         * m4/isnand.m4: Renamed from m4/isnan.m4.
56458         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
56459         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
56460         instead of isnan.c.
56461         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
56462         instead of HAVE_ISNAN_IN_LIBC.
56463         (isnand): Renamed from isnan.
56464         * lib/isnand.c: New file.
56465         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
56466         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
56467         (Makefile.am): Update.
56468         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
56469         Include isnand.h instead of isnan.h.
56470         (main): Test isnand instead of isnan.
56471         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
56472         isnan-nolibm.
56473         * modules/frexp (Depends-on): Likewise.
56474         * modules/frexp-tests (Depends-on): Likewise.
56475         * modules/frexp-nolibm (Depends-on): Likewise.
56476         * modules/frexp-nolibm-tests (Depends-on): Likewise.
56477         * modules/isfinite (Depends-on): Likewise.
56478         * modules/round-tests (Depends-on): Likewise.
56479         * modules/signbit (Depends-on): Likewise.
56480         * modules/signbit-tests (Depends-on): Likewise.
56481         * modules/snprintf-posix (Depends-on): Likewise.
56482         * modules/sprintf-posix (Depends-on): Likewise.
56483         * modules/trunc-tests (Depends-on): Likewise.
56484         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56485         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56486         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56487         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56488         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56489         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56490         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56491         * modules/vasnprintf-posix (Depends-on): Likewise.
56492         * modules/vasprintf-posix (Depends-on): Likewise.
56493         * modules/vfprintf-posix (Depends-on): Likewise.
56494         * modules/vsnprintf-posix (Depends-on): Likewise.
56495         * modules/vsprintf-posix (Depends-on): Likewise.
56496         * lib/frexp.c: Include isnand.h instead of isnan.h.
56497         (ISNAN): Set to isnand instead of isnan.
56498         * lib/isfinite.c: Include isnand.h instead of isnan.h.
56499         (gl_isfinited): Use isnand instead of isnan.
56500         * lib/signbitd.c: Include isnand.h instead of isnan.h.
56501         (gl_signbitd): Use isnand instead of isnan.
56502         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
56503         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
56504         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
56505         (main): Use isnand instead of isnan.
56506         * tests/test-round1.c: Include isnand.h.
56507         (main): Use isnand instead of isnan.
56508         * tests/test-round2.c: Include isnand.h instead of isnan.h.
56509         (ISNAN): Set to isnand instead of isnan.
56510         * tests/test-trunc1.c: Include isnand.h.
56511         (main): Use isnand instead of isnan.
56512         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
56513         (equal): Use isnand instead of isnan.
56514         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
56515         isnand-nolibm.
56516         * NEWS: Mention the change.
56517
56518 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
56519             Bruno Haible  <bruno@clisp.org>
56520
56521         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
56522         the GCC builtins for signbits are present and set
56523         REPLACE_SIGNBIT_USING_GCC if so.
56524         * lib/math.in.h (signbit): Define using GCC builtins if
56525         REPLACE_SIGNBIT_USING_GCC is set.
56526         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
56527         REPLACE_SIGNBIT_USING_GCC.
56528         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
56529
56530 2008-01-25  Jim Meyering  <meyering@redhat.com>
56531
56532         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
56533         * lib/poll.c: Include <config.h>, not "config.h".
56534         * tests/test-getaddrinfo.c: Likewise.
56535
56536 2008-01-25  Simon Josefsson  <simon@josefsson.org>
56537
56538         * modules/sockets-tests: New file.
56539
56540 2008-01-24  Simon Josefsson  <simon@josefsson.org>
56541
56542         * modules/sockets: New module, can be used to call WSA_Startup and
56543         WSA_Cleanup when needed.
56544
56545         * lib/sockets.h, lib/sockets.c: New files.
56546
56547         * m4/sockets.m4: New file.
56548
56549         * tests/test-sockets.c: New file.
56550
56551 2008-01-19  Bruno Haible  <bruno@clisp.org>
56552
56553         * doc/posix-headers: Renamed from doc/headers.
56554         * doc/posix-functions: Renamed from doc/functions.
56555         * doc/gnulib.texi: Update.
56556
56557 2008-01-19  Bruno Haible  <bruno@clisp.org>
56558
56559         * doc/glibc-functions/strcasestr.texi: Include contents of
56560         doc/functions/strcasestr.texi, fixing the list of platforms.
56561         * doc/functions/strcasestr.texi: Remove file.
56562
56563 2008-01-19  Bruno Haible  <bruno@clisp.org>
56564
56565         * doc/glibc-functions/memmem.texi: Include contents of
56566         doc/functions/memmem.texi.
56567         * doc/functions/memmem.texi: Remove file.
56568
56569 2008-01-18  Bruno Haible  <bruno@clisp.org>
56570
56571         * doc/glibc-functions/*.texi: New files.
56572         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
56573         to use the new files.
56574
56575 2008-01-17  Bruno Haible  <bruno@clisp.org>
56576
56577         * tests/test-gethostname.c (main): Fix printf statement.
56578
56579 2008-01-17  Simon Josefsson  <simon@josefsson.org>
56580
56581         * modules/gethostname-tests: New file.
56582
56583         * tests/test-gethostname.c: New file.
56584
56585 2008-01-17  Simon Josefsson  <simon@josefsson.org>
56586
56587         * lib/gethostname.c: Include string.h unconditionally, strncpy is
56588         used by the UNAME case.  Reported by Bruno Haible
56589         <bruno@clisp.org>.
56590
56591 2008-01-17  Eric Blake  <ebb9@byu.net>
56592
56593         Convert c-strcasestr to be more efficient.
56594         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
56595         (Depends-on): Add c-strcase, remove malloca, strnlen.
56596         * tests/test-c-strcasestr.c (main): Enhance test.
56597         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
56598
56599 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
56600
56601         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
56602         Use it in creating po/Makevars.
56603
56604 2008-01-15  Simon Josefsson  <simon@josefsson.org>
56605
56606         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
56607         Applications that requires it should initialize libgcrypt
56608         manually.
56609
56610 2008-01-16  Simon Josefsson  <simon@josefsson.org>
56611
56612         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
56613
56614 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
56615
56616         Fix problem with getdate on mingw32 reported by Simon Josefsson
56617         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
56618         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
56619         tzname", when deciding whether to declare tzname.
56620         * lib/strftime.c (tzname): Likewise.
56621
56622 2008-01-15  Bruno Haible  <bruno@clisp.org>
56623
56624         Work around a MacOS X 10.5 bug in frexpl().
56625         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
56626         * doc/functions/frexpl.texi: Document the bug.
56627         Reported by Elias Pipping <pipping@gentoo.org>.
56628
56629 2008-01-14  Eric Blake  <ebb9@byu.net>
56630
56631         Touch up previous patch.
56632         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
56633         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
56634
56635         Convert strcasestr module to use Two-Way algorithm.
56636         * modules/strcasestr-simple: New module, based on the old
56637         strcasestr, but with Two-Way rather than KMP.
56638         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
56639         * lib/string.in.h (rpl_strcasestr): Declare.
56640         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
56641         performance.
56642         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
56643         * modules/string (Makefile.am): Support strcasestr.
56644         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
56645         * modules/strcasestr-tests (Depends-on): Check for alarm.
56646         * tests/test-strcasestr.c: Augment test.
56647         * lib/str-two-way.h: Clean up stray macro.
56648         * NEWS: Document new module.
56649         * MODULES.html.sh (string handling): Likewise.
56650         * doc/functions/strcasestr.texi: New file.
56651         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
56652         here, since it is not a POSIX function.
56653
56654 2008-01-14  Colin Watson  <cjwatson@debian.org>
56655             Bruno Haible  <bruno@clisp.org>
56656
56657         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
56658         works fine; if not, set REPLACE_STRSIGNAL.
56659         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
56660         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56661         REPLACE_STRSIGNAL.
56662         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
56663         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
56664         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
56665
56666 2008-01-14  Bruno Haible  <bruno@clisp.org>
56667
56668         * modules/strsignal (Include): Change to <string.h>.
56669
56670 2008-01-14  Colin Watson  <cjwatson@debian.org>
56671
56672         * modules/argp (Notice): Add a notice recommending to change
56673         XGETTEXT_OPTIONS.
56674         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
56675
56676 2008-01-13  Colin Watson  <cjwatson@debian.org>
56677
56678         * modules/strsignal-tests: New file.
56679         * tests/test-strsignal.c: New file.
56680
56681         * lib/strsignal.c: New file, from glibc with modifications.
56682         * lib/siglist.h: New file, from glibc with modifications.
56683         * lib/string.in.h (strsignal): New declaration.
56684         * m4/strsignal.m4: New file.
56685         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56686         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
56687         * modules/strsignal: New file.
56688         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
56689         HAVE_DECL_STRSIGNAL.
56690
56691 2008-01-13  Bruno Haible  <bruno@clisp.org>
56692
56693         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
56694         locale encoding is not ASCII. Needed for OpenBSD 4.0.
56695         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56696         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56697
56698 2008-01-13  Bruno Haible  <bruno@clisp.org>
56699
56700         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
56701         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
56702         * lib/argp.h (__attribute__): Likewise.
56703         * lib/c-stack.c (__attribute__): Likewise.
56704         * lib/error.h (__attribute__): Likewise.
56705         * lib/fts.c (__attribute__): Likewise.
56706         * lib/openat.h (__attribute__): Likewise.
56707         * lib/stdio.in.h (__attribute__): Likewise.
56708         * lib/string.in.h (__attribute__): Likewise.
56709         * lib/utimens.c (__attribute__): Likewise.
56710         * lib/vasnprintf.h (__attribute__): Likewise.
56711         * lib/xalloc.h (__attribute__): Likewise.
56712         * lib/xprintf.h (__attribute__): Likewise.
56713         * lib/xstrtol.h (__attribute__): Likewise.
56714         * lib/xvasprintf.h (__attribute__): Likewise.
56715
56716 2008-01-12  Bruno Haible  <bruno@clisp.org>
56717
56718         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
56719         * doc/glibc-headers/a.out.texi: New file.
56720         * doc/glibc-headers/aliases.texi: New file.
56721         * doc/glibc-headers/alloca.texi: New file.
56722         * doc/glibc-headers/ar.texi: New file.
56723         * doc/glibc-headers/argp.texi: New file.
56724         * doc/glibc-headers/argz.texi: New file.
56725         * doc/glibc-headers/byteswap.texi: New file.
56726         * doc/glibc-headers/crypt.texi: New file.
56727         * doc/glibc-headers/endian.texi: New file.
56728         * doc/glibc-headers/envz.texi: New file.
56729         * doc/glibc-headers/err.texi: New file.
56730         * doc/glibc-headers/error.texi: New file.
56731         * doc/glibc-headers/execinfo.texi: New file.
56732         * doc/glibc-headers/fpu_control.texi: New file.
56733         * doc/glibc-headers/fstab.texi: New file.
56734         * doc/glibc-headers/fts.texi: New file.
56735         * doc/glibc-headers/getopt.texi: New file.
56736         * doc/glibc-headers/ieee754.texi: New file.
56737         * doc/glibc-headers/ifaddrs.texi: New file.
56738         * doc/glibc-headers/libintl.texi: New file.
56739         * doc/glibc-headers/mcheck.texi: New file.
56740         * doc/glibc-headers/mntent.texi: New file.
56741         * doc/glibc-headers/obstack.texi: New file.
56742         * doc/glibc-headers/paths.texi: New file.
56743         * doc/glibc-headers/printf.texi: New file.
56744         * doc/glibc-headers/pty.texi: New file.
56745         * doc/glibc-headers/resolv.texi: New file.
56746         * doc/glibc-headers/shadow.texi: New file.
56747         * doc/glibc-headers/sysexits.texi: New file.
56748         * doc/glibc-headers/ttyent.texi: New file.
56749
56750 2008-01-12  Jim Meyering  <meyering@redhat.com>
56751
56752         announce-gen: emit Gnulib's git-based version string.
56753         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
56754         New option --gnulib-version=V, where V is expected to be
56755         the output of running git describe in the gnulib directory.
56756         (get_tool_versions): Request feedback on xdelta.  I suspect it's
56757         not useful, and plan to stop publishing an xdelta file with each
56758         coreutils release.
56759
56760         * build-aux/announce-gen: Also check for lzma-compressed files.
56761
56762 2008-01-11  Bruno Haible  <bruno@clisp.org>
56763
56764         * tests/test-memmem.c (main): Increase maximum allowed time.
56765         * tests/test-strstr.c (main): Likewise.
56766
56767 2008-01-11  Bruno Haible  <bruno@clisp.org>
56768
56769         * doc/functions/memmem.texi: Add more precisions about platforms.
56770         * doc/functions/strstr.texi: Likewise.
56771
56772 2008-01-10  Eric Blake  <ebb9@byu.net>
56773
56774         * m4/strstr.m4: Delete cruft from copy-n-paste.
56775         Reported by Bruno Haible.
56776
56777 2008-01-10  Bruno Haible  <bruno@clisp.org>
56778
56779         Make c-strstr rely on strstr.
56780         * lib/c-strstr.c: Don't include str-kmp.h.
56781         (c_strstr): Define in terms of strstr.
56782         * modules/c-strstr (Files): Remove lib/str-kmp.h.
56783         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
56784
56785 2008-01-10  Bruno Haible  <bruno@clisp.org>
56786
56787         * doc/gnulib.texi (String Functions in C Locale): New section.
56788         * doc/c-ctype.texi: New file.
56789         * doc/c-strcase.texi: New file.
56790         * doc/c-strcaseeq.texi: New file.
56791         * doc/c-strcasestr.texi: New file.
56792         * doc/c-strstr.texi: New file.
56793         * doc/c-strtod.texi: New file.
56794         * doc/c-strtold.texi: New file.
56795
56796 2008-01-10  Eric Blake  <ebb9@byu.net>
56797
56798         * lib/relocatable.h: Fix a comment.
56799
56800 2008-01-10  Eric Blake  <ebb9@byu.net>
56801
56802         Share two-way algorithm.
56803         * lib/str-two-way.h: New file, merged from...
56804         * lib/memmem.c: ...here...
56805         * lib/strstr.c: ...and here.
56806         * modules/memmem (Files): Use it.
56807         * modules/strstr (Files): Likewise.
56808
56809         Avoid quadratic strstr implementations.
56810         * lib/strstr.c: New file.
56811         * m4/strstr.m4: Likewise.
56812         * modules/strstr: Likewise.
56813         * modules/strstr-tests: Likewise.
56814         * tests/test-strstr.c: Likewise.
56815         * lib/string.in.h (rpl_strstr): Declare.
56816         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
56817         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
56818         * modules/string (Makefile.am): Likewise.
56819         * MODULES.html.sh (string handling): Mention new module.
56820         * doc/functions/strstr.texi (strstr): Document the bug.
56821
56822 2008-01-10  Bruno Haible  <bruno@clisp.org>
56823
56824         * lib/relocatable.h (relocate): State whether result is freshly
56825         allocated or not.
56826         * lib/relocatable.c (relocate): Return a freshly allocated string
56827         instead of a pointer to a privately held string.
56828         Reported by Sylvain Beucler <beuc@gnu.org>.
56829
56830 2008-01-10  Colin Watson  <cjwatson@debian.org>
56831
56832         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
56833         s/S_ISNLK/S_ISLNK/.
56834
56835 2008-01-09  Bruno Haible  <bruno@clisp.org>
56836
56837         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
56838         and other files.
56839         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
56840         if it's only a guess.
56841         * modules/memmem: Simplify by depending on memmem-simple.
56842
56843 2008-01-09  Bruno Haible  <bruno@clisp.org>
56844
56845         Work around OpenBSD 4.0 tdelete() bug.
56846         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
56847         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
56848         macros and don't redefine the enum values.
56849         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
56850         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
56851         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
56852
56853 2008-01-09  Bruno Haible  <bruno@clisp.org>
56854
56855         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
56856         (main): Don't perform the tests if setlocale did not install a UTF-8
56857         locale. Needed on OpenBSD 4.0.
56858         * modules/wcwidth-tests (Depends-on): Add localcharset.
56859
56860 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56861
56862         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
56863         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
56864         * NEWS: announce this.
56865         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
56866
56867 2008-01-09  Simon Josefsson  <simon@josefsson.org>
56868         and Eric Blake  <ebb9@byu.net>
56869
56870         Add memmem-simple module.
56871         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
56872         (gl_FUNC_MEMMEM): Separate performance from presence checks.
56873         * modules/memmem-simple: New file.
56874         * modules/memmem (Description): Tweak.
56875         * MODULES.html.sh (string handling): Mention new module.
56876         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
56877         addressed by memmem-simple.
56878         * NEWS: Document the difference.
56879
56880 2008-01-09  Eric Blake  <ebb9@byu.net>
56881
56882         Give gcc some memmem optimization hints.
56883         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
56884         (strcasestr): Declare as pure.
56885         * modules/memmem (Maintainer): Claim my implementation.
56886
56887 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56888
56889         Support AIX 6.1 and higher.
56890         * build-aux/config.libpath: Likewise.
56891         * build-aux/config.rpath: Likewise.
56892
56893 2008-01-08  Jim Meyering  <meyering@redhat.com>
56894             Bruno Haible  <bruno@clisp.org>
56895
56896         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
56897         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
56898         Reported by Peter Fales in
56899         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
56900
56901 2008-01-08  Bruno Haible  <bruno@clisp.org>
56902
56903         * modules/unictype/category-of (Depends-on): Add
56904         unictype/category-none.
56905         * modules/unictype/category-and-tests (Depends-on): Add
56906         unictype/category-{L,N,Lu,Nd}.
56907         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
56908         * modules/unictype/category-or-tests (Depends-on): Add
56909         unictype/category-{L,N}.
56910         * modules/unictype/category-name-tests (Depends-on): Add
56911         unictype/category-{Z,Nl}.
56912         Reported by Simon Josefsson.
56913
56914 2008-01-08  Bruno Haible  <bruno@clisp.org>
56915
56916         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
56917         convention better.
56918         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
56919         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
56920         Reported by Peter Miller <millerp@canb.auug.org.au>.
56921
56922 2008-01-08  Eric Blake  <ebb9@byu.net>
56923
56924         Rewrite memmem to guarantee linear complexity without malloc.
56925         * lib/memmem.c (memmem): Use Two-Way rather than
56926         Knuth-Morris-Pratt, to allow O(1) space usage.
56927         (critical_factorization, two_way_short_needle)
56928         (two_way_long_needle): New functions.
56929         (knuth_morris_pratt): Delete.
56930         * modules/memmem (Depends-on): No longer need malloca or stdbool.
56931         Add stdint.
56932         * tests/test-memmem.c (main): Add tests for periodic needle and
56933         sublinear performance.
56934         * doc/functions/memmem.texi (memmem): Document other deficiencies
56935         in cygwin and older glibc.
56936
56937 2008-01-08  Bruno Haible  <bruno@clisp.org>
56938
56939         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
56940         augmentation.
56941
56942 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
56943
56944         Add a configure time option: --disable-acl.
56945         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
56946         AC_ARG_ENABLE(acl).
56947
56948 2008-01-06  Simon Josefsson  <simon@josefsson.org>
56949
56950         * tests/test-localename.c: Don't include obsolete "setenv.h".
56951
56952         * modules/localename-tests (Depends-on): Need unsetenv.
56953
56954 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56955
56956         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
56957
56958 2008-01-06  Colin Watson  <cjwatson@debian.org>
56959
56960         * users.txt: Add man-db.
56961
56962 2008-01-07  Bruno Haible  <bruno@clisp.org>
56963
56964         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
56965         previous section name.
56966
56967 2008-01-07  Bruno Haible  <bruno@clisp.org>
56968
56969         * lib/progname.c (set_program_name): Don't strip off a leading
56970         "lt-" prefix outside a .libs directory.
56971         Suggested by Paul Eggert.
56972
56973 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
56974             Bruno Haible  <bruno@clisp.org>
56975
56976         Improve memory cleanup in 'relocatable' module.
56977         * lib/relocatable.h (compute_curr_prefix): Change return type to
56978         'char *'.
56979         * lib/relocatable.c (compute_curr_prefix): Change return type to
56980         'char *'. Free curr_installdir after use.
56981         (relocate): Free curr_prefix_better after use.
56982         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
56983
56984 2008-01-01  Bruno Haible  <bruno@clisp.org>
56985
56986         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
56987         failure on older glibc systems.
56988         Reported by Peter Fales <psfales@alcatel-lucent.com>.
56989
56990 2008-01-05  Eric Blake  <ebb9@byu.net>
56991
56992         Avoid quadratic system memmem.
56993         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
56994         Reported by Ralf Wildenhues.
56995
56996         Fix memmem test for mingw.
56997         * modules/memmem-tests (configure.ac): Check for alarm.
56998         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
56999         it.
57000         * doc/functions/memmem.texi: New file.
57001         * doc/gnulib.texi (Function Substitutes): Add memmem.
57002         Reported by Bruno Haible.
57003
57004 2008-01-04  Bruno Haible  <bruno@clisp.org>
57005
57006         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57007         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57008         gl_HEADER_STRING_H_DEFAULTS.
57009
57010 2008-01-04  Eric Blake  <ebb9@byu.net>
57011
57012         Shorten duration of memmem test.
57013         * tests/test-memmem.c (main): Use alarm to declare failure if test
57014         is taking too long.
57015         Reported by Ralf Wildenhues.
57016
57017 2007-12-21  Simon Josefsson  <simon@josefsson.org>
57018
57019         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
57020         string, needed by strerror.
57021
57022 2008-01-03  Colin Watson  <cjwatson@debian.org>
57023             Bruno Haible  <bruno@clisp.org>
57024
57025         * doc/gnulib-tool.texi (Localization): New section.
57026
57027 2008-01-02  Bruno Haible  <bruno@clisp.org>
57028
57029         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
57030         variables to 'unsigned char *' type.
57031         Reported by Paul Eggert.
57032
57033 2008-01-02  Jim Meyering  <jim@meyering.net>
57034
57035         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
57036
57037 2007-12-31  Jim Meyering  <jim@meyering.net>
57038
57039         Avoid use of private FTS type name.
57040         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
57041
57042 2007-12-30  Karl Berry  <karl@gnu.org>
57043
57044         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
57045         work around defect in Texinfo and/or the standalone Info browser.
57046
57047 2007-12-30  Bruno Haible  <bruno@clisp.org>
57048
57049         Unify 5 copies of the KMP code.
57050         * lib/str-kmp.h: New file.
57051         * lib/c-strcasestr.c: Include str-kmp.h.
57052         (knuth_morris_pratt): Remove function.
57053         (c_strcasestr): Update.
57054         * lib/c-strstr.c: Include str-kmp.h.
57055         (knuth_morris_pratt): Remove function.
57056         (c_strcasestr): Update.
57057         * lib/mbscasestr.c: Include str-kmp.h.
57058         (knuth_morris_pratt_unibyte): Remove function.
57059         * lib/mbsstr.c: Include str-kmp.h.
57060         (knuth_morris_pratt_unibyte): Remove function.
57061         * lib/strcasestr.c: Include str-kmp.h.
57062         (knuth_morris_pratt): Remove function.
57063         (strcasestr): Update.
57064         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
57065         * modules/c-strstr (Files): Likewise.
57066         * modules/mbscasestr (Files): Likewise.
57067         * modules/mbsstr (Files): Likewise.
57068         * modules/strcasestr (Files): Likewise.
57069         Suggested by Paul Eggert.
57070
57071 2007-12-30  Bruno Haible  <bruno@clisp.org>
57072
57073         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
57074         defined.
57075
57076 2007-12-30  Bruno Haible  <bruno@clisp.org>
57077
57078         * lib/xmalloca.h: Include xalloc.h.
57079         (xnmalloca): New macro.
57080
57081 2007-12-30  Bruno Haible  <bruno@clisp.org>
57082
57083         * lib/malloca.h (nmalloca): New macro.
57084         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
57085         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
57086         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
57087         knuth_morris_pratt_multibyte): Likewise.
57088         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
57089         knuth_morris_pratt_multibyte): Likewise.
57090         * lib/memmem.c (knuth_morris_pratt): Likewise.
57091         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
57092
57093 2007-12-25  Bruno Haible  <bruno@clisp.org>
57094
57095         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
57096         * lib/glob.c: Don't include openat.h.
57097         (link_exists2_p): Add back the code that deals with the
57098         !GLOB_ALTDIRFUNC case.
57099         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
57100         let it do the filename concatenation.
57101         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
57102         * modules/glob (Depends-on): Remove openat.
57103
57104 2007-12-31  Bruno Haible  <bruno@clisp.org>
57105
57106         * modules/dirfd (License): Change to LGPLv2+.
57107         Approved by Jim Meyering.
57108
57109 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57110
57111         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
57112         when multiplying M by sizeof (size_t).
57113
57114 2007-12-10  Martin Lambers  <marlam@marlam.de>
57115
57116         Override getpagesize on mingw.
57117         * lib/getpagesize.c: New file.
57118         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
57119         * modules/getpagesize (Files): Add lib/getpagesize.c.
57120         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
57121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57122         REPLACE_GETPAGESIZE.
57123         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
57124
57125 2007-12-25  Bruno Haible  <bruno@clisp.org>
57126
57127         * modules/localcharset (Notice): New field.
57128         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
57129         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57130
57131 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57132             Bruno Haible  <bruno@clisp.org>
57133
57134         Avoid using the syntax symbol() in formatted documentation.
57135         * MODULES.html.sh (func_module): When replacing symbol() with a
57136         hyperlink, remove the parentheses. Show an error if some remain.
57137         Recognize and render the '...' syntax.
57138         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
57139         Rework. Add paragraph about GCC's inlining.
57140         * doc/alloca.texi: Likewise.
57141         * doc/error.texi: Remove parentheses from symbol reference.
57142         * doc/gnulib-intro.texi: Likewise.
57143         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
57144         * modules/fnmatch (Description): Reword to say "the ... function".
57145         * modules/full-read (Description): Likewise.
57146         * modules/full-write (Description): Likewise.
57147         * modules/safe-read (Description): Likewise.
57148         * modules/safe-write (Description): Likewise.
57149         * modules/strchrnul (Description): Likewise.
57150         * modules/trim (Description): Likewise.
57151         * modules/error (Description): Remove parentheses from symbol
57152         references.
57153         * modules/verror (Description): Likewise.
57154         Reported by Karl Berry.
57155
57156 2007-12-25  Bruno Haible  <bruno@clisp.org>
57157
57158         Fixup after 2007-10-16 commit.
57159         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
57160
57161 2007-12-24  Bruno Haible  <bruno@clisp.org>
57162
57163         Make --enable-relocatable work with DESTDIR.
57164         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
57165         to compute installdir from destprog.
57166         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
57167         also set the RELOC_DESTDIR variable.
57168         Reported by Левашев Иван <octagram@bluebottle.com>.
57169
57170 2007-12-24  Bruno Haible  <bruno@clisp.org>
57171
57172         Fix link error due to xalloc_die().
57173         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
57174         of xreadlink.
57175         * lib/relocwrapper.c: Update comments.
57176         * build-aux/install-reloc: Remove xreadlink.c from file list.
57177         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
57178         xreadlink.c.
57179         Reported by Левашев Иван <octagram@bluebottle.com>.
57180
57181 2007-12-24  Bruno Haible  <bruno@clisp.org>
57182
57183         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
57184         * lib/setenv.h: Remove file.
57185         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
57186         lib/setenv.h.
57187         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
57188         (Depends-on): Add stdlib.
57189         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
57190         gl_FUNC_UNSETENV.
57191         (Include): Replace setenv.h with <stdlib.h>.
57192         * modules/unsetenv: New file.
57193         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
57194         * lib/unsetenv.c: Include <stdlib.h> first.
57195         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
57196         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
57197         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
57198         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
57199         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
57200         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57201         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
57202         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57203         * doc/functions/unsetenv.texi: Update.
57204         * modules/xsetenv (Depends-on): Add unsetenv.
57205         * modules/getdate (Depends-on): Likewise.
57206         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
57207         * lib/xsetenv.c: Don't include setenv.h.
57208         * lib/getdate.y: Likewise.
57209         * lib/relocwrapper.c: Likewise.
57210         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
57211         (Depends-on): Add stdlib.
57212         * NEWS: Mention the changes.
57213         Reported by Левашев Иван <octagram@bluebottle.com>.
57214
57215 2007-12-23  Bruno Haible  <bruno@clisp.org>
57216
57217         * lib/memmem.c (memmem): Use lowercase variable names. Tab
57218         indentation.
57219
57220 2007-12-23  Bruno Haible  <bruno@clisp.org>
57221
57222         * lib/c-strcasestr.c: Add more comments.
57223         * lib/c-strstr.c: Likewise.
57224         * lib/mbscasestr.c: Likewise.
57225         * lib/mbsstr.c: Likewise.
57226         * lib/strcasestr.c: Likewise.
57227         * lib/memmem.c: Likewise.
57228
57229 2007-12-23  Bruno Haible  <bruno@clisp.org>
57230
57231         * tests/test-memmem.c: Include <string.h> first.
57232
57233 2007-12-22  Bruno Haible  <bruno@clisp.org>
57234
57235         * gnulib-tool (func_create_testdir): Change $auxdir while generating
57236         the contents of $testsbase.
57237         Reported by Ralf Wildenhues.
57238
57239 2007-12-22  Bruno Haible  <bruno@clisp.org>
57240
57241         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
57242         two variables local_ldadd_before, local_ldadd_last.
57243
57244 2007-12-20  Eric Blake  <ebb9@byu.net>
57245
57246         Work around circular library issue when cross-compiling.
57247         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
57248         that progname.o does not need to pull in rpl_memcmp.
57249
57250 2007-12-19  Eric Blake  <ebb9@byu.net>
57251
57252         Fix memmem to avoid O(n^2) worst-case complexity.
57253         * lib/memmem.c (knuth_morris_pratt): New function.
57254         (memmem): Use it if first few naive iterations fail.
57255         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
57256         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
57257         * modules/memchr (License): Likewise.
57258         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
57259         malloca.
57260         * tests/test-memmem.c: Rewrite, borrowing ideas from
57261         test-mbsstr1.c; the old version wouldn't even compile!
57262         * modules/memmem-tests: New file.
57263         * lib/string.in.h (rpl_memmem): Add declaration.
57264         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
57265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
57266         REPLACE_MEMMEM.
57267
57268 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57269
57270         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
57271         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
57272         before any system include files, and undef after them all.  This
57273         should fix a problem on VMS reported by John E. Malmberg in
57274         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
57275
57276 2007-12-17  Eric Blake  <ebb9@byu.net>
57277
57278         Revert addition of verify, for BSD/OS.
57279         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
57280         can't handle large files, for the sake of obsolete platforms.
57281         * modules/fseeko (Depends-on): Remove verify.
57282         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
57283         * doc/functions/ftello.texi (ftello): Likewise.
57284         * doc/functions/fgetpos.texi (fgetpos): Likewise.
57285         Reported by Larry Jones.
57286
57287 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
57288
57289         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
57290         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
57291
57292 2007-12-17  Jim Meyering  <meyering@redhat.com>
57293
57294         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
57295         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
57296         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
57297         * modules/getcwd (Depends-on): Add openat.
57298         Reported by Petr Salinger.
57299
57300 2007-12-17  Bruno Haible  <bruno@clisp.org>
57301
57302         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
57303         avoid a segmentation fault of the configure test on x86_64 systems.
57304
57305 2007-12-15  Jim Meyering  <meyering@redhat.com>
57306
57307         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
57308
57309 2007-12-13  Eric Blake  <ebb9@byu.net>
57310
57311         Another fseek test.
57312         * tests/test-fseek.c (main): Also test ungetc handling.
57313         * tests/test-fseeko.c (main): Likewise.
57314         * modules/fseeko (Depends-on): Add verify.
57315         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
57316         large.
57317         Reported by Larry Jones.
57318
57319         Fix fseeko on mingw.
57320         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
57321         seek.
57322
57323         Beef up fseek tests.
57324         * tests/test-fseek.c (main): Also test eof handling.
57325         * tests/test-fseeko.c (main): Likewise.
57326         Reported by Larry Jones.
57327
57328 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
57329
57330         Fix fseeko on BSD-based platforms.
57331         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
57332         successful seek.
57333
57334 2007-12-12  Eric Blake  <ebb9@byu.net>
57335
57336         Allow circular dependency of separate libtests.a
57337         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
57338         when use_libtests.
57339
57340 2007-12-11  Eric Blake  <ebb9@byu.net>
57341
57342         Fix bug with -0.0L in previous patch.
57343         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
57344         * tests/test-isnan.c (main): Also test on zeroes.
57345         * tests/test-isnanf.c (main): Likewise.
57346         * tests/test-isnanl.h (main): Likewise.
57347
57348         Detect pseudo-denormals on x86 even when cross-compiling.
57349         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
57350         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
57351         invalid bit patterns that happen to satisfy ==.
57352
57353         Avoid link failures with separate libtests.a.
57354         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
57355         last, to satisfy circular dependencies.
57356
57357 2007-12-11  Eric Blake  <ebb9@byu.net>
57358         and Bruno Haible  <bruno@clisp.org>
57359
57360         Fix OpenBSD 4.0 <float.h> handling of long double.
57361         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
57362         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
57363         * doc/headers/float.texi (float.h): Document OpenBSD bug.
57364
57365 2007-12-11  Jim Meyering  <meyering@redhat.com>
57366
57367         * users.txt: Add libvirt.
57368
57369         Support versions of autoconf prior to 2.59c.
57370         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
57371         if it is not already defined.
57372
57373 2007-12-09  Bruno Haible  <bruno@clisp.org>
57374
57375         Let 'gnulib-tool --import' collect sources needed for the tests in
57376         tests/ rather than in lib/.
57377         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
57378         argument. If true, add rules to generate libtests.a, and put libtests.a
57379         into $(LDADD). Consider source files in subdirectories and set
57380         uses_subdirs.
57381         (func_emit_initmacro_start, func_emit_initmacro_end,
57382         func_emit_initmacro_done): Pass all arguments explicitly.
57383         (func_import): Determine two module lists main_modules,
57384         testsrelated_modules. Determine use_libtests. Determine two variables
57385         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
57386         instead of just sed_transform_lib_file. Determine two variables
57387         main_files and testsrelated_files. Compute 'files' as the union of
57388         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
57389         func_add_or_update. In the generated gnulib-comp.m4, collect the
57390         object files for tests/ in different variables than those for lib/.
57391         Substitute LIBTESTS_LIBDEPS.
57392         (func_create_testdir): Combine the uses_subdirs results from
57393         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
57394
57395 2007-12-09  Bruno Haible  <bruno@clisp.org>
57396
57397         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
57398         the build-aux directory.
57399
57400 2007-12-09  Bruno Haible  <bruno@clisp.org>
57401
57402         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
57403         introduced on 2006-09-09.
57404
57405 2007-12-07  Jim Meyering  <meyering@redhat.com>
57406
57407         Let these macros work also with autoconf-2.59.
57408         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
57409         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
57410         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57411
57412 2007-12-06  Jim Meyering  <meyering@redhat.com>
57413
57414         Avoid a configure-time syntax error in gl_FUNC_ACL.
57415         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
57416         function in each branch, before testing the cache variable.
57417
57418 2007-12-04  Eric Blake  <ebb9@byu.net>
57419
57420         Make scripts executable.
57421         * build-aux/config.guess: Add execute permissions.
57422         * build-aux/config.sub: Likewise.
57423         * build-aux/gendocs.sh: Likewise.
57424
57425         Fix frexp on mingw.
57426         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
57427         cross-compiling.
57428         * doc/functions/frexp.texi (frexp): Document the bug.
57429
57430         Make cygwin fseeko check more reliable.
57431         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
57432         version numbers, rather than unrelated feature check.
57433         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
57434         * doc/functions/ftello.texi (ftello): Likewise.
57435         Reported by Bruno Haible.
57436
57437         * m4/strerror.m4: Bump version number.
57438
57439 2007-12-03  Bruno Haible  <bruno@clisp.org>
57440
57441         * doc/functions/mprotect.texi: Mention the mingw problem.
57442
57443 2007-12-03  Eric Blake  <ebb9@byu.net>
57444
57445         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
57446         REPLACE_STRERROR is initialized before this macro.
57447
57448 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57449
57450         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
57451         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
57452         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
57453         put -lsec in even for programs other than 'ls'.  This fixes a problem
57454         for gettext reported by Bruno Haible in
57455         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
57456         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
57457         Add support for Solaris 10.  This isn't efficient, but should get the
57458         job done for now.
57459
57460 2007-12-03  James Youngman  <jay@gnu.org>
57461
57462         * doc/regexprops-generic.texi: change "an close-group" to "a
57463         close-group" and "illegal" to "not allowed".
57464
57465 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57466
57467         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
57468         pr_byname.h. Needed for the rare case when the maintainer has done
57469         "make maintainer-clean" in the source directory and then attempts a
57470         build outside the source directory.
57471         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
57472         scripts_byname.h.
57473
57474 2007-12-02  Martin Lambers <marlam@marlam.de>
57475             Bruno Haible  <bruno@clisp.org>
57476
57477         * lib/getpagesize.h: Remove file.
57478         * lib/unistd.in.h: Include declaration of getpagesize here.
57479         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
57480         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
57481         HAVE_SYS_PARAM_H.
57482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
57483         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
57484         * modules/getpagesize (Files): Remove lib/getpagesize.h.
57485         (Depends-on): Add unistd.
57486         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57487         (Include): Use <unistd.h> instead of getpagesize.h.
57488         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
57489         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
57490         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
57491         gl_GETPAGESIZE invocation, already handled by module dependency.
57492         * lib/pagealign_alloc.c: Don't include getpagesize.h.
57493
57494 2007-12-02  Bruno Haible  <bruno@clisp.org>
57495
57496         * modules/strings-tests: New file.
57497         * tests/test-strings.c: New file.
57498
57499         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
57500         * lib/strings.in.h: New file.
57501         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
57502         * m4/strings_h.m4: New file.
57503         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
57504         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
57505         * modules/strings: New file.
57506         * modules/string (Makefile.am): Update.
57507         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
57508         Reported by Karl Berry.
57509
57510 2007-12-01  Eric Blake  <ebb9@byu.net>
57511
57512         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
57513         accomodate fix in cygwin 1.5.25.
57514
57515 2007-12-01  Jim Meyering  <meyering@redhat.com>
57516
57517         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
57518         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
57519         that would inhibit utf8-optimization of a regexp containing line-
57520         or buffer-anchors, e.g., `^', `$'.
57521
57522 2007-11-30  Bruno Haible  <bruno@clisp.org>
57523
57524         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
57525         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
57526         glthread_recursive_lock_init.
57527         * lib/lock.c (glthread_recursive_lock_init)
57528         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
57529         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57530
57531 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
57532
57533         New function qset_acl, like set_acl but with syscall semantics.
57534         * lib/acl.h (qset_acl): New decl.
57535         * lib/acl.c (qset_acl): New function.
57536         (set_acl): Use new function.  Use more-consistent diagnostics.
57537
57538 2007-11-28  Jim Meyering  <meyering@redhat.com>
57539
57540         * modules/physmem (License): Change from GPL to LGPLv2+.
57541
57542 2007-11-26  Bruno Haible  <bruno@clisp.org>
57543
57544         * lib/vasnprintf.c (decode_long_double): Don't abort if the
57545         'long double' type has excess precision.
57546         Reported by Jim Meyering in
57547         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
57548
57549 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57550
57551         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
57552         Sync from <http://gnu.org/licenses>.
57553         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
57554         with license text from same location.
57555         * doc/maintain.texi, doc/standards.texi:  Sync from
57556         <http://savannah.gnu.org/projects/gnustandards>.
57557
57558 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
57559         and Jim Meyering  <meyering@redhat.com>
57560
57561         Adjust getdate' grammar to accept a slightly more regular language.
57562         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
57563         Before, the former was rejected.
57564         * lib/getdate.y (digits_to_date_time): New function, factored
57565         out of ...
57566         (number): ...here.  Just call digits_to_date_time.
57567         (hybrid): New non-terminal to handle an <unsigned number,
57568         signed relative offset> sequence consistently.
57569
57570 2007-11-18  Jim Meyering  <meyering@redhat.com>
57571
57572         Pull my changes from coreutils:
57573         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
57574         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
57575         use of $gnulib_tool_option_extras, so that it's separated from the
57576         preceding argument.
57577
57578         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
57579         * build-aux/bootstrap (cp_mark_as_generated): Create any required
57580         parent destination directories before copying a file into place.
57581
57582 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
57583
57584         bootstrap: work also with 4-argument variant of AC_INIT
57585         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
57586
57587 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57588
57589         Port test-getaddrinfo to Solaris.
57590         Problem reported by Bruno Haible in
57591         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
57592         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
57593         explanation of setting 'hints'.
57594         Don't reject an implementation merely because it returns EAI_SERVICE.
57595         (EAI_SERVICE): Define to 0 if not defined.
57596
57597 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
57598
57599         The license of gnu-make and posix-shell is now "GPLed build tool".
57600         * modules/gnu-make (License): Likewise.
57601         * modules/posix-shell (License): Likewise.
57602
57603         New module posix-shell, for determining a POSIX shell
57604         or perhaps something that is close enough to a POSIX shell.
57605         * m4/posix-shell.m4: New file.
57606         * modules/posix-shell: New file.
57607
57608         * MODULES.html.sh: Mention new module.
57609
57610         New module gnu-make, for determining whether we're using GNU Make.
57611         * m4/gnu-make.m4: New file.
57612         * modules/gnu-make: New file.
57613         * MODULES.html.sh: Mention new module.
57614
57615 2007-11-14  Jim Meyering  <meyering@redhat.com>
57616
57617         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
57618         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
57619         use this macro to create a function _definition_.
57620         Remove useless "#undef ARGMATCH_DIE".
57621
57622 2007-11-14  Bruno Haible  <bruno@clisp.org>
57623
57624         * lib/config.charset: Update for OpenBSD 4.1.
57625         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
57626
57627 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
57628
57629         Document 64-bit #if problems in stdint.texi.
57630         * doc/headers/stdint.texi (stdint.h): Mention problems with
57631         64-bit-#if, and how to work around them.
57632
57633         Don't insist on 'long long int' support in the preprocessor.  It
57634         breaks too many things.  For example, PRIdMAX still uses a 'long
57635         long int' format with the latest Sun compiler, even though
57636         HAVE_LONG_LONG_INT isn't defined due to that compiler's
57637         preprocessor problem.  This causes the latest coreutils to dump
57638         core on Solaris 10 sparc with the Sun C compiler.
57639         Instead, fix the 2007-10-16 problem in a different way, by evaluating
57640         the troublesome expressions at configure-time, not at #if-time.
57641         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
57642         preprocessor.
57643         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
57644         compile-time C checks, done at 'configure'-time.
57645         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
57646         * modules/inttypes (Makefile): Substitute the new symbols that
57647         gl_INTTYPES_H now generates.
57648         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
57649
57650 2007-11-12  Bruno Haible  <bruno@clisp.org>
57651
57652         Tests for Unicode character classification functions.
57653
57654         * modules/unictype/bidicategory-byname-tests: New file.
57655         * modules/unictype/bidicategory-name-tests: New file.
57656         * modules/unictype/bidicategory-of-tests: New file.
57657         * modules/unictype/bidicategory-test-tests: New file.
57658         * modules/unictype/block-list-tests: New file.
57659         * modules/unictype/block-of-tests: New file.
57660         * modules/unictype/block-test-tests: New file.
57661         * modules/unictype/category-C-tests: New file.
57662         * modules/unictype/category-Cc-tests: New file.
57663         * modules/unictype/category-Cf-tests: New file.
57664         * modules/unictype/category-Cn-tests: New file.
57665         * modules/unictype/category-Co-tests: New file.
57666         * modules/unictype/category-Cs-tests: New file.
57667         * modules/unictype/category-L-tests: New file.
57668         * modules/unictype/category-Ll-tests: New file.
57669         * modules/unictype/category-Lm-tests: New file.
57670         * modules/unictype/category-Lo-tests: New file.
57671         * modules/unictype/category-Lt-tests: New file.
57672         * modules/unictype/category-Lu-tests: New file.
57673         * modules/unictype/category-M-tests: New file.
57674         * modules/unictype/category-Mc-tests: New file.
57675         * modules/unictype/category-Me-tests: New file.
57676         * modules/unictype/category-Mn-tests: New file.
57677         * modules/unictype/category-N-tests: New file.
57678         * modules/unictype/category-Nd-tests: New file.
57679         * modules/unictype/category-Nl-tests: New file.
57680         * modules/unictype/category-No-tests: New file.
57681         * modules/unictype/category-P-tests: New file.
57682         * modules/unictype/category-Pc-tests: New file.
57683         * modules/unictype/category-Pd-tests: New file.
57684         * modules/unictype/category-Pe-tests: New file.
57685         * modules/unictype/category-Pf-tests: New file.
57686         * modules/unictype/category-Pi-tests: New file.
57687         * modules/unictype/category-Po-tests: New file.
57688         * modules/unictype/category-Ps-tests: New file.
57689         * modules/unictype/category-S-tests: New file.
57690         * modules/unictype/category-Sc-tests: New file.
57691         * modules/unictype/category-Sk-tests: New file.
57692         * modules/unictype/category-Sm-tests: New file.
57693         * modules/unictype/category-So-tests: New file.
57694         * modules/unictype/category-Z-tests: New file.
57695         * modules/unictype/category-Zl-tests: New file.
57696         * modules/unictype/category-Zp-tests: New file.
57697         * modules/unictype/category-Zs-tests: New file.
57698         * modules/unictype/category-and-not-tests: New file.
57699         * modules/unictype/category-and-tests: New file.
57700         * modules/unictype/category-byname-tests: New file.
57701         * modules/unictype/category-name-tests: New file.
57702         * modules/unictype/category-none-tests: New file.
57703         * modules/unictype/category-of-tests: New file.
57704         * modules/unictype/category-or-tests: New file.
57705         * modules/unictype/category-test-withtable-tests: New file.
57706         * modules/unictype/combining-class-tests: New file.
57707         * modules/unictype/ctype-alnum-tests: New file.
57708         * modules/unictype/ctype-alpha-tests: New file.
57709         * modules/unictype/ctype-blank-tests: New file.
57710         * modules/unictype/ctype-cntrl-tests: New file.
57711         * modules/unictype/ctype-digit-tests: New file.
57712         * modules/unictype/ctype-graph-tests: New file.
57713         * modules/unictype/ctype-lower-tests: New file.
57714         * modules/unictype/ctype-print-tests: New file.
57715         * modules/unictype/ctype-punct-tests: New file.
57716         * modules/unictype/ctype-space-tests: New file.
57717         * modules/unictype/ctype-upper-tests: New file.
57718         * modules/unictype/ctype-xdigit-tests: New file.
57719         * modules/unictype/decimal-digit-tests: New file.
57720         * modules/unictype/digit-tests: New file.
57721         * modules/unictype/mirror-tests: New file.
57722         * modules/unictype/numeric-tests: New file.
57723         * modules/unictype/property-alphabetic-tests: New file.
57724         * modules/unictype/property-ascii-hex-digit-tests: New file.
57725         * modules/unictype/property-bidi-arabic-digit-tests: New file.
57726         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
57727         * modules/unictype/property-bidi-block-separator-tests: New file.
57728         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
57729         * modules/unictype/property-bidi-common-separator-tests: New file.
57730         * modules/unictype/property-bidi-control-tests: New file.
57731         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
57732         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
57733         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
57734         * modules/unictype/property-bidi-european-digit-tests: New file.
57735         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
57736         * modules/unictype/property-bidi-left-to-right-tests: New file.
57737         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
57738         * modules/unictype/property-bidi-other-neutral-tests: New file.
57739         * modules/unictype/property-bidi-pdf-tests: New file.
57740         * modules/unictype/property-bidi-segment-separator-tests: New file.
57741         * modules/unictype/property-bidi-whitespace-tests: New file.
57742         * modules/unictype/property-byname-tests: New file.
57743         * modules/unictype/property-combining-tests: New file.
57744         * modules/unictype/property-composite-tests: New file.
57745         * modules/unictype/property-currency-symbol-tests: New file.
57746         * modules/unictype/property-dash-tests: New file.
57747         * modules/unictype/property-decimal-digit-tests: New file.
57748         * modules/unictype/property-default-ignorable-code-point-tests: New file.
57749         * modules/unictype/property-deprecated-tests: New file.
57750         * modules/unictype/property-diacritic-tests: New file.
57751         * modules/unictype/property-extender-tests: New file.
57752         * modules/unictype/property-format-control-tests: New file.
57753         * modules/unictype/property-grapheme-base-tests: New file.
57754         * modules/unictype/property-grapheme-extend-tests: New file.
57755         * modules/unictype/property-grapheme-link-tests: New file.
57756         * modules/unictype/property-hex-digit-tests: New file.
57757         * modules/unictype/property-hyphen-tests: New file.
57758         * modules/unictype/property-id-continue-tests: New file.
57759         * modules/unictype/property-id-start-tests: New file.
57760         * modules/unictype/property-ideographic-tests: New file.
57761         * modules/unictype/property-ids-binary-operator-tests: New file.
57762         * modules/unictype/property-ids-trinary-operator-tests: New file.
57763         * modules/unictype/property-ignorable-control-tests: New file.
57764         * modules/unictype/property-iso-control-tests: New file.
57765         * modules/unictype/property-join-control-tests: New file.
57766         * modules/unictype/property-left-of-pair-tests: New file.
57767         * modules/unictype/property-line-separator-tests: New file.
57768         * modules/unictype/property-logical-order-exception-tests: New file.
57769         * modules/unictype/property-lowercase-tests: New file.
57770         * modules/unictype/property-math-tests: New file.
57771         * modules/unictype/property-non-break-tests: New file.
57772         * modules/unictype/property-not-a-character-tests: New file.
57773         * modules/unictype/property-numeric-tests: New file.
57774         * modules/unictype/property-other-alphabetic-tests: New file.
57775         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
57776         * modules/unictype/property-other-grapheme-extend-tests: New file.
57777         * modules/unictype/property-other-id-continue-tests: New file.
57778         * modules/unictype/property-other-id-start-tests: New file.
57779         * modules/unictype/property-other-lowercase-tests: New file.
57780         * modules/unictype/property-other-math-tests: New file.
57781         * modules/unictype/property-other-uppercase-tests: New file.
57782         * modules/unictype/property-paired-punctuation-tests: New file.
57783         * modules/unictype/property-paragraph-separator-tests: New file.
57784         * modules/unictype/property-pattern-syntax-tests: New file.
57785         * modules/unictype/property-pattern-white-space-tests: New file.
57786         * modules/unictype/property-private-use-tests: New file.
57787         * modules/unictype/property-punctuation-tests: New file.
57788         * modules/unictype/property-quotation-mark-tests: New file.
57789         * modules/unictype/property-radical-tests: New file.
57790         * modules/unictype/property-sentence-terminal-tests: New file.
57791         * modules/unictype/property-soft-dotted-tests: New file.
57792         * modules/unictype/property-space-tests: New file.
57793         * modules/unictype/property-terminal-punctuation-tests: New file.
57794         * modules/unictype/property-test-tests: New file.
57795         * modules/unictype/property-titlecase-tests: New file.
57796         * modules/unictype/property-unassigned-code-value-tests: New file.
57797         * modules/unictype/property-unified-ideograph-tests: New file.
57798         * modules/unictype/property-uppercase-tests: New file.
57799         * modules/unictype/property-variation-selector-tests: New file.
57800         * modules/unictype/property-white-space-tests: New file.
57801         * modules/unictype/property-xid-continue-tests: New file.
57802         * modules/unictype/property-xid-start-tests: New file.
57803         * modules/unictype/property-zero-width-tests: New file.
57804         * modules/unictype/scripts-tests: New file.
57805         * modules/unictype/syntax-c-ident-tests: New file.
57806         * modules/unictype/syntax-c-whitespace-tests: New file.
57807         * modules/unictype/syntax-java-ident-tests: New file.
57808         * modules/unictype/syntax-java-whitespace-tests: New file.
57809         * tests/unictype/test-bidi_byname.c: New file.
57810         * tests/unictype/test-bidi_name.c: New file.
57811         * tests/unictype/test-bidi_of.c: New file.
57812         * tests/unictype/test-bidi_test.c: New file.
57813         * tests/unictype/test-block_list.c: New file.
57814         * tests/unictype/test-block_of.c: New file.
57815         * tests/unictype/test-block_test.c: New file.
57816         * tests/unictype/test-categ_and.c: New file.
57817         * tests/unictype/test-categ_and_not.c: New file.
57818         * tests/unictype/test-categ_byname.c: New file.
57819         * tests/unictype/test-categ_name.c: New file.
57820         * tests/unictype/test-categ_none.c: New file.
57821         * tests/unictype/test-categ_of.c: New file.
57822         * tests/unictype/test-categ_or.c: New file.
57823         * tests/unictype/test-categ_test_withtable.c: New file.
57824         * tests/unictype/test-combining.c: New file.
57825         * tests/unictype/test-decdigit.c: New file.
57826         * tests/unictype/test-digit.c: New file.
57827         * tests/unictype/test-mirror.c: New file.
57828         * tests/unictype/test-numeric.c: New file.
57829         * tests/unictype/test-pr_byname.c: New file.
57830         * tests/unictype/test-pr_test.c: New file.
57831         * tests/unictype/test-predicate-part1.h: New file.
57832         * tests/unictype/test-predicate-part2.h: New file.
57833         * tests/unictype/test-scripts.c: New file.
57834         * tests/unictype/test-sy_c_ident.c: New file.
57835         * tests/unictype/test-sy_java_ident.c: New file.
57836
57837         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
57838         for Unicode 5.0.0.
57839         * tests/unictype/test-categ_Cc.c: Likewise.
57840         * tests/unictype/test-categ_Cf.c: Likewise.
57841         * tests/unictype/test-categ_Cn.c: Likewise.
57842         * tests/unictype/test-categ_Co.c: Likewise.
57843         * tests/unictype/test-categ_Cs.c: Likewise.
57844         * tests/unictype/test-categ_L.c: Likewise.
57845         * tests/unictype/test-categ_Ll.c: Likewise.
57846         * tests/unictype/test-categ_Lm.c: Likewise.
57847         * tests/unictype/test-categ_Lo.c: Likewise.
57848         * tests/unictype/test-categ_Lt.c: Likewise.
57849         * tests/unictype/test-categ_Lu.c: Likewise.
57850         * tests/unictype/test-categ_M.c: Likewise.
57851         * tests/unictype/test-categ_Mc.c: Likewise.
57852         * tests/unictype/test-categ_Me.c: Likewise.
57853         * tests/unictype/test-categ_Mn.c: Likewise.
57854         * tests/unictype/test-categ_N.c: Likewise.
57855         * tests/unictype/test-categ_Nd.c: Likewise.
57856         * tests/unictype/test-categ_Nl.c: Likewise.
57857         * tests/unictype/test-categ_No.c: Likewise.
57858         * tests/unictype/test-categ_P.c: Likewise.
57859         * tests/unictype/test-categ_Pc.c: Likewise.
57860         * tests/unictype/test-categ_Pd.c: Likewise.
57861         * tests/unictype/test-categ_Pe.c: Likewise.
57862         * tests/unictype/test-categ_Pf.c: Likewise.
57863         * tests/unictype/test-categ_Pi.c: Likewise.
57864         * tests/unictype/test-categ_Po.c: Likewise.
57865         * tests/unictype/test-categ_Ps.c: Likewise.
57866         * tests/unictype/test-categ_S.c: Likewise.
57867         * tests/unictype/test-categ_Sc.c: Likewise.
57868         * tests/unictype/test-categ_Sk.c: Likewise.
57869         * tests/unictype/test-categ_Sm.c: Likewise.
57870         * tests/unictype/test-categ_So.c: Likewise.
57871         * tests/unictype/test-categ_Z.c: Likewise.
57872         * tests/unictype/test-categ_Zl.c: Likewise.
57873         * tests/unictype/test-categ_Zp.c: Likewise.
57874         * tests/unictype/test-categ_Zs.c: Likewise.
57875         * tests/unictype/test-ctype_alnum.c: Likewise.
57876         * tests/unictype/test-ctype_alpha.c: Likewise.
57877         * tests/unictype/test-ctype_blank.c: Likewise.
57878         * tests/unictype/test-ctype_cntrl.c: Likewise.
57879         * tests/unictype/test-ctype_digit.c: Likewise.
57880         * tests/unictype/test-ctype_graph.c: Likewise.
57881         * tests/unictype/test-ctype_lower.c: Likewise.
57882         * tests/unictype/test-ctype_print.c: Likewise.
57883         * tests/unictype/test-ctype_punct.c: Likewise.
57884         * tests/unictype/test-ctype_space.c: Likewise.
57885         * tests/unictype/test-ctype_upper.c: Likewise.
57886         * tests/unictype/test-ctype_xdigit.c: Likewise.
57887         * tests/unictype/test-decdigit.h: Likewise.
57888         * tests/unictype/test-digit.h: Likewise.
57889         * tests/unictype/test-numeric.h: Likewise.
57890         * tests/unictype/test-pr_alphabetic.c: Likewise.
57891         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
57892         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
57893         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
57894         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
57895         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
57896         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
57897         * tests/unictype/test-pr_bidi_control.c: Likewise.
57898         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
57899         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
57900         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
57901         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
57902         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
57903         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
57904         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
57905         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
57906         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
57907         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
57908         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
57909         * tests/unictype/test-pr_combining.c: Likewise.
57910         * tests/unictype/test-pr_composite.c: Likewise.
57911         * tests/unictype/test-pr_currency_symbol.c: Likewise.
57912         * tests/unictype/test-pr_dash.c: Likewise.
57913         * tests/unictype/test-pr_decimal_digit.c: Likewise.
57914         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
57915         * tests/unictype/test-pr_deprecated.c: Likewise.
57916         * tests/unictype/test-pr_diacritic.c: Likewise.
57917         * tests/unictype/test-pr_extender.c: Likewise.
57918         * tests/unictype/test-pr_format_control.c: Likewise.
57919         * tests/unictype/test-pr_grapheme_base.c: Likewise.
57920         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
57921         * tests/unictype/test-pr_grapheme_link.c: Likewise.
57922         * tests/unictype/test-pr_hex_digit.c: Likewise.
57923         * tests/unictype/test-pr_hyphen.c: Likewise.
57924         * tests/unictype/test-pr_id_continue.c: Likewise.
57925         * tests/unictype/test-pr_id_start.c: Likewise.
57926         * tests/unictype/test-pr_ideographic.c: Likewise.
57927         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
57928         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
57929         * tests/unictype/test-pr_ignorable_control.c: Likewise.
57930         * tests/unictype/test-pr_iso_control.c: Likewise.
57931         * tests/unictype/test-pr_join_control.c: Likewise.
57932         * tests/unictype/test-pr_left_of_pair.c: Likewise.
57933         * tests/unictype/test-pr_line_separator.c: Likewise.
57934         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
57935         * tests/unictype/test-pr_lowercase.c: Likewise.
57936         * tests/unictype/test-pr_math.c: Likewise.
57937         * tests/unictype/test-pr_non_break.c: Likewise.
57938         * tests/unictype/test-pr_not_a_character.c: Likewise.
57939         * tests/unictype/test-pr_numeric.c: Likewise.
57940         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
57941         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
57942         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
57943         * tests/unictype/test-pr_other_id_continue.c: Likewise.
57944         * tests/unictype/test-pr_other_id_start.c: Likewise.
57945         * tests/unictype/test-pr_other_lowercase.c: Likewise.
57946         * tests/unictype/test-pr_other_math.c: Likewise.
57947         * tests/unictype/test-pr_other_uppercase.c: Likewise.
57948         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
57949         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
57950         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
57951         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
57952         * tests/unictype/test-pr_private_use.c: Likewise.
57953         * tests/unictype/test-pr_punctuation.c: Likewise.
57954         * tests/unictype/test-pr_quotation_mark.c: Likewise.
57955         * tests/unictype/test-pr_radical.c: Likewise.
57956         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
57957         * tests/unictype/test-pr_soft_dotted.c: Likewise.
57958         * tests/unictype/test-pr_space.c: Likewise.
57959         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
57960         * tests/unictype/test-pr_titlecase.c: Likewise.
57961         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
57962         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
57963         * tests/unictype/test-pr_uppercase.c: Likewise.
57964         * tests/unictype/test-pr_variation_selector.c: Likewise.
57965         * tests/unictype/test-pr_white_space.c: Likewise.
57966         * tests/unictype/test-pr_xid_continue.c: Likewise.
57967         * tests/unictype/test-pr_xid_start.c: Likewise.
57968         * tests/unictype/test-pr_zero_width.c: Likewise.
57969         * tests/unictype/test-sy_c_whitespace.c: Likewise.
57970         * tests/unictype/test-sy_java_whitespace.c: Likewise.
57971
57972 2007-11-12  Bruno Haible  <bruno@clisp.org>
57973
57974         Unicode character classification functions.
57975         * lib/unictype.h: New file.
57976         * modules/unictype/base: New file.
57977         * modules/unictype/category-L: New file.
57978         * modules/unictype/category-Lu: New file.
57979         * modules/unictype/category-Ll: New file.
57980         * modules/unictype/category-Lt: New file.
57981         * modules/unictype/category-Lm: New file.
57982         * modules/unictype/category-Lo: New file.
57983         * modules/unictype/category-M: New file.
57984         * modules/unictype/category-Mn: New file.
57985         * modules/unictype/category-Mc: New file.
57986         * modules/unictype/category-Me: New file.
57987         * modules/unictype/category-N: New file.
57988         * modules/unictype/category-Nd: New file.
57989         * modules/unictype/category-Nl: New file.
57990         * modules/unictype/category-No: New file.
57991         * modules/unictype/category-P: New file.
57992         * modules/unictype/category-Pc: New file.
57993         * modules/unictype/category-Pd: New file.
57994         * modules/unictype/category-Ps: New file.
57995         * modules/unictype/category-Pe: New file.
57996         * modules/unictype/category-Pi: New file.
57997         * modules/unictype/category-Pf: New file.
57998         * modules/unictype/category-Po: New file.
57999         * modules/unictype/category-S: New file.
58000         * modules/unictype/category-Sm: New file.
58001         * modules/unictype/category-Sc: New file.
58002         * modules/unictype/category-Sk: New file.
58003         * modules/unictype/category-So: New file.
58004         * modules/unictype/category-Z: New file.
58005         * modules/unictype/category-Zs: New file.
58006         * modules/unictype/category-Zl: New file.
58007         * modules/unictype/category-Zp: New file.
58008         * modules/unictype/category-C: New file.
58009         * modules/unictype/category-Cc: New file.
58010         * modules/unictype/category-Cf: New file.
58011         * modules/unictype/category-Cs: New file.
58012         * modules/unictype/category-Co: New file.
58013         * modules/unictype/category-Cn: New file.
58014         * modules/unictype/category-or: New file.
58015         * modules/unictype/category-of: New file.
58016         * modules/unictype/category-test: New file.
58017         * modules/unictype/category-test-withtable: New file.
58018         * modules/unictype/category-byname: New file.
58019         * modules/unictype/category-none: New file.
58020         * modules/unictype/category-and: New file.
58021         * modules/unictype/category-and-not: New file.
58022         * modules/unictype/category-name: New file.
58023         * modules/unictype/combining-class: New file.
58024         * modules/unictype/category-all: New file.
58025         * modules/unictype/bidicategory-all: New file.
58026         * modules/unictype/bidicategory-byname: New file.
58027         * modules/unictype/bidicategory-name: New file.
58028         * modules/unictype/bidicategory-of: New file.
58029         * modules/unictype/bidicategory-test: New file.
58030         * modules/unictype/decimal-digit: New file.
58031         * modules/unictype/digit: New file.
58032         * modules/unictype/numeric: New file.
58033         * modules/unictype/mirror: New file.
58034         * modules/unictype/property-white-space: New file.
58035         * modules/unictype/property-alphabetic: New file.
58036         * modules/unictype/property-other-alphabetic: New file.
58037         * modules/unictype/property-not-a-character: New file.
58038         * modules/unictype/property-default-ignorable-code-point: New file.
58039         * modules/unictype/property-other-default-ignorable-code-point: New
58040         file.
58041         * modules/unictype/property-deprecated: New file.
58042         * modules/unictype/property-logical-order-exception: New file.
58043         * modules/unictype/property-variation-selector: New file.
58044         * modules/unictype/property-private-use: New file.
58045         * modules/unictype/property-unassigned-code-value: New file.
58046         * modules/unictype/property-uppercase: New file.
58047         * modules/unictype/property-other-uppercase: New file.
58048         * modules/unictype/property-lowercase: New file.
58049         * modules/unictype/property-other-lowercase: New file.
58050         * modules/unictype/property-titlecase: New file.
58051         * modules/unictype/property-soft-dotted: New file.
58052         * modules/unictype/property-id-start: New file.
58053         * modules/unictype/property-other-id-start: New file.
58054         * modules/unictype/property-id-continue: New file.
58055         * modules/unictype/property-other-id-continue: New file.
58056         * modules/unictype/property-xid-start: New file.
58057         * modules/unictype/property-xid-continue: New file.
58058         * modules/unictype/property-pattern-white-space: New file.
58059         * modules/unictype/property-pattern-syntax: New file.
58060         * modules/unictype/property-join-control: New file.
58061         * modules/unictype/property-grapheme-base: New file.
58062         * modules/unictype/property-grapheme-extend: New file.
58063         * modules/unictype/property-other-grapheme-extend: New file.
58064         * modules/unictype/property-grapheme-link: New file.
58065         * modules/unictype/property-bidi-control: New file.
58066         * modules/unictype/property-bidi-left-to-right: New file.
58067         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
58068         * modules/unictype/property-bidi-arabic-right-to-left: New file.
58069         * modules/unictype/property-bidi-european-digit: New file.
58070         * modules/unictype/property-bidi-eur-num-separator: New file.
58071         * modules/unictype/property-bidi-eur-num-terminator: New file.
58072         * modules/unictype/property-bidi-arabic-digit: New file.
58073         * modules/unictype/property-bidi-common-separator: New file.
58074         * modules/unictype/property-bidi-block-separator: New file.
58075         * modules/unictype/property-bidi-segment-separator: New file.
58076         * modules/unictype/property-bidi-whitespace: New file.
58077         * modules/unictype/property-bidi-non-spacing-mark: New file.
58078         * modules/unictype/property-bidi-boundary-neutral: New file.
58079         * modules/unictype/property-bidi-pdf: New file.
58080         * modules/unictype/property-bidi-embedding-or-override: New file.
58081         * modules/unictype/property-bidi-other-neutral: New file.
58082         * modules/unictype/property-hex-digit: New file.
58083         * modules/unictype/property-ascii-hex-digit: New file.
58084         * modules/unictype/property-ideographic: New file.
58085         * modules/unictype/property-unified-ideograph: New file.
58086         * modules/unictype/property-radical: New file.
58087         * modules/unictype/property-ids-binary-operator: New file.
58088         * modules/unictype/property-ids-trinary-operator: New file.
58089         * modules/unictype/property-zero-width: New file.
58090         * modules/unictype/property-space: New file.
58091         * modules/unictype/property-non-break: New file.
58092         * modules/unictype/property-iso-control: New file.
58093         * modules/unictype/property-format-control: New file.
58094         * modules/unictype/property-dash: New file.
58095         * modules/unictype/property-hyphen: New file.
58096         * modules/unictype/property-punctuation: New file.
58097         * modules/unictype/property-line-separator: New file.
58098         * modules/unictype/property-paragraph-separator: New file.
58099         * modules/unictype/property-quotation-mark: New file.
58100         * modules/unictype/property-sentence-terminal: New file.
58101         * modules/unictype/property-terminal-punctuation: New file.
58102         * modules/unictype/property-currency-symbol: New file.
58103         * modules/unictype/property-math: New file.
58104         * modules/unictype/property-other-math: New file.
58105         * modules/unictype/property-paired-punctuation: New file.
58106         * modules/unictype/property-left-of-pair: New file.
58107         * modules/unictype/property-combining: New file.
58108         * modules/unictype/property-composite: New file.
58109         * modules/unictype/property-decimal-digit: New file.
58110         * modules/unictype/property-numeric: New file.
58111         * modules/unictype/property-diacritic: New file.
58112         * modules/unictype/property-extender: New file.
58113         * modules/unictype/property-ignorable-control: New file.
58114         * modules/unictype/property-test: New file.
58115         * modules/unictype/property-byname: New file.
58116         * modules/unictype/property-all: New file.
58117         * modules/unictype/scripts: New file.
58118         * modules/unictype/scripts-all: New file.
58119         * modules/unictype/block-of: New file.
58120         * modules/unictype/block-test: New file.
58121         * modules/unictype/block-list: New file.
58122         * modules/unictype/block-all: New file.
58123         * modules/unictype/syntax-c-whitespace: New file.
58124         * modules/unictype/syntax-java-whitespace: New file.
58125         * modules/unictype/syntax-c-ident: New file.
58126         * modules/unictype/syntax-java-ident: New file.
58127         * modules/unictype/ctype-alnum: New file.
58128         * modules/unictype/ctype-alpha: New file.
58129         * modules/unictype/ctype-cntrl: New file.
58130         * modules/unictype/ctype-digit: New file.
58131         * modules/unictype/ctype-graph: New file.
58132         * modules/unictype/ctype-lower: New file.
58133         * modules/unictype/ctype-print: New file.
58134         * modules/unictype/ctype-punct: New file.
58135         * modules/unictype/ctype-space: New file.
58136         * modules/unictype/ctype-upper: New file.
58137         * modules/unictype/ctype-xdigit: New file.
58138         * modules/unictype/ctype-blank: New file.
58139         * lib/unictype/bidi_byname.c: New file.
58140         * lib/unictype/bidi_name.c: New file.
58141         * lib/unictype/bidi_of.c: New file.
58142         * lib/unictype/bidi_test.c: New file.
58143         * lib/unictype/bitmap.h: New file.
58144         * lib/unictype/block_test.c: New file.
58145         * lib/unictype/blocks.c: New file.
58146         * lib/unictype/categ_C.c: New file.
58147         * lib/unictype/categ_Cc.c: New file.
58148         * lib/unictype/categ_Cf.c: New file.
58149         * lib/unictype/categ_Cn.c: New file.
58150         * lib/unictype/categ_Co.c: New file.
58151         * lib/unictype/categ_Cs.c: New file.
58152         * lib/unictype/categ_L.c: New file.
58153         * lib/unictype/categ_Ll.c: New file.
58154         * lib/unictype/categ_Lm.c: New file.
58155         * lib/unictype/categ_Lo.c: New file.
58156         * lib/unictype/categ_Lt.c: New file.
58157         * lib/unictype/categ_Lu.c: New file.
58158         * lib/unictype/categ_M.c: New file.
58159         * lib/unictype/categ_Mc.c: New file.
58160         * lib/unictype/categ_Me.c: New file.
58161         * lib/unictype/categ_Mn.c: New file.
58162         * lib/unictype/categ_N.c: New file.
58163         * lib/unictype/categ_Nd.c: New file.
58164         * lib/unictype/categ_Nl.c: New file.
58165         * lib/unictype/categ_No.c: New file.
58166         * lib/unictype/categ_P.c: New file.
58167         * lib/unictype/categ_Pc.c: New file.
58168         * lib/unictype/categ_Pd.c: New file.
58169         * lib/unictype/categ_Pe.c: New file.
58170         * lib/unictype/categ_Pf.c: New file.
58171         * lib/unictype/categ_Pi.c: New file.
58172         * lib/unictype/categ_Po.c: New file.
58173         * lib/unictype/categ_Ps.c: New file.
58174         * lib/unictype/categ_S.c: New file.
58175         * lib/unictype/categ_Sc.c: New file.
58176         * lib/unictype/categ_Sk.c: New file.
58177         * lib/unictype/categ_Sm.c: New file.
58178         * lib/unictype/categ_So.c: New file.
58179         * lib/unictype/categ_Z.c: New file.
58180         * lib/unictype/categ_Zl.c: New file.
58181         * lib/unictype/categ_Zp.c: New file.
58182         * lib/unictype/categ_Zs.c: New file.
58183         * lib/unictype/categ_and.c: New file.
58184         * lib/unictype/categ_and_not.c: New file.
58185         * lib/unictype/categ_byname.c: New file.
58186         * lib/unictype/categ_name.c: New file.
58187         * lib/unictype/categ_none.c: New file.
58188         * lib/unictype/categ_of.c: New file.
58189         * lib/unictype/categ_or.c: New file.
58190         * lib/unictype/categ_test.c: New file.
58191         * lib/unictype/combining.c: New file.
58192         * lib/unictype/ctype_alnum.c: New file.
58193         * lib/unictype/ctype_alpha.c: New file.
58194         * lib/unictype/ctype_blank.c: New file.
58195         * lib/unictype/ctype_cntrl.c: New file.
58196         * lib/unictype/ctype_digit.c: New file.
58197         * lib/unictype/ctype_graph.c: New file.
58198         * lib/unictype/ctype_lower.c: New file.
58199         * lib/unictype/ctype_print.c: New file.
58200         * lib/unictype/ctype_punct.c: New file.
58201         * lib/unictype/ctype_space.c: New file.
58202         * lib/unictype/ctype_upper.c: New file.
58203         * lib/unictype/ctype_xdigit.c: New file.
58204         * lib/unictype/decdigit.c: New file.
58205         * lib/unictype/digit.c: New file.
58206         * lib/unictype/identsyntaxmap.h: New file.
58207         * lib/unictype/mirror.c: New file.
58208         * lib/unictype/numeric.c: New file.
58209         * lib/unictype/pr_alphabetic.c: New file.
58210         * lib/unictype/pr_ascii_hex_digit.c: New file.
58211         * lib/unictype/pr_bidi_arabic_digit.c: New file.
58212         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
58213         * lib/unictype/pr_bidi_block_separator.c: New file.
58214         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
58215         * lib/unictype/pr_bidi_common_separator.c: New file.
58216         * lib/unictype/pr_bidi_control.c: New file.
58217         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
58218         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
58219         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
58220         * lib/unictype/pr_bidi_european_digit.c: New file.
58221         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
58222         * lib/unictype/pr_bidi_left_to_right.c: New file.
58223         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
58224         * lib/unictype/pr_bidi_other_neutral.c: New file.
58225         * lib/unictype/pr_bidi_pdf.c: New file.
58226         * lib/unictype/pr_bidi_segment_separator.c: New file.
58227         * lib/unictype/pr_bidi_whitespace.c: New file.
58228         * lib/unictype/pr_byname.c: New file.
58229         * lib/unictype/pr_byname.gperf: New file.
58230         * lib/unictype/pr_combining.c: New file.
58231         * lib/unictype/pr_composite.c: New file.
58232         * lib/unictype/pr_currency_symbol.c: New file.
58233         * lib/unictype/pr_dash.c: New file.
58234         * lib/unictype/pr_decimal_digit.c: New file.
58235         * lib/unictype/pr_default_ignorable_code_point.c: New file.
58236         * lib/unictype/pr_deprecated.c: New file.
58237         * lib/unictype/pr_diacritic.c: New file.
58238         * lib/unictype/pr_extender.c: New file.
58239         * lib/unictype/pr_format_control.c: New file.
58240         * lib/unictype/pr_grapheme_base.c: New file.
58241         * lib/unictype/pr_grapheme_extend.c: New file.
58242         * lib/unictype/pr_grapheme_link.c: New file.
58243         * lib/unictype/pr_hex_digit.c: New file.
58244         * lib/unictype/pr_hyphen.c: New file.
58245         * lib/unictype/pr_id_continue.c: New file.
58246         * lib/unictype/pr_id_start.c: New file.
58247         * lib/unictype/pr_ideographic.c: New file.
58248         * lib/unictype/pr_ids_binary_operator.c: New file.
58249         * lib/unictype/pr_ids_trinary_operator.c: New file.
58250         * lib/unictype/pr_ignorable_control.c: New file.
58251         * lib/unictype/pr_iso_control.c: New file.
58252         * lib/unictype/pr_join_control.c: New file.
58253         * lib/unictype/pr_left_of_pair.c: New file.
58254         * lib/unictype/pr_line_separator.c: New file.
58255         * lib/unictype/pr_logical_order_exception.c: New file.
58256         * lib/unictype/pr_lowercase.c: New file.
58257         * lib/unictype/pr_math.c: New file.
58258         * lib/unictype/pr_non_break.c: New file.
58259         * lib/unictype/pr_not_a_character.c: New file.
58260         * lib/unictype/pr_numeric.c: New file.
58261         * lib/unictype/pr_other_alphabetic.c: New file.
58262         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
58263         * lib/unictype/pr_other_grapheme_extend.c: New file.
58264         * lib/unictype/pr_other_id_continue.c: New file.
58265         * lib/unictype/pr_other_id_start.c: New file.
58266         * lib/unictype/pr_other_lowercase.c: New file.
58267         * lib/unictype/pr_other_math.c: New file.
58268         * lib/unictype/pr_other_uppercase.c: New file.
58269         * lib/unictype/pr_paired_punctuation.c: New file.
58270         * lib/unictype/pr_paragraph_separator.c: New file.
58271         * lib/unictype/pr_pattern_syntax.c: New file.
58272         * lib/unictype/pr_pattern_white_space.c: New file.
58273         * lib/unictype/pr_private_use.c: New file.
58274         * lib/unictype/pr_punctuation.c: New file.
58275         * lib/unictype/pr_quotation_mark.c: New file.
58276         * lib/unictype/pr_radical.c: New file.
58277         * lib/unictype/pr_sentence_terminal.c: New file.
58278         * lib/unictype/pr_soft_dotted.c: New file.
58279         * lib/unictype/pr_space.c: New file.
58280         * lib/unictype/pr_terminal_punctuation.c: New file.
58281         * lib/unictype/pr_test.c: New file.
58282         * lib/unictype/pr_titlecase.c: New file.
58283         * lib/unictype/pr_unassigned_code_value.c: New file.
58284         * lib/unictype/pr_unified_ideograph.c: New file.
58285         * lib/unictype/pr_uppercase.c: New file.
58286         * lib/unictype/pr_variation_selector.c: New file.
58287         * lib/unictype/pr_white_space.c: New file.
58288         * lib/unictype/pr_xid_continue.c: New file.
58289         * lib/unictype/pr_xid_start.c: New file.
58290         * lib/unictype/pr_zero_width.c: New file.
58291         * lib/unictype/scripts.c: New file.
58292         * lib/unictype/sy_c_ident.c: New file.
58293         * lib/unictype/sy_c_whitespace.c: New file.
58294         * lib/unictype/sy_java_ident.c: New file.
58295         * lib/unictype/sy_java_whitespace.c: New file.
58296
58297         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
58298         Unicode 5.0.0.
58299         * lib/unictype/blocks.h: Likewise.
58300         * lib/unictype/categ_C.h: Likewise.
58301         * lib/unictype/categ_Cc.h: Likewise.
58302         * lib/unictype/categ_Cf.h: Likewise.
58303         * lib/unictype/categ_Cn.h: Likewise.
58304         * lib/unictype/categ_Co.h: Likewise.
58305         * lib/unictype/categ_Cs.h: Likewise.
58306         * lib/unictype/categ_L.h: Likewise.
58307         * lib/unictype/categ_Ll.h: Likewise.
58308         * lib/unictype/categ_Lm.h: Likewise.
58309         * lib/unictype/categ_Lo.h: Likewise.
58310         * lib/unictype/categ_Lt.h: Likewise.
58311         * lib/unictype/categ_Lu.h: Likewise.
58312         * lib/unictype/categ_M.h: Likewise.
58313         * lib/unictype/categ_Mc.h: Likewise.
58314         * lib/unictype/categ_Me.h: Likewise.
58315         * lib/unictype/categ_Mn.h: Likewise.
58316         * lib/unictype/categ_N.h: Likewise.
58317         * lib/unictype/categ_Nd.h: Likewise.
58318         * lib/unictype/categ_Nl.h: Likewise.
58319         * lib/unictype/categ_No.h: Likewise.
58320         * lib/unictype/categ_P.h: Likewise.
58321         * lib/unictype/categ_Pc.h: Likewise.
58322         * lib/unictype/categ_Pd.h: Likewise.
58323         * lib/unictype/categ_Pe.h: Likewise.
58324         * lib/unictype/categ_Pf.h: Likewise.
58325         * lib/unictype/categ_Pi.h: Likewise.
58326         * lib/unictype/categ_Po.h: Likewise.
58327         * lib/unictype/categ_Ps.h: Likewise.
58328         * lib/unictype/categ_S.h: Likewise.
58329         * lib/unictype/categ_Sc.h: Likewise.
58330         * lib/unictype/categ_Sk.h: Likewise.
58331         * lib/unictype/categ_Sm.h: Likewise.
58332         * lib/unictype/categ_So.h: Likewise.
58333         * lib/unictype/categ_Z.h: Likewise.
58334         * lib/unictype/categ_Zl.h: Likewise.
58335         * lib/unictype/categ_Zp.h: Likewise.
58336         * lib/unictype/categ_Zs.h: Likewise.
58337         * lib/unictype/categ_of.h: Likewise.
58338         * lib/unictype/combining.h: Likewise.
58339         * lib/unictype/ctype_alnum.h: Likewise.
58340         * lib/unictype/ctype_alpha.h: Likewise.
58341         * lib/unictype/ctype_blank.h: Likewise.
58342         * lib/unictype/ctype_cntrl.h: Likewise.
58343         * lib/unictype/ctype_digit.h: Likewise.
58344         * lib/unictype/ctype_graph.h: Likewise.
58345         * lib/unictype/ctype_lower.h: Likewise.
58346         * lib/unictype/ctype_print.h: Likewise.
58347         * lib/unictype/ctype_punct.h: Likewise.
58348         * lib/unictype/ctype_space.h: Likewise.
58349         * lib/unictype/ctype_upper.h: Likewise.
58350         * lib/unictype/ctype_xdigit.h: Likewise.
58351         * lib/unictype/decdigit.h: Likewise.
58352         * lib/unictype/digit.h: Likewise.
58353         * lib/unictype/mirror.h: Likewise.
58354         * lib/unictype/numeric.h: Likewise.
58355         * lib/unictype/pr_alphabetic.h: Likewise.
58356         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
58357         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
58358         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
58359         * lib/unictype/pr_bidi_block_separator.h: Likewise.
58360         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
58361         * lib/unictype/pr_bidi_common_separator.h: Likewise.
58362         * lib/unictype/pr_bidi_control.h: Likewise.
58363         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
58364         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
58365         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
58366         * lib/unictype/pr_bidi_european_digit.h: Likewise.
58367         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
58368         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
58369         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
58370         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
58371         * lib/unictype/pr_bidi_pdf.h: Likewise.
58372         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
58373         * lib/unictype/pr_bidi_whitespace.h: Likewise.
58374         * lib/unictype/pr_combining.h: Likewise.
58375         * lib/unictype/pr_composite.h: Likewise.
58376         * lib/unictype/pr_currency_symbol.h: Likewise.
58377         * lib/unictype/pr_dash.h: Likewise.
58378         * lib/unictype/pr_decimal_digit.h: Likewise.
58379         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
58380         * lib/unictype/pr_deprecated.h: Likewise.
58381         * lib/unictype/pr_diacritic.h: Likewise.
58382         * lib/unictype/pr_extender.h: Likewise.
58383         * lib/unictype/pr_format_control.h: Likewise.
58384         * lib/unictype/pr_grapheme_base.h: Likewise.
58385         * lib/unictype/pr_grapheme_extend.h: Likewise.
58386         * lib/unictype/pr_grapheme_link.h: Likewise.
58387         * lib/unictype/pr_hex_digit.h: Likewise.
58388         * lib/unictype/pr_hyphen.h: Likewise.
58389         * lib/unictype/pr_id_continue.h: Likewise.
58390         * lib/unictype/pr_id_start.h: Likewise.
58391         * lib/unictype/pr_ideographic.h: Likewise.
58392         * lib/unictype/pr_ids_binary_operator.h: Likewise.
58393         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
58394         * lib/unictype/pr_ignorable_control.h: Likewise.
58395         * lib/unictype/pr_iso_control.h: Likewise.
58396         * lib/unictype/pr_join_control.h: Likewise.
58397         * lib/unictype/pr_left_of_pair.h: Likewise.
58398         * lib/unictype/pr_line_separator.h: Likewise.
58399         * lib/unictype/pr_logical_order_exception.h: Likewise.
58400         * lib/unictype/pr_lowercase.h: Likewise.
58401         * lib/unictype/pr_math.h: Likewise.
58402         * lib/unictype/pr_non_break.h: Likewise.
58403         * lib/unictype/pr_not_a_character.h: Likewise.
58404         * lib/unictype/pr_numeric.h: Likewise.
58405         * lib/unictype/pr_other_alphabetic.h: Likewise.
58406         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
58407         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
58408         * lib/unictype/pr_other_id_continue.h: Likewise.
58409         * lib/unictype/pr_other_id_start.h: Likewise.
58410         * lib/unictype/pr_other_lowercase.h: Likewise.
58411         * lib/unictype/pr_other_math.h: Likewise.
58412         * lib/unictype/pr_other_uppercase.h: Likewise.
58413         * lib/unictype/pr_paired_punctuation.h: Likewise.
58414         * lib/unictype/pr_paragraph_separator.h: Likewise.
58415         * lib/unictype/pr_pattern_syntax.h: Likewise.
58416         * lib/unictype/pr_pattern_white_space.h: Likewise.
58417         * lib/unictype/pr_private_use.h: Likewise.
58418         * lib/unictype/pr_punctuation.h: Likewise.
58419         * lib/unictype/pr_quotation_mark.h: Likewise.
58420         * lib/unictype/pr_radical.h: Likewise.
58421         * lib/unictype/pr_sentence_terminal.h: Likewise.
58422         * lib/unictype/pr_soft_dotted.h: Likewise.
58423         * lib/unictype/pr_space.h: Likewise.
58424         * lib/unictype/pr_terminal_punctuation.h: Likewise.
58425         * lib/unictype/pr_titlecase.h: Likewise.
58426         * lib/unictype/pr_unassigned_code_value.h: Likewise.
58427         * lib/unictype/pr_unified_ideograph.h: Likewise.
58428         * lib/unictype/pr_uppercase.h: Likewise.
58429         * lib/unictype/pr_variation_selector.h: Likewise.
58430         * lib/unictype/pr_white_space.h: Likewise.
58431         * lib/unictype/pr_xid_continue.h: Likewise.
58432         * lib/unictype/pr_xid_start.h: Likewise.
58433         * lib/unictype/pr_zero_width.h: Likewise.
58434         * lib/unictype/scripts.h: Likewise.
58435         * lib/unictype/scripts_byname.gperf: Likewise.
58436         * lib/unictype/sy_c_ident.h: Likewise.
58437         * lib/unictype/sy_c_whitespace.h: Likewise.
58438         * lib/unictype/sy_java_ident.h: Likewise.
58439         * lib/unictype/sy_java_whitespace.h: Likewise.
58440
58441         * lib/unictype/Makefile: New file.
58442         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
58443         glibc.
58444         * lib/unictype/3level.h: New file, copied from glibc.
58445         * lib/unictype/3levelbit.h: New file.
58446
58447 2007-11-11  Bruno Haible  <bruno@clisp.org>
58448
58449         * modules/gperf: New file.
58450         * modules/iconv_open (Depends-on): Add it.
58451         (Makefile.am): Remove the GPERF definition.
58452
58453 2007-11-11  Bruno Haible  <bruno@clisp.org>
58454
58455         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
58456         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
58457
58458 2007-11-11  Bruno Haible  <bruno@clisp.org>
58459
58460         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
58461         (usage): Remove function.
58462
58463 2007-11-11  Bruno Haible  <bruno@clisp.org>
58464
58465         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
58466         gl_FUNC_CEILF_LIBS.
58467         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
58468         gl_FUNC_CEIL_LIBS.
58469         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
58470         gl_FUNC_CEILL_LIBS.
58471         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
58472         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
58473         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
58474
58475 2007-11-11  Bruno Haible  <bruno@clisp.org>
58476
58477         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
58478         roundf were declared but do not exist on functions.
58479         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
58480         roundl were declared but do not exist on functions.
58481         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
58482         HAVE_FLOORL_AND_CEILL, respectively.
58483         Needed for Sun C on Solaris 10.
58484
58485 2007-11-11  Bruno Haible  <bruno@clisp.org>
58486
58487         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
58488         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
58489         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
58490         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
58491         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
58492         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
58493         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
58494         HAVE_DECL_ROUNDF.
58495         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
58496         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
58497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
58498         of HAVE_DECL_ROUND*.
58499         * modules/math (Makefile.am): Update.
58500
58501 2007-11-10  Bruno Haible  <bruno@clisp.org>
58502
58503         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
58504         ptrdiff_t as m4/intl.m4.
58505
58506 2007-11-10  Jim Meyering  <meyering@redhat.com>
58507
58508         Avoid link failure for the argmatch test.
58509         * tests/test-argmatch.c (usage): Define function to avoid a link
58510         failure: argmatch_die requires a usage function.
58511
58512 2007-11-09  Bruno Haible  <bruno@clisp.org>
58513
58514         * doc/functions/snprintf.texi: Mention BeOS deficiency.
58515         * doc/functions/vsnprintf.texi: Likewise.
58516         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
58517         with a size argument < 2.
58518
58519 2007-11-09  Bruno Haible  <bruno@clisp.org>
58520
58521         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
58522         buffer. Fixes an inefficiency introduced on 2007-11-03.
58523
58524 2007-11-09  Bruno Haible  <bruno@clisp.org>
58525
58526         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
58527         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
58528
58529 2007-11-08  Jim Meyering  <meyering@redhat.com>
58530
58531         Change cache variable name prefix "jm_" to "gl_" everywhere.
58532         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
58533         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
58534         * m4/uptime.m4: s/gl_/jm_/
58535
58536 2007-11-07  Bruno Haible  <bruno@clisp.org>
58537
58538         Update to GNU gettext 0.17.
58539         * m4/intl.m4: Update to GNU gettext 0.17.
58540         * m4/po.m4: Likewise.
58541         * modules/gettext (Files): Remove m4/ulonglong.m4.
58542         (configure.ac): Require gettext infrastructure from version 0.17.
58543
58544 2007-11-06  Bruno Haible  <bruno@clisp.org>
58545
58546         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
58547         symbolic values are not defined in a public header.
58548         * lib/freadable.c (freadable) [QNX]: Likewise.
58549         * lib/freadahead.c (freadahead) [QNX]: Likewise.
58550         * lib/freading.c (freading) [QNX]: Likewise.
58551         * lib/fseterr.c (fseterr) [QNX]: Likewise.
58552         * lib/fwritable.c (fwritable) [QNX]: Likewise.
58553         * lib/fwriting.c (fwriting) [QNX]: Likewise.
58554         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
58555         Reported by Alain Magloire.
58556
58557         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
58558
58559 2007-11-05  Bruno Haible  <bruno@clisp.org>
58560
58561         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
58562         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
58563         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
58564         Reported by Eric Blake.
58565
58566 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58567             Bruno Haible  <bruno@clisp.org>
58568
58569         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
58570         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
58571         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
58572         (malloc): Undefine also before including <stdlib.h>.
58573         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
58574         Needed on OSF/1 4.0.
58575
58576 2007-11-05  Jim Meyering  <meyering@redhat.com>
58577
58578         git-version-gen: sync from coreutils.
58579         * build-aux/git-version-gen: Add comments.
58580         Change the first '-' to '.' in the snapshot version string,
58581         e.g., 6.9-377-08144 -> 6.9.377-08144
58582         Remove first parameter.
58583         Don't declare a version "-dirty" merely because a time
58584         stamp has changed.
58585
58586 2007-11-04  Bruno Haible  <bruno@clisp.org>
58587
58588         * lib/lock.h: Protect all macro definitions containing an 'if'
58589         statement through a "do { ... } while (0)".
58590         * lib/tls.h: Likewise.
58591
58592 2007-11-04  Bruno Haible  <bruno@clisp.org>
58593
58594         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
58595
58596 2007-11-04  Bruno Haible  <bruno@clisp.org>
58597
58598         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
58599         * modules/fprintf-posix (Depends-on): Add nocrash.
58600         * modules/snprintf-posix (Depends-on): Likewise.
58601         * modules/sprintf-posix (Depends-on): Likewise.
58602         * modules/vasnprintf-posix (Depends-on): Likewise.
58603         * modules/vasprintf-posix (Depends-on): Likewise.
58604         * modules/vfprintf-posix (Depends-on): Likewise.
58605         * modules/vsnprintf-posix (Depends-on): Likewise.
58606         * modules/vsprintf-posix (Depends-on): Likewise.
58607         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58608         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58609         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58610         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58611         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58612         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58613         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58614
58615 2007-11-04  Bruno Haible  <bruno@clisp.org>
58616
58617         * modules/nocrash: New file.
58618         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
58619         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
58620
58621 2007-11-04  Bruno Haible  <bruno@clisp.org>
58622
58623         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
58624         precision handling.
58625         * tests/test-vasprintf-posix.c (test_function): Likewise.
58626         * tests/test-snprintf-posix.h (test_function): Likewise.
58627         * tests/test-sprintf-posix.h (test_function): Likewise.
58628
58629         Fix *printf behaviour for large precisions on mingw and BeOS.
58630         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
58631         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
58632         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
58633         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58634         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58635         gl_PRINTF_PRECISION and test its result. Invoke
58636         gl_PREREQ_VASNPRINTF_PRECISION.
58637         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58638         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58639         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58640         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58641         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58642         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58643         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58644         * doc/functions/fprintf.texi: Update.
58645         * doc/functions/printf.texi: Update.
58646         * doc/functions/snprintf.texi: Update.
58647         * doc/functions/sprintf.texi: Update.
58648         * doc/functions/vfprintf.texi: Update.
58649         * doc/functions/vprintf.texi: Update.
58650         * doc/functions/vsnprintf.texi: Update.
58651         * doc/functions/vsprintf.texi: Update.
58652
58653 2007-11-04  Bruno Haible  <bruno@clisp.org>
58654
58655         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
58656
58657 2007-11-04  Bruno Haible  <bruno@clisp.org>
58658
58659         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
58660         Reported by Sylvain Beucler <beuc@gnu.org>.
58661
58662 2007-11-03  Bruno Haible  <bruno@clisp.org>
58663
58664         * tests/test-fprintf-posix2.sh: New file.
58665         * tests/test-fprintf-posix2.c: New file.
58666         * modules/fprintf-posix-tests (Files): Add them.
58667         (TESTS): Add test-fprintf-posix2.sh.
58668         (configure.ac): Check for getrlimit and setrlimit.
58669         (check_PROGRAMS): Add test-fprintf-posix2.
58670
58671         * tests/test-printf-posix2.sh: New file.
58672         * tests/test-printf-posix2.c: New file.
58673         * modules/printf-posix-tests (Files): Add them.
58674         (TESTS): Add test-printf-posix2.sh.
58675         (configure.ac): Check for getrlimit and setrlimit.
58676         (check_PROGRAMS): Add test-printf-posix2.
58677
58678         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
58679         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
58680         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
58681         (decode_double): New function, copied from decode_long_double.
58682         (scale10_round_decimal_decoded): New function, extracted from
58683         scale10_round_decimal_long_double.
58684         (scale10_round_decimal_long_double): Use it.
58685         (scale10_round_decimal_double): New function.
58686         (floorlog10): New function.
58687         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
58688         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
58689         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58690         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58691         gl_PRINTF_ENOMEM and test its result. Invoke
58692         gl_PREREQ_VASNPRINTF_ENOMEM.
58693         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58694         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58695         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58696         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58697         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58698         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58699         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58700         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
58701         * modules/snprintf-posix (Depends-on): Likewise.
58702         * modules/sprintf-posix (Depends-on): Likewise.
58703         * modules/vasnprintf-posix (Depends-on): Likewise.
58704         * modules/vasprintf-posix (Depends-on): Likewise.
58705         * modules/vfprintf-posix (Depends-on): Likewise.
58706         * modules/vsnprintf-posix (Depends-on): Likewise.
58707         * modules/vsprintf-posix (Depends-on): Likewise.
58708         * doc/functions/fprintf.texi: Update.
58709         * doc/functions/printf.texi: Update.
58710         * doc/functions/snprintf.texi: Update.
58711         * doc/functions/sprintf.texi: Update.
58712         * doc/functions/vfprintf.texi: Update.
58713         * doc/functions/vprintf.texi: Update.
58714         * doc/functions/vsnprintf.texi: Update.
58715         * doc/functions/vsprintf.texi: Update.
58716
58717 2007-11-03  Bruno Haible  <bruno@clisp.org>
58718
58719         * modules/frexp-nolibm-tests: New file.
58720
58721         * modules/frexp-nolibm: New file.
58722         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
58723
58724 2007-11-03  Bruno Haible  <bruno@clisp.org>
58725
58726         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
58727         value is C99 compliant.
58728         Needed for OSF/1 5.1.
58729
58730 2007-11-03  Bruno Haible  <bruno@clisp.org>
58731
58732         Fix out-of-memory handling of vasnprintf.
58733         * lib/printf-parse.c: Include <errno.h>.
58734         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
58735         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
58736         is already set.
58737
58738 2007-11-02  Eric Blake  <ebb9@byu.net>
58739
58740         Fix tests on cygwin.
58741         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
58742
58743 2007-11-01  Bruno Haible  <bruno@clisp.org>
58744
58745         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
58746         warning.
58747         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
58748         needed for POSIX compatibility.
58749
58750 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
58751
58752         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
58753         for compatibility with GNU.
58754
58755 2007-11-01  Bruno Haible  <bruno@clisp.org>
58756
58757         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
58758         (putenv): Renamed from rpl_putenv. Change argument type from
58759         'const char *' to 'char *'.
58760         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
58761         of defining putenv in config.h, just set REPLACE_PUTENV.
58762         * modules/putenv (Depends-on): Add stdlib.
58763         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58764         (Include): Use <stdlib.h>.
58765         * lib/stdlib.in.h (putenv): New declaration.
58766         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
58767         REPLACE_PUTENV.
58768         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
58769         REPLACE_PUTENV.
58770         Needed for MacOS X 10.5.0.
58771         Reported by Peter O'Gorman <peter@pogma.com>.
58772
58773 2007-11-01  Jim Meyering  <meyering@redhat.com>
58774
58775         Treat an empty date string exactly like "0".
58776         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
58777         if the remaining date string (to be parsed) is empty, use "0".
58778         Reported by Mischa Molhoek and discussed in this thread:
58779         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
58780
58781 2007-10-31  Bruno Haible  <bruno@clisp.org>
58782
58783         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
58784         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
58785         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
58786         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
58787         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
58788         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
58789
58790 2007-10-31  Bruno Haible  <bruno@clisp.org>
58791
58792         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
58793         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
58794         (AC_TYPE_LONG_LONG_INT): Use it.
58795         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
58796         it as well.
58797         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
58798         to m4/longlong.m4.
58799         * modules/stdint (Files): Remove m4/ulonglong.m4.
58800         * modules/strtoull (Files): Use m4/longlong.m4 instead of
58801         m4/ulonglong.m4.
58802         * modules/strtoumax (Files): Likewise.
58803
58804 2007-10-30  Bruno Haible  <bruno@clisp.org>
58805
58806         * modules/xvasprintf-posix: New file.
58807         Suggested by Eric Blake.
58808
58809 2007-10-30  Bruno Haible  <bruno@clisp.org>
58810
58811         * modules/xprintf-posix-tests: New file.
58812         * tests/test-xprintf-posix.sh: New file.
58813         * tests/test-xprintf-posix.c: New file.
58814         * tests/test-xfprintf-posix.c: New file.
58815
58816         * modules/xprintf-posix: New file.
58817
58818 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58819
58820         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
58821         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
58822         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
58823
58824 2007-10-29  Bruno Haible  <bruno@clisp.org>
58825
58826         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
58827         contain the special marker '_cv_'.
58828         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
58829         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
58830         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
58831         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
58832         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
58833         Reported by Ralf Wildenhues.
58834
58835 2007-10-29  Bruno Haible  <bruno@clisp.org>
58836
58837         * gnulib-tool (func_import): When --lgpl is not specified, set
58838         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
58839         GPLv3.
58840         Reported by Simon Josefsson.
58841
58842 2007-10-28  Bruno Haible  <bruno@clisp.org>
58843
58844         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
58845         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
58846         HAVE_DECL_ISFINITE.
58847         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
58848         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
58849         HAVE_DECL_ISFINITE.
58850
58851 2007-10-28  Bruno Haible  <bruno@clisp.org>
58852
58853         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
58854         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
58855
58856 2007-10-28  Bruno Haible  <bruno@clisp.org>
58857
58858         Fix link errors with Sun C 5.0 on Solaris 10.
58859         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
58860         function is declared but not present in the compiler's libm.
58861         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
58862         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
58863         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
58864         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
58865         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
58866         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
58867         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
58868         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
58869         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
58870         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
58871         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
58872         HAVE_DECL_FLOORL.
58873
58874 2007-10-28  Bruno Haible  <bruno@clisp.org>
58875
58876         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
58877         gl_FUNC_FLOORL. Cache the result.
58878         (gl_FUNC_FLOORL): Use it.
58879         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
58880         gl_FUNC_CEILL. Cache the result.
58881         (gl_FUNC_CEILL): Use it.
58882
58883         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
58884         gl_FUNC_FLOOR. Cache the result.
58885         (gl_FUNC_FLOOR): Use it.
58886         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
58887         gl_FUNC_CEIL. Cache the result.
58888         (gl_FUNC_CEIL): Use it.
58889
58890         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
58891         gl_FUNC_FLOORF. Cache the result.
58892         (gl_FUNC_FLOORF): Use it.
58893         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
58894         gl_FUNC_CEILF. Cache the result.
58895         (gl_FUNC_CEILF): Use it.
58896
58897 2007-10-28  Bruno Haible  <bruno@clisp.org>
58898
58899         * gnulib-tool: Allow specifying the LGPL version number through
58900         --lgpl=2 or --lgpl=3.
58901         (func_usage): Document --lgpl with argument.
58902         Handle --lgpl=... arguments.
58903         (func_import): Recognize also gl_LGPL calls with an argument. When
58904         --lgpl=2 is used and the module's license is just LGPL, report an
58905         error. Set sed_transform_lib_file according to the lgpl variable. In
58906         the generated files, use --lgpl or gl_LGPL invocations with argument,
58907         if necessary.
58908         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
58909         an LGPv2+ license.
58910         * doc/gnulib-tool.texi (Modified imports): Update explanation of
58911         gl_LGPL macro.
58912
58913 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58914             Bruno Haible  <bruno@clisp.org>
58915
58916         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
58917         (u16_uctomb_aux): Likewise.
58918         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
58919         !HAVE_INLINE.
58920         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
58921
58922 2007-10-28  Bruno Haible  <bruno@clisp.org>
58923
58924         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
58925         Invoke AM_GETTEXT_OPTION if it exists.
58926         * modules/vasprintf: Likewise.
58927         * modules/verror: Likewise.
58928         * modules/xprintf: Likewise.
58929         * modules/xvasprintf: Likewise.
58930
58931 2007-10-27  Ben Pfaff  <blp@gnu.org>
58932
58933         * lib/math.in.h: Define isfinite macro and prototypes for
58934         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
58935         implementations.
58936         * m4/math_h.m4: New substitutions for isfinite module.
58937         * lib/isfinite.c: New file.
58938         * m4/isfinite.m4: New file.
58939         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
58940         * modules/isfinite: New file.
58941         * modules/isfinite-tests: New file.
58942         * tests/tests-isfinite.c: New file.
58943         * doc/functions/isfinite.texi: Mention isfinite module.
58944         * MODULES.html.sh: Mention new module.
58945
58946 2007-10-27  Ben Pfaff  <blp@gnu.org>
58947
58948         Ralf Wildenhues reported that Tru64 4.0D declares the round
58949         functions but does not have definitions.
58950         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
58951         cannot be found in any library, set the output variable to
58952         "missing" instead of "".
58953         * m4/round.m4: Also use our substitute if we cannot find round in
58954         any library, even if it is declared.
58955         * m4/roundf.m4: Likewise for roundf.
58956         * m4/roundl.m4: Likewise for roundl.
58957         * lib/math.in.h: Undefine roundf, round, roundl before defining
58958         their replacements, to allow for hypothetical systems where these
58959         may be defined as macros but not available in libraries.
58960
58961 2007-10-27  Bruno Haible  <bruno@clisp.org>
58962
58963         * doc/gnulib.texi: Invoke @firstparagraphindent.
58964         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
58965         changes in gnulib.
58966         (Source changes): New section.
58967
58968 2007-10-26  Bruno Haible  <bruno@clisp.org>
58969
58970         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
58971         borrowed from autoconf.
58972
58973 2007-10-26  Bruno Haible  <bruno@clisp.org>
58974
58975         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
58976         strerror returned the empty string. Needed on HP-UX 11.00.
58977
58978 2007-10-24  Micah Cowan  <micah@cowan.name>
58979
58980         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
58981         * build-aux/bootstrap: Remove support for now-unnecessary option,
58982         --cvs-user, and envvars CVS_USER, CVS_RSH.
58983
58984 2007-10-24  Jim Meyering  <meyering@redhat.com>
58985
58986         Avoid diagnostics from sha1sum when there is no cached checksum.
58987         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
58988         if the po.s1 file hasn't been created yet.
58989
58990         * build-aux/bootstrap: Sync from coreutils:
58991         2007-10-24  Jim Meyering  <meyering@redhat.com>
58992         Get gnulib from the git repository, not from an obsolete cvs one.
58993         * build-aux/bootstrap: Suggestion from Micah Cowan.
58994         2007-10-04  Jim Meyering  <jim@meyering.net>
58995         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
58996         (update_po_files): Work also when there are no .po files in po/.
58997
58998 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58999
59000         * README: Append ".git" to git and cg examples.
59001         Problem reported by Benoit Sigoure.
59002
59003 2007-10-23  Micah Cowan  <micah@cowan.name>
59004
59005         * users.txt: Add wget.
59006
59007 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59008
59009         Fix linking of some unistdio tests on FreeBSD.
59010         * modules/unistdio/u16-vsnprintf-tests
59011         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
59012         * modules/unistdio/u16-vsprintf-tests
59013         (test_u16_vsnprintf1_LDADD): Likewise.
59014         * modules/unistdio/u32-vsnprintf-tests
59015         (test_u32_vsnprintf1_LDADD): Likewise.
59016         * modules/unistdio/u32-vsprintf-tests
59017         (test_u32_vsprintf1_LDADD): Likewise.
59018         * modules/unistdio/u8-vsnprintf-tests
59019         (test_u8_vsnprintf1_LDADD): Likewise.
59020         * modules/unistdio/u8-vsprintf-tests
59021         (test_u8_vsprintf1_LDADD): Likewise.
59022         * modules/unistdio/ulc-vsnprintf-tests
59023         (test_ulc_vsnprintf1_LDADD): Likewise.
59024         * modules/unistdio/ulc-vsprintf-tests
59025         (test_ulc_vsprintf1_LDADD): Likewise.
59026
59027         Fix linking of some uniconv tests on FreeBSD.
59028         * modules/uniconv/u16-conv-from-enc-tests
59029         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
59030         * modules/uniconv/u16-conv-to-enc-tests
59031         (test_u16_conv_to_enc_LDADD): Likewise.
59032         * modules/uniconv/u16-strconv-from-enc-tests
59033         (test_u16_strconv_from_enc_LDADD): Likewise.
59034         * modules/uniconv/u16-strconv-to-enc-tests
59035         (test_u16_strconv_to_enc_LDADD): Likewise.
59036         * modules/uniconv/u32-conv-from-enc-tests
59037         (test_u32_conv_from_enc_LDADD): Likewise.
59038         * modules/uniconv/u32-conv-to-enc-tests
59039         (test_u32_conv_to_enc_LDADD): Likewise.
59040         * modules/uniconv/u32-strconv-from-enc-tests
59041         (test_u32_strconv_from_enc_LDADD): Likewise.
59042         * modules/uniconv/u32-strconv-to-enc-tests
59043         (test_u32_strconv_to_enc_LDADD): Likewise.
59044         * modules/uniconv/u8-conv-from-enc-tests
59045         (test_u8_conv_from_enc_LDADD): Likewise.
59046         * modules/uniconv/u8-conv-to-enc-tests
59047         (test_u8_conv_to_enc_LDADD): Likewise.
59048         * modules/uniconv/u8-strconv-from-enc-tests
59049         (test_u8_strconv_from_enc_LDADD): Likewise.
59050         * modules/uniconv/u8-strconv-to-enc-tests
59051         (test_u8_strconv_to_enc_LDADD): Likewise.
59052
59053 2007-10-22  Bruno Haible  <bruno@clisp.org>
59054
59055         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
59056         size.
59057
59058 2007-10-22  Eric Blake  <ebb9@byu.net>
59059
59060         Tweak x*printf documentation.
59061         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
59062         variable name and comments.
59063         Suggested by Bruno Haible.
59064
59065 2007-10-22  Bruno Haible  <bruno@clisp.org>
59066
59067         * lib/acl.c (copy_acl): Fix file name in comment.
59068
59069 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59070
59071         Fix Tru64 problem with stdbool.h.
59072         * lib/stdbool.in.h (false, true):
59073         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
59074         Don't declare as an enum in this situation; it runs afoul of Tru64.
59075         Problem reported by Steven M. Schweda in
59076         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
59077
59078 2007-10-22  Eric Blake  <ebb9@byu.net>
59079
59080         Also wrap vf?printf.
59081         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
59082         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
59083         (xvprintf, xvfprintf): New functions.
59084
59085 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59086
59087         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
59088         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
59089
59090         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
59091         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
59092
59093 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59094
59095         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
59096         by Bruno Haible.
59097
59098 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59099
59100         * lib/getloadavg.c
59101         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
59102         Undef `sys' after including sys/table.h, for Tru64 4.0D.
59103
59104         * tests/test-i-ring.c: Work for C89.
59105
59106 2007-10-22  Bruno Haible  <bruno@clisp.org>
59107
59108         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
59109         -1u, in preprocessor expression, so that we don't test for the bug
59110         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
59111         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
59112
59113 2007-10-22  Eric Blake  <ebb9@byu.net>
59114
59115         * tests/test-yesno.sh: Silence stderr during test.
59116
59117 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59118
59119         * modules/crypto/gc-camellia: New file.
59120
59121         * m4/gc-camellia.m4: New file.
59122
59123         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
59124
59125         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
59126
59127 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59128
59129         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
59130         --help to stdout.  Reported by sms@antinode.org (Steven
59131         M. Schweda).
59132
59133 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59134
59135         * users.txt: Fix link to libksba.
59136
59137 2007-10-21  Ben Pfaff  <blp@gnu.org>
59138
59139         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
59140         round.c roundf implementation that depends on floorf and ceilf to
59141         be tested unconditionally.
59142
59143 2007-10-21  Ben Pfaff  <blp@gnu.org>
59144
59145         * m4/check-libm-func.m4: Removed.
59146         * m4/check-math-lib.m4: New file.
59147         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
59148         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
59149         definition and lack of AC_LIBOBJ([roundf]).
59150         * m4/roundl.m4: Ditto, and similarly for roundl.
59151         * modules/round: Reference new m4 file.
59152         * modules/roundf: Ditto.
59153         * modules/roundl: Ditto.
59154         * tests/test-round2.c (main): Use ROUND instead of round.
59155         Bug report from Bruno Haible.
59156
59157 2007-10-21  Bruno Haible  <bruno@clisp.org>
59158
59159         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
59160         context.
59161
59162 2007-10-21  Bruno Haible  <bruno@clisp.org>
59163
59164         * tests/test-wcwidth.c (main): Allow negative result for some control
59165         characters.
59166
59167         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
59168         Needed on OSF/1 5.1.
59169
59170 2007-10-21  Bruno Haible  <bruno@clisp.org>
59171
59172         * tests/test-floorf1.c: Include isnanf.h.
59173         (main): Use isnanf() instead of isnan().
59174         * tests/test-ceilf1.c: Include isnanf.h.
59175         (main): Use isnanf() instead of isnan().
59176         * tests/test-truncf1.c: Include isnanf.h.
59177         (main): Use isnanf() instead of isnan().
59178         * tests/test-roundf1.c: Include isnanf.h.
59179         (main): Use isnanf() instead of isnan().
59180
59181 2007-10-21  Eric Blake  <ebb9@byu.net>
59182
59183         * users.txt: Update URL for m4.
59184
59185 2007-10-21  Bruno Haible  <bruno@clisp.org>
59186
59187         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
59188
59189 2007-10-21  Bruno Haible  <bruno@clisp.org>
59190
59191         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
59192         Git's management files if the CVS files are not present.
59193
59194 2007-10-20  Bruno Haible  <bruno@clisp.org>
59195
59196         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
59197         gcc-3.4.x.
59198
59199 2007-10-20  Ben Pfaff  <blp@gnu.org>
59200
59201         * lib/math.in.h: Declare round, roundf, roundl if we are providing
59202         implementations.
59203         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
59204         * lib/round.c: New file.
59205         * lib/roundf.c: New file.
59206         * lib/roundl.c: New file.
59207         * m4/round.m4: New file.
59208         * m4/roundf.m4: New file.
59209         * m4/roundl.m4: New file.
59210         * m4/check-libm-func-m4: New file.
59211         * modules/math: Replace round, roundf, roundl related @VARS@ in
59212         math.in.h.
59213         * modules/round: New file.
59214         * modules/round-tests: New file.
59215         * modules/roundf: New file.
59216         * modules/roundf-tests: New file.
59217         * modules/roundl: New file.
59218         * modules/roundl-tests: New file.
59219         * tests/test-round1.c: New file.
59220         * tests/test-round2.c: New file.
59221         * tests/test-roundf1.c: New file.
59222         * tests/test-roundf2.c: New file.
59223         * tests/test-roundl.c: New file.
59224         * doc/functions/round.texi: Mention round module.
59225         * doc/functions/roundf.texi: Mention roundf module.
59226         * doc/functions/roundl.texi: Mention roundl module.
59227         * MODULES.html.sh: Mention new modules.
59228         Thanks to Bruno Haible for suggestions.
59229
59230 2007-10-20  Jim Meyering  <meyering@redhat.com>
59231
59232         * lib/xprintf.c: Include <config.h> unconditionally.
59233
59234         Change xprintf's license to GPL.
59235         * modules/xprintf (License): s/LGPL/GPL/, since this module
59236         depends on modules (exit and exitfail) which are GPL.
59237         Suggestion from Bruno Haible.
59238
59239         xprintf fixes.
59240         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
59241         Use a clearer diagnostic.
59242         Patch from Bruno Haible.
59243
59244 2007-10-20  Bruno Haible  <bruno@clisp.org>
59245
59246         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
59247         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
59248         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59249
59250 2007-10-20  Bruno Haible  <bruno@clisp.org>
59251
59252         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
59253         precision in the comparison result > x - 1 or similar.
59254         * tests/test-ceilf2.c (correct_result_p): Likewise.
59255         * tests/test-truncf2.c (correct_result_p): Likewise.
59256         * tests/test-trunc2.c (correct_result_p): Likewise.
59257         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59258
59259 2007-10-20  Bruno Haible  <bruno@clisp.org>
59260
59261         * modules/ceil: New file.
59262         * m4/ceil.m4: New file.
59263         * doc/functions/ceil.texi: Mention the 'ceil' module.
59264
59265 2007-10-20  Bruno Haible  <bruno@clisp.org>
59266
59267         * modules/floor: New file.
59268         * m4/floor.m4: New file.
59269         * doc/functions/floor.texi: Mention the 'floor' module.
59270
59271 2007-10-20  Bruno Haible  <bruno@clisp.org>
59272
59273         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
59274         of %a.
59275         * modules/floorf-tests (Depends-on): Likewise.
59276         * modules/truncf-tests (Depends-on): Likewise.
59277         * modules/trunc-tests (Depends-on): Likewise.
59278         Reported by Ben Pfaff.
59279
59280 2007-10-19  Jim Meyering  <meyering@redhat.com>
59281
59282         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
59283         Don't bother testing specific errno values.  Just test ferror.
59284
59285         New module: xprintf
59286         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
59287
59288 2007-10-19  Bruno Haible  <bruno@clisp.org>
59289
59290         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
59291         syntax.
59292         * modules/javaexec (Makefile.am): Likewise.
59293         * modules/relocatable-prog (Makefile.am): Likewise.
59294         Suggested by Jim Meyering.
59295
59296 2007-10-18  Bruno Haible  <bruno@clisp.org>
59297
59298         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
59299         Reported by Jim Meyering.
59300
59301 2007-10-18  Eric Blake  <ebb9@byu.net>
59302
59303         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
59304
59305 2007-10-18  Bruno Haible  <bruno@clisp.org>
59306
59307         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
59308         the format string into writable memory. Needed in Fortify conditions.
59309
59310 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
59311             Bruno Haible  <bruno@clisp.org>
59312
59313         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
59314         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
59315         * modules/trim (Depends-on): Add mbchar.
59316         (configure.ac): Add gl_FUNC_MBRTOWC.
59317         (Makefile.am): Augment lib_SOURCES.
59318
59319 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59320
59321         Modify glob.c to use fstatat and dirfd, to simplify it.
59322         Suggested by Eric Blake.
59323         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
59324         Don't include <stdbool.h>; not used.
59325         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
59326         (link_exists_p): Simplify implementation, since we can now assume
59327         dirfd and fstatat.
59328         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
59329
59330 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59331
59332         * gnulib-tool (func_get_dependencies): Fix sed script to
59333         match only tests.
59334
59335 2007-10-17  Bruno Haible  <bruno@clisp.org>
59336
59337         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
59338         allow locale names without encoding suffix.
59339         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59340         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59341
59342 2007-10-16  Bruno Haible  <bruno@clisp.org>
59343
59344         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
59345         * lib/getgroups.c (getgroups): Likewise.
59346         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
59347
59348 2007-10-16  Bruno Haible  <bruno@clisp.org>
59349
59350         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
59351         * modules/malloc-posix (License): Likewise.
59352         * modules/realloc-posix (License): Likewise.
59353         * modules/calloc-posix (License): Likewise.
59354         * modules/intprops (License): Change from GPL to LGPL, with
59355         Paul Eggert's approval.
59356
59357 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59358
59359         Merge glibc changes into lib/glob.c.
59360
59361         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
59362         2007-10-15 04:59:03 UTC.  Here are the changes:
59363
59364         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
59365
59366         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
59367
59368         * lib/glob.c: Add some branch prediction throughout.
59369
59370         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
59371
59372         [BZ #5103]
59373         * lib/glob.c (glob): Recognize patterns starting \/.
59374
59375         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
59376
59377         [BZ #3996]
59378         * lib/glob.c (attribute_hidden): Define if not defined.
59379         (glob): Unescape dirname, filename or username when needed and not
59380         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
59381         is NULL.  Handle unescaped [ in pattern without closing ].
59382         Don't pass GLOB_CHECK down to recursive glob for directories.
59383         (__glob_pattern_type): New function.
59384         (__glob_pattern_p): Implement using __glob_pattern_type.
59385         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
59386         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
59387         Remove unreachable code.
59388
59389         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
59390
59391         * lib/glob.c (glob_in_dir): Add some comments and asserts to
59392         explain why there are no leaks.
59393
59394         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
59395
59396         [BZ #3253]
59397         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
59398         time, rather allocate increasingly bigger arrays of pointers, if
59399         possible with alloca, if too large with malloc.
59400
59401 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59402
59403         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
59404         Problem reported by H.Merijn Brand in
59405         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
59406         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
59407         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
59408
59409 2007-10-15  Bruno Haible  <bruno@clisp.org>
59410
59411         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
59412         with explicit rpl_ prefix.
59413         * lib/fopen.c (fopen): Likewise.
59414         * lib/freopen.c (freopen): Likewise.
59415         * lib/iconv.c (iconv): Likewise.
59416         * lib/iconv_close.c (iconv_close): Likewise.
59417
59418 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59419
59420         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
59421
59422 2007-10-15  Bruno Haible  <bruno@clisp.org>
59423
59424         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
59425         <stddef.h> instead of <stdlib.h> since we only need NULL.
59426         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59427
59428 2007-10-15  Bruno Haible  <bruno@clisp.org>
59429
59430         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
59431         Replace paragraph talking about LIBOBJS.
59432         Reported by Colin Watson <cjwatson@debian.org>.
59433
59434 2007-10-15  Bruno Haible  <bruno@clisp.org>
59435
59436         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
59437         <stdlib.h> before using NULL.
59438
59439 2007-10-15  Simon Josefsson  <simon@josefsson.org>
59440
59441         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
59442         Reported by Albert Chin <china@thewrittenword.com>.
59443
59444 2007-10-14  Bruno Haible  <bruno@clisp.org>
59445
59446         * modules/iconv_open-utf-tests: New file.
59447         * tests/test-iconv-utf.c: New file.
59448
59449         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
59450         * modules/iconv_open-utf: New file.
59451         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
59452         (iconv, iconv_close): New declarations.
59453         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
59454         be defined.
59455         (iconv_open): Add special handling of conversion between UTF-8 and
59456         UTF-{16,32}{BE,LE}.
59457         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
59458         * lib/iconv_close.c: New file.
59459         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
59460         gl_FUNC_ICONV_OPEN.
59461         (gl_FUNC_ICONV_OPEN): Use it.
59462         (gl_FUNC_ICONV_OPEN_UTF): New macro.
59463         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
59464         and REPLACE_ICONV_UTF.
59465         * modules/iconv_open (Depends-on): Add c-strcase.
59466         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
59467         ICONV_CONST.
59468         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
59469
59470 2007-10-13  Albert Chin  <china@thewrittenword.com>
59471             Bruno Haible  <bruno@clisp.org>
59472
59473         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
59474         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
59475
59476 2007-10-13  Bruno Haible  <bruno@clisp.org>
59477
59478         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
59479         defined, use the ISO C99 inline semantics.
59480         * lib/argp.h (ARGP_EI): Likewise.
59481
59482 2007-10-13  Bruno Haible  <bruno@clisp.org>
59483
59484         Handle 'inline' change in gcc 4.3.0.
59485         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
59486         argp_fmtstream_write, argp_fmtstream_set_lmargin,
59487         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
59488         argp_fmtstream_point): Disable 'extern' declaration if the function
59489         definition is going to be provided inline.
59490         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
59491         semantics, not the ISO C99 inline semantics.
59492         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
59493         'extern' declaration if the function definition is going to be provided
59494         inline.
59495         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
59496         the GNU C inline semantics, not the ISO C99 inline semantics. With
59497         GCC 4.2, avoid a warning.
59498
59499 2007-10-13  Bruno Haible  <bruno@clisp.org>
59500
59501         * lib/freading.h (freading): Enable the use of __freading for
59502         glibc >= 2.7.
59503         * lib/freading.c (freading): Likewise.
59504
59505 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59506
59507         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
59508         "warning: C99 inline functions are not supported; using GNU89".
59509
59510 2007-10-12  Bruno Haible  <bruno@clisp.org>
59511
59512         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
59513         of 2.
59514         * tests/test-ceilf2.c: New file.
59515         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
59516
59517         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
59518         * modules/ceilf-tests: Update.
59519
59520 2007-10-12  Bruno Haible  <bruno@clisp.org>
59521
59522         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
59523         of 2.
59524         * tests/test-floorf2.c: New file.
59525         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
59526
59527         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
59528         * modules/floorf-tests: Update.
59529
59530 2007-10-12  Bruno Haible  <bruno@clisp.org>
59531
59532         * tests/test-trunc2.c: New file.
59533         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
59534
59535         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
59536         * modules/trunc-tests: Update.
59537
59538 2007-10-12  Bruno Haible  <bruno@clisp.org>
59539
59540         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
59541         of 2.
59542         * tests/test-truncf2.c: New file.
59543         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
59544
59545         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
59546         * modules/truncf-tests: Update.
59547
59548 2007-10-11  Eric Blake  <ebb9@byu.net>
59549
59550         Don't claim strerror is broken on Interix.
59551         * doc/functions/strerror.texi (strerror): Known broken systems are
59552         now Solaris 8, and not Interix.
59553         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
59554         Interix on cross-compile.
59555         Reported by Martin Koeppe in
59556         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
59557
59558 2007-10-11  Bruno Haible  <bruno@clisp.org>
59559
59560         * modules/i-ring-tests: New file.
59561         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
59562         instead of assert.
59563
59564 2007-10-11  Bruno Haible  <bruno@clisp.org>
59565
59566         * modules/filenamecat-tests: New file.
59567         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
59568         * lib/filenamecat.c: Remove test code.
59569
59570 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59571
59572         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
59573
59574         * lib/strerror.c: Include <string.h> always, to test interface,
59575         and to remove the need for the dummy.
59576         Include intprops.h to compute width instead of doing it ourselves
59577         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
59578         (strerror): Define it to return NULL if there's no system strerror.
59579         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
59580         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
59581         ancient pre-strerror Unix systems well any more.  Saying "unknown
59582         system error" is enough.
59583         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
59584         simpler strerror.c implementation.
59585         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
59586         Simplify the tests to reflect the simpler strerror implementation.
59587         * modules/strerror (Depends-on): Add intprops.
59588
59589 2007-10-09  Eric Blake  <ebb9@byu.net>
59590
59591         Silence test-fpending.
59592         * modules/fpending-tests (Files): Add wrapper script.
59593         * tests/test-fpending.sh: New file.
59594
59595 2007-10-09  Bruno Haible  <bruno@clisp.org>
59596
59597         * MODULES.html.sh (func_module): Don't create a hyperlink for
59598         function names like 'printf_frexp'.
59599         (Misc): Add crc, memxor.
59600         (Characteristics of floating types): New section.
59601         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
59602         isnanf-nolibm, signbit, trunc, truncf, truncl.
59603         (Enhancements for ISO C 99 functions): New subsection Input/output.
59604         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
59605         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
59606         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
59607         (Compatibility checks for POSIX:2001 functions): Add clock-time.
59608         (Enhancements for POSIX:2001 functions): Add chdir-long.
59609         (File system functions): Add areadlink, chdir-safer, read-file.
59610         Remove cycle-check.
59611         (File system as inode set): New section.
59612         (Date and time): Add gethrxtime.
59613         (Multithreading): Add openmp.
59614         (Internationalization functions): Add localename.
59615         (Unicode string functions): Add unistr/u*-mbsnlen.
59616         (Support for maintaining and releasing projects): Add git-version-gen.
59617         (Lone files): Remove directories.
59618
59619 2007-10-08  Ben Pfaff  <blp@gnu.org>
59620
59621         * lib/xmalloca.h: Fix typo in comment.
59622
59623 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59624
59625         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
59626         when avoiding problems with integer overflow.  Use a portable test
59627         instead.
59628
59629 2007-10-08  Simon Josefsson  <simon@josefsson.org>
59630
59631         * modules/dummy (License): Change to LGPLv2+.
59632         * modules/float (License): Likewise
59633         * modules/realloc (License): Likewise
59634         * modules/stdlib (License): Likewise
59635
59636 2007-10-07  Bruno Haible  <bruno@clisp.org>
59637
59638         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
59639         * floor.c (TWO_MANT_DIG): Likewise.
59640         * ceil.c (TWO_MANT_DIG): Likewise.
59641         Reported by Ben Pfaff.
59642
59643 2007-10-07  Bruno Haible  <bruno@clisp.org>
59644
59645         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
59646         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
59647         * lib/frexp.c (FUNC): Likewise.
59648         * lib/printf-frexp.h (printf_frexp): Likewise.
59649         * lib/printf-frexpl.h (printf_frexpl): Likewise.
59650         * lib/printf-frexp.c (FUNC): Likewise.
59651         Suggested by Jim Meyering.
59652
59653 2007-10-07  Jim Meyering  <meyering@redhat.com>
59654
59655         Make xnanosleep's integer overflow test more robust.
59656         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
59657         so that gcc-4.3.0 doesn't optimize away this test for overflow.
59658
59659 2007-10-07  Bruno Haible  <bruno@clisp.org>
59660
59661         * NEWS: Mention the license change.
59662
59663         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
59664         abbreviations in the modules files.
59665
59666         Change copyright notice from GPLv2+ to GPLv3+.
59667         * README: Change copyright notice.
59668         * MODULES.html.sh: Likewise.
59669         * build-aux/bootstrap.conf: Likewise.
59670         * build-aux/config.libpath: Likewise.
59671         * build-aux/csharpcomp.sh.in: Likewise.
59672         * build-aux/csharpexec.sh.in: Likewise.
59673         * build-aux/install-reloc: Likewise.
59674         * build-aux/javacomp.sh.in: Likewise.
59675         * build-aux/javaexec.sh.in: Likewise.
59676         * build-aux/ldd.sh.in: Likewise.
59677         * build-aux/reloc-ldflags: Likewise.
59678         * build-aux/relocatable.sh.in: Likewise.
59679         * build-aux/x-to-1.in: Likewise.
59680         * check-module: Likewise.
59681         * config/srclistvars.sh: Likewise.
59682         * gnulib-tool: Likewise.
59683         * lib/acl-internal.h: Likewise.
59684         * lib/acl.c: Likewise.
59685         * lib/acl.h: Likewise.
59686         * lib/acl_entries.c: Likewise.
59687         * lib/areadlink-with-size.c: Likewise.
59688         * lib/areadlink.c: Likewise.
59689         * lib/areadlink.h: Likewise.
59690         * lib/argmatch.c: Likewise.
59691         * lib/argmatch.h: Likewise.
59692         * lib/argp-ba.c: Likewise.
59693         * lib/argp-eexst.c: Likewise.
59694         * lib/argp-fmtstream.c: Likewise.
59695         * lib/argp-fmtstream.h: Likewise.
59696         * lib/argp-fs-xinl.c: Likewise.
59697         * lib/argp-help.c: Likewise.
59698         * lib/argp-namefrob.h: Likewise.
59699         * lib/argp-parse.c: Likewise.
59700         * lib/argp-pin.c: Likewise.
59701         * lib/argp-pv.c: Likewise.
59702         * lib/argp-pvh.c: Likewise.
59703         * lib/argp-xinl.c: Likewise.
59704         * lib/argp.h: Likewise.
59705         * lib/at-func.c: Likewise.
59706         * lib/atanl.c: Likewise.
59707         * lib/backupfile.c: Likewise.
59708         * lib/backupfile.h: Likewise.
59709         * lib/basename.c: Likewise.
59710         * lib/binary-io.h: Likewise.
59711         * lib/byteswap.in.h: Likewise.
59712         * lib/c-stack.c: Likewise.
59713         * lib/c-stack.h: Likewise.
59714         * lib/c-strcasestr.c: Likewise.
59715         * lib/c-strcasestr.h: Likewise.
59716         * lib/c-strstr.c: Likewise.
59717         * lib/c-strstr.h: Likewise.
59718         * lib/c-strtod.c: Likewise.
59719         * lib/calloc.c: Likewise.
59720         * lib/canon-host.c: Likewise.
59721         * lib/canon-host.h: Likewise.
59722         * lib/canonicalize-lgpl.c: Likewise.
59723         * lib/canonicalize.c: Likewise.
59724         * lib/canonicalize.h: Likewise.
59725         * lib/ceil.c: Likewise.
59726         * lib/ceilf.c: Likewise.
59727         * lib/ceill.c: Likewise.
59728         * lib/chdir-long.c: Likewise.
59729         * lib/chdir-long.h: Likewise.
59730         * lib/chdir-safer.c: Likewise.
59731         * lib/chdir-safer.h: Likewise.
59732         * lib/chown.c: Likewise.
59733         * lib/classpath.c: Likewise.
59734         * lib/classpath.h: Likewise.
59735         * lib/clean-temp.c: Likewise.
59736         * lib/clean-temp.h: Likewise.
59737         * lib/cloexec.c: Likewise.
59738         * lib/close-stream.c: Likewise.
59739         * lib/closein.c: Likewise.
59740         * lib/closein.h: Likewise.
59741         * lib/closeout.c: Likewise.
59742         * lib/closeout.h: Likewise.
59743         * lib/concat-filename.c: Likewise.
59744         * lib/copy-file.c: Likewise.
59745         * lib/copy-file.h: Likewise.
59746         * lib/count-one-bits.h: Likewise.
59747         * lib/crc.c: Likewise.
59748         * lib/crc.h: Likewise.
59749         * lib/creat-safer.c: Likewise.
59750         * lib/csharpcomp.c: Likewise.
59751         * lib/csharpcomp.h: Likewise.
59752         * lib/csharpexec.c: Likewise.
59753         * lib/csharpexec.h: Likewise.
59754         * lib/cycle-check.c: Likewise.
59755         * lib/cycle-check.h: Likewise.
59756         * lib/diacrit.c: Likewise.
59757         * lib/diacrit.h: Likewise.
59758         * lib/diffseq.h: Likewise.
59759         * lib/dirchownmod.c: Likewise.
59760         * lib/dirent.in.h: Likewise.
59761         * lib/dirfd.c: Likewise.
59762         * lib/dirfd.h: Likewise.
59763         * lib/dirname.c: Likewise.
59764         * lib/dirname.h: Likewise.
59765         * lib/dummy.c: Likewise.
59766         * lib/dup-safer.c: Likewise.
59767         * lib/dup2.c: Likewise.
59768         * lib/eealloc.h: Likewise.
59769         * lib/error.c: Likewise.
59770         * lib/error.h: Likewise.
59771         * lib/euidaccess.c: Likewise.
59772         * lib/exclude.c: Likewise.
59773         * lib/exclude.h: Likewise.
59774         * lib/execute.c: Likewise.
59775         * lib/execute.h: Likewise.
59776         * lib/exitfail.c: Likewise.
59777         * lib/exitfail.h: Likewise.
59778         * lib/expl.c: Likewise.
59779         * lib/fatal-signal.c: Likewise.
59780         * lib/fatal-signal.h: Likewise.
59781         * lib/fbufmode.c: Likewise.
59782         * lib/fbufmode.h: Likewise.
59783         * lib/fchdir.c: Likewise.
59784         * lib/fchmodat.c: Likewise.
59785         * lib/fchownat.c: Likewise.
59786         * lib/fcntl--.h: Likewise.
59787         * lib/fcntl-safer.h: Likewise.
59788         * lib/fcntl.in.h: Likewise.
59789         * lib/fd-safer.c: Likewise.
59790         * lib/fflush.c: Likewise.
59791         * lib/file-has-acl.c: Likewise.
59792         * lib/file-set.c: Likewise.
59793         * lib/file-type.c: Likewise.
59794         * lib/file-type.h: Likewise.
59795         * lib/fileblocks.c: Likewise.
59796         * lib/filemode.c: Likewise.
59797         * lib/filemode.h: Likewise.
59798         * lib/filename.h: Likewise.
59799         * lib/filenamecat.c: Likewise.
59800         * lib/filenamecat.h: Likewise.
59801         * lib/findprog.c: Likewise.
59802         * lib/findprog.h: Likewise.
59803         * lib/float.in.h: Likewise.
59804         * lib/floor.c: Likewise.
59805         * lib/floorf.c: Likewise.
59806         * lib/floorl.c: Likewise.
59807         * lib/fopen-safer.c: Likewise.
59808         * lib/fopen.c: Likewise.
59809         * lib/fpending.c: Likewise.
59810         * lib/fpending.h: Likewise.
59811         * lib/fprintf.c: Likewise.
59812         * lib/fprintftime.h: Likewise.
59813         * lib/fpucw.h: Likewise.
59814         * lib/fpurge.c: Likewise.
59815         * lib/fpurge.h: Likewise.
59816         * lib/freadable.c: Likewise.
59817         * lib/freadable.h: Likewise.
59818         * lib/freadahead.c: Likewise.
59819         * lib/freadahead.h: Likewise.
59820         * lib/freading.c: Likewise.
59821         * lib/freading.h: Likewise.
59822         * lib/free.c: Likewise.
59823         * lib/freopen.c: Likewise.
59824         * lib/frexp.c: Likewise.
59825         * lib/frexpl.c: Likewise.
59826         * lib/fseek.c: Likewise.
59827         * lib/fseterr.c: Likewise.
59828         * lib/fseterr.h: Likewise.
59829         * lib/fstatat.c: Likewise.
59830         * lib/fstrcmp.c: Likewise.
59831         * lib/fstrcmp.h: Likewise.
59832         * lib/fsusage.c: Likewise.
59833         * lib/fsusage.h: Likewise.
59834         * lib/ftell.c: Likewise.
59835         * lib/ftello.c: Likewise.
59836         * lib/fts-cycle.c: Likewise.
59837         * lib/fts.c: Likewise.
59838         * lib/fts_.h: Likewise.
59839         * lib/full-read.c: Likewise.
59840         * lib/full-read.h: Likewise.
59841         * lib/full-write.c: Likewise.
59842         * lib/full-write.h: Likewise.
59843         * lib/fwritable.c: Likewise.
59844         * lib/fwritable.h: Likewise.
59845         * lib/fwriteerror.c: Likewise.
59846         * lib/fwriteerror.h: Likewise.
59847         * lib/fwriting.c: Likewise.
59848         * lib/fwriting.h: Likewise.
59849         * lib/gcd.c: Likewise.
59850         * lib/gcd.h: Likewise.
59851         * lib/getcwd.c: Likewise.
59852         * lib/getdate.h: Likewise.
59853         * lib/getdate.y: Likewise.
59854         * lib/getdomainname.c: Likewise.
59855         * lib/getdomainname.h: Likewise.
59856         * lib/getgroups.c: Likewise.
59857         * lib/gethostname.c: Likewise.
59858         * lib/gethrxtime.c: Likewise.
59859         * lib/gethrxtime.h: Likewise.
59860         * lib/getloadavg.c: Likewise.
59861         * lib/getndelim2.c: Likewise.
59862         * lib/getndelim2.h: Likewise.
59863         * lib/getnline.c: Likewise.
59864         * lib/getnline.h: Likewise.
59865         * lib/getopt.c: Likewise.
59866         * lib/getopt.in.h: Likewise.
59867         * lib/getopt1.c: Likewise.
59868         * lib/getopt_int.h: Likewise.
59869         * lib/getpagesize.h: Likewise.
59870         * lib/getsubopt.c: Likewise.
59871         * lib/gettime.c: Likewise.
59872         * lib/getugroups.c: Likewise.
59873         * lib/getugroups.h: Likewise.
59874         * lib/getusershell.c: Likewise.
59875         * lib/gl_anyavltree_list1.h: Likewise.
59876         * lib/gl_anyavltree_list2.h: Likewise.
59877         * lib/gl_anyhash_list1.h: Likewise.
59878         * lib/gl_anyhash_list2.h: Likewise.
59879         * lib/gl_anylinked_list1.h: Likewise.
59880         * lib/gl_anylinked_list2.h: Likewise.
59881         * lib/gl_anyrbtree_list1.h: Likewise.
59882         * lib/gl_anyrbtree_list2.h: Likewise.
59883         * lib/gl_anytree_list1.h: Likewise.
59884         * lib/gl_anytree_list2.h: Likewise.
59885         * lib/gl_anytree_oset.h: Likewise.
59886         * lib/gl_anytreehash_list1.h: Likewise.
59887         * lib/gl_anytreehash_list2.h: Likewise.
59888         * lib/gl_array_list.c: Likewise.
59889         * lib/gl_array_list.h: Likewise.
59890         * lib/gl_array_oset.c: Likewise.
59891         * lib/gl_array_oset.h: Likewise.
59892         * lib/gl_avltree_list.c: Likewise.
59893         * lib/gl_avltree_list.h: Likewise.
59894         * lib/gl_avltree_oset.c: Likewise.
59895         * lib/gl_avltree_oset.h: Likewise.
59896         * lib/gl_avltreehash_list.c: Likewise.
59897         * lib/gl_avltreehash_list.h: Likewise.
59898         * lib/gl_carray_list.c: Likewise.
59899         * lib/gl_carray_list.h: Likewise.
59900         * lib/gl_linked_list.c: Likewise.
59901         * lib/gl_linked_list.h: Likewise.
59902         * lib/gl_linkedhash_list.c: Likewise.
59903         * lib/gl_linkedhash_list.h: Likewise.
59904         * lib/gl_list.c: Likewise.
59905         * lib/gl_list.h: Likewise.
59906         * lib/gl_oset.c: Likewise.
59907         * lib/gl_oset.h: Likewise.
59908         * lib/gl_rbtree_list.c: Likewise.
59909         * lib/gl_rbtree_list.h: Likewise.
59910         * lib/gl_rbtree_oset.c: Likewise.
59911         * lib/gl_rbtree_oset.h: Likewise.
59912         * lib/gl_rbtreehash_list.c: Likewise.
59913         * lib/gl_rbtreehash_list.h: Likewise.
59914         * lib/gl_sublist.c: Likewise.
59915         * lib/gl_sublist.h: Likewise.
59916         * lib/group-member.c: Likewise.
59917         * lib/group-member.h: Likewise.
59918         * lib/hard-locale.c: Likewise.
59919         * lib/hard-locale.h: Likewise.
59920         * lib/hash-pjw.c: Likewise.
59921         * lib/hash-pjw.h: Likewise.
59922         * lib/hash-triple.c: Likewise.
59923         * lib/hash.c: Likewise.
59924         * lib/hash.h: Likewise.
59925         * lib/human.c: Likewise.
59926         * lib/human.h: Likewise.
59927         * lib/i-ring.c: Likewise.
59928         * lib/i-ring.h: Likewise.
59929         * lib/idcache.c: Likewise.
59930         * lib/imaxabs.c: Likewise.
59931         * lib/imaxdiv.c: Likewise.
59932         * lib/inet_pton.c: Likewise.
59933         * lib/inet_pton.h: Likewise.
59934         * lib/intprops.h: Likewise.
59935         * lib/inttostr.c: Likewise.
59936         * lib/inttostr.h: Likewise.
59937         * lib/inttypes.in.h: Likewise.
59938         * lib/isapipe.c: Likewise.
59939         * lib/isdir.c: Likewise.
59940         * lib/isnan.c: Likewise.
59941         * lib/isnan.h: Likewise.
59942         * lib/isnanf.c: Likewise.
59943         * lib/isnanf.h: Likewise.
59944         * lib/isnanl-nolibm.h: Likewise.
59945         * lib/isnanl.c: Likewise.
59946         * lib/isnanl.h: Likewise.
59947         * lib/javacomp.c: Likewise.
59948         * lib/javacomp.h: Likewise.
59949         * lib/javaexec.c: Likewise.
59950         * lib/javaexec.h: Likewise.
59951         * lib/javaversion.c: Likewise.
59952         * lib/javaversion.h: Likewise.
59953         * lib/javaversion.java: Likewise.
59954         * lib/lbrkprop.h: Likewise.
59955         * lib/lchmod.h: Likewise.
59956         * lib/lchown.c: Likewise.
59957         * lib/ldexpl.c: Likewise.
59958         * lib/linebreak.c: Likewise.
59959         * lib/linebreak.h: Likewise.
59960         * lib/linebuffer.c: Likewise.
59961         * lib/linebuffer.h: Likewise.
59962         * lib/locale.in.h: Likewise.
59963         * lib/logl.c: Likewise.
59964         * lib/long-options.c: Likewise.
59965         * lib/long-options.h: Likewise.
59966         * lib/lstat.c: Likewise.
59967         * lib/lstat.h: Likewise.
59968         * lib/math.in.h: Likewise.
59969         * lib/mbchar.c: Likewise.
59970         * lib/mbchar.h: Likewise.
59971         * lib/mbfile.h: Likewise.
59972         * lib/mbiter.h: Likewise.
59973         * lib/mbscasecmp.c: Likewise.
59974         * lib/mbscasestr.c: Likewise.
59975         * lib/mbschr.c: Likewise.
59976         * lib/mbscspn.c: Likewise.
59977         * lib/mbslen.c: Likewise.
59978         * lib/mbsncasecmp.c: Likewise.
59979         * lib/mbsnlen.c: Likewise.
59980         * lib/mbspbrk.c: Likewise.
59981         * lib/mbspcasecmp.c: Likewise.
59982         * lib/mbsrchr.c: Likewise.
59983         * lib/mbssep.c: Likewise.
59984         * lib/mbsspn.c: Likewise.
59985         * lib/mbsstr.c: Likewise.
59986         * lib/mbstok_r.c: Likewise.
59987         * lib/mbswidth.c: Likewise.
59988         * lib/mbswidth.h: Likewise.
59989         * lib/mbuiter.h: Likewise.
59990         * lib/memcasecmp.c: Likewise.
59991         * lib/memcasecmp.h: Likewise.
59992         * lib/memchr.c: Likewise.
59993         * lib/memcmp.c: Likewise.
59994         * lib/memcoll.c: Likewise.
59995         * lib/memcoll.h: Likewise.
59996         * lib/memcpy.c: Likewise.
59997         * lib/memrchr.c: Likewise.
59998         * lib/mkancesdirs.c: Likewise.
59999         * lib/mkdir-p.c: Likewise.
60000         * lib/mkdir-p.h: Likewise.
60001         * lib/mkdir.c: Likewise.
60002         * lib/mkdirat.c: Likewise.
60003         * lib/mkdtemp.c: Likewise.
60004         * lib/mkstemp-safer.c: Likewise.
60005         * lib/mkstemp.c: Likewise.
60006         * lib/modechange.c: Likewise.
60007         * lib/modechange.h: Likewise.
60008         * lib/mountlist.c: Likewise.
60009         * lib/mountlist.h: Likewise.
60010         * lib/mpsort.c: Likewise.
60011         * lib/nanosleep.c: Likewise.
60012         * lib/obstack.c: Likewise.
60013         * lib/obstack.h: Likewise.
60014         * lib/open-safer.c: Likewise.
60015         * lib/open.c: Likewise.
60016         * lib/openat-die.c: Likewise.
60017         * lib/openat-priv.h: Likewise.
60018         * lib/openat-proc.c: Likewise.
60019         * lib/openat.c: Likewise.
60020         * lib/openat.h: Likewise.
60021         * lib/pagealign_alloc.c: Likewise.
60022         * lib/pagealign_alloc.h: Likewise.
60023         * lib/physmem.c: Likewise.
60024         * lib/physmem.h: Likewise.
60025         * lib/pipe-safer.c: Likewise.
60026         * lib/pipe.c: Likewise.
60027         * lib/pipe.h: Likewise.
60028         * lib/posixtm.c: Likewise.
60029         * lib/posixtm.h: Likewise.
60030         * lib/posixver.c: Likewise.
60031         * lib/printf-frexp.c: Likewise.
60032         * lib/printf-frexp.h: Likewise.
60033         * lib/printf-frexpl.c: Likewise.
60034         * lib/printf-frexpl.h: Likewise.
60035         * lib/printf.c: Likewise.
60036         * lib/progname.c: Likewise.
60037         * lib/progname.h: Likewise.
60038         * lib/progreloc.c: Likewise.
60039         * lib/putenv.c: Likewise.
60040         * lib/quote.c: Likewise.
60041         * lib/quote.h: Likewise.
60042         * lib/quotearg.c: Likewise.
60043         * lib/quotearg.h: Likewise.
60044         * lib/raise.c: Likewise.
60045         * lib/readline.c: Likewise.
60046         * lib/readline.h: Likewise.
60047         * lib/readlink.c: Likewise.
60048         * lib/readtokens.c: Likewise.
60049         * lib/readtokens.h: Likewise.
60050         * lib/readtokens0.c: Likewise.
60051         * lib/readtokens0.h: Likewise.
60052         * lib/readutmp.c: Likewise.
60053         * lib/readutmp.h: Likewise.
60054         * lib/realloc.c: Likewise.
60055         * lib/relocwrapper.c: Likewise.
60056         * lib/rename-dest-slash.c: Likewise.
60057         * lib/rename.c: Likewise.
60058         * lib/rmdir.c: Likewise.
60059         * lib/rpmatch.c: Likewise.
60060         * lib/safe-read.c: Likewise.
60061         * lib/safe-read.h: Likewise.
60062         * lib/safe-write.c: Likewise.
60063         * lib/safe-write.h: Likewise.
60064         * lib/same-inode.h: Likewise.
60065         * lib/same.c: Likewise.
60066         * lib/same.h: Likewise.
60067         * lib/save-cwd.c: Likewise.
60068         * lib/save-cwd.h: Likewise.
60069         * lib/savedir.c: Likewise.
60070         * lib/savedir.h: Likewise.
60071         * lib/savewd.c: Likewise.
60072         * lib/savewd.h: Likewise.
60073         * lib/search.in.h: Likewise.
60074         * lib/setenv.c: Likewise.
60075         * lib/setenv.h: Likewise.
60076         * lib/settime.c: Likewise.
60077         * lib/sh-quote.c: Likewise.
60078         * lib/sh-quote.h: Likewise.
60079         * lib/sig2str.c: Likewise.
60080         * lib/sig2str.h: Likewise.
60081         * lib/signal.in.h: Likewise.
60082         * lib/signbitd.c: Likewise.
60083         * lib/signbitf.c: Likewise.
60084         * lib/signbitl.c: Likewise.
60085         * lib/sigprocmask.c: Likewise.
60086         * lib/sincosl.c: Likewise.
60087         * lib/sleep.c: Likewise.
60088         * lib/sprintf.c: Likewise.
60089         * lib/sqrtl.c: Likewise.
60090         * lib/stat-time.h: Likewise.
60091         * lib/stdio--.h: Likewise.
60092         * lib/stdio-safer.h: Likewise.
60093         * lib/stdlib--.h: Likewise.
60094         * lib/stdlib-safer.h: Likewise.
60095         * lib/stdlib.in.h: Likewise.
60096         * lib/stpcpy.c: Likewise.
60097         * lib/stpncpy.c: Likewise.
60098         * lib/strchrnul.c: Likewise.
60099         * lib/strcspn.c: Likewise.
60100         * lib/strerror.c: Likewise.
60101         * lib/strftime.c: Likewise.
60102         * lib/strftime.h: Likewise.
60103         * lib/striconveh.c: Likewise.
60104         * lib/striconveh.h: Likewise.
60105         * lib/striconveha.c: Likewise.
60106         * lib/striconveha.h: Likewise.
60107         * lib/stripslash.c: Likewise.
60108         * lib/strnlen1.c: Likewise.
60109         * lib/strnlen1.h: Likewise.
60110         * lib/strtod.c: Likewise.
60111         * lib/strtoimax.c: Likewise.
60112         * lib/strtok_r.c: Likewise.
60113         * lib/strtol.c: Likewise.
60114         * lib/strtoll.c: Likewise.
60115         * lib/strtoul.c: Likewise.
60116         * lib/strtoull.c: Likewise.
60117         * lib/sysexits.in.h: Likewise.
60118         * lib/tempname.c: Likewise.
60119         * lib/tempname.h: Likewise.
60120         * lib/timespec.h: Likewise.
60121         * lib/tls.c: Likewise.
60122         * lib/tls.h: Likewise.
60123         * lib/tmpdir.c: Likewise.
60124         * lib/tmpdir.h: Likewise.
60125         * lib/tmpfile-safer.c: Likewise.
60126         * lib/tmpfile.c: Likewise.
60127         * lib/trigl.c: Likewise.
60128         * lib/trigl.h: Likewise.
60129         * lib/trim.c: Likewise.
60130         * lib/trim.h: Likewise.
60131         * lib/trunc.c: Likewise.
60132         * lib/truncf.c: Likewise.
60133         * lib/truncl.c: Likewise.
60134         * lib/tsearch.c: Likewise.
60135         * lib/unicodeio.c: Likewise.
60136         * lib/unicodeio.h: Likewise.
60137         * lib/unistd--.h: Likewise.
60138         * lib/unistd-safer.h: Likewise.
60139         * lib/unistdio/ulc-fprintf.c: Likewise.
60140         * lib/unistdio/ulc-vfprintf.c: Likewise.
60141         * lib/unlinkdir.c: Likewise.
60142         * lib/unlinkdir.h: Likewise.
60143         * lib/unlocked-io.h: Likewise.
60144         * lib/unsetenv.c: Likewise.
60145         * lib/userspec.c: Likewise.
60146         * lib/utime.c: Likewise.
60147         * lib/utimecmp.c: Likewise.
60148         * lib/utimecmp.h: Likewise.
60149         * lib/utimens.c: Likewise.
60150         * lib/verify.h: Likewise.
60151         * lib/verror.c: Likewise.
60152         * lib/verror.h: Likewise.
60153         * lib/version-etc-fsf.c: Likewise.
60154         * lib/version-etc.c: Likewise.
60155         * lib/version-etc.h: Likewise.
60156         * lib/vfprintf.c: Likewise.
60157         * lib/vprintf.c: Likewise.
60158         * lib/vsprintf.c: Likewise.
60159         * lib/w32spawn.h: Likewise.
60160         * lib/wait-process.c: Likewise.
60161         * lib/wait-process.h: Likewise.
60162         * lib/wcwidth.c: Likewise.
60163         * lib/write-any-file.c: Likewise.
60164         * lib/xalloc-die.c: Likewise.
60165         * lib/xalloc.h: Likewise.
60166         * lib/xasprintf.c: Likewise.
60167         * lib/xgetcwd.c: Likewise.
60168         * lib/xgetcwd.h: Likewise.
60169         * lib/xgetdomainname.c: Likewise.
60170         * lib/xgetdomainname.h: Likewise.
60171         * lib/xgethostname.c: Likewise.
60172         * lib/xmalloc.c: Likewise.
60173         * lib/xmalloca.c: Likewise.
60174         * lib/xmalloca.h: Likewise.
60175         * lib/xmemcoll.c: Likewise.
60176         * lib/xnanosleep.c: Likewise.
60177         * lib/xreadlink.c: Likewise.
60178         * lib/xreadlink.h: Likewise.
60179         * lib/xsetenv.c: Likewise.
60180         * lib/xsetenv.h: Likewise.
60181         * lib/xstriconv.c: Likewise.
60182         * lib/xstriconv.h: Likewise.
60183         * lib/xstrndup.c: Likewise.
60184         * lib/xstrndup.h: Likewise.
60185         * lib/xstrtod.c: Likewise.
60186         * lib/xstrtod.h: Likewise.
60187         * lib/xstrtol-error.c: Likewise.
60188         * lib/xstrtol.c: Likewise.
60189         * lib/xstrtol.h: Likewise.
60190         * lib/xtime.h: Likewise.
60191         * lib/xvasprintf.c: Likewise.
60192         * lib/xvasprintf.h: Likewise.
60193         * lib/yesno.c: Likewise.
60194         * lib/yesno.h: Likewise.
60195         * posix-modules: Likewise.
60196         * tests/test-alloca-opt.c: Likewise.
60197         * tests/test-arcfour.c: Likewise.
60198         * tests/test-arctwo.c: Likewise.
60199         * tests/test-argmatch.c: Likewise.
60200         * tests/test-argp-2.sh: Likewise.
60201         * tests/test-argp.c: Likewise.
60202         * tests/test-arpa_inet.c: Likewise.
60203         * tests/test-array_list.c: Likewise.
60204         * tests/test-array_oset.c: Likewise.
60205         * tests/test-atexit.c: Likewise.
60206         * tests/test-avltree_list.c: Likewise.
60207         * tests/test-avltree_oset.c: Likewise.
60208         * tests/test-avltreehash_list.c: Likewise.
60209         * tests/test-base64.c: Likewise.
60210         * tests/test-binary-io.c: Likewise.
60211         * tests/test-byteswap.c: Likewise.
60212         * tests/test-c-ctype.c: Likewise.
60213         * tests/test-c-strcasecmp.c: Likewise.
60214         * tests/test-c-strcasestr.c: Likewise.
60215         * tests/test-c-strncasecmp.c: Likewise.
60216         * tests/test-c-strstr.c: Likewise.
60217         * tests/test-canonicalize-lgpl.c: Likewise.
60218         * tests/test-canonicalize.c: Likewise.
60219         * tests/test-carray_list.c: Likewise.
60220         * tests/test-ceilf.c: Likewise.
60221         * tests/test-ceill.c: Likewise.
60222         * tests/test-count-one-bits.c: Likewise.
60223         * tests/test-crc.c: Likewise.
60224         * tests/test-dirname.c: Likewise.
60225         * tests/test-fbufmode.c: Likewise.
60226         * tests/test-fcntl.c: Likewise.
60227         * tests/test-fflush.c: Likewise.
60228         * tests/test-floorf.c: Likewise.
60229         * tests/test-floorl.c: Likewise.
60230         * tests/test-fopen.c: Likewise.
60231         * tests/test-fprintf-posix.c: Likewise.
60232         * tests/test-fprintf-posix.h: Likewise.
60233         * tests/test-fpurge.c: Likewise.
60234         * tests/test-freadable.c: Likewise.
60235         * tests/test-freadahead.c: Likewise.
60236         * tests/test-freading.c: Likewise.
60237         * tests/test-freopen.c: Likewise.
60238         * tests/test-frexp.c: Likewise.
60239         * tests/test-frexpl.c: Likewise.
60240         * tests/test-fseek.c: Likewise.
60241         * tests/test-fseeko.c: Likewise.
60242         * tests/test-fseterr.c: Likewise.
60243         * tests/test-fstrcmp.c: Likewise.
60244         * tests/test-ftell.c: Likewise.
60245         * tests/test-ftello.c: Likewise.
60246         * tests/test-fwritable.c: Likewise.
60247         * tests/test-fwriting.c: Likewise.
60248         * tests/test-getaddrinfo.c: Likewise.
60249         * tests/test-getpass.c: Likewise.
60250         * tests/test-gettimeofday.c: Likewise.
60251         * tests/test-hmac-md5.c: Likewise.
60252         * tests/test-hmac-sha1.c: Likewise.
60253         * tests/test-iconv.c: Likewise.
60254         * tests/test-iconvme.c: Likewise.
60255         * tests/test-inttypes.c: Likewise.
60256         * tests/test-isnan.c: Likewise.
60257         * tests/test-isnanf.c: Likewise.
60258         * tests/test-isnanl-nolibm.c: Likewise.
60259         * tests/test-isnanl.c: Likewise.
60260         * tests/test-isnanl.h: Likewise.
60261         * tests/test-ldexpl.c: Likewise.
60262         * tests/test-linked_list.c: Likewise.
60263         * tests/test-linkedhash_list.c: Likewise.
60264         * tests/test-locale.c: Likewise.
60265         * tests/test-localename.c: Likewise.
60266         * tests/test-lock.c: Likewise.
60267         * tests/test-lseek.c: Likewise.
60268         * tests/test-malloca.c: Likewise.
60269         * tests/test-math.c: Likewise.
60270         * tests/test-mbscasecmp.c: Likewise.
60271         * tests/test-mbscasestr1.c: Likewise.
60272         * tests/test-mbscasestr2.c: Likewise.
60273         * tests/test-mbscasestr3.c: Likewise.
60274         * tests/test-mbscasestr4.c: Likewise.
60275         * tests/test-mbschr.c: Likewise.
60276         * tests/test-mbscspn.c: Likewise.
60277         * tests/test-mbsncasecmp.c: Likewise.
60278         * tests/test-mbspbrk.c: Likewise.
60279         * tests/test-mbspcasecmp.c: Likewise.
60280         * tests/test-mbsrchr.c: Likewise.
60281         * tests/test-mbsspn.c: Likewise.
60282         * tests/test-mbsstr1.c: Likewise.
60283         * tests/test-mbsstr2.c: Likewise.
60284         * tests/test-mbsstr3.c: Likewise.
60285         * tests/test-md5.c: Likewise.
60286         * tests/test-memmem.c: Likewise.
60287         * tests/test-netinet_in.c: Likewise.
60288         * tests/test-open.c: Likewise.
60289         * tests/test-printf-frexp.c: Likewise.
60290         * tests/test-printf-frexpl.c: Likewise.
60291         * tests/test-printf-posix.c: Likewise.
60292         * tests/test-printf-posix.h: Likewise.
60293         * tests/test-rbtree_list.c: Likewise.
60294         * tests/test-rbtree_oset.c: Likewise.
60295         * tests/test-rbtreehash_list.c: Likewise.
60296         * tests/test-read-file.c: Likewise.
60297         * tests/test-rijndael.c: Likewise.
60298         * tests/test-search.c: Likewise.
60299         * tests/test-signbit.c: Likewise.
60300         * tests/test-sleep.c: Likewise.
60301         * tests/test-snprintf-posix.c: Likewise.
60302         * tests/test-snprintf-posix.h: Likewise.
60303         * tests/test-snprintf.c: Likewise.
60304         * tests/test-sprintf-posix.c: Likewise.
60305         * tests/test-sprintf-posix.h: Likewise.
60306         * tests/test-stat-time.c: Likewise.
60307         * tests/test-stdbool.c: Likewise.
60308         * tests/test-stdint.c: Likewise.
60309         * tests/test-stdio.c: Likewise.
60310         * tests/test-stdlib.c: Likewise.
60311         * tests/test-stpncpy.c: Likewise.
60312         * tests/test-strcasestr.c: Likewise.
60313         * tests/test-striconv.c: Likewise.
60314         * tests/test-striconveh.c: Likewise.
60315         * tests/test-striconveha.c: Likewise.
60316         * tests/test-string.c: Likewise.
60317         * tests/test-sys_select.c: Likewise.
60318         * tests/test-sys_socket.c: Likewise.
60319         * tests/test-sys_stat.c: Likewise.
60320         * tests/test-sys_time.c: Likewise.
60321         * tests/test-sysexits.c: Likewise.
60322         * tests/test-time.c: Likewise.
60323         * tests/test-tls.c: Likewise.
60324         * tests/test-trunc.c: Likewise.
60325         * tests/test-truncf.c: Likewise.
60326         * tests/test-truncl.c: Likewise.
60327         * tests/test-unistd.c: Likewise.
60328         * tests/test-vasnprintf-posix.c: Likewise.
60329         * tests/test-vasnprintf-posix2.c: Likewise.
60330         * tests/test-vasnprintf.c: Likewise.
60331         * tests/test-vasprintf-posix.c: Likewise.
60332         * tests/test-vasprintf.c: Likewise.
60333         * tests/test-verify.c: Likewise.
60334         * tests/test-vfprintf-posix.c: Likewise.
60335         * tests/test-vprintf-posix.c: Likewise.
60336         * tests/test-vsnprintf-posix.c: Likewise.
60337         * tests/test-vsnprintf.c: Likewise.
60338         * tests/test-vsprintf-posix.c: Likewise.
60339         * tests/test-wchar.c: Likewise.
60340         * tests/test-wctype.c: Likewise.
60341         * tests/test-wcwidth.c: Likewise.
60342         * tests/test-xstrtol.c: Likewise.
60343         * tests/test-xvasprintf.c: Likewise.
60344         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
60345         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
60346         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60347         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60348         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60349         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
60350         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60351         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60352         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60353         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
60354         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60355         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60356         * tests/uniname/test-uninames.c: Likewise.
60357         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
60358         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
60359         * tests/unistdio/test-u16-printf1.h: Likewise.
60360         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
60361         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
60362         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
60363         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
60364         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
60365         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
60366         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
60367         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
60368         * tests/unistdio/test-u32-printf1.h: Likewise.
60369         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
60370         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
60371         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
60372         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
60373         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
60374         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
60375         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
60376         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
60377         * tests/unistdio/test-u8-printf1.h: Likewise.
60378         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
60379         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
60380         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
60381         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
60382         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
60383         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
60384         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
60385         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
60386         * tests/unistdio/test-ulc-printf1.h: Likewise.
60387         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
60388         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
60389         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
60390         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
60391         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
60392         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
60393         * tests/uniwidth/test-u16-strwidth.c: Likewise.
60394         * tests/uniwidth/test-u16-width.c: Likewise.
60395         * tests/uniwidth/test-u32-strwidth.c: Likewise.
60396         * tests/uniwidth/test-u32-width.c: Likewise.
60397         * tests/uniwidth/test-u8-strwidth.c: Likewise.
60398         * tests/uniwidth/test-u8-width.c: Likewise.
60399         * tests/uniwidth/test-uc_width.c: Likewise.
60400         * config/srclist-update: Likewise.
60401         (fixlicense): Update to GPLv3+.
60402
60403         Change copyright notice from LGPLv2.1+ to LGPLv3+.
60404         * tests/test-tsearch.c: Change copyright notice.
60405
60406         Change copyright notice from LGPLv2.0+ to LGPLv3+.
60407         * lib/c-strcaseeq.h: Change copyright notice.
60408         * lib/streq.h: Likewise.
60409         * lib/uniconv.h: Likewise.
60410         * lib/uniconv/u-conv-from-enc.h: Likewise.
60411         * lib/uniconv/u-conv-to-enc.h: Likewise.
60412         * lib/uniconv/u-strconv-from-enc.h: Likewise.
60413         * lib/uniconv/u-strconv-to-enc.h: Likewise.
60414         * lib/uniconv/u16-conv-from-enc.c: Likewise.
60415         * lib/uniconv/u16-conv-to-enc.c: Likewise.
60416         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
60417         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
60418         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
60419         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
60420         * lib/uniconv/u32-conv-from-enc.c: Likewise.
60421         * lib/uniconv/u32-conv-to-enc.c: Likewise.
60422         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
60423         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
60424         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
60425         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
60426         * lib/uniconv/u8-conv-from-enc.c: Likewise.
60427         * lib/uniconv/u8-conv-to-enc.c: Likewise.
60428         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
60429         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
60430         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
60431         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
60432         * lib/uniname.h: Likewise.
60433         * lib/uniname/uniname.c: Likewise.
60434         * lib/unistdio.h: Likewise.
60435         * lib/unistdio/u-asnprintf.h: Likewise.
60436         * lib/unistdio/u-asprintf.h: Likewise.
60437         * lib/unistdio/u-printf-args.c: Likewise.
60438         * lib/unistdio/u-printf-args.h: Likewise.
60439         * lib/unistdio/u-printf-parse.h: Likewise.
60440         * lib/unistdio/u-snprintf.h: Likewise.
60441         * lib/unistdio/u-sprintf.h: Likewise.
60442         * lib/unistdio/u-vasprintf.h: Likewise.
60443         * lib/unistdio/u-vsnprintf.h: Likewise.
60444         * lib/unistdio/u-vsprintf.h: Likewise.
60445         * lib/unistdio/u16-asnprintf.c: Likewise.
60446         * lib/unistdio/u16-asprintf.c: Likewise.
60447         * lib/unistdio/u16-printf-parse.c: Likewise.
60448         * lib/unistdio/u16-snprintf.c: Likewise.
60449         * lib/unistdio/u16-sprintf.c: Likewise.
60450         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
60451         * lib/unistdio/u16-u16-asprintf.c: Likewise.
60452         * lib/unistdio/u16-u16-snprintf.c: Likewise.
60453         * lib/unistdio/u16-u16-sprintf.c: Likewise.
60454         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
60455         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
60456         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
60457         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
60458         * lib/unistdio/u16-vasnprintf.c: Likewise.
60459         * lib/unistdio/u16-vasprintf.c: Likewise.
60460         * lib/unistdio/u16-vsnprintf.c: Likewise.
60461         * lib/unistdio/u16-vsprintf.c: Likewise.
60462         * lib/unistdio/u32-asnprintf.c: Likewise.
60463         * lib/unistdio/u32-asprintf.c: Likewise.
60464         * lib/unistdio/u32-printf-parse.c: Likewise.
60465         * lib/unistdio/u32-snprintf.c: Likewise.
60466         * lib/unistdio/u32-sprintf.c: Likewise.
60467         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
60468         * lib/unistdio/u32-u32-asprintf.c: Likewise.
60469         * lib/unistdio/u32-u32-snprintf.c: Likewise.
60470         * lib/unistdio/u32-u32-sprintf.c: Likewise.
60471         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
60472         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
60473         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
60474         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
60475         * lib/unistdio/u32-vasnprintf.c: Likewise.
60476         * lib/unistdio/u32-vasprintf.c: Likewise.
60477         * lib/unistdio/u32-vsnprintf.c: Likewise.
60478         * lib/unistdio/u32-vsprintf.c: Likewise.
60479         * lib/unistdio/u8-asnprintf.c: Likewise.
60480         * lib/unistdio/u8-asprintf.c: Likewise.
60481         * lib/unistdio/u8-printf-parse.c: Likewise.
60482         * lib/unistdio/u8-snprintf.c: Likewise.
60483         * lib/unistdio/u8-sprintf.c: Likewise.
60484         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
60485         * lib/unistdio/u8-u8-asprintf.c: Likewise.
60486         * lib/unistdio/u8-u8-snprintf.c: Likewise.
60487         * lib/unistdio/u8-u8-sprintf.c: Likewise.
60488         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
60489         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
60490         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
60491         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
60492         * lib/unistdio/u8-vasnprintf.c: Likewise.
60493         * lib/unistdio/u8-vasprintf.c: Likewise.
60494         * lib/unistdio/u8-vsnprintf.c: Likewise.
60495         * lib/unistdio/u8-vsprintf.c: Likewise.
60496         * lib/unistdio/ulc-asnprintf.c: Likewise.
60497         * lib/unistdio/ulc-asprintf.c: Likewise.
60498         * lib/unistdio/ulc-printf-parse.c: Likewise.
60499         * lib/unistdio/ulc-snprintf.c: Likewise.
60500         * lib/unistdio/ulc-sprintf.c: Likewise.
60501         * lib/unistdio/ulc-vasnprintf.c: Likewise.
60502         * lib/unistdio/ulc-vasprintf.c: Likewise.
60503         * lib/unistdio/ulc-vsnprintf.c: Likewise.
60504         * lib/unistdio/ulc-vsprintf.c: Likewise.
60505         * lib/unistr.h: Likewise.
60506         * lib/unistr/u-cpy-alloc.h: Likewise.
60507         * lib/unistr/u-cpy.h: Likewise.
60508         * lib/unistr/u-endswith.h: Likewise.
60509         * lib/unistr/u-move.h: Likewise.
60510         * lib/unistr/u-set.h: Likewise.
60511         * lib/unistr/u-startswith.h: Likewise.
60512         * lib/unistr/u-stpcpy.h: Likewise.
60513         * lib/unistr/u-stpncpy.h: Likewise.
60514         * lib/unistr/u-strcat.h: Likewise.
60515         * lib/unistr/u-strcpy.h: Likewise.
60516         * lib/unistr/u-strcspn.h: Likewise.
60517         * lib/unistr/u-strdup.h: Likewise.
60518         * lib/unistr/u-strlen.h: Likewise.
60519         * lib/unistr/u-strncat.h: Likewise.
60520         * lib/unistr/u-strncpy.h: Likewise.
60521         * lib/unistr/u-strnlen.h: Likewise.
60522         * lib/unistr/u-strpbrk.h: Likewise.
60523         * lib/unistr/u-strspn.h: Likewise.
60524         * lib/unistr/u-strstr.h: Likewise.
60525         * lib/unistr/u-strtok.h: Likewise.
60526         * lib/unistr/u16-check.c: Likewise.
60527         * lib/unistr/u16-chr.c: Likewise.
60528         * lib/unistr/u16-cmp.c: Likewise.
60529         * lib/unistr/u16-cpy-alloc.c: Likewise.
60530         * lib/unistr/u16-cpy.c: Likewise.
60531         * lib/unistr/u16-endswith.c: Likewise.
60532         * lib/unistr/u16-mblen.c: Likewise.
60533         * lib/unistr/u16-mbsnlen.c: Likewise.
60534         * lib/unistr/u16-mbtouc-aux.c: Likewise.
60535         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
60536         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
60537         * lib/unistr/u16-mbtouc.c: Likewise.
60538         * lib/unistr/u16-mbtoucr.c: Likewise.
60539         * lib/unistr/u16-move.c: Likewise.
60540         * lib/unistr/u16-next.c: Likewise.
60541         * lib/unistr/u16-prev.c: Likewise.
60542         * lib/unistr/u16-set.c: Likewise.
60543         * lib/unistr/u16-startswith.c: Likewise.
60544         * lib/unistr/u16-stpcpy.c: Likewise.
60545         * lib/unistr/u16-stpncpy.c: Likewise.
60546         * lib/unistr/u16-strcat.c: Likewise.
60547         * lib/unistr/u16-strchr.c: Likewise.
60548         * lib/unistr/u16-strcmp.c: Likewise.
60549         * lib/unistr/u16-strcpy.c: Likewise.
60550         * lib/unistr/u16-strcspn.c: Likewise.
60551         * lib/unistr/u16-strdup.c: Likewise.
60552         * lib/unistr/u16-strlen.c: Likewise.
60553         * lib/unistr/u16-strmblen.c: Likewise.
60554         * lib/unistr/u16-strmbtouc.c: Likewise.
60555         * lib/unistr/u16-strncat.c: Likewise.
60556         * lib/unistr/u16-strncmp.c: Likewise.
60557         * lib/unistr/u16-strncpy.c: Likewise.
60558         * lib/unistr/u16-strnlen.c: Likewise.
60559         * lib/unistr/u16-strpbrk.c: Likewise.
60560         * lib/unistr/u16-strrchr.c: Likewise.
60561         * lib/unistr/u16-strspn.c: Likewise.
60562         * lib/unistr/u16-strstr.c: Likewise.
60563         * lib/unistr/u16-strtok.c: Likewise.
60564         * lib/unistr/u16-to-u32.c: Likewise.
60565         * lib/unistr/u16-to-u8.c: Likewise.
60566         * lib/unistr/u16-uctomb-aux.c: Likewise.
60567         * lib/unistr/u16-uctomb.c: Likewise.
60568         * lib/unistr/u32-check.c: Likewise.
60569         * lib/unistr/u32-chr.c: Likewise.
60570         * lib/unistr/u32-cmp.c: Likewise.
60571         * lib/unistr/u32-cpy-alloc.c: Likewise.
60572         * lib/unistr/u32-cpy.c: Likewise.
60573         * lib/unistr/u32-endswith.c: Likewise.
60574         * lib/unistr/u32-mblen.c: Likewise.
60575         * lib/unistr/u32-mbsnlen.c: Likewise.
60576         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
60577         * lib/unistr/u32-mbtouc.c: Likewise.
60578         * lib/unistr/u32-mbtoucr.c: Likewise.
60579         * lib/unistr/u32-move.c: Likewise.
60580         * lib/unistr/u32-next.c: Likewise.
60581         * lib/unistr/u32-prev.c: Likewise.
60582         * lib/unistr/u32-set.c: Likewise.
60583         * lib/unistr/u32-startswith.c: Likewise.
60584         * lib/unistr/u32-stpcpy.c: Likewise.
60585         * lib/unistr/u32-stpncpy.c: Likewise.
60586         * lib/unistr/u32-strcat.c: Likewise.
60587         * lib/unistr/u32-strchr.c: Likewise.
60588         * lib/unistr/u32-strcmp.c: Likewise.
60589         * lib/unistr/u32-strcpy.c: Likewise.
60590         * lib/unistr/u32-strcspn.c: Likewise.
60591         * lib/unistr/u32-strdup.c: Likewise.
60592         * lib/unistr/u32-strlen.c: Likewise.
60593         * lib/unistr/u32-strmblen.c: Likewise.
60594         * lib/unistr/u32-strmbtouc.c: Likewise.
60595         * lib/unistr/u32-strncat.c: Likewise.
60596         * lib/unistr/u32-strncmp.c: Likewise.
60597         * lib/unistr/u32-strncpy.c: Likewise.
60598         * lib/unistr/u32-strnlen.c: Likewise.
60599         * lib/unistr/u32-strpbrk.c: Likewise.
60600         * lib/unistr/u32-strrchr.c: Likewise.
60601         * lib/unistr/u32-strspn.c: Likewise.
60602         * lib/unistr/u32-strstr.c: Likewise.
60603         * lib/unistr/u32-strtok.c: Likewise.
60604         * lib/unistr/u32-to-u16.c: Likewise.
60605         * lib/unistr/u32-to-u8.c: Likewise.
60606         * lib/unistr/u32-uctomb.c: Likewise.
60607         * lib/unistr/u8-check.c: Likewise.
60608         * lib/unistr/u8-chr.c: Likewise.
60609         * lib/unistr/u8-cmp.c: Likewise.
60610         * lib/unistr/u8-cpy-alloc.c: Likewise.
60611         * lib/unistr/u8-cpy.c: Likewise.
60612         * lib/unistr/u8-endswith.c: Likewise.
60613         * lib/unistr/u8-mblen.c: Likewise.
60614         * lib/unistr/u8-mbsnlen.c: Likewise.
60615         * lib/unistr/u8-mbtouc-aux.c: Likewise.
60616         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
60617         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
60618         * lib/unistr/u8-mbtouc.c: Likewise.
60619         * lib/unistr/u8-mbtoucr.c: Likewise.
60620         * lib/unistr/u8-move.c: Likewise.
60621         * lib/unistr/u8-next.c: Likewise.
60622         * lib/unistr/u8-prev.c: Likewise.
60623         * lib/unistr/u8-set.c: Likewise.
60624         * lib/unistr/u8-startswith.c: Likewise.
60625         * lib/unistr/u8-stpcpy.c: Likewise.
60626         * lib/unistr/u8-stpncpy.c: Likewise.
60627         * lib/unistr/u8-strcat.c: Likewise.
60628         * lib/unistr/u8-strchr.c: Likewise.
60629         * lib/unistr/u8-strcmp.c: Likewise.
60630         * lib/unistr/u8-strcpy.c: Likewise.
60631         * lib/unistr/u8-strcspn.c: Likewise.
60632         * lib/unistr/u8-strdup.c: Likewise.
60633         * lib/unistr/u8-strlen.c: Likewise.
60634         * lib/unistr/u8-strmblen.c: Likewise.
60635         * lib/unistr/u8-strmbtouc.c: Likewise.
60636         * lib/unistr/u8-strncat.c: Likewise.
60637         * lib/unistr/u8-strncmp.c: Likewise.
60638         * lib/unistr/u8-strncpy.c: Likewise.
60639         * lib/unistr/u8-strnlen.c: Likewise.
60640         * lib/unistr/u8-strpbrk.c: Likewise.
60641         * lib/unistr/u8-strrchr.c: Likewise.
60642         * lib/unistr/u8-strspn.c: Likewise.
60643         * lib/unistr/u8-strstr.c: Likewise.
60644         * lib/unistr/u8-strtok.c: Likewise.
60645         * lib/unistr/u8-to-u16.c: Likewise.
60646         * lib/unistr/u8-to-u32.c: Likewise.
60647         * lib/unistr/u8-uctomb-aux.c: Likewise.
60648         * lib/unistr/u8-uctomb.c: Likewise.
60649         * lib/unitypes.h: Likewise.
60650         * lib/uniwidth.h: Likewise.
60651         * lib/uniwidth/cjk.h: Likewise.
60652         * lib/uniwidth/u16-strwidth.c: Likewise.
60653         * lib/uniwidth/u16-width.c: Likewise.
60654         * lib/uniwidth/u32-strwidth.c: Likewise.
60655         * lib/uniwidth/u32-width.c: Likewise.
60656         * lib/uniwidth/u8-strwidth.c: Likewise.
60657         * lib/uniwidth/u8-width.c: Likewise.
60658         * lib/uniwidth/width.c: Likewise.
60659
60660 2007-10-07  Bruno Haible  <bruno@clisp.org>
60661
60662         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
60663         The file is still under LGPL (see modules/inttypes).
60664
60665 2007-10-06  Bruno Haible  <bruno@clisp.org>
60666
60667         * modules/trunc (Dependencies): Add 'extensions'.
60668         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
60669         Reported by Ben Pfaff <blp@gnu.org>.
60670
60671 2007-10-06  Bruno Haible  <bruno@clisp.org>
60672
60673         * modules/freopen-tests: New file.
60674         * tests/test-freopen.c: New file.
60675
60676         * modules/fopen-tests: New file.
60677         * tests/test-fopen.c: New file.
60678
60679         * modules/fopen: New file.
60680         * lib/fopen.c: New file.
60681         * m4/fopen.m4: New file.
60682         * modules/freopen: New file.
60683         * lib/freopen.c: New file.
60684         * m4/freopen.m4: New file.
60685         * lib/stdio.in.h (fopen, freopen): New declarations.
60686         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
60687         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
60688         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
60689         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
60690         * doc/functions/fopen.texi: Mention the 'fopen' module.
60691         * doc/functions/freopen.texi: Mention the 'freopen' module.
60692
60693 2007-10-06  Bruno Haible  <bruno@clisp.org>
60694
60695         * modules/open-tests: New file.
60696         * tests/test-open.c: New file.
60697
60698         * modules/open: New file.
60699         * lib/open.c: New file.
60700         * m4/open.m4: New file.
60701         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
60702         lib/open.c does.
60703         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
60704         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
60705         macros.
60706         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
60707         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
60708         REPLACE_OPEN.
60709         * doc/functions/open.texi: Mention the 'open' module.
60710
60711 2007-10-04  Bruno Haible  <bruno@clisp.org>
60712
60713         * modules/ceill-tests: New file.
60714         * tests/test-ceill.c: New file.
60715
60716         * modules/ceill: New file.
60717         * lib/ceill.c: Replace entire file.
60718         * m4/ceill.m4: New file.
60719         * lib/math.in.h (ceill): Replace declaration.
60720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
60721         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
60722         * doc/functions/ceill.texi: Mention the 'ceill' module.
60723         * modules/mathl (Files): Remove lib/ceill.c.
60724         (Depends-on): Add ceill.
60725
60726 2007-10-04  Bruno Haible  <bruno@clisp.org>
60727
60728         * modules/ceilf-tests: New file.
60729         * tests/test-ceilf.c: New file.
60730
60731         * modules/ceilf: New file.
60732         * lib/ceil.c: New file.
60733         * lib/ceilf.c: New file.
60734         * m4/ceilf.m4: New file.
60735         * lib/math.in.h (ceilf): New declaration.
60736         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
60737         HAVE_DECL_CEILF.
60738         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
60739         HAVE_DECL_CEILF.
60740         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
60741
60742 2007-10-04  Bruno Haible  <bruno@clisp.org>
60743
60744         * modules/floorl-tests: New file.
60745         * tests/test-floorl.c: New file.
60746
60747         * modules/floorl: New file.
60748         * lib/floorl.c: Replace entire file.
60749         * m4/floorl.m4: New file.
60750         * lib/math.in.h (floorl): Replace declaration.
60751         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
60752         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
60753         * doc/functions/floorl.texi: Mention the 'floorl' module.
60754         * modules/mathl (Files): Remove lib/floorl.c.
60755         (Depends-on): Add floorl.
60756
60757 2007-10-04  Bruno Haible  <bruno@clisp.org>
60758
60759         * modules/floorf-tests: New file.
60760         * tests/test-floorf.c: New file.
60761
60762         * modules/floorf: New file.
60763         * lib/floor.c: New file.
60764         * lib/floorf.c: New file.
60765         * m4/floorf.m4: New file.
60766         * lib/math.in.h (floorf): New declaration.
60767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
60768         HAVE_DECL_FLOORF.
60769         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
60770         HAVE_DECL_FLOORF.
60771         * doc/functions/floorf.texi: Mention the 'floorf' module.
60772
60773 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
60774             Bruno Haible  <bruno@clisp.org>
60775
60776         Advertise for the Git server instead of the CVS server.
60777         * doc/gnulib-intro.texi (Steady Development): Mention the Git
60778         repository instead of the CVS one.
60779         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
60780         about all VCS systems generically.
60781         * doc/gnulib.texi (Introduction): Capitalize `Git'.
60782
60783 2007-10-04  Bruno Haible  <bruno@clisp.org>
60784
60785         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
60786         means.
60787         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
60788
60789 2007-10-04  Bruno Haible  <bruno@clisp.org>
60790
60791         * modules/truncl-tests: New file.
60792         * tests/test-truncl.c: New file.
60793
60794         * modules/truncl: New file.
60795         * lib/truncl.c: New file.
60796         * m4/truncl.m4: New file.
60797         * lib/math.in.h (truncl): New declaration.
60798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
60799         HAVE_DECL_TRUNCL.
60800         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
60801         HAVE_DECL_TRUNCL.
60802         * doc/functions/truncl.texi: Mention the 'truncl' module.
60803
60804 2007-10-04  Bruno Haible  <bruno@clisp.org>
60805
60806         * modules/truncf-tests: New file.
60807         * tests/test-truncf.c: New file.
60808
60809         * modules/truncf: New file.
60810         * lib/trunc.c: Make paramerizable through USE_* macros.
60811         * lib/truncf.c: New file.
60812         * m4/truncf.m4: New file.
60813         * lib/math.in.h (truncf): New declaration.
60814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
60815         HAVE_DECL_TRUNCF.
60816         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
60817         HAVE_DECL_TRUNCF.
60818         * doc/functions/truncf.texi: Mention the 'truncf' module.
60819
60820 2007-10-03  Bruno Haible  <bruno@clisp.org>
60821
60822         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60823         augmentation also for tests modules.
60824         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
60825         * modules/atexit-tests (Makefile.am): Likewise.
60826         * modules/binary-io-tests (Makefile.am): Likewise.
60827         * modules/c-strcase-tests (Makefile.am): Likewise.
60828         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
60829         * modules/canonicalize-tests (Makefile.am): Likewise.
60830         * modules/closein-tests (Makefile.am): Likewise.
60831         * modules/fprintf-posix-tests (Makefile.am): Likewise.
60832         * modules/freadahead-tests (Makefile.am): Likewise.
60833         * modules/fseek-tests (Makefile.am): Likewise.
60834         * modules/fseeko-tests (Makefile.am): Likewise.
60835         * modules/ftell-tests (Makefile.am): Likewise.
60836         * modules/ftello-tests (Makefile.am): Likewise.
60837         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
60838         * modules/isnanl-tests (Makefile.am): Likewise.
60839         * modules/lseek-tests (Makefile.am): Likewise.
60840         * modules/mbscasecmp-tests (Makefile.am): Likewise.
60841         * modules/mbscasestr-tests (Makefile.am): Likewise.
60842         * modules/mbschr-tests (Makefile.am): Likewise.
60843         * modules/mbscspn-tests (Makefile.am): Likewise.
60844         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
60845         * modules/mbspbrk-tests (Makefile.am): Likewise.
60846         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
60847         * modules/mbsrchr-tests (Makefile.am): Likewise.
60848         * modules/mbsspn-tests (Makefile.am): Likewise.
60849         * modules/mbsstr-tests (Makefile.am): Likewise.
60850         * modules/printf-posix-tests (Makefile.am): Likewise.
60851         * modules/snprintf-posix-tests (Makefile.am): Likewise.
60852         * modules/sprintf-posix-tests (Makefile.am): Likewise.
60853         * modules/tsearch-tests (Makefile.am): Likewise.
60854         * modules/uniname/uniname-tests (Makefile.am): Likewise.
60855         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
60856         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
60857         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
60858         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
60859         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
60860         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
60861         * modules/vprintf-posix-tests (Makefile.am): Likewise.
60862         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
60863         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
60864         * modules/xstrtoimax-tests (Makefile.am): Likewise.
60865         * modules/xstrtol-tests (Makefile.am): Likewise.
60866         * modules/xstrtoumax-tests (Makefile.am): Likewise.
60867         * modules/yesno-tests (Makefile.am): Likewise.
60868
60869 2007-10-03  Bruno Haible  <bruno@clisp.org>
60870
60871         * modules/trunc-tests: New file.
60872         * tests/test-trunc.c: New file.
60873
60874         * modules/trunc: New file.
60875         * lib/trunc.c: New file.
60876         * m4/trunc.m4: New file.
60877         * lib/math.in.h (trunc): New declaration.
60878         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
60879         HAVE_DECL_TRUNC.
60880         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
60881         HAVE_DECL_TRUNC.
60882         * doc/functions/trunc.texi: Mention the 'trunc' module.
60883
60884 2007-10-03  Bruno Haible  <bruno@clisp.org>
60885
60886         * tests/test-fpending.c: New file, mostly copied
60887         from coreutils/lib/t-fpending.c.
60888         * modules/fpending-tests: New file.
60889
60890 2007-10-03  Bruno Haible  <bruno@clisp.org>
60891
60892         Port the stdio extensions to QNX (untested).
60893         * lib/fseterr.c (fseterr): Add support for QNX.
60894         * lib/fbufmode.c (fbufmode): Likewise.
60895         * lib/freadable.c (freadable): Likewise.
60896         * lib/fwritable.c (fwritable): Likewise.
60897         * lib/freading.c (freading): Likewise.
60898         * lib/fwriting.c (fwriting): Likewise.
60899         * lib/freadahead.c (freadahed): Likewise.
60900         * lib/fpurge.c (fpurge): Likewise.
60901         * lib/fseeko.c (rpl_fseeko): Likewise.
60902
60903 2007-10-03  Bruno Haible  <bruno@clisp.org>
60904             Jim Meyering  <jim@meyering.net>
60905             Eric Blake  <ebb9@byu.net>
60906
60907         * doc/relocatable.texi: Use @command instead of @program.
60908
60909 2007-10-02  Jim Meyering  <jim@meyering.net>
60910
60911         Perform one more "_.h" -> ".in.h" substitution.
60912         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
60913         instead of unistd_.h here, too.
60914
60915 2007-10-01  Bruno Haible  <bruno@clisp.org>
60916
60917         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
60918         Needed for the alloca-opt module.
60919
60920 2007-09-30  Bruno Haible  <bruno@clisp.org>
60921
60922         * lib/alloca.in.h: Renamed from lib/alloca_.h.
60923         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
60924         alloca_.h.
60925         * lib/argz.in.h: Renamed from lib/argz_.h.
60926         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
60927         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
60928         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
60929         byteswap_.h.
60930         * lib/dirent.in.h: Renamed from lib/dirent_.h.
60931         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
60932         dirent_.h.
60933         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
60934         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
60935         fcntl_.h.
60936         * lib/float.in.h: Renamed from lib/float_.h.
60937         * modules/float (Files, Makefile.am): Use float.in.h instead of
60938         float_.h.
60939         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
60940         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
60941         fnmatch_.h.
60942         * lib/getopt.in.h: Renamed from lib/getopt_.h.
60943         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
60944         getopt_.h.
60945         * lib/glob.in.h: Renamed from lib/glob_.h.
60946         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
60947         * lib/iconv.in.h: Renamed from lib/iconv_.h.
60948         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
60949         iconv_.h.
60950         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
60951         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
60952         inttypes_.h.
60953         * lib/locale.in.h: Renamed from lib/locale_.h.
60954         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
60955         locale_.h.
60956         * lib/math.in.h: Renamed from lib/math_.h.
60957         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
60958         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
60959         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
60960         of netinet_in_.h. Add dependency.
60961         * lib/poll.in.h: Renamed from lib/poll_.h.
60962         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
60963         * lib/search.in.h: Renamed from lib/search_.h.
60964         * modules/search (Files, Makefile.am): Use search.in.h instead of
60965         search_.h.
60966         * lib/signal.in.h: Renamed from lib/signal_.h.
60967         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
60968         _signal.h.
60969         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
60970         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
60971         stdbool_.h.
60972         * lib/stdint.in.h: Renamed from lib/stdint_.h.
60973         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
60974         stdint_.h.
60975         * lib/stdio.in.h: Renamed from lib/stdio_.h.
60976         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
60977         stdio_.h.
60978         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
60979         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
60980         stdlib_.h.
60981         * lib/string.in.h: Renamed from lib/string_.h.
60982         * modules/string (Files, Makefile.am): Use string.in.h instead of
60983         string_.h.
60984         * doc/gnulib-tool.texi (Initial import): Update.
60985         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
60986         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
60987         of sys_select_.h. Add dependency.
60988         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
60989         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
60990         of sys_socket_.h.
60991         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
60992         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
60993         sys_stat_.h.
60994         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
60995         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
60996         sys_time_.h.
60997         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
60998         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
60999         sysexits_.h.
61000         * lib/time.in.h: Renamed from lib/time_.h.
61001         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61002         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61003         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61004         unistd_.h.
61005         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61006         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61007         wchar_.h.
61008         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61009         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61010         wctype_.h.
61011         * build-aux/bootstrap (slurp): Update.
61012         * lib/.cppi-disable: Update.
61013
61014 2007-09-30  Bruno Haible  <bruno@clisp.org>
61015
61016         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
61017         Needed on BeOS.
61018
61019 2007-09-30  Bruno Haible  <bruno@clisp.org>
61020
61021         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
61022
61023 2007-09-29  Bruno Haible  <bruno@clisp.org>
61024
61025         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
61026
61027 2007-09-29  Bruno Haible  <bruno@clisp.org>
61028
61029         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
61030         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
61031         * build-aux/install-reloc: Compile also areadlink.c.
61032         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
61033
61034 2007-09-29  Bruno Haible  <bruno@clisp.org>
61035
61036         * gnulib-tool (func_emit_initmacro_done): Indentation.
61037
61038 2007-09-29  Bruno Haible  <bruno@clisp.org>
61039
61040         * README: Add CVS checkout update instructions.
61041         Info from Bob Proulx <bob@proulx.com>.
61042
61043 2007-09-28  Eric Blake  <ebb9@byu.net>
61044
61045         Provide move-if-change.
61046         * build-aux/move-if-change: New file, based on best practice
61047         rather than any canonical upstream location.
61048
61049 2007-09-28  Jim Meyering  <jim@meyering.net>
61050
61051         Fix canonicalize loop-detection corner case.
61052         Do not attempt to stat the symlink values stored via seen_triple.
61053         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
61054         on linux-2.6.18, (but not 2.6.22).
61055         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
61056         triple_compare.  The former compares dev,ino,filename, while the latter
61057         would actually stat dirname(filename) when dev and ino were equal.
61058         * lib/hash-triple.c: Install <string.h>.
61059         (STREQ): Define.
61060         (triple_compare_ino_str): New function.
61061         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
61062
61063 2007-09-28  Eric Blake  <ebb9@byu.net>
61064
61065         Enforce that AC_REPLACE_FUNCS files exist.
61066         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
61067         override check for typos.
61068
61069         Fix test-closein on Solaris 10.
61070         * tests/test-closein.c (main): Don't assume stdin can be inherited
61071         closed on all systems.
61072         * tests/test-closein.sh: Likewise.
61073         Reported by Piotr Tarnowski.
61074
61075 2007-09-28  Jim Meyering  <jim@meyering.net>
61076
61077         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
61078
61079 2007-09-27  Jim Meyering  <jim@meyering.net>
61080
61081         canonicalize: Avoid a false-positive cycle failure.
61082         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
61083         Sort.  Remove cycle-check.
61084         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
61085         not cycle-check.h.
61086         (seen_triple): New function.
61087         (canonicalize_filename_mode): Use it instead of cycle-check.
61088         * tests/test-canonicalize.c: Add a test for this bug.
61089         * tests/test-canonicalize.sh: Set up and run the test.
61090
61091         New module, file-set, from coreutils.
61092         * modules/file-set: Define it.
61093         * lib/file-set.c, lib/file-set.h: Implement.
61094
61095         New module, hash-triple, from coreutils.
61096         * modules/hash-triple: Define it.
61097         * lib/hash-triple.c, lib/hash-triple.h: Implement.
61098
61099 2007-09-25  Eric Blake  <ebb9@byu.net>
61100
61101         Fix strerror on Interix.
61102         * lib/string_.h (strerror): Declare replacement.
61103         * doc/functions/strerror.texi (strerror): Document the Interix
61104         shortcoming.
61105         * modules/string (Makefile.am): Support new hooks.
61106         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
61107         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
61108         gl_FUNC_STRERROR_SEPARATE.
61109         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
61110         * lib/strerror.c (rpl_strerror): Provide replacement.
61111         * modules/strerror (Depends-on): Add string.
61112         (configure.ac): Detect use of module.
61113         * tests/test-strerror.c: New file.
61114         * modules/strerror-tests: New test module.
61115         * modules/argp (Depends-on): Add strerror.
61116         * modules/error (Depends-on): Likewise.
61117         Reported by Martin Koeppe.
61118
61119 2007-09-24  Bruno Haible  <bruno@clisp.org>
61120
61121         * README: Update git instructions.
61122
61123 2007-09-24  Eric Blake  <ebb9@byu.net>
61124
61125         Revert fpending breakage from 2007-09-08.
61126         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
61127         __fpending.c.
61128
61129 2007-09-24  Jim Meyering  <jim@meyering.net>
61130
61131         filenamecat.c: Add a test.
61132         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
61133         showing how the function works when DIR is the empty string.
61134
61135 2007-09-21  Simon Josefsson  <simon@josefsson.org>
61136
61137         * tests/test-canonicalize.sh: Turn on executable bit.
61138
61139 2007-09-19  Eric Blake  <ebb9@byu.net>
61140
61141         * README: Update CVS instructions.
61142
61143 2007-09-18  Bruno Haible  <bruno@clisp.org>
61144
61145         * modules/areadlink: New file.
61146         * lib/areadlink.h (areadlink): New declaration.
61147         * lib/areadlink.c: New file, based on lib/xreadlink.c.
61148
61149 2007-09-17  Jim Meyering  <jim@meyering.net>
61150
61151         * lib/savewd.c (ESTALE) [!defined]: Define.
61152         Reported to be required on Interix by Martin Koeppe.
61153
61154 2007-09-17  Bruno Haible  <bruno@clisp.org>
61155
61156         * gnulib-tool (func_version): Use $version.
61157
61158 2007-09-16  Bruno Haible  <bruno@clisp.org>
61159
61160         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
61161         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
61162         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
61163         Reported by Greg Schafer <gschafer@zip.com.au>.
61164
61165 2007-09-15  Bruno Haible  <bruno@clisp.org>
61166
61167         * gnulib-tool (sed): Try a little harder to make bash understand the
61168         alias.
61169         Reported by Bruce Korb <bruce.korb@gmail.com>.
61170
61171 2007-09-13  Eric Blake  <ebb9@byu.net>
61172
61173         * ChangeLog: Remove conflict markers.
61174
61175 2007-09-13  Simon Josefsson  <simon@josefsson.org>
61176
61177         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
61178         Reported by Bruno Haible <bruno@clisp.org>.
61179
61180 2007-09-12  Bruno Haible  <bruno@clisp.org>
61181
61182         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
61183         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
61184         is not defined.
61185
61186 2007-09-12  Eric Blake  <ebb9@byu.net>
61187
61188         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
61189         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
61190         Autoconf definition.
61191         * modules/euidaccess (Depends-on): Add extensions, for
61192         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
61193         * modules/fnmatch (Depends-on): Likewise.
61194         * modules/getaddrinfo (Depends-on): Likewise.
61195         * modules/getdelim (Depends-on): Likewise.
61196         * modules/getline (Depends-on): Likewise.
61197         * modules/getsubopt (Depends-on): Likewise.
61198         * modules/gettext (Depends-on): Likewise.
61199         * modules/group-member (Depends-on): Likewise.
61200         * modules/mbchar (Depends-on): Likewise.
61201         * modules/memmem (Depends-on): Likewise.
61202         * modules/mempcpy (Depends-on): Likewise.
61203         * modules/memrchr (Depends-on): Likewise.
61204         * modules/pagealign_alloc (Depends-on): Likewise.
61205         * modules/readutmp (Depends-on): Likewise.
61206         * modules/stpcpy (Depends-on): Likewise.
61207         * modules/stpncpy (Depends-on): Likewise.
61208         * modules/strchrnul (Depends-on): Likewise.
61209         * modules/strndup (Depends-on): Likewise.
61210         * modules/strsep (Depends-on): Likewise.
61211         * modules/strverscmp (Depends-on): Likewise.
61212         * modules/vasprintf (Depends-on): Likewise.
61213         * modules/wcwidth (Depends-on): Likewise.
61214         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
61215         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
61216         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
61217         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
61218         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61219         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61220         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
61221         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61222         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
61223         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
61224         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61225         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
61226         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
61227         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
61228         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
61229         * m4/readutmp.m4 (gl_READUTMP): Likewise.
61230         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61231         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
61232         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61233         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
61234         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61235         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
61236         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
61237         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
61238         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
61239         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61240         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
61241         so that lock.m4 can be used in gettext without extensions module.
61242
61243 2007-09-11  Bruno Haible  <bruno@clisp.org>
61244
61245         * m4/isc-posix.m4: Remove file.
61246         Suggested by Eric Blake.
61247
61248 2007-09-11  Eric Blake  <ebb9@byu.net>
61249
61250         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
61251
61252 2007-09-10  Bruno Haible  <bruno@clisp.org>
61253
61254         * posix-modules: Fix typo in error message.
61255         Reported by Matt <mkraai@beckman.com>.
61256
61257 2007-09-09  Bruno Haible  <bruno@clisp.org>
61258
61259         * doc/functions/getdelim.texi: Update list of platforms lacking the
61260         function.
61261         * doc/functions/getline.texi: Likewise.
61262
61263 2007-09-09  Jim Meyering  <jim@meyering.net>
61264
61265         * lib/hash.c (hash_initialize): Detect calloc failure.
61266         Reported by Bruno Haible.
61267
61268 2007-09-09  Bruno Haible  <bruno@clisp.org>
61269
61270         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
61271         malloc or realloc fails.
61272
61273 2007-09-09  Bruno Haible  <bruno@clisp.org>
61274
61275         * modules/getcwd (Depends-on): Add malloc-posix.
61276         * modules/glob (Depends-on): Likewise.
61277         * modules/putenv (Depends-on): Likewise.
61278         * modules/strdup (Depends-on): Likewise.
61279         * modules/getdelim (Depends-on): Add realloc-posix.
61280         * modules/read-file (Depends-on): Likewise.
61281
61282 2007-09-09  Bruno Haible  <bruno@clisp.org>
61283
61284         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
61285         (gl_FUNC_MALLOC_POSIX): Require it.
61286         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
61287         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
61288         * modules/realloc (Files): Add m4/malloc.m4.
61289         * modules/calloc (Files): Likewise.
61290
61291 2007-09-09  Bruno Haible  <bruno@clisp.org>
61292
61293         * modules/malloc-posix: New file.
61294         * modules/malloc (Depends-on): Add malloc-posix.
61295         * lib/malloc.c: Include errno.h.
61296         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
61297         and a POSIX-compatible malloc into a single function. Set ENOMEM
61298         when returning NULL.
61299         * m4/malloc.m4: New file.
61300         * doc/functions/malloc.texi: Mention the malloc-posix module.
61301         * lib/stdlib_.h (malloc): New declaration.
61302         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61303         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
61304         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
61305         and HAVE_MALLOC_POSIX.
61306
61307 2007-09-09  Bruno Haible  <bruno@clisp.org>
61308
61309         * modules/realloc-posix: New file.
61310         * modules/realloc (Depends-on): Add realloc-posix.
61311         * lib/realloc.c: Include errno.h.
61312         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
61313         and a POSIX-compatible realloc into a single function. Set ENOMEM
61314         when returning NULL.
61315         * m4/realloc.m4: New file.
61316         * doc/functions/realloc.texi: Mention the realloc-posix module.
61317         * lib/stdlib_.h (realloc): New declaration.
61318         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61319         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
61320         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
61321         and HAVE_REALLOC_POSIX.
61322
61323 2007-09-09  Bruno Haible  <bruno@clisp.org>
61324
61325         * modules/calloc-posix: New file.
61326         * modules/calloc (Depends-on): Add calloc-posix.
61327         * lib/calloc.c: Include errno.h.
61328         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
61329         and a POSIX-compatible calloc into a single function. Set ENOMEM
61330         when returning NULL.
61331         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
61332         * doc/functions/calloc.texi: Mention the calloc-posix module.
61333         * lib/stdlib_.h (calloc): New declaration.
61334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61335         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
61336         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
61337         and HAVE_CALLOC_POSIX.
61338
61339 2007-09-09  Bruno Haible  <bruno@clisp.org>
61340
61341         Allow for modules to show an arbitrary notice.
61342         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
61343         * gnulib-tool: New option --extract-notice.
61344         (func_usage): Document it.
61345         (sed_extract_prog): Update.
61346         (func_get_notice): New function.
61347         (func_modules_notice): New function.
61348         (func_import, func_create_testdir): Invoke it.
61349         Suggested by Jim Meyering.
61350
61351 2007-09-09  Bruno Haible  <bruno@clisp.org>
61352
61353         * gnulib-tool: New options --verbose, --quiet.
61354         (func_usage): Document them.
61355         (verbose): New variable.
61356         (func_execute_command): New function.
61357         (func_import): Don't show the module list and the file list if
61358         $verbose < 0.
61359         (func_create_testdir): Likewise. Use func_execute_command.
61360         (func_create_megatestdir): Use func_execute_command.
61361
61362 2007-09-08  Bruno Haible  <bruno@clisp.org>
61363
61364         * gnulib-tool (func_import): Prefer rsync over wget when available,
61365         for fetching the PO files.
61366
61367 2007-09-08  Bruno Haible  <bruno@clisp.org>
61368
61369         * posix-modules: New file. Portions copied from gnulib-tool.
61370         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
61371
61372 2007-09-08  Jim Meyering  <jim@meyering.net>
61373
61374         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
61375         * lib/fpending.h: Rename from __fpending.h.
61376         * lib/fpending.c: Rename from __fpending.c.
61377         Include "fpending.h", not "__fpending.h".
61378         * lib/__fpending.h, lib/__fpending.c: Remove files.
61379         * modules/fpending (Files): Reflect new file names.
61380         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
61381
61382 2007-09-08  Bruno Haible  <bruno@clisp.org>
61383
61384         * m4/inttypes-h.m4: Remove stub file.
61385
61386 2007-09-07  Simon Josefsson  <simon@josefsson.org>
61387
61388         * doc/headers/stdint.texi: Discuss #include_next issue.
61389
61390 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61391
61392         * build-aux/bootstrap: Remove obsolete comment about wget --help.
61393
61394 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61395
61396         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
61397         in variable name.
61398
61399 2007-09-03  Jim Meyering  <jim@meyering.net>
61400
61401         New module: git-version-gen.
61402         * modules/git-version-gen: New file.
61403
61404         Import changes from coreutils for bootstrap script.
61405
61406         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
61407
61408         bootstrap: uses rsync to download the .po files
61409         * build-aux/bootstrap (po_download_command_format): New global.
61410         (download_po_files): Use rsync.
61411         (update_po_files): Don't remove .po files after download,
61412         so future rsync runs can take advantage of the copies.
61413
61414         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
61415
61416         Solve the unnecessary-.po-file-regeneration problem once and for all.
61417         * build-aux/bootstrap (download_po_files): New function, renamed from
61418         get_translations.  Now, downloads, but doesn't update LINGUAS.
61419         (update_po_files): New function.
61420
61421         bootstrap: Ignore more.
61422         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
61423         uniwidth to e.g., lib/.gitignore.
61424         (slurp): Handle the sys_stat_.h -> sys mapping, too.
61425
61426         * build-aux/bootstrap: New setting: vc_ignore.
61427         (insert_sorted_if_absent): Create $file if absent.
61428         Adapt to new, possibly empty, list: $vc_ignore.
61429
61430         bootstrap: generate more ignorable names
61431         * build-aux/bootstrap (slurp): When generating ignorable names,
61432         also map .sin to .sed, .gperf to .c, and .y to .c.
61433
61434 2007-09-03  Jim Meyering  <jim@meyering.net>
61435
61436         * build-aux/git-version-gen: New file, from coreutils.  For details, see
61437         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
61438
61439 2007-09-02  Bruno Haible  <bruno@clisp.org>
61440
61441         Fix mis-recognition of 'mcs' on QNX 6.
61442         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
61443         output contains the string "Mono".
61444         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
61445         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
61446
61447 2007-09-01  Bruno Haible  <bruno@clisp.org>
61448
61449         Fix collision between uniwidth/* and linebreak modules.
61450         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
61451         u32_width): Remove declarations.
61452         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
61453         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
61454         streq3, streq2, streq1, streq0): Remove functions.
61455         (STREQ): Remove macro.
61456         (is_cjk_encoding): Remove function.
61457         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
61458         (uc_width, u8_width, u16_width, u32_width): Remove functions.
61459         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
61460         * NEWS: Document the change.
61461
61462 2007-09-01  Bruno Haible  <bruno@clisp.org>
61463
61464         * lib/streq.h: Add double-inclusion guard.
61465
61466 2007-09-01  Karl Berry  <karl@gnu.org>
61467
61468         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
61469
61470 2007-08-28  Jim Meyering  <jim@meyering.net>
61471
61472         Rename mreadlink_with_size to areadlink_with_size.
61473         * NEWS: Document the change.
61474         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
61475         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
61476         * lib/mreadlink.h: Rename this to...
61477         * lib/areadlink.h: ...this.
61478         * modules/mreadlink-with-size: Rename this to...
61479         * modules/areadlink-with-size: ...this.
61480         * lib/canonicalize.c: Reflect the renaming.
61481         * modules/canonicalize: Likewise.
61482
61483 2007-08-26  Bruno Haible  <bruno@clisp.org>
61484
61485         * gnulib-tool (func_import): When deciding which files to remove,
61486         consider also dangling symbolic links.
61487         Reported by Eric Blake.
61488
61489 2007-08-26  Bruno Haible  <bruno@clisp.org>
61490
61491         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
61492
61493 2007-08-23  Simon Josefsson  <simon@josefsson.org>
61494
61495         * lib/readline.c: Don't include getline.h, the prototype is now
61496         found in stdio.h.
61497
61498 2007-08-23  Jim Meyering  <jim@meyering.net>
61499
61500         Getdelim touchup.
61501         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
61502         around the funlockfile call, since funlockfile never sets errno.
61503         Don't set errno upon failed realloc.
61504
61505 2007-08-22  Eric Blake  <ebb9@byu.net>
61506
61507         Getline touchups.
61508         * lib/getdelim.c (getdelim): Revert regression that required *n to
61509         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
61510         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
61511         getdelim, rather than whether implementation is missing.
61512         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
61513         * lib/stdio_.h (getline): Also declare if replacement is
61514         required.
61515         * doc/functions/getdelim.texi: New file.
61516         * doc/functions/getline.texi: Likewise.
61517         * doc/gnulib.texi (Function Substitutes): Add new files.
61518         Reported by Bruno Haible.
61519
61520 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
61521
61522         * users.txt: Add Guile.
61523
61524 2007-08-22  Eric Blake  <ebb9@byu.net>
61525
61526         * tests/test-getdelim.c (main): Use remove, not unlink.
61527         * tests/test-getline.c (main): Likewise.
61528
61529         Move getline and getdelim into stdio.h, per POSIX 200x.
61530         * modules/getline (Files): Remove getline.h.
61531         (Depends-on): Add stdio.
61532         (configure.ac): Add module indicator.
61533         * modules/getdelim (Files): Remove getdelim.h.
61534         (Depends-on): Add stdio.
61535         (configure.ac): Add module indicator.
61536         * modules/stdio (Makefile.am): Work with new indicators.
61537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
61538         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
61539         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61540         * lib/getdelim.h: Delete.
61541         * lib/getline.h: Delete.
61542         * lib/stdio_.h (getdelim, getline): Declare.
61543         * modules/getdelim-tests: New module.
61544         * modules/getline-tests: Likewise.
61545         * tests/test-getdelim.c: New file.
61546         * tests/test-getline.c: Likewise.
61547         * NEWS: Document the change.
61548         * lib/getline.c: Update choice of header.
61549         * lib/csharpcomp.c: Likewise.
61550         * lib/getpass.c: Likewise.
61551         * lib/javacomp.c: Likewise.
61552         * lib/javaversion.c: Likewise.
61553         * lib/yesno.c: Likewise.
61554         * lib/getdelim.c: Likewise.
61555         (getdelim): Set errno on failure, and avoid memory leak.
61556
61557 2007-08-19  Bruno Haible  <bruno@clisp.org>
61558
61559         * modules/closein (Depends-on): Add freadahead.
61560         * lib/closein.c: Include freadahead.h.
61561         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
61562         is zero.
61563
61564 2007-08-19  Bruno Haible  <bruno@clisp.org>
61565
61566         * modules/freadahead-tests: New file.
61567         * tests/test-freadahead.sh: New file.
61568         * tests/test-freadahead.c: New file.
61569
61570         * modules/freadahead: New file.
61571         * lib/freadahead.h: New file.
61572         * lib/freadahead.c: New file.
61573         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
61574         fbufmode, fpurge, freadable, fwritable.
61575
61576 2007-08-19  Eric Blake  <ebb9@byu.net>
61577
61578         Test yesno in combination with closein.
61579         * lib/yesno.c (yesno): Document use of stdin.
61580         * modules/yesno-tests (Files): New module.
61581         * tests/test-yesno.c (main): New file.
61582         * tests/test-yesno.sh: Likewise.
61583
61584 2007-08-19  Bruno Haible  <bruno@clisp.org>
61585
61586         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
61587         * lib/fseeko.c (rpl_fseeko): Likewise.
61588         * lib/fseterr.c (fseterr): Likewise.
61589
61590 2007-08-19  Bruno Haible  <bruno@clisp.org>
61591
61592         * tests/test-lseek.c (main): Disable a test for BeOS.
61593         * doc/functions/lseek.texi: Document the BeOS bug.
61594
61595 2007-08-19  Bruno Haible  <bruno@clisp.org>
61596             Eric Blake  <ebb9@byu.net>
61597
61598         * lib/lseek.c: Include <sys/stat.h>.
61599         (rpl_lseek): Add workaround code also for Unix platforms.
61600         Needed for BeOS.
61601         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
61602         * doc/functions/lseek.texi: Document BeOS definiency.
61603
61604 2007-08-18  Bruno Haible  <bruno@clisp.org>
61605
61606         * modules/fstrcmp-tests: New file.
61607         * tests/test-fstrcmp.c: New file.
61608
61609 2007-08-18  Bruno Haible  <bruno@clisp.org>
61610
61611         * modules/fstrcmp: New file, from GNU gettext with modifications.
61612         * lib/fstrcmp.h: New file, from GNU gettext.
61613         * lib/fstrcmp.c: New file, from GNU gettext.
61614         * MODULES.html.sh (String handling): Add fstrcmp.
61615
61616 2007-08-18  Bruno Haible  <bruno@clisp.org>
61617
61618         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
61619         'bool'.
61620         (diag, compareseq): Remove const from the ctxt argument.
61621         (USE_HEURISTIC): Undefine at the end.
61622
61623 2007-08-18  Jim Meyering  <jim@meyering.net>
61624
61625         New file: lib/idcache.h
61626         * NEWS: Mention the addition.
61627         * modules/idcache (Files): Add lib/idcache.h
61628         * lib/idcache.c: Include "idcache.h".
61629         Don't include <sys/types.h>.
61630         Add a FIXME comment.
61631         Move file-scoped "static" declarations to the top.
61632         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
61633
61634 2007-08-17  Bruno Haible  <bruno@clisp.org>
61635         and Paul Eggert  <eggert@cs.ucla.edu>
61636
61637         * MODULES.html.sh: Add diffseq.
61638         * modules/diffseq: New file.
61639         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
61640         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
61641
61642 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61643
61644         Import changes from coreutils for bootstrap script.
61645
61646         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
61647
61648         * build-aux/bootstrap (slurp): Work even in environments where
61649         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
61650         current code does not slurp files whose names start with ".", and
61651         this looks like it might be a troublesome area.
61652
61653         2007-07-11  Jim Meyering  <jim@meyering.net>
61654
61655         If there's a GPL vN copyright comment, require that N == 3.
61656
61657         2007-07-08  Jim Meyering  <jim@meyering.net>
61658
61659         Run the coreutils-specific code only if tests/Makefile.am.in exists.
61660         * build-aux/bootstrap (mam_template): Move definition out of loop.
61661
61662         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
61663
61664         * build-aux/bootstrap (symlink_to_dir): Rename function from
61665         symlink_to_gnulib.  Add a directory parameter.  Update all
61666         callers.
61667         (cp_mark_as_generated): Also check for -- and link to -- files in
61668         gl/.
61669
61670         2007-07-08  Jim Meyering  <jim@meyering.net>
61671
61672         Adapt to deeper hierarchy in gnulib.
61673         * build-aux/bootstrap (symlink_to_dir): If the destination
61674         directory doesn't exist, create it. This is required at least for
61675         "lib/uniwidth/cjk.h".
61676
61677         2007-05-15  Jim Meyering  <jim@meyering.net>
61678
61679         * build-aux/bootstrap: Now that generated Makefile.am files
61680         are no longer under version control, they must be created at
61681         bootstrap time.
61682
61683 2007-08-14  Ben Pfaff  <blp@gnu.org>
61684
61685         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
61686
61687 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61688
61689         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
61690         given the changes below.
61691         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
61692         even on hosts that have padding bits beyond the supported 64.
61693
61694 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61695
61696         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
61697         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
61698         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
61699         depends on it.
61700         (xstrtol_error): Remove.
61701         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
61702         but with a different signature.
61703         (ATTRIBUTE_NORETURN, __attribute__): New macros.
61704         * lib/xstrtol-error.c: Include exitfail.h.
61705         (xstrtol_fatal): New function, with a different signature from the
61706         old xstrtol_error, so that the caller need not worry about passing
61707         in an exit status, or about storage management of the option argument.
61708         (xstrtol_error): Now a static function.  Redo signature to
61709         implement xstrtol_fatal.  Output the correct number of hyphens in
61710         front of the option so that the caller need not worry about
61711         storage management.
61712         (N_): New macro.
61713         (_): Remove; not used now.
61714         * modules/xstrtol: Depend on getopt.
61715         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
61716         of old STRTOL_FATAL_ERROR macro.
61717         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
61718         of test program.
61719         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
61720         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
61721
61722 2007-08-08  Eric Blake  <ebb9@byu.net>
61723
61724         * lib/xstrtol-error.c: Add missing include.
61725
61726         Move xstrtol messages into gnulib domain, when --pobase is used.
61727         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
61728         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
61729         * modules/xstrtol (Files): Distribute new file.
61730         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
61731         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
61732         * tests/test-xstrtol.c: ...into new file.
61733         * tests/test-xstrtoul.c: Also test xstrtoul.
61734         * tests/test-xstrtoimax.c: Also test xstrtoimax.
61735         * tests/test-xstrtoumax.c: Also test xstrtoumax.
61736         * tests/test-xstrtol.sh: Drive the tests.
61737         * tests/test-xstrtoimax.sh: Likewise.
61738         * tests/test-xstrtoumax.sh: Likewise.
61739         * modules/xstrtol-tests: New module.
61740         * modules/xstrtoimax-tests: Likewise.
61741         * modules/xstrtoumax-tests: Likewise.
61742
61743 2007-08-08  Jim Meyering  <jim@meyering.net>
61744
61745         New function: mfile_name_concat.
61746         * lib/filenamecat.c (mfile_name_concat): New function, just like
61747         file_name_concat, but return NULL upon failure rather than exiting
61748         with a diagnostic.
61749         * lib/filenamecat.h: Declare it.
61750
61751 2007-08-07  Bruno Haible  <bruno@clisp.org>
61752
61753         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
61754         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
61755         warning from gcc.
61756         Reported by Eric Blake.
61757
61758 2007-08-07  Simon Josefsson  <simon@josefsson.org>
61759
61760         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
61761         * modules/crypto/arcfour (License): Likewise.
61762         * modules/crypto/des-tests (License): Likewise.
61763         * modules/crypto/gc-arctwo-tests (License): Likewise.
61764         * modules/crypto/gc-des-tests (License): Likewise.
61765         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
61766         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
61767         * modules/crypto/gc-md2-tests (License): Likewise.
61768         * modules/crypto/gc-md4-tests (License): Likewise.
61769         * modules/crypto/gc-md5-tests (License): Likewise.
61770         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
61771         * modules/crypto/gc-rijndael-tests (License): Likewise.
61772         * modules/crypto/gc-sha1-tests (License): Likewise.
61773         * modules/crypto/gc-tests (License): Likewise.
61774         * modules/crypto/hmac-md5 (License): Likewise.
61775         * modules/crypto/hmac-sha1 (License): Likewise.
61776         * modules/crypto/md2-tests (License): Likewise.
61777         * modules/crypto/md4-tests (License): Likewise.
61778         * modules/crypto/md5 (License): Likewise.
61779         * modules/crypto/rijndael (License): Likewise.
61780         * modules/crypto/sha1 (License): Likewise.
61781         * modules/memxor (License): Likewise.
61782
61783 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61784         and Bruno Haible  <bruno@clisp.org>
61785
61786         * NEWS: Describe interface changes to human, xstrtol.
61787         * lib/human.h: Include <xstrtol.h>.
61788         (human_options): Return enum strtol_error, not int.  Remove
61789         bool arg; take int * instead.
61790         * lib/human.c: Don't include "gettext.h".
61791         (_): Remove; no longer used.
61792         Don't include <xstrtol.h>, since human.h does it.
61793         (human_options): Adjust to abovementioned interface changes.
61794         Do not report error to stderr; that's now the caller's
61795         responsibility.
61796         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
61797         interface change.
61798         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
61799         Str, Argument_type_string.  All uses changed.  Put " argument"
61800         in diagnostics to make them clearer.  Change wording of suffix
61801         message for clarity.
61802         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
61803         Argument_type_string.
61804         (STRTOL_FATAL_WARN): Remove; no longer used.
61805         * modules/human (Depends-on): Remove gettext-h.
61806
61807 2007-08-06  Simon Josefsson  <simon@josefsson.org>
61808
61809         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
61810
61811 2007-07-31  Bruno Haible  <bruno@clisp.org>
61812
61813         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
61814         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
61815         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
61816
61817 2007-07-31  Bruno Haible  <bruno@clisp.org>
61818
61819         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
61820         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
61821
61822 2007-07-30  Bruno Haible  <bruno@clisp.org>
61823
61824         * modules/base64 (License): Use the synonymous term "LGPLv2+".
61825         * modules/c-ctype (License): Likewise.
61826         * modules/c-strcase (License): Likewise.
61827         * modules/check-version (License): Likewise.
61828         * modules/iconv (License): Likewise.
61829         * modules/iconv_open (License): Likewise.
61830         * modules/read-file (License): Likewise.
61831         * modules/striconv (License): Likewise.
61832         * modules/strverscmp (License): Likewise.
61833         * modules/vasprintf (License): Likewise.
61834         * modules/crypto/des (License): Likewise.
61835         * modules/crypto/gc (License): Likewise.
61836         * modules/crypto/gc-arcfour (License): Likewise.
61837         * modules/crypto/gc-arctwo (License): Likewise.
61838         * modules/crypto/gc-des (License): Likewise.
61839         * modules/crypto/gc-hmac-md5 (License): Likewise.
61840         * modules/crypto/gc-hmac-sha1 (License): Likewise.
61841         * modules/crypto/gc-md2 (License): Likewise.
61842         * modules/crypto/gc-md4 (License): Likewise.
61843         * modules/crypto/gc-md5 (License): Likewise.
61844         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
61845         * modules/crypto/gc-random (License): Likewise.
61846         * modules/crypto/gc-rijndael (License): Likewise.
61847         * modules/crypto/gc-sha1 (License): Likewise.
61848         * modules/crypto/md2 (License): Likewise.
61849         * modules/crypto/md4 (License): Likewise.
61850
61851 2007-07-30  Jim Meyering  <jim@meyering.net>
61852
61853         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
61854         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
61855         it has valid stat data.  This bug would cause du not to count the
61856         sizes of inaccessible directories.
61857         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
61858         in <http://bugzilla.redhat.com/250077>.
61859
61860 2007-07-25  Peter O'Gorman  <peter@pogma.com>
61861             Bruno Haible  <bruno@clisp.org>
61862
61863         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
61864         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
61865         #include_next, gives a diagnostic about it, but reports no error in
61866         the exit code.
61867         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
61868
61869 2007-07-24  Ben Pfaff  <blp@gnu.org>
61870
61871         Improve name: "count-one-bits" is better than "popcount".
61872         * MODULES.html.sh: Update name.
61873         * lib/popcount.h: Renamed lib/count-one-bits.h.
61874         (popcount): Renamed count_one_bits.
61875         (popcountl): Renamed count_one_bits_l.
61876         (popcountll): Renamed count_one_bits_ll.
61877         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
61878         * modules/popcount: Renamed module/count-one-bits.
61879         * modules/popcount-tests: Renamed module/count-one-bits-tests.
61880         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
61881
61882 2007-07-23  Ben Pfaff  <blp@gnu.org>
61883
61884         * lib/popcount.h (popcount32): Reduce size of constants, to allow
61885         better code generation, and add U to large constants to avoid
61886         warnings, in non-GCC case.
61887         Suggested by Bruno Haible.
61888
61889 2007-07-23  Ben Pfaff  <blp@gnu.org>
61890
61891         * lib/popcount.h: Use verify_true instead of if...abort.
61892         * modules/popcount: Depend on verify module.
61893         Suggested by Jim Meyering.
61894
61895 2007-07-23  Bruno Haible  <bruno@clisp.org>
61896
61897         * gnulib-tool (func_import): Create a .cvsignore file also when the
61898         directory is not yet in CVS but the toplevel directory is. When
61899         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
61900         Reported by Karl Berry.
61901
61902 2007-07-22  Ben Pfaff  <blp@gnu.org>
61903
61904         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
61905         case.
61906         Suggested by Eric Blake.
61907
61908 2007-07-22  Ben Pfaff  <blp@gnu.org>
61909
61910         New module: popcount.
61911         * MODULES.html.sh: Add popcount.
61912         * modules/popcount: New file.
61913         * modules/popcount-tests: New file.
61914         * tests/test-popcount.c: New file.
61915         * lib/popcount.h: New file.
61916         * m4/popcount.m4: New file.
61917
61918 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61919
61920         * build-aux/announce-gen: Update to GPLv3.
61921
61922         * build-aux/config.guess: Update from config.
61923
61924 2007-07-21  Bruno Haible  <bruno@clisp.org>
61925
61926         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
61927         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
61928
61929 2007-07-20  Jim Meyering  <jim@meyering.net>
61930
61931         * check-module: Diagnose a self-dependency.
61932
61933 2007-07-19  Bruno Haible  <bruno@clisp.org>
61934
61935         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
61936         empty.
61937         Reported by Eric Blake.
61938
61939 2007-07-18  Bruno Haible  <bruno@clisp.org>
61940
61941         * gnulib-tool: New options --po-base, --po-domain.
61942         (func_usage): Document them.
61943         (pobase, po_domain): New variables.
61944         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
61945         DEFAULT_TEXT_DOMAIN.
61946         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
61947         (func_import): Consider pobase and po_domain. Create a po/ directory.
61948         (func_create_testdir): Set pobase and po_domain to empty.
61949         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
61950         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
61951
61952 2007-07-18  Bruno Haible  <bruno@clisp.org>
61953
61954         * gnulib-tool (func_get_automake_snippet): Synthesize also an
61955         EXTRA_DIST augmentation for files in build-aux/.
61956
61957 2007-07-16  Bruno Haible  <bruno@clisp.org>
61958
61959         * modules/lseek (License): Use the synonymous term "LGPLv2+".
61960         * modules/getdelim (License): Likewise.
61961
61962 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61963
61964         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
61965         * modules/d-type (License): Likewise.
61966         * modules/extensions (License): Likewise.
61967         * modules/fnmatch (License): Likewise.
61968         * modules/fseeko (License): Likewise.
61969         * modules/getaddrinfo (License): Likewise.
61970         * modules/getline (License): Likewise.
61971         * modules/getlogin_r (License): Likewise.
61972         * modules/getpass (License): Likewise.
61973         * modules/gettimeofday (License): Likewise.
61974         * modules/glob (License): Likewise.
61975         * modules/inet_ntop (License): Likewise.
61976         * modules/malloc (License): Likewise.
61977         * modules/malloca (License): Likewise.
61978         * modules/memmem (License): Likewise.
61979         * modules/mempcpy (License): Likewise.
61980         * modules/memset (License): Likewise.
61981         * modules/minmax (License): Likewise.
61982         * modules/mktime (License): Likewise.
61983         * modules/netinet_in (License): Likewise.
61984         * modules/pathmax (License): Likewise.
61985         * modules/poll (License): Likewise.
61986         * modules/regex (License): Likewise.
61987         * modules/snprintf (License): Likewise.
61988         * modules/stdbool (License): Likewise.
61989         * modules/stdint (License): Likewise.
61990         * modules/stdio (License): Likewise.
61991         * modules/strcase (License): Likewise.
61992         * modules/strcasestr (License): Likewise.
61993         * modules/strdup (License): Likewise.
61994         * modules/string (License): Likewise.
61995         * modules/strndup (License): Likewise.
61996         * modules/strnlen (License): Likewise.
61997         * modules/strpbrk (License): Likewise.
61998         * modules/strptime (License): Likewise.
61999         * modules/strsep (License): Likewise.
62000         * modules/sys_select (License): Likewise.
62001         * modules/sys_socket (License): Likewise.
62002         * modules/sys_stat (License): Likewise.
62003         * modules/sys_time (License): Likewise.
62004         * modules/time (License): Likewise.
62005         * modules/time_r (License): Likewise.
62006         * modules/timegm (License): Likewise.
62007         * modules/unistd (License): Likewise.
62008         * modules/vsnprintf (License): Likewise.
62009         * modules/wctype (License): Likewise.
62010
62011 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62012
62013         * modules/argz (License): LGPLv2+.
62014
62015 2007-07-15  Karl Berry  <karl@gnu.org>
62016
62017         * doc/gnulib.texi: revise node structure per new fdl.texi.
62018
62019 2007-07-14  Bruno Haible  <bruno@clisp.org>
62020
62021         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
62022         the output file.
62023         * lib/uniname/uninames.h: Regenerated.
62024
62025 2007-07-14  Karl Berry  <karl@gnu.org>
62026
62027         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
62028         omitting sectioning and index commands.
62029
62030 2007-07-13  Bruno Haible  <bruno@clisp.org>
62031
62032         New gnulib-tool option --more-symlinks.
62033         * gnulib-tool (func_usage): Document --more-symlinks.
62034         (do_copyrights): New variable.
62035         Recognize option --more-symlinks.
62036         (func_import): Don't add a copyright notice transform to
62037         sed_transform_lib_file if do_copyrights is empty.
62038
62039 2007-07-13  Bruno Haible  <bruno@clisp.org>
62040
62041         * lib/vasnprintf.c (decimal_point_char): Define also if
62042         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
62043         && !NEED_PRINTF_DIRECTIVE_A.
62044         Reported by Clemens Koller <clemens.koller@anagramm.de> via
62045         Gary V. Vaughan <gary@gnu.org>.
62046
62047 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
62048
62049         * lib/inttypes_.h: Undo previous change, since it was fixed
62050         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
62051
62052 2007-07-13  Bruno Haible  <bruno@clisp.org>
62053
62054         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
62055         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
62056
62057 2007-07-13  Jim Meyering  <jim@meyering.net>
62058
62059         df: Don't fail for Tru64's "file-on-file mount".
62060         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
62061         so we fall through and use statfs instead.  Details here:
62062         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
62063         Reported by Albert Chin.
62064
62065 2007-07-13  Bruno Haible  <bruno@clisp.org>
62066
62067         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
62068         * modules/configmake (License): Likewise.
62069         * modules/gettext (License): Likewise.
62070         * modules/gettext-h (License): Likewise.
62071         * modules/include_next (License): Likewise.
62072         * modules/link-warning (License): Likewise.
62073         * modules/localcharset (License): Likewise.
62074         * modules/localename (License): Likewise.
62075         * modules/lock (License): Likewise.
62076         * modules/relocatable-lib-lgpl (License): Likewise.
62077         * modules/size_max (License): Likewise.
62078         * modules/vasnprintf (License): Likewise.
62079         * modules/wchar (License): Likewise.
62080         * modules/xsize (License): Likewise.
62081
62082 2007-07-13  Bruno Haible  <bruno@clisp.org>
62083
62084         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
62085         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
62086
62087 2007-07-12  Bruno Haible  <bruno@clisp.org>
62088
62089         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
62090         in the modules files.
62091
62092 2007-07-11  Karl Berry  <karl@gnu.org>
62093
62094         * MODULES.html.sh (func_module): use
62095          sed -e '\|^'"${includefile}"'$|d'
62096          instead of /.../d, to avoid errors on $includefile's containing /.
62097
62098 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62099
62100         * gnulib-tool (func_import): Avoid duplication of --avoid
62101         statements
62102         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
62103         names to `_' in variable names.
62104
62105 2007-07-10  Eric Blake  <ebb9@byu.net>
62106
62107         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
62108         * NEWS: Document this change.
62109
62110 2007-07-08  Bruno Haible  <bruno@clisp.org>
62111
62112         Update to Unicode 5.0.
62113         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
62114         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
62115         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
62116         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
62117         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
62118         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
62119         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
62120         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
62121         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
62122         U+10A3F, U+1D242..U+1D244.
62123         (nonspacing_table_ind): Update.
62124         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
62125         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
62126
62127 2007-07-08  Bruno Haible  <bruno@clisp.org>
62128
62129         Update to Unicode 5.0.
62130         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
62131         code transform. Extend the name index field of unicode_name_to_code and
62132         unicode_code_to_name from 16 to 24 bits.
62133         * lib/uniname/uniname.c (unicode_character_name,
62134         unicode_name_character): Add the range 0x12xxx to the code transform.
62135         * lib/uniname/uninames.h: Regenerated.
62136         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
62137
62138 2007-07-07  Bruno Haible  <bruno@clisp.org>
62139
62140         * modules/wcwidth-tests: New file.
62141         * tests/test-wcwidth.c: New file.
62142
62143         Work around MacOS X wcwidth() bug.
62144         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
62145         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
62146         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
62147         original wcwidth in non-UTF-8 locales.
62148         * modules/wcwidth (Depends-on): Add localcharset, streq,
62149         uniwidth/width.
62150         * doc/functions/wcwidth.texi: Update.
62151
62152 2007-07-07  Bruno Haible  <bruno@clisp.org>
62153
62154         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
62155         (wcwidth): New declaration.
62156         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
62157         macros.
62158         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
62159         here. Prepare for creating <wchar.h> unconditionally.
62160         * modules/wchar (Depends-on): Add link-warning.
62161         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
62162         REPLACE_WCWIDTH, and GL_LINK_WARNING.
62163         * lib/wcwidth.h: Remove file.
62164         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
62165         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
62166         * modules/wcwidth (Files): Remove lib/wcwidth.h.
62167         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
62168         (Include): Replace wcwidth.h with <wchar.h>.
62169         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
62170         * lib/mbchar.h: Don't include wcwidth.h.
62171         * lib/mbswidth.c: Likewise.
62172         * NEWS: Mention the change.
62173
62174 2007-07-07  Bruno Haible  <bruno@clisp.org>
62175
62176         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
62177         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
62178         definition with an external declaration.
62179         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
62180         defined as a function. Remove AC_C_INLINE requirement.
62181         * modules/wcwidth (Files): Add lib/wcwidth.c.
62182         (Makefile.am): Remove redundant statement.
62183
62184 2007-07-07  Bruno Haible  <bruno@clisp.org>
62185
62186         * MODULES.html.sh (Unicode string functions): Add the new modules.
62187
62188         * tests/uniwidth/test-u32-strwidth.c: New file.
62189         * modules/uniwidth/u32-strwidth-tests: New file.
62190
62191         * lib/uniwidth/u32-strwidth.c: New file.
62192         * modules/uniwidth/u32-strwidth: New file.
62193
62194         * tests/uniwidth/test-u16-strwidth.c: New file.
62195         * modules/uniwidth/u16-strwidth-tests: New file.
62196
62197         * lib/uniwidth/u16-strwidth.c: New file.
62198         * modules/uniwidth/u16-strwidth: New file.
62199
62200         * tests/uniwidth/test-u8-strwidth.c: New file.
62201         * modules/uniwidth/u8-strwidth-tests: New file.
62202
62203         * lib/uniwidth/u8-strwidth.c: New file.
62204         * modules/uniwidth/u8-strwidth: New file.
62205
62206         * tests/uniwidth/test-u32-width.c: New file.
62207         * modules/uniwidth/u32-width-tests: New file.
62208
62209         * lib/uniwidth/u32-width.c: New file.
62210         * modules/uniwidth/u32-width: New file.
62211
62212         * tests/uniwidth/test-u16-width.c: New file.
62213         * modules/uniwidth/u16-width-tests: New file.
62214
62215         * lib/uniwidth/u16-width.c: New file.
62216         * modules/uniwidth/u16-width: New file.
62217
62218         * tests/uniwidth/test-u8-width.c: New file.
62219         * modules/uniwidth/u8-width-tests: New file.
62220
62221         * lib/uniwidth/u8-width.c: New file.
62222         * modules/uniwidth/u8-width: New file.
62223
62224         * tests/uniwidth/test-uc_width.c: New file.
62225         * modules/uniwidth/width-tests: New file.
62226
62227         * lib/uniwidth/width.c: New file, from GNU libiconv.
62228         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
62229         * modules/uniwidth/width: New file.
62230
62231         * lib/uniwidth.h: New file, from GNU libiconv.
62232         * modules/uniwidth/base: New file.
62233
62234 2007-07-07  Bruno Haible  <bruno@clisp.org>
62235
62236         * lib/uniname.h: New file, from GNU gettext.
62237         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
62238         * lib/uniname/uninames.h: New file, from GNU gettext.
62239         * lib/uniname/uniname.c: New file, from GNU gettext.
62240         * tests/uniname/test-uninames.sh: New file.
62241         * tests/uniname/test-uninames.c: New file, from GNU gettext.
62242         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
62243         * modules/uniname/base: New file.
62244         * modules/uniname/uniname: New file.
62245         * modules/uniname/uniname-tests: New file.
62246         * MODULES.html.sh (Unicode string functions): Add the new modules.
62247
62248 2007-07-06  Bruno Haible  <bruno@clisp.org>
62249
62250         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
62251
62252 2007-07-06  Bruno Haible  <bruno@clisp.org>
62253
62254         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
62255         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
62256         includes <cygwin/sys_time.h> which includes <sys/select.h> which
62257         include <sys/time.h>.
62258         Reported by Eric Blake.
62259
62260 2007-07-06  Eric Blake  <ebb9@byu.net>
62261
62262         Fix testing canonicalize on cygwin.
62263         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
62264         Revert patch from 2007-06-19.
62265         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
62266         canonicalize module is also in use.
62267         * tests/test-canonicalize.c: New file.
62268         * tests/test-canonicalize.sh: Likewise.
62269         * modules/canonicalize-tests: Likewise.
62270
62271 2007-07-06  Jim Meyering  <jim@meyering.net>
62272
62273         * lib/getugroups.c (getugroups): Detect getgrent failure.
62274         Adjust comment to reflect reality: this function may return -1.
62275
62276 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
62277
62278         * build-aux/bootstrap (TP_URL,get_translations): Update to use
62279         the new TP address.
62280         (usage): Fix typo
62281         (gnulib_mk): New variable.
62282
62283 2007-07-05  Jim Meyering  <jim@meyering.net>
62284
62285         Don't let endgrent clobber errno, no matter how improbable.
62286         * lib/getugroups.c (getugroups): Save and restore errno around
62287         endgrent call.
62288
62289         Close the group DB even when failing with 2^31 or more members.
62290         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
62291
62292 2007-07-04  Jim Meyering  <jim@meyering.net>
62293
62294         * lib/getugroups.h: New file.
62295         * lib/getugroups.c: Include "getugroups.h".
62296         Remove uses of "register" keyword.
62297         Move local variable, "cp", down into scope where used.
62298         Give "username" parameter the "const" attribute.
62299         * modules/getugroups (Files): Add lib/getugroups.h
62300
62301 2007-07-04  Karl Berry  <karl@gnu.org>
62302
62303         * MODULES.html.sh (func_all_modules): Complete rename of
62304         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
62305
62306 2007-07-02  Bruno Haible  <bruno@clisp.org>
62307
62308         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
62309         mode, when inttypes.h comes from gnulib.
62310         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62311
62312 2007-07-02  Simon Josefsson  <simon@josefsson.org>
62313
62314         * NEWS: Mention lgpl module name change.
62315
62316         * modules/lgpl-2.1: Renamed from lgpl.
62317
62318         * NEWS: Mention gpl module name change.
62319
62320         * modules/gpl-3.0: New file, based on gpl-2.0.
62321
62322         * modules/gpl-2.0: Renamed from gpl.
62323
62324         * modules/gpl: Fix filename, doc/gpl.texi is now found at
62325         doc/gpl-2.0.texi.
62326
62327 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62328
62329         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
62330         #define __STDC_LIMIT_MACROS temporarily while including
62331         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
62332         Problem reported by Joel E. Denny in
62333         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
62334
62335 2007-07-01  Bruno Haible  <bruno@clisp.org>
62336
62337         * lib/unistdio.h: New file.
62338         * lib/unistdio/u-asnprintf.h: New file.
62339         * lib/unistdio/u-asprintf.h: New file.
62340         * lib/unistdio/u-printf-args.c: New file.
62341         * lib/unistdio/u-printf-args.h: New file.
62342         * lib/unistdio/u-printf-parse.h: New file.
62343         * lib/unistdio/u-snprintf.h: New file.
62344         * lib/unistdio/u-sprintf.h: New file.
62345         * lib/unistdio/u-vasprintf.h: New file.
62346         * lib/unistdio/u-vsnprintf.h: New file.
62347         * lib/unistdio/u-vsprintf.h: New file.
62348         * lib/unistdio/ulc-asnprintf.c: New file.
62349         * lib/unistdio/ulc-asprintf.c: New file.
62350         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
62351         * lib/unistdio/ulc-printf-parse.c: New file.
62352         * lib/unistdio/ulc-snprintf.c: New file.
62353         * lib/unistdio/ulc-sprintf.c: New file.
62354         * lib/unistdio/ulc-vasnprintf.c: New file.
62355         * lib/unistdio/ulc-vasprintf.c: New file.
62356         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
62357         * lib/unistdio/ulc-vsnprintf.c: New file.
62358         * lib/unistdio/ulc-vsprintf.c: New file.
62359         * lib/unistdio/u8-asnprintf.c: New file.
62360         * lib/unistdio/u8-asprintf.c: New file.
62361         * lib/unistdio/u8-printf-parse.c: New file.
62362         * lib/unistdio/u8-snprintf.c: New file.
62363         * lib/unistdio/u8-sprintf.c: New file.
62364         * lib/unistdio/u8-vasnprintf.c: New file.
62365         * lib/unistdio/u8-vasprintf.c: New file.
62366         * lib/unistdio/u8-vsnprintf.c: New file.
62367         * lib/unistdio/u8-vsprintf.c: New file.
62368         * lib/unistdio/u8-u8-asnprintf.c: New file.
62369         * lib/unistdio/u8-u8-asprintf.c: New file.
62370         * lib/unistdio/u8-u8-snprintf.c: New file.
62371         * lib/unistdio/u8-u8-sprintf.c: New file.
62372         * lib/unistdio/u8-u8-vasnprintf.c: New file.
62373         * lib/unistdio/u8-u8-vasprintf.c: New file.
62374         * lib/unistdio/u8-u8-vsnprintf.c: New file.
62375         * lib/unistdio/u8-u8-vsprintf.c: New file.
62376         * lib/unistdio/u16-asnprintf.c: New file.
62377         * lib/unistdio/u16-asprintf.c: New file.
62378         * lib/unistdio/u16-printf-parse.c: New file.
62379         * lib/unistdio/u16-snprintf.c: New file.
62380         * lib/unistdio/u16-sprintf.c: New file.
62381         * lib/unistdio/u16-vasnprintf.c: New file.
62382         * lib/unistdio/u16-vasprintf.c: New file.
62383         * lib/unistdio/u16-vsnprintf.c: New file.
62384         * lib/unistdio/u16-vsprintf.c: New file.
62385         * lib/unistdio/u16-u16-asnprintf.c: New file.
62386         * lib/unistdio/u16-u16-asprintf.c: New file.
62387         * lib/unistdio/u16-u16-snprintf.c: New file.
62388         * lib/unistdio/u16-u16-sprintf.c: New file.
62389         * lib/unistdio/u16-u16-vasnprintf.c: New file.
62390         * lib/unistdio/u16-u16-vasprintf.c: New file.
62391         * lib/unistdio/u16-u16-vsnprintf.c: New file.
62392         * lib/unistdio/u16-u16-vsprintf.c: New file.
62393         * lib/unistdio/u32-asnprintf.c: New file.
62394         * lib/unistdio/u32-asprintf.c: New file.
62395         * lib/unistdio/u32-printf-parse.c: New file.
62396         * lib/unistdio/u32-snprintf.c: New file.
62397         * lib/unistdio/u32-sprintf.c: New file.
62398         * lib/unistdio/u32-vasnprintf.c: New file.
62399         * lib/unistdio/u32-vasprintf.c: New file.
62400         * lib/unistdio/u32-vsnprintf.c: New file.
62401         * lib/unistdio/u32-vsprintf.c: New file.
62402         * lib/unistdio/u32-u32-asnprintf.c: New file.
62403         * lib/unistdio/u32-u32-asprintf.c: New file.
62404         * lib/unistdio/u32-u32-snprintf.c: New file.
62405         * lib/unistdio/u32-u32-sprintf.c: New file.
62406         * lib/unistdio/u32-u32-vasnprintf.c: New file.
62407         * lib/unistdio/u32-u32-vasprintf.c: New file.
62408         * lib/unistdio/u32-u32-vsnprintf.c: New file.
62409         * lib/unistdio/u32-u32-vsprintf.c: New file.
62410         * tests/unistdio/test-ulc-asnprintf1.c: New file.
62411         * tests/unistdio/test-ulc-asnprintf1.h: New file.
62412         * tests/unistdio/test-ulc-printf1.h: New file.
62413         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
62414         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
62415         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
62416         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
62417         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
62418         * tests/unistdio/test-ulc-vasprintf1.c: New file.
62419         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
62420         * tests/unistdio/test-ulc-vsprintf1.c: New file.
62421         * tests/unistdio/test-u8-asnprintf1.c: New file.
62422         * tests/unistdio/test-u8-asnprintf1.h: New file.
62423         * tests/unistdio/test-u8-printf1.h: New file.
62424         * tests/unistdio/test-u8-vasnprintf1.c: New file.
62425         * tests/unistdio/test-u8-vasnprintf2.c: New file.
62426         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
62427         * tests/unistdio/test-u8-vasnprintf3.c: New file.
62428         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
62429         * tests/unistdio/test-u8-vasprintf1.c: New file.
62430         * tests/unistdio/test-u8-vsnprintf1.c: New file.
62431         * tests/unistdio/test-u8-vsprintf1.c: New file.
62432         * tests/unistdio/test-u16-asnprintf1.c: New file.
62433         * tests/unistdio/test-u16-asnprintf1.h: New file.
62434         * tests/unistdio/test-u16-printf1.h: New file.
62435         * tests/unistdio/test-u16-vasnprintf1.c: New file.
62436         * tests/unistdio/test-u16-vasnprintf2.c: New file.
62437         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
62438         * tests/unistdio/test-u16-vasnprintf3.c: New file.
62439         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
62440         * tests/unistdio/test-u16-vasprintf1.c: New file.
62441         * tests/unistdio/test-u16-vsnprintf1.c: New file.
62442         * tests/unistdio/test-u16-vsprintf1.c: New file.
62443         * tests/unistdio/test-u32-asnprintf1.c: New file.
62444         * tests/unistdio/test-u32-asnprintf1.h: New file.
62445         * tests/unistdio/test-u32-printf1.h: New file.
62446         * tests/unistdio/test-u32-vasnprintf1.c: New file.
62447         * tests/unistdio/test-u32-vasnprintf2.c: New file.
62448         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
62449         * tests/unistdio/test-u32-vasnprintf3.c: New file.
62450         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
62451         * tests/unistdio/test-u32-vasprintf1.c: New file.
62452         * tests/unistdio/test-u32-vsnprintf1.c: New file.
62453         * tests/unistdio/test-u32-vsprintf1.c: New file.
62454         * modules/unistdio/base: New file.
62455         * modules/unistdio/u-printf-args: New file.
62456         * modules/unistdio/ulc-asnprintf: New file.
62457         * modules/unistdio/ulc-asprintf: New file.
62458         * modules/unistdio/ulc-fprintf: New file.
62459         * modules/unistdio/ulc-printf-parse: New file.
62460         * modules/unistdio/ulc-snprintf: New file.
62461         * modules/unistdio/ulc-sprintf: New file.
62462         * modules/unistdio/ulc-vasnprintf: New file.
62463         * modules/unistdio/ulc-vasprintf: New file.
62464         * modules/unistdio/ulc-vfprintf: New file.
62465         * modules/unistdio/ulc-vsnprintf: New file.
62466         * modules/unistdio/ulc-vsprintf: New file.
62467         * modules/unistdio/u8-asnprintf: New file.
62468         * modules/unistdio/u8-asprintf: New file.
62469         * modules/unistdio/u8-printf-parse: New file.
62470         * modules/unistdio/u8-snprintf: New file.
62471         * modules/unistdio/u8-sprintf: New file.
62472         * modules/unistdio/u8-vasnprintf: New file.
62473         * modules/unistdio/u8-vasprintf: New file.
62474         * modules/unistdio/u8-vsnprintf: New file.
62475         * modules/unistdio/u8-vsprintf: New file.
62476         * modules/unistdio/u8-u8-asnprintf: New file.
62477         * modules/unistdio/u8-u8-asprintf: New file.
62478         * modules/unistdio/u8-u8-snprintf: New file.
62479         * modules/unistdio/u8-u8-sprintf: New file.
62480         * modules/unistdio/u8-u8-vasnprintf: New file.
62481         * modules/unistdio/u8-u8-vasprintf: New file.
62482         * modules/unistdio/u8-u8-vsnprintf: New file.
62483         * modules/unistdio/u8-u8-vsprintf: New file.
62484         * modules/unistdio/u16-asnprintf: New file.
62485         * modules/unistdio/u16-asprintf: New file.
62486         * modules/unistdio/u16-printf-parse: New file.
62487         * modules/unistdio/u16-snprintf: New file.
62488         * modules/unistdio/u16-sprintf: New file.
62489         * modules/unistdio/u16-vasnprintf: New file.
62490         * modules/unistdio/u16-vasprintf: New file.
62491         * modules/unistdio/u16-vsnprintf: New file.
62492         * modules/unistdio/u16-vsprintf: New file.
62493         * modules/unistdio/u16-u16-asnprintf: New file.
62494         * modules/unistdio/u16-u16-asprintf: New file.
62495         * modules/unistdio/u16-u16-snprintf: New file.
62496         * modules/unistdio/u16-u16-sprintf: New file.
62497         * modules/unistdio/u16-u16-vasnprintf: New file.
62498         * modules/unistdio/u16-u16-vasprintf: New file.
62499         * modules/unistdio/u16-u16-vsnprintf: New file.
62500         * modules/unistdio/u16-u16-vsprintf: New file.
62501         * modules/unistdio/u32-asnprintf: New file.
62502         * modules/unistdio/u32-asprintf: New file.
62503         * modules/unistdio/u32-printf-parse: New file.
62504         * modules/unistdio/u32-snprintf: New file.
62505         * modules/unistdio/u32-sprintf: New file.
62506         * modules/unistdio/u32-vasnprintf: New file.
62507         * modules/unistdio/u32-vasprintf: New file.
62508         * modules/unistdio/u32-vsnprintf: New file.
62509         * modules/unistdio/u32-vsprintf: New file.
62510         * modules/unistdio/u32-u32-asnprintf: New file.
62511         * modules/unistdio/u32-u32-asprintf: New file.
62512         * modules/unistdio/u32-u32-snprintf: New file.
62513         * modules/unistdio/u32-u32-sprintf: New file.
62514         * modules/unistdio/u32-u32-vasnprintf: New file.
62515         * modules/unistdio/u32-u32-vasprintf: New file.
62516         * modules/unistdio/u32-u32-vsnprintf: New file.
62517         * modules/unistdio/u32-u32-vsprintf: New file.
62518         * modules/unistdio/ulc-asnprintf-tests: New file.
62519         * modules/unistdio/ulc-vasnprintf-tests: New file.
62520         * modules/unistdio/ulc-vasprintf-tests: New file.
62521         * modules/unistdio/ulc-vsnprintf-tests: New file.
62522         * modules/unistdio/ulc-vsprintf-tests: New file.
62523         * modules/unistdio/u8-asnprintf-tests: New file.
62524         * modules/unistdio/u8-vasnprintf-tests: New file.
62525         * modules/unistdio/u8-vasprintf-tests: New file.
62526         * modules/unistdio/u8-vsnprintf-tests: New file.
62527         * modules/unistdio/u8-vsprintf-tests: New file.
62528         * modules/unistdio/u16-asnprintf-tests: New file.
62529         * modules/unistdio/u16-vasnprintf-tests: New file.
62530         * modules/unistdio/u16-vasprintf-tests: New file.
62531         * modules/unistdio/u16-vsnprintf-tests: New file.
62532         * modules/unistdio/u16-vsprintf-tests: New file.
62533         * modules/unistdio/u32-asnprintf-tests: New file.
62534         * modules/unistdio/u32-vasnprintf-tests: New file.
62535         * modules/unistdio/u32-vasprintf-tests: New file.
62536         * modules/unistdio/u32-vsnprintf-tests: New file.
62537         * modules/unistdio/u32-vsprintf-tests: New file.
62538         * MODULES.html.sh (Unicode string functions): Add the new modules.
62539
62540 2007-07-01  Bruno Haible  <bruno@clisp.org>
62541
62542         * lib/sprintf.c (sprintf): Limit the available length estimation,
62543         to avoid address wraparound.
62544         * lib/vsprintf.c (vsprintf): Likewise.
62545         * modules/sprintf-posix (Dependencies): Add stdint.
62546         * modules/vsprintf-posix (Dependencies): Likewise.
62547
62548 2007-07-01  Bruno Haible  <bruno@clisp.org>
62549
62550         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
62551         Windows PATH as well. Conservative double-quoting. Comments.
62552
62553 2007-07-01  Bruno Haible  <bruno@clisp.org>
62554             Eric Blake  <ebb9@byu.net>
62555             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62556
62557         * gnulib-tool (self_abspathname): Fix algorithm to cope with
62558         empty components in $PATH, denoting '.'.
62559
62560 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62561
62562         * gnulib-tool: Fix indentation.
62563         (func_create_megatestdir): Likewise.
62564         Report by Bruno Haible.
62565
62566 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62567
62568         Sync from Automake.
62569         * build-aux/gnupload: Fix shell portability issues with for loops.
62570         Report by Karl Berry.
62571
62572 2007-06-29  Simon Josefsson  <simon@josefsson.org>
62573
62574         * build-aux/maint.mk (POURL): Use translationproject.org.
62575
62576 2007-06-27  Simon Josefsson  <simon@josefsson.org>
62577             Bruno Haible  <bruno@clisp.org>
62578
62579         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
62580         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
62581         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
62582         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
62583         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
62584
62585 2007-06-27  Bruno Haible  <bruno@clisp.org>
62586
62587         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
62588         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
62589
62590 2007-06-26  Karl Berry  <karl@gnu.org>
62591
62592         * MODULES.html.sh: remove xreadlink-with-size.
62593
62594 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
62595
62596         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
62597         method that I hope also handles the double-include problem noted
62598         by Bruno Haible in
62599         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
62600
62601 2007-06-23  Bruno Haible  <bruno@clisp.org>
62602
62603         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62604         Don't let the 'mostlyclean' target fail if the last subdirectory could
62605         not be removed.
62606         Reported by Karl Berry.
62607
62608 2007-06-23  Bruno Haible  <bruno@clisp.org>
62609
62610         * gnulib-tool (echo): Add a speedier workaround for ksh.
62611         * tests/test-echo.sh: Likewise.
62612
62613 2007-06-23  Bruno Haible  <bruno@clisp.org>
62614
62615         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
62616         * tests/test-echo.sh: Likewise.
62617
62618 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62619
62620         * gnulib-tool (IFS): Initialize early, so we don't set it to
62621         empty later.
62622         (self_abspathname): Rewrite algorithm to set it, reindent.
62623         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
62624         (func_create_megatestdir): Merge some sed scripts.
62625
62626 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
62627
62628         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
62629         exposed by Sun Studio 11 cc on Solaris 8.
62630
62631 2007-06-22  Bruno Haible  <bruno@clisp.org>
62632
62633         * gnulib-tool (echo): Ensure the echo primitive does not interpret
62634         backslashes.
62635         * tests/test-echo.sh: New file.
62636
62637 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62638
62639         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
62640         simplify `sed_replace_build_aux' scripts, they are portable but
62641         echoing them with `echo' is not.
62642         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
62643
62644 2007-06-21  Karl Berry  <karl@gnu.org>
62645
62646         * config/srclist.txt: guess we can't handle the licenses via
62647         srclist at the moment.
62648
62649 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62650
62651         * MODULES.html.sh: Add include_next.
62652         * modules/include_next: New file.
62653
62654 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62655
62656         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
62657         INCLUDE_NEXT.
62658         (gl_CHECK_NEXT_HEADERS): New macro.
62659         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
62660         the obsolescent gl_ABSOLUTE_HEADER.
62661         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
62662         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
62663         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
62664         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
62665         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
62666         * m4/math_h.m4 (gl_MATH_H): Likewise.
62667         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
62668         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
62669         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
62670         * m4/stdint.m4 (gl_STDINT_H): Likewise.
62671         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
62672         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
62673         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
62674         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
62675         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
62676         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
62677         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
62678         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
62679         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
62680         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
62681         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
62682         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62683         * m4/inttypes.m4 (gl_INTTYPES_H): Define
62684         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
62685         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
62686         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
62687         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
62688         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
62689         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
62690         * lib/float_.h: Likewise.
62691         * lib/inttypes_.h: Likewise.
62692         * lib/math_.h: Likewise.
62693         * lib/search_.h: Likewise.
62694         * lib/signal_.h: Likewise.
62695         * lib/stdint_.h: Likewise.
62696         * lib/stdio_.h: Likewise.
62697         * lib/stdlib_.h: Likewise.
62698         * lib/string_.h: Likewise.
62699         * lib/sys_stat_.h: Likewise.
62700         * lib/sys_time_.h: Likewise.
62701         * lib/time_.h: Likewise.
62702         * lib/unistd_.h: Likewise.
62703         * lib/wchar_.h: Likewise.
62704         * lib/wctype_.h: Likewise.
62705         * lib/dirent_.h: Likewise.
62706         * lib/iconv_.h: Likewise.
62707         * lib/locale_.h: Likewise.
62708         * lib/netinet_in_.h: Likewise.
62709         * lib/sys_select_.h: Likewise.
62710         * lib/sys_socket_.h: Likewise.
62711         * lib/sysexits_.h: Likewise.
62712         * modules/fcntl (Depends-on): Depend on include_next, not
62713         absolute_header.
62714         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
62715         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
62716         * modules/fchdir: Likewise.
62717         * modules/float: Likewise.
62718         * modules/iconv_open: Likewise.
62719         * modules/inttypes: Likewise.
62720         * modules/locale: Likewise.
62721         * modules/math: Likewise.
62722         * modules/netinet_in: Likewise.
62723         * modules/search: Likewise.
62724         * modules/signal: Likewise.
62725         * modules/stdint: Likewise.
62726         * modules/stdio: Likewise.
62727         * modules/stdlib: Likewise.
62728         * modules/string: Likewise.
62729         * modules/sys_select: Likewise.
62730         * modules/sys_socket: Likewise.
62731         * modules/sys_stat: Likewise.
62732         * modules/sys_time: Likewise.
62733         * modules/sysexits: Likewise.
62734         * modules/time: Likewise.
62735         * modules/unistd: Likewise.
62736         * modules/wchar: Likewise.
62737         * modules/wctype: Likewise.
62738         * modules/sys_stat: Change maintainer to "all".
62739         * modules/unistd: Likewise.
62740
62741 2007-06-20  Karl Berry  <karl@gnu.org>
62742
62743         * config/srclist.txt: track www changes in license files.
62744
62745 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
62746
62747         * build-aux/bootstrap: Remove stray dot.
62748         Make sure build_aux settings are honored when linking
62749         gnulib_extra_files.
62750
62751 2007-06-19  Eric Blake  <ebb9@byu.net>
62752
62753         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
62754         Allow compilation on cygwin.
62755
62756 2007-06-19  Jim Meyering  <jim@meyering.net>
62757
62758         xreadlink-with-size: Remove module.  No longer used.
62759         Ex-callers now use xreadlink or mreadlink-with-size.
62760         * modules/xreadlink-with-size: Remove module.
62761         * lib/xreadlink-with-size.c: Remove file.
62762         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
62763         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
62764         just before the function definition *is* accurate.
62765
62766         Eliminate one way canonicalize_filename_mode could exit.
62767         * lib/canonicalize.c (canonicalize_filename_mode):
62768         Use mreadlink_with_size, not xreadlink_with_size.
62769
62770 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
62771
62772         Detect porting problems to FreeBSD/arm, which has time_t wider than
62773         long int.  Original problem reported for GNU diff by Xin Li in
62774         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
62775         * modules/getdate (Depends-on): Add intprops, verify.
62776         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
62777         is an integer type no wider than long int.
62778
62779 2007-06-18  Jim Meyering  <jim@meyering.net>
62780
62781         New module: mreadlink-with-size.
62782         * MODULES.html.sh: Add mreadlink-with-size.
62783         * modules/mreadlink-with-size: New module
62784         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
62785         not xreadlink-with-size.
62786         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
62787
62788 2007-06-16  Bruno Haible  <bruno@clisp.org>
62789
62790         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
62791         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
62792         Reported by Gary V. Vaughan <gary@gnu.org>.
62793
62794 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
62795
62796         Revamp lchown so that it lives in unistd.h where it belongs.
62797         * lib/lchown.h: Remove.
62798         * lib/dirchownmod.c: Don't include lib/lchown.h.
62799         * lib/fchownat.c: Likewise.
62800         * lib/openat.c: Likewise.
62801         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
62802         does not follow symlinks.
62803         (EOPNOTSUPP): Define if not defined.
62804         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
62805         is defined to 0.
62806         (lchown): New decl.
62807         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
62808         Do not check for lchown decl.
62809         Set REPLACE_LCHOWN.
62810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
62811         REPLACE_LCHOWN.
62812         * modules/chown: Make it clear it follows symlinks.
62813         * modules/lchown: Make it clear it doesn't follow symlinks.
62814         (Files): Remove lib/lchown.h
62815         (Depends-on): Add unistd.
62816         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
62817         (Include): Include <unistd.h>, not "lchown.h".
62818         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
62819         REPLACE_LCHOWN.
62820
62821 2007-06-15  Jim Meyering  <jim@meyering.net>
62822
62823         Change license (GPL to LGPL) of fsusage and dependents.
62824         * modules/fsusage (License): Change to LGPL.
62825         * modules/full-read (License): Likewise.
62826         * modules/full-write (License): Likewise.
62827         * modules/safe-read (License): Likewise.
62828         * modules/safe-write (License): Likewise.
62829
62830 2007-06-14  Ben Pfaff  <blp@gnu.org>
62831
62832         Missing part of allocsa -> malloca transition.
62833         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
62834         gl_MALLOCA.
62835
62836 2007-06-12  Bruno Haible  <bruno@clisp.org>
62837
62838         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
62839         to ia64, x86_64, i386.
62840         Reported by Eric Blake.
62841
62842 2007-06-12  Bruno Haible  <bruno@clisp.org>
62843
62844         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
62845         cross-compiling to x86_64.
62846
62847 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
62848
62849         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
62850         glitch reported by Ralf Wildenhues in
62851         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
62852
62853         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
62854         Vin Shelton.
62855
62856 2007-06-11  Bruno Haible  <bruno@clisp.org>
62857
62858         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
62859         replacement string.
62860         Reported by Eric Blake.
62861
62862 2007-06-10  Bruno Haible  <bruno@clisp.org>
62863
62864         Prepare vasnprintf code for use with Unicode strings.
62865         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
62866         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
62867         TYPE_U32_STRING.
62868         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
62869         a_u32_string variants.
62870         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
62871         * lib/printf-args.c: Don't include config.h and the specification
62872         header if PRINTF_FETCHARGS is already defined.
62873         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
62874         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
62875         TYPE_U16_STRING, TYPE_U32_STRING.
62876         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
62877         u16_directive, u16_directives, u32_directive, u32_directives): New
62878         types.
62879         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
62880         New declarations.
62881         * lib/printf-parse.c: Don't include config.h and the specification
62882         header if PRINTF_PARSE is already defined. Eliminate the set of
62883         parameters for WIDE_CHAR_VERSION; the user of this file must provide
62884         them now. Include c-ctype.h.
62885         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
62886         directive and CHAR_T_ONLY_ASCII.
62887         * lib/vasnprintf.c: Don't include config.h and the specification header
62888         if VASNPRINTF is already defined.
62889         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
62890         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
62891         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
62892         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
62893         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
62894         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
62895         code accordingly.
62896         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
62897         pad_ourselves also in this case, with the 'c' and 's' directives, and
62898         with a different notion of "width".
62899         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
62900
62901 2007-06-10  Bruno Haible  <bruno@clisp.org>
62902
62903         * modules/unistr/u32-mbsnlen: New file.
62904         * lib/unistr/u32-mbsnlen.c: New file.
62905
62906         * modules/unistr/u16-mbsnlen: New file.
62907         * lib/unistr/u16-mbsnlen.c: New file.
62908
62909         * modules/unistr/u8-mbsnlen: New file.
62910         * lib/unistr/u8-mbsnlen.c: New file.
62911
62912         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
62913         declarations.
62914
62915 2007-06-10  Bruno Haible  <bruno@clisp.org>
62916
62917         * lib/string_.h (mbsnlen): New declaration.
62918         * lib/mbsnlen.c: New file.
62919         * m4/mbsnlen.m4: New file.
62920         * modules/mbsnlen: New file.
62921         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
62922         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
62923         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
62924
62925 2007-06-10  Bruno Haible  <bruno@clisp.org>
62926
62927         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
62928
62929 2007-06-10  Bruno Haible  <bruno@clisp.org>
62930
62931         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
62932         * lib/mbuiter.h: Likewise.
62933
62934 2007-06-10  Bruno Haible  <bruno@clisp.org>
62935
62936         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
62937         declaration.
62938
62939 2007-06-10  Karl Berry  <karl@gnu.org>
62940
62941         * config/srclist.txt: remove gettext entries, Bruno prefers
62942         to update individually.
62943
62944 2007-06-10  Bruno Haible  <bruno@clisp.org>
62945
62946         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
62947         'maxlen'. Ensure only length + width bytes are allocated, not
62948         length + 1 + width.
62949
62950 2007-06-09  Bruno Haible  <bruno@clisp.org>
62951
62952         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
62953         (CHAR_T): Remove macro.
62954         (VASNPRINTF): Update.
62955
62956 2007-06-09  Bruno Haible  <bruno@clisp.org>
62957
62958         * MODULES.html.sh (Unicode string functions): Add the new modules.
62959
62960         * modules/uniconv/u32-conv-to-enc: New file.
62961         * lib/uniconv/u32-conv-to-enc.c: New file.
62962         * modules/uniconv/u32-conv-to-enc-tests: New file.
62963         * tests/uniconv/test-u32-conv-to-enc.c: New file.
62964
62965         * modules/uniconv/u16-conv-to-enc: New file.
62966         * lib/uniconv/u16-conv-to-enc.c: New file.
62967         * lib/uniconv/u-conv-to-enc.h: New file.
62968         * modules/uniconv/u16-conv-to-enc-tests: New file.
62969         * tests/uniconv/test-u16-conv-to-enc.c: New file.
62970
62971         * modules/uniconv/u8-conv-to-enc: New file.
62972         * lib/uniconv/u8-conv-to-enc.c: New file.
62973         * modules/uniconv/u8-conv-to-enc-tests: New file.
62974         * tests/uniconv/test-u8-conv-to-enc.c: New file.
62975
62976         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
62977         u32_conv_to_encoding): New declarations.
62978
62979 2007-06-09  Bruno Haible  <bruno@clisp.org>
62980
62981         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
62982
62983 2007-06-09  Bruno Haible  <bruno@clisp.org>
62984
62985         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
62986         * modules/malloca: Renamed from modules/allocsa, updated.
62987         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
62988         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
62989         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
62990         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
62991         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
62992         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
62993         * modules/xmalloca: Renamed from modules/xallocsa, updated.
62994         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
62995         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
62996         * modules/c-strcasestr (Depends-on): Update.
62997         * lib/c-strcasestr.c: Update.
62998         * modules/c-strstr (Depends-on): Update.
62999         * lib/c-strstr.c: Update.
63000         * modules/canonicalize-lgpl (Depends-on): Update.
63001         * lib/canonicalize-lgpl.c: Update.
63002         * modules/clean-temp (Depends-on): Update.
63003         * lib/clean-temp.c: Update.
63004         * modules/csharpcomp (Depends-on): Update.
63005         * lib/csharpcomp.c: Update.
63006         * modules/csharpexec (Depends-on): Update.
63007         * lib/csharpexec.c: Update.
63008         * modules/javacomp (Depends-on): Update.
63009         * lib/javacomp.c: Update.
63010         * modules/javaexec (Depends-on): Update.
63011         * lib/javaexec.c: Update.
63012         * modules/mbscasestr (Depends-on): Update.
63013         * lib/mbscasestr.c: Update.
63014         * modules/mbsstr (Depends-on): Update.
63015         * lib/mbsstr.c: Update.
63016         * modules/setenv (Depends-on): Update.
63017         * lib/setenv.c: Update.
63018         * modules/strcasestr (Depends-on): Update.
63019         * lib/strcasestr.c: Update.
63020         * modules/striconveha (Depends-on): Update.
63021         * lib/striconveha.c: Update.
63022         * modules/relocatable-prog-wrapper (Files): Update.
63023         * lib/relocwrapper.c: Update.
63024         * build-aux/install-reloc: Update.
63025         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
63026
63027 2007-06-08  Bruno Haible  <bruno@clisp.org>
63028
63029         Port to uClibc.
63030         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
63031         * lib/fpurge.c (fpurge): Likewise.
63032         * lib/freading.c (freading): Likewise.
63033         * lib/fseeko.c (rpl_fseeko): Likewise.
63034         * lib/fseterr.c (fseterr): Likewise.
63035         * lib/fwriting.c (fwriting): Likewise.
63036         * tests/test-fflush.c (main): Avoid a failure on uClibc.
63037
63038 2007-06-08  Bruno Haible  <bruno@clisp.org>
63039
63040         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
63041         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
63042         * modules/gettext (Files): Add m4/intlmacosx.m4.
63043
63044 2007-06-07  Bruno Haible  <bruno@clisp.org>
63045
63046         * modules/localename-tests: New file.
63047         * tests/test-localename.c: New file.
63048
63049         New module 'localename'.
63050         * lib/localename.h: New file.
63051         * lib/localename.c: New file, from GNU gettext.
63052         * m4/localename.m4: New file.
63053         * modules/localename: New file.
63054
63055 2007-06-07  Bruno Haible  <bruno@clisp.org>
63056
63057         Work around the lack of <wchar.h> on some builds of uClibc.
63058         * doc/headers/wchar.texi: Update.
63059         * lib/wchar_.h: Include <wchar.h> only if it exists.
63060         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
63061         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
63062         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
63063         doesn't exist.
63064         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
63065         * modules/mbfile (Depends-on): Add wchar.
63066         * modules/mbiter (Depends-on): Likewise.
63067         * modules/mbuiter (Depends-on): Likewise.
63068         Reported by Simon Josefsson.
63069
63070 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63071
63072         Work around problem reported by Steven M. Schweda in
63073         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
63074         Tru64 5.1B with the Compaq compiler environment installed declares
63075         an 'isblank' function but does not define it in the C library.
63076         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
63077         * lib/regex_internal.h (isblank): Likewise.
63078         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
63079         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63080
63081 2007-06-05  Bruno Haible  <bruno@clisp.org>
63082
63083         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
63084         ia64.
63085         * modules/printf-safe: New file.
63086         * modules/fprintf-posix (Depends-on): Add printf-safe.
63087         * modules/printf-posix (Depends-on): Likewise.
63088         * modules/snprintf-posix (Depends-on): Likewise.
63089         * modules/sprintf-posix (Depends-on): Likewise.
63090         * modules/vasnprintf-posix (Depends-on): Likewise.
63091         * modules/vasprintf-posix (Depends-on): Likewise.
63092         * modules/vfprintf-posix (Depends-on): Likewise.
63093         * modules/vprintf-posix (Depends-on): Likewise.
63094         * modules/vsnprintf-posix (Depends-on): Likewise.
63095         * modules/vsprintf-posix (Depends-on): Likewise.
63096         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
63097         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
63098         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
63099         "no" on i386, x86_64, ia64.
63100         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
63101         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63102         on i386, x86_64, ia64.
63103         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
63104         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63105         on i386, x86_64, ia64.
63106         * tests/test-vasnprintf-posix.c: Include float.h.
63107         (LDBL80_WORDS): New macro.
63108         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63109         on i386, x86_64, ia64.
63110         * tests/test-vasprintf-posix.c: Include float.h.
63111         (LDBL80_WORDS): New macro.
63112         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63113         on i386, x86_64, ia64.
63114         * tests/test-snprintf-posix.c: Include float.h.
63115         * tests/test-sprintf-posix.c: Likewise.
63116         * tests/test-vsnprintf-posix.c: Likewise.
63117         * tests/test-vsprintf-posix.c: Likewise.
63118
63119 2007-06-05  Bruno Haible  <bruno@clisp.org>
63120
63121         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
63122         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
63123         non-IEEE numbers on i386, x86_64, ia64.
63124         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
63125         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
63126         * tests/test-isnanl.h: Include float.h.
63127         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
63128
63129 2007-06-05  Bruno Haible  <bruno@clisp.org>
63130
63131         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
63132         also the %a / %A. Handle the %a / %A code before this extra handling.
63133
63134 2007-06-05  Bruno Haible  <bruno@clisp.org>
63135
63136         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
63137         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
63138
63139 2007-06-05  Bruno Haible  <bruno@clisp.org>
63140
63141         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
63142         typo in variable name.
63143
63144 2007-06-05  Eric Blake  <ebb9@byu.net>
63145
63146         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
63147         Reported by Simon Josefsson.
63148
63149 2007-06-04  Bruno Haible  <bruno@clisp.org>
63150
63151         Avoid test failures on some PowerPC platforms.
63152         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
63153         Define differently for PowerPC.
63154         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
63155         Reported by Gary V. Vaughan <gary@gnu.org>.
63156
63157 2007-06-02  Bruno Haible  <bruno@clisp.org>
63158
63159         Fix test-stdint failure on FreeBSD/ia64.
63160         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
63161         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
63162         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
63163         * doc/headers/stdint.texi: Update.
63164
63165 2007-06-01  Bruno Haible  <bruno@clisp.org>
63166
63167         * tests/test-binary-io.c (main): Pass a third argument to open().
63168         Reported by Gary V. Vaughan <gary@gnu.org>.
63169
63170 2007-06-01  Bruno Haible  <bruno@clisp.org>
63171
63172         * doc/functions/frexpl.texi: Update for mingw.
63173
63174 2007-06-01  Bruno Haible  <bruno@clisp.org>
63175
63176         * tests/test-lseek.c (main): Disable test of errno for invalid third
63177         argument.
63178         * doc/functions/lseek.texi: Update.
63179         Reported by Gary V. Vaughan <gary@gnu.org>.
63180
63181 2007-05-28  Bruno Haible  <bruno@clisp.org>
63182
63183         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
63184
63185 2007-05-31  Eric Blake  <ebb9@byu.net>
63186
63187         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
63188         cross compiling.
63189
63190 2007-05-30  Eric Blake  <ebb9@byu.net>
63191         and Bruno Haible  <bruno@clisp.org>
63192
63193         Work around mingw test failures exposed by m4-1.4.9b.
63194         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
63195         * tests/test-unistd.c: Disable uid_t and git_t tests for the
63196         moment.
63197
63198 2007-05-30  Bruno Haible  <bruno@clisp.org>
63199
63200         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
63201         assuming that they are closed. Needed on HP-UX 11.
63202
63203 2007-05-29  Bruno Haible  <bruno@clisp.org>
63204
63205         Fix a problem with #include_next.
63206         * lib/dirent_.h: Split the double-inclusion guard.
63207         * lib/fcntl_.h: Likewise.
63208         * lib/float_.h: Likewise.
63209         * lib/iconv_.h: Likewise.
63210         * lib/inttypes_.h: Likewise.
63211         * lib/locale_.h: Likewise.
63212         * lib/math_.h: Likewise.
63213         * lib/netinet_in_.h: Likewise.
63214         * lib/search_.h: Likewise.
63215         * lib/signal_.h: Likewise.
63216         * lib/stdint_.h: Likewise.
63217         * lib/stdio_.h: Likewise.
63218         * lib/stdlib_.h: Likewise.
63219         * lib/string_.h: Likewise.
63220         * lib/sys_select_.h: Likewise.
63221         * lib/sys_socket_.h: Likewise.
63222         * lib/sys_stat_.h: Likewise.
63223         * lib/sys_time_.h: Likewise.
63224         * lib/sysexits_.h: Likewise.
63225         * lib/time_.h: Likewise.
63226         * lib/unistd_.h: Likewise.
63227         * lib/wchar_.h: Likewise.
63228         * lib/wctype_.h: Likewise.
63229
63230 2007-05-29  Bruno Haible  <bruno@clisp.org>
63231
63232         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
63233         for the moment.
63234
63235 2007-05-29  Bruno Haible  <bruno@clisp.org>
63236
63237         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
63238         invocation.
63239         Reported by Eric Blake.
63240
63241 2007-05-29  Bruno Haible  <bruno@clisp.org>
63242
63243         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
63244         compiling case.
63245
63246 2007-05-29  Eric Blake  <ebb9@byu.net>
63247             Bruno Haible  <bruno@clisp.org>
63248
63249         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
63250         cross compiles.
63251
63252 2007-05-28  Eric Blake  <ebb9@byu.net>
63253
63254         * modules/closein-tests (test_closein_LDADD): Support test on
63255         cygwin with libtool.
63256
63257 2007-05-28  Bruno Haible  <bruno@clisp.org>
63258
63259         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
63260         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63261         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63262         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63263         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63264         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63265         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63266         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63267         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63268
63269 2007-05-28  Eric Blake  <ebb9@byu.net>
63270
63271         Unconditionally include <config.h> in unit tests.
63272         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
63273         * tests/test-allocsa.c, tests/test-arcfour.c,
63274         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
63275         tests/test-array_list.c, tests/test-array_oset.c,
63276         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
63277         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
63278         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
63279         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
63280         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
63281         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
63282         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
63283         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
63284         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
63285         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
63286         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
63287         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
63288         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
63289         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
63290         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
63291         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
63292         test-md5.c, test-memmem.c, test-printf-posix.c,
63293         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
63294         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
63295         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
63296         test-strcasestr.c, test-striconv.c, test-striconveh.c,
63297         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
63298         test-vasnprintf-posix2.c, test-vasnprintf.c,
63299         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
63300         test-vfprintf-posix.c, test-vprintf-posix.c,
63301         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
63302         test-xvasprintf.c: Likewise.
63303
63304 2007-05-28  Bruno Haible  <bruno@clisp.org>
63305
63306         * gnulib-tool (func_import): Remember the --with-tests command-line
63307         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
63308         Reported by Eric Blake.
63309
63310 2007-05-28  Bruno Haible  <bruno@clisp.org>
63311
63312         * modules/ftell-tests: New file.
63313         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
63314         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
63315
63316         * lib/ftell.c: New file.
63317         * modules/ftell: New file.
63318         * m4/ftell.m4: New file.
63319         * doc/functions/ftell.texi: Update.
63320         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
63321         REPLACE_FTELL.
63322         * lib/stdio_.h (rpl_ftell): New declaration.
63323         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
63324         REPLACE_FTELL.
63325
63326 2007-05-28  Eric Blake  <ebb9@byu.net>
63327
63328         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
63329
63330 2007-05-28  Bruno Haible  <bruno@clisp.org>
63331
63332         * modules/fseek-tests: New file.
63333         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
63334         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
63335
63336         * lib/fseek.c: New file.
63337         * modules/fseek: New file.
63338         * m4/fseek.m4: New file.
63339         * doc/functions/fseek.texi: Update.
63340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
63341         REPLACE_FSEEK.
63342         * lib/stdio_.h (rpl_fseek): New declaration.
63343         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
63344         REPLACE_FSEEK.
63345
63346 2007-05-28  Bruno Haible  <bruno@clisp.org>
63347
63348         * lib/stdio_.h (fflush): More comments.
63349
63350 2007-05-28  Bruno Haible  <bruno@clisp.org>
63351
63352         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
63353         runtime test.
63354
63355 2007-05-28  Eric Blake  <ebb9@byu.net>
63356
63357         Improve lseek module.
63358         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
63359         * lib/unistd_.h (lseek): Scale back link warning message.
63360         * tests/test-lseek.c: Beef up test.
63361         * tests/test-lseek.sh: Exercise more facets of lseek.
63362         Reported by Bruno Haible.
63363
63364 2007-05-28  Bruno Haible  <bruno@clisp.org>
63365
63366         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
63367         to define.
63368
63369 2007-05-27  Bruno Haible  <bruno@clisp.org>
63370
63371         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
63372
63373 2007-05-27  Bruno Haible  <bruno@clisp.org>
63374
63375         * modules/openmp: New file.
63376         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
63377         Noah Misch.
63378
63379 2007-05-26  Bruno Haible  <bruno@clisp.org>
63380
63381         * modules/chdir-long (Depends-on): Add fchdir.
63382         * modules/chdir-safer (Depends-on): Likewise.
63383         * modules/fts (Depends-on): Likewise.
63384         * modules/fts-lgpl (Depends-on): Likewise.
63385         * modules/openat (Depends-on): Likewise.
63386         * modules/savewd (Depends-on): Likewise.
63387
63388 2007-05-24  Eric Blake  <ebb9@byu.net>
63389
63390         Fix lseek on mingw.
63391         * modules/lseek: New module.
63392         * m4/lseek.m4: New file.
63393         * lib/lseek.c: New file.
63394         * modules/lseek-tests: New file.
63395         * tests/test-lseek.c: New file.
63396         * tests/test-lseek.sh: New file.
63397         * MODULES.html.sh: Document lseek module.
63398         * modules/fflush (Depends-on): Add lseek, fseeko.
63399         * modules/fseeko (Depends-on): Likewise.
63400         * modules/ftello (Depends-on): Likewise.
63401         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
63402         broken.
63403         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
63404         broken.
63405         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
63406         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
63407         * lib/ftello.c (rpl_ftello): Likewise.
63408         * tests/test-fseeko.c (main): Test this.
63409         * tests/test-fseeko.sh: Likewise.
63410         * tests/test-ftello.c (main): Likewise.
63411         * tests/test-ftello.sh: Likewise.
63412         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
63413         implies replacing fseek.
63414         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
63415         HAVE_FTELLO.
63416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
63417         * modules/unistd (Makefile.am): Likewise.
63418         * lib/unistd_.h (lseek): Declare a replacement.
63419         * doc/functions/lseek.texi (lseek): Document this fix.
63420         * doc/functions/fseek.texi (fseek): Likewise.
63421         * doc/functions/ftell.texi (ftell): Likewise.
63422
63423 2007-05-24  Bruno Haible  <bruno@clisp.org>
63424
63425         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
63426         in the printed representation of a NaN.
63427         * tests/test-vasprintf-posix.c (test_function): Likewise.
63428         * tests/test-snprintf-posix.h (test_function): Likewise.
63429         * tests/test-sprintf-posix.h (test_function): Likewise.
63430         Reported by Eric Blake.
63431
63432 2007-05-23  Eric Blake  <ebb9@byu.net>
63433
63434         Fix fseeko/ftello on cygwin 1.5.24.
63435         * doc/functions/fseeko.texi (fseeko): Document the fix.
63436         * doc/functions/ftello.texi (ftello): Document the fix.
63437         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
63438         * doc/functions/stdout.text (stdout): New file.
63439         * doc/functions/stderr.text (stderr): New file.
63440         * doc/gnulib.texi (Function Substitutes): Use new files.
63441         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
63442         prior to 1.7.0.
63443         * tests/test-ftello.c (main): Likewise for ftello.
63444         * tests/test-fseeko.sh: New file.
63445         * tests/test-ftello.sh: New file.
63446         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
63447         with seekable stdin.
63448         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
63449         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
63450         (gl_REPLACE_FSEEKO): New macro.
63451         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
63452         * modules/fseeko (Files): Distribute fseeko.c.
63453         * modules/ftello (Files): Distribute ftello.c.
63454         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
63455         mode.
63456         * lib/ftello.c (rpl_ftello): New file.
63457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
63458         fseeko, ftello.
63459         (gl_STDIN_LARGE_OFFSET): New macro.
63460         * modules/stdio (Makefile.am): Perform the replacement.
63461         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
63462
63463 2007-05-23  Bruno Haible  <bruno@clisp.org>
63464
63465         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
63466         GNULIB_POSIXCHECK is defined.
63467
63468 2007-05-21  Bruno Haible  <bruno@clisp.org>
63469
63470         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
63471         Check also the output for NaN arguments. When cross-compiling, guess
63472         no on IRIX.
63473         * lib/vasnprintf.c: Update comments.
63474         * tests/test-vasnprintf-posix.c (strisnan): New function.
63475         (test_function): Use it.
63476         * tests/test-vasprintf-posix.c (strisnan): New function.
63477         (test_function): Use it.
63478         * tests/test-snprintf-posix.h (strisnan): New function.
63479         (test_function): Use it.
63480         * tests/test-sprintf-posix.h (strisnan): New function.
63481         (test_function): Use it.
63482         Reported by Eric Blake.
63483
63484 2007-05-20  Bruno Haible  <bruno@clisp.org>
63485
63486         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
63487         numbers that fails on BeOS.
63488         * doc/functions/frexpl.texi: Update.
63489
63490 2007-05-20  Jim Meyering  <jim@meyering.net>
63491
63492         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
63493         forced upon us by glibc-2.6.
63494
63495 2007-05-20  Bruno Haible  <bruno@clisp.org>
63496
63497         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
63498         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
63499         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
63500         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
63501         NEED_PRINTF_INFINITE.
63502         (is_infinitel): New function.
63503         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
63504         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
63505         gl_PREREQ_VASNPRINTF_INFINITE.
63506         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
63507         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63508         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
63509         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
63510         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
63511         gl_PREREQ_VASNPRINTF_INFINITE.
63512         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63513         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63514         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63515         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63516         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63517         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63518         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63519         * doc/functions/fprintf.texi: Update.
63520         * doc/functions/printf.texi: Update.
63521         * doc/functions/snprintf.texi: Update.
63522         * doc/functions/sprintf.texi: Update.
63523         * doc/functions/vfprintf.texi: Update.
63524         * doc/functions/vprintf.texi: Update.
63525         * doc/functions/vsnprintf.texi: Update.
63526         * doc/functions/vsprintf.texi: Update.
63527
63528 2007-05-20  Bruno Haible  <bruno@clisp.org>
63529
63530         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
63531         was not found in libc.
63532         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63533
63534 2007-05-20  Bruno Haible  <bruno@clisp.org>
63535
63536         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
63537         printed as "-nan" instead of "nan".
63538         * tests/test-vasprintf-posix.c (test_function): Likewise.
63539         * tests/test-snprintf-posix.h (test_function): Likewise.
63540         * tests/test-sprintf-posix.h (test_function): Likewise.
63541         Needed for HP-UX 11.
63542
63543 2007-05-20  Jim Meyering  <jim@meyering.net>
63544
63545         Fix buggy test for the fchownat-deref bug.
63546         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
63547         symlink required for the run-test.  Without it, this test would
63548         always declare that fchownat doesn't work, and client code would
63549         unnecessarily use the replacement function with fixed libc.
63550         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
63551         Reported by Greg Schafer.
63552
63553 2007-05-19  Bruno Haible  <bruno@clisp.org>
63554
63555         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
63556         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
63557         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
63558         Needed for IRIX 6.5 and Solaris 2.5.1.
63559
63560 2007-05-19  Bruno Haible  <bruno@clisp.org>
63561
63562         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
63563         (test_function): Skip tests involving -0.0 on platforms where
63564         -0.0 = 0.0.
63565         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
63566         (test_function): Skip tests involving -0.0 on platforms where
63567         -0.0 = 0.0.
63568         * tests/test-snprintf-posix.h (have_minus_zero): New function.
63569         (test_function): Skip tests involving -0.0 on platforms where
63570         -0.0 = 0.0.
63571         * tests/test-sprintf-posix.h (have_minus_zero): New function.
63572         (test_function): Skip tests involving -0.0 on platforms where
63573         -0.0 = 0.0.
63574         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
63575         tests.
63576         * tests/test-printf-posix.h (test_function): Likewise.
63577         * tests/test-printf-posix.output: Remove all -0.0 related results.
63578         Needed for IRIX 6.5.
63579
63580 2007-05-19  Bruno Haible  <bruno@clisp.org>
63581
63582         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
63583         printed as "nan0x7fffffff" instead of "nan".
63584         * tests/test-vasprintf-posix.c (test_function): Likewise.
63585         * tests/test-snprintf-posix.h (test_function): Likewise.
63586         * tests/test-sprintf-posix.h (test_function): Likewise.
63587         * tests/test-fprintf-posix.h (NaN): Remove macro.
63588         (test_function): Remove all NaN related tests.
63589         * tests/test-printf-posix.h (NaN): Remove macro.
63590         (test_function): Remove all NaN related tests.
63591         * tests/test-printf-posix.output: Remove all NaN related results.
63592         Needed for IRIX 6.5.
63593
63594 2007-05-19  Bruno Haible  <bruno@clisp.org>
63595
63596         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
63597         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
63598
63599 2007-05-19  Bruno Haible  <bruno@clisp.org>
63600
63601         * lib/float_.h: New file.
63602         * m4/float_h.m4: New file.
63603         * modules/float: New file.
63604         * modules/isnanl (Dependencies): Add float.
63605         * modules/isnanl-nolibm (Dependencies): Likewise.
63606         * modules/mathl (Dependencies): Likewise.
63607         * modules/printf-frexpl (Dependencies): Likewise.
63608         * modules/signbit (Dependencies): Likewise.
63609         * modules/vasnprintf (Dependencies): Likewise.
63610         * doc/headers/float.texi: Update.
63611
63612 2007-05-19  Jim Meyering  <jim@meyering.net>
63613
63614         * lib/utimens.c (gl_futimens): Rename from futimens,
63615         now that glibc-2.6 declares futimens.
63616         * lib/utimens.h: Likewise.
63617
63618 2007-05-19  Bruno Haible  <bruno@clisp.org>
63619
63620         Avoid test failures on mingw.
63621         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
63622         * tests/test-printf-posix.sh: Likewise.
63623         * tests/test-vfprintf-posix.sh: Likewise.
63624         * tests/test-vprintf-posix.sh: Likewise.
63625
63626 2007-05-19  Bruno Haible  <bruno@clisp.org>
63627
63628         Fix *printf result for NaN, Inf, -0.0 on mingw.
63629         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
63630         * lib/vasnprintf.c: Include math.h and isnan.h.
63631         (is_infinite_or_zero): New function.
63632         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
63633         values in the %f, %F, %e, %E, %g, %G directives.
63634         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
63635         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63636         gl_PRINTF_INFINITE and test its result. Invoke
63637         gl_PREREQ_VASNPRINTF_INFINITE.
63638         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63639         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63640         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63641         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63642         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63643         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63644         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63645         * doc/functions/fprintf.texi: Update.
63646         * doc/functions/printf.texi: Update.
63647         * doc/functions/snprintf.texi: Update.
63648         * doc/functions/sprintf.texi: Update.
63649         * doc/functions/vfprintf.texi: Update.
63650         * doc/functions/vprintf.texi: Update.
63651         * doc/functions/vsnprintf.texi: Update.
63652         * doc/functions/vsprintf.texi: Update.
63653
63654 2007-05-19  Bruno Haible  <bruno@clisp.org>
63655
63656         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
63657         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
63658         Instead of multiplying with 10^k, set extra_zeroes to k.
63659         (scale10_round_long_double): Remove function.
63660
63661 2007-05-18  Bruno Haible  <bruno@clisp.org>
63662
63663         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
63664         introduced on 2007-05-06.
63665
63666 2007-05-18  Bruno Haible  <bruno@clisp.org>
63667
63668         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
63669         %g directives.
63670         * tests/test-vasprintf-posix.c (test_function): Likewise.
63671         * tests/test-snprintf-posix.h (test_function): Likewise.
63672         * tests/test-sprintf-posix.h (test_function): Likewise.
63673
63674 2007-05-18  Bruno Haible  <bruno@clisp.org>
63675
63676         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
63677         (strmatch): New function.
63678         (test_function): Test the %f directive on numbers of various exponents.
63679         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
63680         (strmatch): New function.
63681         (test_function): Test the %f directive on numbers of various exponents.
63682         * tests/test-snprintf-posix.h (strmatch): New function.
63683         (test_function): Test the %f directive on numbers of various exponents.
63684         * tests/test-sprintf-posix.h (strmatch): New function.
63685         (test_function): Test the %f directive on numbers of various exponents.
63686         * tests/test-snprintf-posix.c (SIZEOF): New macro.
63687         * tests/test-sprintf-posix.c (SIZEOF): New macro.
63688         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
63689         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
63690
63691 2007-05-18  Bruno Haible  <bruno@clisp.org>
63692
63693         Add support for 'long double' number output.
63694         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
63695         * lib/vasnprintf.c: Include math.h and float+.h.
63696         (mp_limb_t): New type.
63697         (GMP_LIMB_BITS): New macro.
63698         (mp_twolimb_t): New type.
63699         (GMP_TWOLIMB_BITS): New macro.
63700         (mpn_t): New type.
63701         (multiply, divide, convert_to_decimal, decode_long_double,
63702         scale10_round_long_double, scale10_round_decimal_long_double,
63703         floorlog10l): New functions.
63704         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
63705         for the %f, %F, %e, %E, %g, %G directives.
63706         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
63707         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63708         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
63709         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
63710         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63711         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63712         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63713         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63714         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63715         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63716         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63717         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
63718         * modules/snprintf-posix (Depends-on): Likewise.
63719         * modules/sprintf-posix (Depends-on): Likewise.
63720         * modules/vasnprintf-posix (Depends-on): Likewise.
63721         * modules/vasprintf-posix (Depends-on): Likewise.
63722         * modules/vfprintf-posix (Depends-on): Likewise.
63723         * modules/vsnprintf-posix (Depends-on): Likewise.
63724         * modules/vsprintf-posix (Depends-on): Likewise.
63725         * modules/vasnprintf (Files): Add lib/float+.h.
63726         * doc/functions/fprintf.texi: Update.
63727         * doc/functions/printf.texi: Update.
63728         * doc/functions/snprintf.texi: Update.
63729         * doc/functions/sprintf.texi: Update.
63730         * doc/functions/vfprintf.texi: Update.
63731         * doc/functions/vprintf.texi: Update.
63732         * doc/functions/vsnprintf.texi: Update.
63733         * doc/functions/vsprintf.texi: Update.
63734
63735 2007-05-18  Bruno Haible  <bruno@clisp.org>
63736
63737         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
63738
63739 2007-05-18  Bruno Haible  <bruno@clisp.org>
63740
63741         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
63742         for printing 64-bit integers. Needed for mingw.
63743
63744 2007-05-18  Bruno Haible  <bruno@clisp.org>
63745
63746         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
63747         gl_FUNC_FREXPL_WORKS.
63748         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
63749
63750 2007-05-18  Bruno Haible  <bruno@clisp.org>
63751
63752         * modules/frexpl-nolibm-tests: New file.
63753
63754         * modules/frexpl-nolibm: New file.
63755         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
63756
63757 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63758
63759         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
63760         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
63761         GCC 4.2, which otherwise issues a lot of warnings.
63762         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
63763         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
63764         Likewise.
63765         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
63766         * modules/iconv_open (iconv.h): Likewise.
63767         * modules/locale (locale.h): Likewise.
63768         * modules/netinet_in (netinet/in.h): Likewise.
63769         * modules/sys_select (sys_select.h): Likewise.
63770         * modules/sys_socket (sys/socket.h): Likewise.
63771         * modules/sys_stat (sys/stat.h): Likewise.
63772         * modules/sysexits (sysexits.h): Likewise.
63773         * modules/unistd (unistd.h): Likewise.
63774
63775 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63776
63777         * modules/closein-tests (Makefile.am): Distribute
63778         `test-closein.sh'.
63779
63780 2007-05-17  Bruno Haible  <bruno@clisp.org>
63781
63782         * tests/test-printf-posix.output: Renamed from
63783         tests/test-fprintf-posix.out.
63784         * modules/fprintf-posix-tests: Update.
63785         * modules/printf-posix-tests: Update.
63786         * modules/vfprintf-posix-tests: Update.
63787         * modules/vprintf-posix-tests: Update.
63788         * tests/test-fprintf-posix.sh: Update.
63789         * tests/test-printf-posix.sh: Update.
63790         * tests/test-vfprintf-posix.sh: Update.
63791         * tests/test-vprintf-posix.sh: Update.
63792         Reported by Ralf Wildenhues.
63793
63794 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63795
63796         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
63797         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
63798         GCC 4.2, which otherwise issues a lot of warnings.
63799         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
63800         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
63801         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
63802         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
63803         it should no longer be needed.
63804         * lib/string_.h: Likewise.
63805         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
63806         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
63807         * modules/inttypes (inttypes.h): Likewise.
63808         * modules/math (math.h): Likewise.
63809         * modules/search (search.h): Likewise.
63810         * modules/signal (signal.h): Likewise.
63811         * modules/stdint (stdint.h): Likewise.
63812         * modules/stdio (stdio.h): Likewise.
63813         * modules/stdlib (stdlib.h): Likewise.
63814         * modules/string (string.h): Likewise.
63815         * modules/sys_time (sys/time.h): Likewise.
63816         * modules/time (time.h): Likewise.
63817         * modules/wchar (wchar.h): Likewise.
63818         * modules/wctype (wtype.h): Likewise.
63819
63820 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
63821
63822         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
63823
63824 2007-05-13  Bruno Haible  <bruno@clisp.org>
63825
63826         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
63827         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63828         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
63829         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63830         (gl_PREREQ_STRTOK_R): Don't require it here.
63831
63832 2007-05-13  Bruno Haible  <bruno@clisp.org>
63833
63834         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
63835         when used in C++ mode.
63836
63837 2007-05-12  Bruno Haible  <bruno@clisp.org>
63838
63839         * lib/linebuffer.h: Tweak doc.
63840         * lib/linebuffer.c: Likewise.
63841
63842 2007-05-12  James Youngman  <jay@gnu.org>
63843
63844         * lib/linebuffer.c (readlinebuffer_delim): New function,
63845         like readlinebuffer, but use a caller-specified delimiter.
63846         (readlinebuffer): Just call readlinebuffer_delim with '\n'
63847         as the delimiter.
63848         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
63849
63850 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63851
63852         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
63853         * modules/openat (Files): Remove openat-die.c.
63854         (Depends-on): Add openat-die.
63855         * modules/openat-die: New module.
63856
63857 2007-05-06  Bruno Haible  <bruno@clisp.org>
63858
63859         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
63860         Update with info about Cygwin.
63861         * doc/functions/fprintf.texi: Update.
63862         * doc/functions/printf.texi: Update.
63863         * doc/functions/snprintf.texi: Update.
63864         * doc/functions/sprintf.texi: Update.
63865         * doc/functions/vfprintf.texi: Update.
63866         * doc/functions/vprintf.texi: Update.
63867         * doc/functions/vsnprintf.texi: Update.
63868         * doc/functions/vsprintf.texi: Update.
63869         Reported by Eric Blake.
63870
63871 2007-05-06  Bruno Haible  <bruno@clisp.org>
63872
63873         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
63874         padding ourselves for the floating-point directives.
63875         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
63876         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
63877         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63878         gl_PRINTF_FLAG_ZERO and test its result. Invoke
63879         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
63880         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63881         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
63882         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63883         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63884         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63885         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63886         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63887         * tests/test-snprintf-posix.h (test_function): Also check the width
63888         and some flags in the %f directive.
63889         * tests/test-sprintf-posix.h (test_function): Likewise.
63890         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63891         * tests/test-vasprintf-posix.c (test_function): Likewise.
63892         * doc/functions/fprintf.texi: Update.
63893         * doc/functions/printf.texi: Update.
63894         * doc/functions/snprintf.texi: Update.
63895         * doc/functions/sprintf.texi: Update.
63896         * doc/functions/vfprintf.texi: Update.
63897         * doc/functions/vprintf.texi: Update.
63898         * doc/functions/vsnprintf.texi: Update.
63899         * doc/functions/vsprintf.texi: Update.
63900
63901 2007-05-06  Bruno Haible  <bruno@clisp.org>
63902
63903         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
63904         pass the ' flag character to sprintf or snprintf.
63905         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
63906         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
63907         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63908         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
63909         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
63910         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63911         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
63912         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63913         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63914         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63915         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63916         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63917         * tests/test-snprintf-posix.h (test_function): Also check the grouping
63918         flag.
63919         * tests/test-sprintf-posix.h (test_function): Likewise.
63920         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63921         * tests/test-vasprintf-posix.c (test_function): Likewise.
63922         * doc/functions/fprintf.texi: Update.
63923         * doc/functions/printf.texi: Update.
63924         * doc/functions/snprintf.texi: Update.
63925         * doc/functions/sprintf.texi: Update.
63926         * doc/functions/vfprintf.texi: Update.
63927         * doc/functions/vprintf.texi: Update.
63928         * doc/functions/vsnprintf.texi: Update.
63929         * doc/functions/vsprintf.texi: Update.
63930
63931 2007-05-01  Bruno Haible  <bruno@clisp.org>
63932
63933         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
63934
63935 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
63936
63937         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
63938         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
63939
63940 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63941
63942         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
63943         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
63944         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
63945
63946 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
63947
63948         * lib/argp-help.c (struct hol_entry): New member `ord'.
63949         (HOL_ENTRY_PTRCMP): Use ord for comparison
63950         (hol_sort): Initialize ord.
63951
63952 2007-05-01  Bruno Haible  <bruno@clisp.org>
63953
63954         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
63955         Reported by Eric Blake.
63956         * doc/gnulib.texi (Function Substitutes): Update.
63957
63958 2007-05-01  Bruno Haible  <bruno@clisp.org>
63959
63960         * doc/functions.texi: Remove file, now redundant through
63961         doc/functions/*.texi.
63962
63963 2007-05-01  Bruno Haible  <bruno@clisp.org>
63964
63965         * modules/argp (Depends-on): Add sleep.
63966
63967 2007-05-01  Bruno Haible  <bruno@clisp.org>
63968
63969         * modules/sleep-tests: New file.
63970         * tests/test-sleep.c: New file.
63971
63972         * modules/sleep: New file.
63973         * lib/sleep.c: New file.
63974         * m4/sleep.m4: New file.
63975         * lib/unistd_.h (sleep): New declaration.
63976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
63977         HAVE_SLEEP.
63978         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
63979         * doc/functions/sleep.texi: Document the sleep module.
63980
63981 2007-05-01  Bruno Haible  <bruno@clisp.org>
63982
63983         * lib/sigprocmask.h: Remove file.
63984         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
63985         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
63986         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
63987         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
63988         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
63989         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
63990         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
63991         HAVE_SIGSET_T as a shell variable.
63992         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
63993         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
63994         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
63995         (Depends-on): Add signal. Remove verify.
63996         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
63997         (Include): Mention <signal.h> instead of sigprocmask.h.
63998         * NEWS: Mention the change.
63999         * lib/fatal-signal.c: Don't include sigprocmask.h.
64000
64001 2007-05-01  Bruno Haible  <bruno@clisp.org>
64002
64003         * modules/signal: New file.
64004         * lib/signal_.h: New file.
64005         * m4/signal_h.m4: New file.
64006
64007 2007-05-01  Bruno Haible  <bruno@clisp.org>
64008
64009         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64010         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
64011         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
64012         HAVE_WCTYPE_CTMP_BUG into wctype.h.
64013
64014 2007-05-01  Bruno Haible  <bruno@clisp.org>
64015
64016         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
64017         configure time.
64018         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
64019         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
64020         * modules/sys_stat (Makefile.am): Substitute their values into
64021         sys/stat.h.
64022
64023 2007-05-01  Bruno Haible  <bruno@clisp.org>
64024
64025         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
64026         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
64027         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
64028
64029 2007-05-01  Bruno Haible  <bruno@clisp.org>
64030
64031         * doc/header/assert.texi: Undo last change: don't mention the gnulib
64032         'assert' module here.
64033
64034 2007-05-01  Bruno Haible  <bruno@clisp.org>
64035
64036         * doc/functions/*.texi: New files.
64037         * doc/functions/google-ranking.txt: New file.
64038         * doc/gnulib.texi (Function Substitutes): New chapter.
64039         (ctime, inet_ntoa): Remove sections.
64040         * doc/ctime.texi: Remove file.
64041         * doc/inet_ntoa.texi: Remove file.
64042         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
64043         dependencies.
64044         (%.info): New rule, specifying a --reference-limit.
64045
64046 2007-05-01  Bruno Haible  <bruno@clisp.org>
64047
64048         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
64049
64050 2007-05-01  Bruno Haible  <bruno@clisp.org>
64051
64052         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
64053         the portability of 'mkdir' to mingw systems.
64054
64055 2007-05-01  Bruno Haible  <bruno@clisp.org>
64056
64057         * doc/headers/google-ranking.txt: New file.
64058
64059 2007-04-30  Eric Blake  <ebb9@byu.net>
64060
64061         Prefer fseeko to fseek.
64062         * modules/getpass (Depends-on): Add fseeko.
64063         * lib/getpass.c (getpass): Use fseeko, not fseek.
64064
64065 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
64066
64067         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
64068         assumes the sorting is stable, while most qsort implementations
64069         are not.  Use argument addresses to ensure they never compare as
64070         equal.
64071
64072         * tests/test-argp-2.sh (usage-indent test): Fix output
64073         (func_compare): Restore diff options
64074         * tests/test-argp.c: Restore #include "progname.h"
64075
64076 2007-04-29  Bruno Haible  <bruno@clisp.org>
64077
64078         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
64079         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64080         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
64081         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64082         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
64083         (configure.ac): Define CHECK_SNPRINTF_POSIX.
64084         (TESTS, check_PROGRAMS): Add test-snprintf.
64085         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
64086         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
64087         (TESTS, check_PROGRAMS): Add test-vsnprintf.
64088         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
64089         assertions that fail on HP-UX, OSF/1, or IRIX.
64090         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
64091
64092 2007-04-29  Bruno Haible  <bruno@clisp.org>
64093
64094         * MODULES.html.sh (posix_functions): Remove 'contents'.
64095
64096 2007-04-29  Karl Berry  <karl@gnu.org>
64097
64098         * config/srclist.txt (gendocs_template_min): new entry.
64099
64100 2007-04-29  Bruno Haible  <bruno@clisp.org>
64101
64102         Work around fpurge bug on BSD systems.
64103         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
64104         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
64105         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
64106         fpurge to rpl_fpurge if the system already has this function.
64107         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
64108         the case where the system already has this function. Correct invariants
64109         on BSD systems.
64110         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
64111         BSD systems.
64112
64113 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
64114
64115         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
64116         proposed by Sven Verdoolaege.
64117
64118         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
64119         options.
64120         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
64121         (usage and help tests): Update
64122
64123 2007-04-29  Bruno Haible  <bruno@clisp.org>
64124
64125         * tests/test-fflush.c (main): Use a file of size 17, not 10.
64126         Print more information in case of failure. Disable a test on BeOS.
64127
64128 2007-04-29  Bruno Haible  <bruno@clisp.org>
64129
64130         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
64131         This helps debugging on systems on which no gdb is available.
64132
64133 2007-04-29  Bruno Haible  <bruno@clisp.org>
64134
64135         * lib/freading.h: Improve comments.
64136         * lib/fwriting.h: Likewise.
64137         * tests/test-freading.c (main): Don't check freading immediately after
64138         repositioning. Needed for glibc.
64139
64140 2007-04-29  Bruno Haible  <bruno@clisp.org>
64141
64142         * lib/freading.c (freading): Trivial simplification.
64143
64144 2007-04-28  Bruno Haible  <bruno@clisp.org>
64145
64146         * tests/test-fwriting.c (main): Also test the interaction between
64147         fflush and fwriting.
64148         * modules/fwriting-tests (Depends-on): Add fflush.
64149
64150         * tests/test-freading.c (main): Also test the interaction between
64151         fflush and freading.
64152         * modules/freading-tests (Depends-on): Add fflush.
64153
64154 2007-04-28  Bruno Haible  <bruno@clisp.org>
64155
64156         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
64157         fseeko and ftello.
64158         Suggested by Eric Blake.
64159
64160 2007-04-28  Jim Meyering  <jim@meyering.net>
64161
64162         Avoid false-negative in gl_STDINT_H's C99 conformance test.
64163         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
64164         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
64165
64166 2007-04-27  Eric Blake  <ebb9@byu.net>
64167
64168         * doc/headers/assert.texi (assert.h): Document assert module use.
64169
64170 2007-04-27  Bruno Haible  <bruno@clisp.org>
64171
64172         * doc/headers/*.texi: New files.
64173         * doc/gnulib.texi (Header File Substitutes): New chapter.
64174         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
64175         dependencies.
64176         (standards.info ,standards.html, standards.dvi): Update dependencies.
64177         (mostlyclean, clean): New targets.
64178
64179 2007-04-27  Bruno Haible  <bruno@clisp.org>
64180
64181         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
64182         * modules/sysexits (Files, Makefile.am): Update.
64183
64184         * lib/sys_socket_.h: Renamed from lib/socket_.h.
64185         * modules/sys_socket (Files, Makefile.am): Update.
64186
64187         * lib/sys_stat_.h: Renamed from lib/stat_.h.
64188         * modules/sys_stat (Files, Makefile.am): Update.
64189
64190 2007-04-27  Eric Blake  <ebb9@byu.net>
64191
64192         * lib/freading.h: Improve comments.
64193         * lib/fwriting.h: Likewise.
64194         * lib/fflush.c: Likewise.
64195
64196         Fix closein for mingw.
64197         * modules/closein-tests: Add tests for closein.
64198         * tests/test-closein.c: New file.
64199         * tests/test-closein.sh: Likewise.
64200         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
64201         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
64202
64203 2007-04-27  Bruno Haible  <bruno@clisp.org>
64204
64205         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
64206         version is < 6.
64207         * lib/math_.h [__DECC]: Likewise.
64208         * lib/stdio_.h [__DECC]: Likewise.
64209         * lib/stdlib_.h [__DECC]: Likewise.
64210         * lib/string_.h [__DECC]: Likewise.
64211         * lib/time_.h [__DECC]: Likewise.
64212         * lib/wchar_.h [__DECC]: Likewise.
64213         * lib/wctype_.h [__DECC]: Likewise.
64214
64215 2007-04-27  Bruno Haible  <bruno@clisp.org>
64216
64217         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
64218
64219 2007-04-27  Bruno Haible  <bruno@clisp.org>
64220
64221         * lib/fflush.c: Add comments.
64222         * modules/fpurge-tests (Depends-on): Add fflush.
64223         * modules/freadable-tests (Depends-on): Likewise.
64224         * modules/fwritable-tests (Depends-on): Likewise.
64225
64226 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
64227
64228         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
64229         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
64230         Report by Bruno Haible <bruno@clisp.org>.
64231
64232 2007-04-26  Eric Blake  <ebb9@byu.net>
64233
64234         Fix fflush on mingw.
64235         * modules/fflush (Depends-on): Add freading.
64236         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
64237         but unread data.
64238
64239 2007-04-26  Eric Blake  <ebb9@byu.net>
64240         and Bruno Haible  <bruno@clisp.org>
64241
64242         Implement freading and fwriting.
64243         * lib/freading.c: New file.
64244         * lib/freading.h: Likewise.
64245         * m4/freading.m4: Likewise.
64246         * modules/freading: Likewise.
64247         * modules/freading-tests: Likewise.
64248         * tests/test-freading.c: Likewise.
64249         * lib/fwriting.c: New file.
64250         * lib/fwriting.h: Likewise.
64251         * m4/fwriting.m4: Likewise.
64252         * modules/fwriting: Likewise.
64253         * modules/fwriting-tests: Likewise.
64254         * tests/test-fwriting.c: Likewise.
64255         * MODULES.html.sh (File stream based Input/Output): Mention them.
64256
64257 2007-04-26  Bruno Haible  <bruno@clisp.org>
64258
64259         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
64260         'long' when we assume it.
64261         Suggested by Eric Blake.
64262
64263 2007-04-26  Bruno Haible  <bruno@clisp.org>
64264
64265         Ensure fseeko, ftello are declared on glibc systems.
64266         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
64267         * modules/fseeko (configure.ac-early): Likewise.
64268         * modules/ftello (configure.ac-early): Likewise.
64269         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
64270         AC_FUNC_FSEEKO for this.
64271         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
64272         (gl_CHECK_FSEEKO): Remove macro.
64273
64274 2007-04-26  Bruno Haible  <bruno@clisp.org>
64275
64276         * tests/test-fflush.c (main): Also check the ftell result after
64277         fflush and fseek/fseeko.
64278         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
64279         file descriptor position cache in the stream.
64280         * lib/fseeko.c (rpl_fseeko): Likewise.
64281
64282 2007-04-26  Bruno Haible  <bruno@clisp.org>
64283
64284         * modules/fflush-tests (Depends-on): Add fseeko.
64285
64286 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
64287             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64288
64289         * lib/argz_.h: ensure error_t definition is obtained in same
64290         mechanism system argz.h would have.
64291         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
64292         argz facilities are known bad.  Err on the side of caution if
64293         cross-compiling.
64294
64295 2007-04-25  Eric Blake  <ebb9@byu.net>
64296
64297         * lib/fpurge.c (includes): Use stdlib.h for free.
64298         * tests/test-fflush.c (main): Also test fflush-fseeko.
64299
64300 2007-04-25  Bruno Haible  <bruno@clisp.org>
64301
64302         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
64303         * lib/fseeko.c: New file.
64304         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
64305         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
64306         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
64307         gl_FUNC_FSEEKO.
64308         (gl_FUNC_FSEEKO): Invoke it.
64309         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
64310         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
64311         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
64312
64313 2007-04-25  Bruno Haible  <bruno@clisp.org>
64314
64315         * modules/fflush (Depends-on): Add ftello.
64316
64317 2007-04-25  Bruno Haible  <bruno@clisp.org>
64318
64319         * modules/ftello-tests: New file.
64320         * tests/test-ftello.c: New file.
64321
64322         * modules/ftello: New file.
64323         * m4/ftello.m4: New file.
64324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
64325         HAVE_FTELLO.
64326         * lib/stdio_.h (ftello): New declaration.
64327         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
64328         HAVE_FTELLO.
64329
64330 2007-04-25  Bruno Haible  <bruno@clisp.org>
64331
64332         * modules/fseeko-tests: New file.
64333         * tests/test-fseeko.c: New file.
64334
64335         * modules/fseeko: New file.
64336         * m4/fseeko.m4: New file.
64337         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
64338         HAVE_FSEEKO.
64339         * lib/stdio_.h (fseeko): New declaration.
64340         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
64341         HAVE_FSEEKO.
64342
64343 2007-04-25  Bruno Haible  <bruno@clisp.org>
64344
64345         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
64346
64347 2007-04-25  Bruno Haible  <bruno@clisp.org>
64348
64349         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
64350         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
64351         * tests/test-unistd.c: Likewise.
64352         * tests/test-fcntl.c: Likewise.
64353
64354 2007-04-23  Eric Blake  <ebb9@byu.net>
64355
64356         * lib/fflush.c: Fix missing include.
64357         Reported by Bruno Haible.
64358
64359 2007-04-23  Bruno Haible  <bruno@clisp.org>
64360
64361         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
64362         Reported by Eric Blake.
64363
64364 2007-04-23  Bruno Haible  <bruno@clisp.org>
64365
64366         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
64367
64368 2007-04-23  Bruno Haible  <bruno@clisp.org>
64369
64370         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
64371
64372 2007-04-23  Bruno Haible  <bruno@clisp.org>
64373
64374         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
64375         Needed on HP-UX 11.
64376
64377 2007-04-16  Eric Blake  <ebb9@byu.net>
64378
64379         Make fflush rely on fpurge.
64380         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
64381         open coding all variants.
64382         * modules/fflush (Depends-on): Add fpurge and unistd.
64383         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
64384         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
64385
64386         Fix --with-tests compilation on cygwin.
64387         * modules/argmatch-tests (Makefile.am): List gnulib library first
64388         in LDADD.
64389         * modules/argp-tests (Makefile.am): Likewise.
64390         * modules/array-list-tests (Makefile.am): Likewise.
64391         * modules/array-oset-tests (Makefile.am): Likewise.
64392         * modules/avltree-list-tests (Makefile.am): Likewise.
64393         * modules/avltree-oset-tests (Makefile.am): Likewise.
64394         * modules/avltreehash-list-tests (Makefile.am): Likewise.
64395         * modules/carray-list-tests (Makefile.am): Likewise.
64396         * modules/dirname-tests (Makefile.am): Likewise.
64397         * modules/frexp-tests (Makefile.am): Likewise.
64398         * modules/isnanl-tests (Makefile.am): Likewise.
64399         * modules/linked-list-tests (Makefile.am): Likewise.
64400         * modules/linkedhash-list-tests (Makefile.am): Likewise.
64401         * modules/lock-tests (Makefile.am): Likewise.
64402         * modules/rbtree-list-tests (Makefile.am): Likewise.
64403         * modules/rbtree-oset-tests (Makefile.am): Likewise.
64404         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
64405         * modules/tls-tests (Makefile.am): Likewise.
64406         * modules/tsearch-tests (Makefile.am): Likewise.
64407         * modules/xvasprintf-tests (Makefile.am): Likewise.
64408
64409         Fix fpurge for cygwin.
64410         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
64411         value.
64412         * modules/fpurge-tests (Depends-on): Clean up trash.
64413
64414 2007-04-16  Simon Josefsson  <simon@josefsson.org>
64415
64416         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
64417
64418         * m4/autobuild.m4: Re-indent.
64419
64420 2007-04-13  Bruno Haible  <bruno@clisp.org>
64421
64422         * modules/fpurge-tests: New file.
64423         * tests/test-fpurge.c: New file.
64424
64425         * modules/fpurge: New file.
64426         * lib/fpurge.h: New file.
64427         * lib/fpurge.c: New file.
64428         * m4/fpurge.m4: New file.
64429
64430 2007-04-13  Bruno Haible  <bruno@clisp.org>
64431
64432         * modules/fbufmode-tests: New file.
64433         * tests/test-fbufmode.c: New file.
64434
64435         * modules/fbufmode: New file.
64436         * lib/fbufmode.h: New file.
64437         * lib/fbufmode.c: New file.
64438         * m4/fbufmode.m4: New file.
64439
64440 2007-04-13  Bruno Haible  <bruno@clisp.org>
64441
64442         * modules/fwritable-tests: New file.
64443         * tests/test-fwritable.c: New file.
64444
64445         * modules/fwritable: New file.
64446         * lib/fwritable.h: New file.
64447         * lib/fwritable.c: New file.
64448         * m4/fwritable.m4: New file.
64449
64450 2007-04-13  Bruno Haible  <bruno@clisp.org>
64451
64452         * modules/freadable-tests: New file.
64453         * tests/test-freadable.c: New file.
64454
64455         * modules/freadable: New file.
64456         * lib/freadable.h: New file.
64457         * lib/freadable.c: New file.
64458         * m4/freadable.m4: New file.
64459
64460 2007-04-13  Bruno Haible  <bruno@clisp.org>
64461
64462         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
64463         MOSTLYCLEANFILES.
64464
64465 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64466
64467         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
64468         gzip bootstrap.conf to avoid dragging in i18n machinery.
64469         (gnulib_tool_option): Use it.
64470
64471 2007-04-13  Bruno Haible  <bruno@clisp.org>
64472
64473         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
64474         %F directives.
64475         * tests/test-vasprintf-posix.c (test_function): Likewise.
64476         * tests/test-snprintf-posix.h (test_function): Likewise.
64477         * tests/test-sprintf-posix.h (test_function): Likewise.
64478         * tests/test-fprintf-posix.h (test_function): Likewise.
64479         * tests/test-printf-posix.h (test_function): Likewise.
64480         * tests/test-fprintf-posix.out: Likewise.
64481
64482 2007-04-13  Bruno Haible  <bruno@clisp.org>
64483
64484         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
64485         * modules/tls-tests (configure.ac): Likewise.
64486         Reported by Arto C. Nirkko <anirkko@insel.ch>.
64487
64488 2007-04-13  Bruno Haible  <bruno@clisp.org>
64489
64490         * lib/tls.c (glthread_tls_get): Fix return type.
64491         Patch by Arto C. Nirkko <anirkko@insel.ch>.
64492
64493 2007-04-12  Eric Blake  <ebb9@byu.net>
64494
64495         * modules/gettime (Depends-on): Remove gettime.
64496         Reported by Dmitry V. Levin.
64497
64498 2007-04-12  Bruno Haible  <bruno@clisp.org>
64499
64500         * modules/fflush (Include): Mention <stdio.h>.
64501         * modules/strtoimax (Include): Mention <inttypes.h>.
64502         * modules/strtoumax (Include): Likewise.
64503
64504 2007-04-12  Eric Blake  <ebb9@byu.net>
64505
64506         * .cvsignore: New file.
64507         * .gitignore: Likewise.
64508
64509 2007-04-12  Bruno Haible  <bruno@clisp.org>
64510
64511         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
64512         not before, since $(LDADD) often contains libgnu.a.
64513         * modules/striconv-tests (test_striconv_LDADD): Likewise.
64514         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
64515         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
64516         Needed on Cygwin.
64517
64518 2007-04-12  Eric Blake  <ebb9@byu.net>
64519
64520         Work around glibc's failure to flush stdin on fclose.
64521         * lib/closein.c (close_stdin): Flush stdin before closing.
64522
64523         Work around glibc's failure to reset seekable stdin on exit.
64524         * modules/closein: New module.
64525         * lib/closein.c: New file.
64526         * lib/closein.h: Likewise.
64527         * m4/closein.m4: Likewise.
64528         * MODULES.html.sh (File stream based Input/Output): Document it.
64529
64530 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64531
64532         * gnulib-tool: Rename generated 'autobuild' script to
64533         'do-autobuild' in --create-megatestdir output.
64534
64535         * doc/gnulib.texi (Build robot for gnulib): Fix.
64536
64537 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64538
64539         * modules/sysexits (Depends-on): Add absolute-header.
64540
64541 2007-04-12  Eric Blake  <ebb9@byu.net>
64542
64543         No need to preserve errno on success.
64544         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
64545         Reported by Bruno Haible.
64546
64547 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64548
64549         * MODULES.html.sh (Support for maintaining and releasing
64550         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
64551
64552 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64553
64554         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
64555
64556 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64557
64558         * modules/autobuild: New module.
64559
64560         * m4/autobuild.m4: New file.
64561
64562 2007-04-11  Bruno Haible  <bruno@clisp.org>
64563
64564         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
64565         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
64566         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
64567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
64568         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64569         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64570         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64571         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64572         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64573         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64574         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
64575         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64576         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64577         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
64578         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64579         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64580         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
64581         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64582         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64583         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
64584         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64585         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64586         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
64587         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64588         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64589         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
64590         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64591         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64592         Reported by Eric Blake.
64593
64594 2007-04-11  Bruno Haible  <bruno@clisp.org>
64595
64596         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
64597
64598 2007-04-10  Bruno Haible  <bruno@clisp.org>
64599
64600         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
64601         for NaN and Infinity. Needed on FreeBSD 6.1.
64602         * tests/test-vasnprintf-posix.c (test_function): Undo last change
64603         regarding results for "%010a" of Infinity and NaN.
64604         * tests/test-vasprintf-posix.c (test_function): Likewise.
64605         * tests/test-snprintf-posix.h (test_function): Likewise.
64606         * tests/test-sprintf-posix.h (test_function): Likewise.
64607         * tests/test-fprintf-posix.h (test_function): Likewise.
64608         * tests/test-printf-posix.h (test_function): Likewise.
64609         * tests/test-fprintf-posix.out: Likewise.
64610
64611 2007-04-10  Bruno Haible  <bruno@clisp.org>
64612
64613         * modules/locale-tests: New file.
64614         * tests/test-locale.c: New file.
64615
64616         * modules/locale: New file.
64617         * lib/locale_.h: New file.
64618         * m4/locale_h.m4: New file.
64619
64620 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
64621             Bruno Haible  <bruno@clisp.org>
64622
64623         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
64624         be determined, test for availability of the copysignf, copysign,
64625         copysignl functions.
64626         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
64627         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
64628         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
64629
64630 2007-04-09  Eric Blake  <ebb9@byu.net>
64631
64632         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
64633         * modules/stdio (Makefile.am): Support fflush.
64634         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64635         * modules/fflush: New file.
64636         * lib/fflush.c: Likewise.
64637         * m4/fflush.m4: Likewise.
64638         * modules/fflush-tests: New test.
64639         * tests/test-fflush.c: Likewise.
64640         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
64641
64642 2007-04-06  Bruno Haible  <bruno@clisp.org>
64643
64644         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
64645         (VASNPRINTF): Use signbit for faster determination whether to print a
64646         minus sign.
64647         * modules/vasnprintf (Files): Remove lib/float+.h.
64648         * modules/fprintf-posix (Depends-on): Add signbit.
64649         * modules/snprintf-posix (Depends-on): Likewise.
64650         * modules/sprintf-posix (Depends-on): Likewise.
64651         * modules/vasnprintf-posix (Depends-on): Likewise.
64652         * modules/vasprintf-posix (Depends-on): Likewise.
64653         * modules/vfprintf-posix (Depends-on): Likewise.
64654         * modules/vsnprintf-posix (Depends-on): Likewise.
64655         * modules/vsprintf-posix (Depends-on): Likewise.
64656
64657 2007-04-06  Bruno Haible  <bruno@clisp.org>
64658
64659         * tests/test-frexp.c (main): Test also the sign bit of zero results.
64660         * tests/test-frexpl.c (main): Likewise.
64661         * tests/test-ldexpl.c (main): Likewise.
64662         * modules/frexp-tests (Depends-on): Add signbit.
64663         * modules/frexpl-tests (Depdends-on): Likewise.
64664         * modules/ldexpl-tests (Depdends-on): Likewise.
64665
64666 2007-04-06  Bruno Haible  <bruno@clisp.org>
64667
64668         * modules/signbit-tests: New file.
64669         * tests/test-signbit.c: New file.
64670
64671         * modules/signbit: New file.
64672         * lib/signbitf.c: New file.
64673         * lib/signbitd.c: New file.
64674         * lib/signbitl.c: New file.
64675         * m4/signbit.m4: New file.
64676         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
64677         (signbit): New macro.
64678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
64679         REPLACE_SIGNBIT.
64680         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
64681         REPLACE_FREXPL into math.h.
64682
64683 2007-04-06  Bruno Haible  <bruno@clisp.org>
64684
64685         * modules/isnanf-nolibm-tests: New file.
64686         * tests/test-isnanf.c: New file.
64687
64688         * modules/isnanf-nolibm: New file.
64689         * lib/isnanf.h: New file.
64690         * lib/isnanf.c: New file.
64691         * lib/isnan.c: Consider the USE_FLOAT macro.
64692         * m4/isnanf.m4: New file.
64693
64694 2007-04-06  Bruno Haible  <bruno@clisp.org>
64695
64696         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
64697         (Link): New section.
64698
64699         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
64700
64701 2007-04-06  Bruno Haible  <bruno@clisp.org>
64702
64703         Assume the 'long double' type.
64704         * m4/longdouble.m4: Remove file.
64705         * config/srclist.txt: Don't mention longdouble.m4.
64706         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
64707         * lib/float+.h: Likewise.
64708         * lib/frexp.c: Likewise.
64709         * lib/printf-args.h: Likewise.
64710         * lib/printf-args.c: Likewise.
64711         * lib/printf-frexp.c: Likewise.
64712         * lib/printf-parse.c: Likewise.
64713         * lib/vasnprintf.c: Likewise.
64714         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
64715         * m4/intl.m4: Likewise.
64716         * m4/isnanl.m4: Likewise.
64717         * m4/printf.m4: Likewise.
64718         * m4/printf-frexpl.m4: Likewise.
64719         * m4/vasnprintf.m4: Likewise.
64720         * modules/allocsa (Files): Remove m4/longdouble.m4.
64721         * modules/gettext (Files): Likewise.
64722         * modules/relocatable-prog-wrapper (Files): Likewise.
64723         * modules/vasnprintf (Files): Likewise.
64724         * modules/isnanl (Files): Likewise.
64725         (Include): Simplify.
64726         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
64727         (Include): Simplify.
64728         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
64729         (Include): Simplify.
64730         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
64731         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64732         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
64733         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64734         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
64735         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64736         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
64737         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64738         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
64739         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64740         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
64741         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64742         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
64743         * tests/test-isnanl.c: Likewise.
64744         * tests/test-snprintf-posix.h: Likewise.
64745         * tests/test-sprintf-posix.h: Likewise.
64746         * tests/test-vasnprintf-posix.c: Likewise.
64747         * tests/test-vasnprintf-posix2.c: Likewise.
64748         * tests/test-vasprintf-posix.c: Likewise.
64749
64750 2007-04-06  Bruno Haible  <bruno@clisp.org>
64751
64752         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
64753         * lib/math_.h [__DECC]: Include the overridden include file through
64754         #include_next, outside the double-inclusion guard.
64755         * lib/stdio_.h [__DECC]: Likewise.
64756         * lib/stdlib_.h [__DECC]: Likewise.
64757         * lib/string_.h [__DECC]: Likewise.
64758         * lib/time_.h [__DECC]: Likewise.
64759         * lib/wchar_.h [__DECC]: Likewise.
64760         * lib/wctype_.h [__DECC]: Likewise.
64761         * lib/inttypes_.h [__DECC]: Likewise.
64762         Reported by Albert Chin <china@thewrittenword.com> in
64763         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
64764
64765 2007-04-04  Eric Blake  <ebb9@byu.net>
64766
64767         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
64768         1.5.x.
64769
64770 2007-04-04  Bruno Haible  <bruno@clisp.org>
64771
64772         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
64773         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
64774
64775 2007-04-04  Bruno Haible  <bruno@clisp.org>
64776
64777         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
64778         results for "%010a" of Infinity and NaN.
64779         * tests/test-vasprintf-posix.c (test_function): Likewise.
64780         * tests/test-snprintf-posix.h (test_function): Likewise.
64781         * tests/test-sprintf-posix.h (test_function): Likewise.
64782         * tests/test-fprintf-posix.h (test_function): Remove these tests.
64783         * tests/test-printf-posix.h (test_function): Likewise.
64784         * tests/test-fprintf-posix.out: Update.
64785         Needed for FreeBSD 6.1.
64786
64787 2007-04-04  Bruno Haible  <bruno@clisp.org>
64788
64789         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
64790         directly used by the gnulib modules nor by gnulib-tool.
64791
64792 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
64793
64794         * DEPENDENCIES: Give overall description of version dependency
64795         desirability.  Use more-typical names for apps.
64796         Add shell, coreutils, diffutils, grep, tar, gzip.
64797
64798 2007-04-04  Simon Josefsson  <simon@josefsson.org>
64799
64800         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
64801
64802 2007-04-04  Karl Berry  <karl@gnu.org>
64803
64804         * MODULES.html.sh (func_module): missing '.
64805
64806 2007-04-03  Bruno Haible  <bruno@clisp.org>
64807
64808         * modules/argmatch-tests (Makefile.am): New variable
64809         test_argmatch_LDADD.
64810         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
64811         * modules/array-list-tests (Makefile.am): New variable
64812         test_array_list_LDADD.
64813         * modules/array-oset-tests (Makefile.am): New variable
64814         test_array_oset_LDADD.
64815         * modules/avltree-list-tests (Makefile.am): New variable
64816         test_avltree_list_LDADD.
64817         * modules/avltree-oset-tests (Makefile.am): New variable
64818         test_avltree_oset_LDADD.
64819         * modules/avltreehash-list-tests (Makefile.am): New variable
64820         test_avltreehash_list_LDADD.
64821         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
64822         test_canonicalize_lgpl_LDADD.
64823         * modules/carray-list-tests (Makefile.am): New variable
64824         test_carray_list_LDADD.
64825         * modules/dirname-tests (Makefile.am): New variable
64826         test_dirname_LDADD.
64827         * modules/linked-list-tests (Makefile.am): New variable
64828         test_linked_list_LDADD.
64829         * modules/linkedhash-list-tests (Makefile.am): New variable
64830         test_linkedhash_list_LDADD.
64831         * modules/rbtree-list-tests (Makefile.am): New variable
64832         test_rbtree_list_LDADD.
64833         * modules/rbtree-oset-tests (Makefile.am): New variable
64834         test_rbtree_oset_LDADD.
64835         * modules/rbtreehash-list-tests (Makefile.am): New variable
64836         test_rbtreehash_list_LDADD.
64837         * modules/xvasprintf-tests (Makefile.am): New variable
64838         test_xvasprintf_LDADD.
64839         Reported by Eric Blake.
64840
64841 2007-04-03  Eric Blake  <ebb9@byu.net>
64842
64843         * DEPENDENCIES: Weaken m4 requirements.
64844
64845 2007-04-03  Bruno Haible  <bruno@clisp.org>
64846
64847         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
64848         * modules/isnanl-tests (configure.ac): Likewise.
64849
64850 2007-04-03  Ben Pfaff  <blp@gnu.org>
64851
64852         * modules/iconv_open: Add $(srcdir)/ to source directory
64853         references in Makefile fragments that call gperf, to fix VPATH
64854         builds.
64855
64856 2007-04-03  Bruno Haible  <bruno@clisp.org>
64857
64858         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
64859         * lib/ldexpl.c: Undo last change.
64860
64861 2007-04-03  Bruno Haible  <bruno@clisp.org>
64862
64863         * modules/printf-frexpl (Depends-on): Undo last change.
64864         (Files): Add m4/ldexpl.m4.
64865
64866 2007-04-03  Bruno Haible  <bruno@clisp.org>
64867
64868         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
64869         * modules/isnanl (Link): New section.
64870
64871         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
64872         * modules/frexp (Link): New section.
64873
64874         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
64875         * modules/frexpl (Link): New section.
64876
64877         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
64878         * modules/ldexpl (Link): New section.
64879
64880 2007-04-03  Bruno Haible  <bruno@clisp.org>
64881
64882         * modules/TEMPLATE-EXTENDED: New file.
64883         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
64884
64885 2007-04-03  Bruno Haible  <bruno@clisp.org>
64886
64887         * DEPENDENCIES: New file.
64888         Suggested by Simon Josefsson.
64889
64890 2007-04-03  Bruno Haible  <bruno@clisp.org>
64891
64892         * doc/gnulib.texi: Escape @.
64893
64894 2007-04-03  James Youngman  <jay@gnu.org>
64895         and Paul Eggert  <eggert@cs.ucla.edu>
64896
64897         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
64898         birthtime on all systems that have birthtime, not just those which
64899         use st_birthtimensec rather than st_birthtim.  Putting zero in
64900         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
64901         that the birth time is not available for files on an NFS mount.
64902
64903 2007-04-03  Simon Josefsson  <simon@josefsson.org>
64904
64905         * modules/memxor: Move back from crypto/, suggested by Bruno.
64906         * modules/crypto/hmac-sha1: Fix memxor dependency.
64907
64908         * modules/crypto/gc: Moved from ../.
64909
64910 2007-04-02  Eric Blake  <ebb9@byu.net>
64911
64912         * lib/ldexpl.c (includes): Avoid libm.
64913
64914         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
64915
64916 2007-04-02  Bruno Haible  <bruno@clisp.org>
64917
64918         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
64919         on IRIX.
64920
64921 2007-04-02  Bruno Haible  <bruno@clisp.org>
64922
64923         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
64924         x86 or x86_64 platforms running MacOS X.
64925         Reported by Ryan Schmidt <@ryandesign.com>.
64926
64927 2007-04-02  Bruno Haible  <bruno@clisp.org>
64928
64929         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
64930         i386.
64931
64932 2007-04-01  Simon Josefsson  <simon@josefsson.org>
64933
64934         * modules/crypto/arcfour: Moved from ../.
64935         * modules/crypto/arcfour-tests: Moved from ../.
64936         * modules/crypto/arctwo: Moved from ../.
64937         * modules/crypto/arctwo-tests: Moved from ../.
64938         * modules/crypto/des: Moved from ../.
64939         * modules/crypto/des-tests: Moved from ../.
64940         * modules/crypto/gc-arcfour: Moved from ../.
64941         * modules/crypto/gc-arcfour-tests: Moved from ../.
64942         * modules/crypto/gc-arctwo: Moved from ../.
64943         * modules/crypto/gc-arctwo-tests: Moved from ../.
64944         * modules/crypto/gc-des: Moved from ../.
64945         * modules/crypto/gc-des-tests: Moved from ../.
64946         * modules/crypto/gc-hmac-md5: Moved from ../.
64947         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
64948         * modules/crypto/gc-hmac-sha1: Moved from ../.
64949         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
64950         * modules/crypto/gc-md2: Moved from ../.
64951         * modules/crypto/gc-md2-tests: Moved from ../.
64952         * modules/crypto/gc-md4: Moved from ../.
64953         * modules/crypto/gc-md4-tests: Moved from ../.
64954         * modules/crypto/gc-md5: Moved from ../.
64955         * modules/crypto/gc-md5-tests: Moved from ../.
64956         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
64957         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
64958         * modules/crypto/gc-random: Moved from ../.
64959         * modules/crypto/gc-rijndael: Moved from ../.
64960         * modules/crypto/gc-rijndael-tests: Moved from ../.
64961         * modules/crypto/gc-sha1: Moved from ../.
64962         * modules/crypto/gc-sha1-tests: Moved from ../.
64963         * modules/crypto/gc-tests: Moved from ../.
64964         * modules/crypto/hmac-md5: Moved from ../.
64965         * modules/crypto/hmac-md5-tests: Moved from ../.
64966         * modules/crypto/hmac-sha1: Moved from ../.
64967         * modules/crypto/hmac-sha1-tests: Moved from ../.
64968         * modules/crypto/md2: Moved from ../.
64969         * modules/crypto/md2-tests: Moved from ../.
64970         * modules/crypto/md4: Moved from ../.
64971         * modules/crypto/md4-tests: Moved from ../.
64972         * modules/crypto/md5: Moved from ../.
64973         * modules/crypto/md5-tests: Moved from ../.
64974         * modules/crypto/memxor: Moved from ../.
64975         * modules/crypto/rijndael: Moved from ../.
64976         * modules/crypto/rijndael-tests: Moved from ../.
64977         * modules/crypto/sha1: Moved from ../.
64978
64979 2007-03-30  James Youngman  <jay@gnu.org>
64980
64981         * tests/test-stat-time.c (prepare_test): use chmod() rather than
64982         rename() to change the ctime of a file (because ctime is unaffected
64983         by rename on jfs2 on AIX 5.1).
64984         (main): Start by doing cleanup, in case a previous run failed leaving
64985         test files behind.
64986
64987 2007-03-31  Bruno Haible  <bruno@clisp.org>
64988
64989         Support old proprietary implementations of iconv.
64990         * modules/iconv_open: New file.
64991         * lib/iconv_.h: New file.
64992         * m4/iconv_h.m4: New file.
64993         * lib/iconv_open.c: New file.
64994         * lib/iconv_open-aix.gperf: New file.
64995         * lib/iconv_open-hpux.gperf: New file.
64996         * lib/iconv_open-irix.gperf: New file.
64997         * lib/iconv_open-osf.gperf: New file.
64998         * m4/iconv_open.m4: New file.
64999         * modules/linebreak (Depends-on): Add iconv_open.
65000         * modules/striconv (Depends-on): Likewise.
65001         * modules/striconveh (Depends-on): Likewise.
65002         * modules/unicodeio (Depends-on): Likewise.
65003         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65004         (iconv_t)(-1).
65005         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65006         conversion if cd is (iconv_t)(-1).
65007         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65008         is not possible.
65009
65010 2007-03-31  Bruno Haible  <bruno@clisp.org>
65011
65012         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65013         work on Solaris either. Protect also second use of "autodetect_jp".
65014
65015 2007-03-31  Bruno Haible  <bruno@clisp.org>
65016
65017         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
65018         the function is not present.
65019
65020 2007-03-31  Bruno Haible  <bruno@clisp.org>
65021
65022         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
65023         the function is not present.
65024
65025 2007-03-31  Bruno Haible  <bruno@clisp.org>
65026
65027         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
65028         a bug in HP-UX iconv_open().
65029
65030 2007-03-31  Bruno Haible  <bruno@clisp.org>
65031
65032         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
65033         (Mathematics <math.h>): New section, add fpieee.
65034         (Input/output <stdio.h>): Add fseterr.
65035         (Mathematics <math.h>): New section, add printf-frexp.
65036         (Container data structures): Add sublist.
65037         (Core language properties): Add fpucw, inline.
65038         (Functions for greatest-width integer types <inttypes.h>): Add
65039         imaxabs, imaxdiv, inttypes.
65040         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
65041         isnanl-nolibm, ldexp.
65042         (Mathematics <math.h>): New section, add printf-frexpl.
65043         (Support for systems lacking POSIX:2001): Add fprintf-posix,
65044         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
65045         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
65046         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
65047         (Unicode string functions): Add unistr/u*-mbtoucr.
65048         (Java): Add javacomp-script, javaexec-script.
65049         (C#): Add csharpcomp-script, csharpexec-script.
65050         (Support for building libraries and executables): Add havelib,
65051         relocatable-*.
65052         (Support for maintaining and releasing projects): Renamed from
65053         'Support for maintaining and release projects'. Add announce-gen.
65054
65055 2007-03-31  Bruno Haible  <bruno@clisp.org>
65056
65057         * README: Talk primarily about git.
65058         (git and CVS): Renamed from CVS.
65059         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
65060         gnulib is available through git.
65061         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
65062
65063 2007-03-30  Bruno Haible  <bruno@clisp.org>
65064
65065         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
65066         * lib/poll_.h: Likewise.
65067         * lib/stat_.h: Likewise.
65068         * lib/sys_time_.h: Likewise.
65069         * lib/sysexit_.h: Likewise.
65070         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
65071         * lib/stdbool_.h: Likewise.
65072         * lib/byteswap_.h: Add double-inclusion guard.
65073
65074 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
65075
65076         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
65077
65078 2007-03-30  Karl Berry  <karl@gnu.org>
65079
65080         * config/srclist-update: double space after USA in the license
65081         substitution, since that's how it's usually (?) written.
65082
65083 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
65084
65085         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
65086         reported by Bruno Haible.
65087
65088 2007-03-29  Bruno Haible  <bruno@clisp.org>
65089
65090         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
65091         a bug in AIX iconv().
65092
65093 2007-03-29  Bruno Haible  <bruno@clisp.org>
65094
65095         * modules/ldexpl-tests: New file.
65096         * tests/test-ldexpl.c: New file.
65097
65098 2007-03-29  Bruno Haible  <bruno@clisp.org>
65099
65100         * lib/ldexpl.c: Include fpucw.h.
65101         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
65102         multiplication.
65103         * modules/ldexpl (Depends-on): Add fpucw.
65104
65105 2007-03-29  Bruno Haible  <bruno@clisp.org>
65106
65107         * modules/ldexpl: New file.
65108         * m4/ldexpl.m4: New file.
65109         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
65110         set.
65111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
65112         REPLACE_LDEXPL.
65113         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
65114         REPLACE_LDEXPL.
65115         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65116         gl_FUNC_LDEXPL_WORKS.
65117         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
65118         * modules/mathl (Files): Remove lib/ldexpl.c.
65119         (Depends-on): Add ldexpl.
65120
65121 2007-03-29  Bruno Haible  <bruno@clisp.org>
65122
65123         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
65124
65125 2007-03-29  Bruno Haible  <bruno@clisp.org>
65126
65127         * tests/test-striconveh.c (main): Don't assume that a direct conversion
65128         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
65129         and possibly also HP-UX.
65130         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65131         work on AIX, IRIX, HP-UX, OSF/1.
65132         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65133         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65134         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65135         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65136         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
65137         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65138
65139 2007-03-29  Bruno Haible  <bruno@clisp.org>
65140
65141         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
65142
65143 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65144
65145         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
65146         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
65147
65148 2007-03-29  Eric Blake  <ebb9@byu.net>
65149
65150         * lib/acl-internal.h: Remove redundant include.
65151         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
65152         Cygwin when a file is locked.
65153
65154 2007-03-29  Bruno Haible  <bruno@clisp.org>
65155
65156         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
65157         file.
65158         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
65159
65160 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65161
65162         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
65163         try to remove a parent directory if the child couldn't be removed
65164         (except for the first rmdir, which could fail because the child
65165         doesn't exist).  Problem reported by Jeff Blaine in
65166         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
65167
65168 2007-03-28  Bruno Haible  <bruno@clisp.org>
65169
65170         * lib/striconveh.c (utf8conv_carefully): New function.
65171         (mem_cd_iconveh_internal): Invoke it.
65172
65173 2007-03-28  Bruno Haible  <bruno@clisp.org>
65174
65175         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
65176         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
65177         input.
65178         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
65179         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
65180         unistr/u8-uctomb.
65181
65182 2007-03-28  Bruno Haible  <bruno@clisp.org>
65183
65184         * modules/unistr/u8-mbtoucr: New file.
65185         * lib/unistr/u8-mbtoucr.c: New file.
65186         * modules/unistr/u16-mbtoucr: New file.
65187         * lib/unistr/u16-mbtoucr.c: New file.
65188         * modules/unistr/u16-mbtoucr: New file.
65189         * lib/unistr/u16-mbtoucr.c: New file.
65190         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
65191
65192 2007-03-27  Simon Josefsson  <simon@josefsson.org>
65193             Bruno Haible  <bruno@clisp.org>
65194
65195         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
65196         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
65197         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
65198
65199         * m4/stdio_h.m4: Add stubs for vasprintf too.
65200
65201         * modules/stdio: Support vasprintf in sed command.
65202
65203         * modules/vasprintf: Depend on stdio for prototypes.  Remove
65204         vasprintf.h.  Add stdio module indicator.
65205
65206         * lib/stdio_.h: Declare asprintf and vasprintf, based on
65207         vasprintf.h.
65208
65209         * lib/vasprintf.h: File removed.
65210
65211         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
65212         * lib/vasprintf.c: Ditto.
65213         * lib/xvasprintf.c: Ditto.
65214         * tests/test-vasprintf-posix.c: Ditto.
65215         * tests/test-vasprintf.c: Ditto.
65216
65217 2007-03-27  Bruno Haible  <bruno@clisp.org>
65218
65219         Make vasnprintf multithread-safe.
65220         * lib/vasnprintf.c (decimal_point_char): New function.
65221         (VASNPRINTF): Use it.
65222         Suggested by Simon Josefsson.
65223
65224 2007-03-27  Eric Blake  <ebb9@byu.net>
65225
65226         Support sub-second birthtime on cygwin.
65227         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
65228         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
65229         (get_stat_birthtime): Also work with st_birthtim.
65230
65231 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
65232
65233         * lib/stat-time.h (USE_BIRTHTIME): Remove.
65234         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
65235         (get_stat_birthtime_ns): Do not try to use "spare" fields.
65236         (get_stat_birthtime_ns): Simplify compile-time tests.
65237         (get_stat_birthtime): Change the API to look like
65238         get_stat_mtime etc., except return a negative tv_nsec on error.
65239         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
65240         Don't check for "spare" fields.
65241         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
65242         or for struct stat.st_birthtime, as these tests aren't used.
65243         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
65244
65245 2007-03-27  Bruno Haible  <bruno@clisp.org>
65246
65247         * lib/stat-time.h: Include <sys/stat.h>.
65248
65249 2007-03-27  James Youngman  <jay@gnu.org>
65250
65251         * lib/stat-time.h (get_stat_birthtime): New function for
65252           retrieving st_birthtime as provided by UFS2 (hence *BSD).
65253         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
65254           and its variants.
65255         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
65256         * modules/stat-time-test: New file.
65257         * tests/test-stat-time.c: New test, devised by Bruno Haible.
65258
65259 2007-03-26  Bruno Haible  <bruno@clisp.org>
65260
65261         Better support of signalling NaNs.
65262         * lib/atanl.c: Include isnanl.h.
65263         (atanl): Perform test for NaN at the beginning of the function and
65264         through a call to isnanl.
65265         * lib/cosl.c: Include isnanl.h.
65266         (cosl): Perform test for NaN at the beginning of the function and
65267         through a call to isnanl.
65268         * lib/ldexpl.c: Include isnanl.h.
65269         (ldexpl): Perform test for NaN through a call to isnanl.
65270         * lib/logl.c: Include isnanl.h.
65271         (logl): Perform test for NaN at the beginning of the function and
65272         through a call to isnanl.
65273         * lib/sinl.c: Include isnanl.h.
65274         (sinl): Perform test for NaN at the beginning of the function and
65275         through a call to isnanl.
65276         * lib/sqrtl.c: Include isnanl.h.
65277         (sqrtl): Perform test for NaN at the beginning of the function and
65278         through a call to isnanl.
65279         * lib/tanl.c: Include isnanl.h.
65280         (tanl): Perform test for NaN at the beginning of the function and
65281         through a call to isnanl.
65282         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
65283         * modules/mathl (Depends-on): Add isnanl.
65284
65285 2007-03-26  Eric Blake  <ebb9@byu.net>
65286
65287         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
65288         regression in logic sense of previous patch.
65289
65290 2007-03-26  Bruno Haible  <bruno@clisp.org>
65291
65292         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
65293         unportable shell command "if ! ...".
65294         Reported by Ralf Wildenhues.
65295
65296 2007-03-25  Bruno Haible  <bruno@clisp.org>
65297
65298         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
65299         <sysexits.h> file, and only add EX_CONFIG.
65300         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
65301         absolute file name and whether it is sufficient. Substitute also
65302         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
65303         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
65304         ABSOLUTE_SYSEXITS_H into sysexits.h.
65305
65306 2007-03-25  Bruno Haible  <bruno@clisp.org>
65307
65308         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
65309         hints is NULL.
65310
65311 2007-03-25  Bruno Haible  <bruno@clisp.org>
65312
65313         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
65314         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
65315
65316 2007-03-25  Bruno Haible  <bruno@clisp.org>
65317
65318         * lib/vasnprintf.c: Include langinfo.h.
65319         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
65320         multithread-safe.
65321         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
65322         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
65323         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65324         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65325         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65326         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65327         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65328         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
65329         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65330         Reported by Simon Josefsson.
65331
65332 2007-03-25  Bruno Haible  <bruno@clisp.org>
65333
65334         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
65335         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
65336         * modules/vasnprintf (Depends-on): Add stdint.
65337
65338 2007-03-25  Bruno Haible  <bruno@clisp.org>
65339
65340         * modules/fpieee: New file.
65341         * m4/fpieee.m4: New file.
65342         * modules/isnan-nolibm (Depends-on): Add fpieee.
65343         * modules/isnanl-nolibm (Depends-on): Add fpieee.
65344         * modules/isnanl (Depends-on): Add fpieee.
65345
65346 2007-03-25  Bruno Haible  <bruno@clisp.org>
65347
65348         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
65349
65350 2007-03-25  Bruno Haible  <bruno@clisp.org>
65351
65352         Avoid test failures on IRIX 6.5.
65353         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
65354         (main): Use it.
65355         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
65356         macros.
65357         (main): Use them.
65358
65359 2007-03-25  Bruno Haible  <bruno@clisp.org>
65360
65361         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
65362         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
65363         exists but doesn't work.
65364         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
65365         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
65366         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
65367         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
65368         math.h.
65369
65370 2007-03-25  Bruno Haible  <bruno@clisp.org>
65371
65372         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
65373         returns inf. Needed on IRIX 6.5.
65374
65375 2007-03-25  Bruno Haible  <bruno@clisp.org>
65376
65377         * tests/test-frexpl.c: Include isnanl-nolibm.h.
65378         (main): Use isnanl instead of x != x idiom.
65379         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
65380
65381         * tests/test-frexp.c: Include isnan.h.
65382         (main): Use isnan instead of x != x idiom.
65383         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
65384
65385 2007-03-25  Bruno Haible  <bruno@clisp.org>
65386
65387         * tests/test-frexp.c (NaN): New function/macro.
65388         (main): Use it instead of 0.0 / 0.0.
65389         * tests/test-isnan.c (NaN): New function/macro.
65390         (main): Use it instead of 0.0 / 0.0.
65391         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
65392         (test_function): Use it instead of 0.0 / 0.0.
65393         * tests/test-vasprintf-posix.c (NaN): New function/macro.
65394         (test_function): Use it instead of 0.0 / 0.0.
65395         * tests/test-snprintf-posix.h (NaN): New function/macro.
65396         (test_function): Use it instead of 0.0 / 0.0.
65397         * tests/test-sprintf-posix.h (NaN): New function/macro.
65398         (test_function): Use it instead of 0.0 / 0.0.
65399         * tests/test-fprintf-posix.h (NaN): New function/macro.
65400         (test_function): Use it instead of 0.0 / 0.0.
65401         * tests/test-printf-posix.h (NaN): New function/macro.
65402         (test_function): Use it instead of 0.0 / 0.0.
65403
65404         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
65405
65406 2007-03-25  Bruno Haible  <bruno@clisp.org>
65407
65408         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
65409
65410 2007-03-25  Bruno Haible  <bruno@clisp.org>
65411
65412         * lib/regexec.c (merge_state_with_log): Make static.
65413
65414 2007-03-25  Bruno Haible  <bruno@clisp.org>
65415
65416         * lib/trigl.c (kernel_rem_pio2): Make static.
65417
65418 2007-03-25  Bruno Haible  <bruno@clisp.org>
65419
65420         * lib/sincosl.c (sincosl_table): Make static.
65421
65422 2007-03-25  Bruno Haible  <bruno@clisp.org>
65423
65424         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
65425         if the compiler does not support C99.
65426
65427 2007-03-25  Bruno Haible  <bruno@clisp.org>
65428
65429         * modules/time (Makefile.am): Ensure all rule action lines start with a
65430         tab.
65431
65432 2007-03-24  Bruno Haible  <bruno@clisp.org>
65433
65434         * modules/tsearch-tests: New file.
65435         * tests/test-tsearch.sh: New file.
65436         * tests/test-tsearch.c: New file, mostly copied from glibc.
65437
65438         * modules/search-tests: New file.
65439         * tests/test-search.c: New file.
65440
65441         * modules/search: New file.
65442         * lib/search_.h: New file, incorporating lib/tsearch.h.
65443         * m4/search_h.m4: New file.
65444         * lib/tsearch.h: Remove file.
65445         * lib/tsearch.c: Include search.h instead of tsearch.h.
65446         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
65447         HAVE_TSEARCH.
65448         * modules/tsearch (Files): Remove lib/tsearch.h.
65449         (Depends-on): Add search.
65450         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
65451         (Include): Change tsearch.h into search.h.
65452
65453 2007-03-24  Bruno Haible  <bruno@clisp.org>
65454
65455         * modules/fpucw: New file.
65456         * lib/fpucw.h: New file.
65457         * lib/frexp.c: Include fpucw.h.
65458         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
65459         (FUNC): Use them.
65460         * lib/printf-frexp.c: Include fpucw.h.
65461         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
65462         (FUNC): Use them.
65463         * lib/vasnprintf.c: Include fpucw.h.
65464         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
65465         'long double' calculations.
65466         * tests/test-frexpl.c: Include fpucw.h.
65467         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
65468         * tests/test-printf-frexpl.c: Include fpucw.h.
65469         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
65470         * modules/frexpl (Depends-on): Add fpucw.
65471         * modules/printf-frexpl (Depends-on): Likewise.
65472         * modules/fprintf-posix (Depends-on): Likewise.
65473         * modules/snprintf-posix (Depends-on): Likewise.
65474         * modules/sprintf-posix (Depends-on): Likewise.
65475         * modules/vasnprintf-posix (Depends-on): Likewise.
65476         * modules/vasprintf-posix (Depends-on): Likewise.
65477         * modules/vfprintf-posix (Depends-on): Likewise.
65478         * modules/vsnprintf-posix (Depends-on): Likewise.
65479         * modules/vsprintf-posix (Depends-on): Likewise.
65480         * modules/frexpl-tests (Depends-on): Likewise.
65481         * modules/printf-frexpl-tests (Depends-on): Likewise.
65482
65483 2007-03-24  Bruno Haible  <bruno@clisp.org>
65484
65485         * lib/float+.h: New file.
65486         * lib/isnan.c: Include float+.h.
65487         (SIZE): New macro.
65488         (FUNC): Compare only SIZE bytes of the value.
65489         * lib/vasnprintf.c: Include float+.h.
65490         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
65491         SIZEOF_LDBL or SIZEOF_DBL bytes.
65492         * modules/isnan-nolibm (Files): Add lib/float+.h.
65493         * modules/isnanl-nolibm (Files): Add lib/float+.h.
65494         * modules/isnanl (Files): Add lib/float+.h.
65495         * modules/vasnprintf (Files): Add lib/float+.h.
65496
65497 2007-03-24  Bruno Haible  <bruno@clisp.org>
65498
65499         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
65500         include isnanl-nolibm.h.
65501
65502 2007-03-24  Bruno Haible  <bruno@clisp.org>
65503
65504         * tests/test-read-file.c (main): Don't produce spurious output for
65505         expected situations. Make the test fail if it encountered unexpected
65506         results.
65507
65508 2007-03-24  Bruno Haible  <bruno@clisp.org>
65509
65510         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
65511         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
65512
65513 2007-03-24  Bruno Haible  <bruno@clisp.org>
65514
65515         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
65516
65517 2007-03-24  Bruno Haible  <bruno@clisp.org>
65518
65519         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
65520         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
65521
65522         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
65523         * modules/utf8-ucs4: Turn into a symbolic link to module
65524         unistr/u8-mbtouc.
65525
65526         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
65527         utf8-ucs4-unsafe.
65528         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
65529         unistr/u8-mbtouc-unsafe.
65530
65531         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
65532         * modules/utf16-ucs4: Turn into a symbolic link to module
65533         unistr/u16-mbtouc.
65534
65535         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
65536         utf16-ucs4-unsafe.
65537         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
65538         unistr/u16-mbtouc-unsafe.
65539
65540         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
65541         * modules/ucs4-utf8: Turn into a symbolic link to module
65542         unistr/u8-ubtomb.
65543
65544         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
65545         * modules/ucs4-utf16: Turn into a symbolic link to module
65546         unistr/u16-ubtomb.
65547
65548 2007-03-24  Bruno Haible  <bruno@clisp.org>
65549
65550         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
65551         Enable the function only if HAVE_INLINE.
65552         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
65553         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
65554         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
65555         Enable the function only if HAVE_INLINE.
65556         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
65557         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
65558         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
65559         Enable the function only if HAVE_INLINE.
65560         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
65561         Enable the function only if HAVE_INLINE.
65562         * modules/utf8-ucs4: Update.
65563         * modules/utf8-ucs4-unsafe: Update.
65564         * modules/utf16-ucs4: Update.
65565         * modules/utf16-ucs4-unsafe: Update.
65566         * modules/ucs4-utf8: Update.
65567         * modules/ucs4-utf16: Update.
65568
65569 2007-03-24  Bruno Haible  <bruno@clisp.org>
65570
65571         * lib/utf8-ucs4.h: Remove file.
65572         * lib/utf8-ucs4-unsafe.h: Remove file.
65573         * lib/utf16-ucs4.h: Remove file.
65574         * lib/utf16-ucs4-unsafe.h: Remove file.
65575         * lib/ucs4-utf8.h: Remove file.
65576         * lib/ucs4-utf16.h: Remove file.
65577         * lib/unistr.h: Include their previous contents.
65578         * m4/utf-ucs4.m4: Remove file.
65579         * m4/ucs4-utf.m4: Remove file.
65580         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
65581         (Depends-on): Add unistr/base.
65582         (configure.ac): Remove gl_UTF_UCS4.
65583         (Makefile.am): Update.
65584         (Include): Change to unistr.h.
65585         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
65586         (Depends-on): Add unistr/base.
65587         (configure.ac): Remove gl_UTF_UCS4.
65588         (Makefile.am): Update.
65589         (Include): Change to unistr.h.
65590         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
65591         (Depends-on): Add unistr/base.
65592         (configure.ac): Remove gl_UTF_UCS4.
65593         (Makefile.am): Update.
65594         (Include): Change to unistr.h.
65595         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
65596         (Depends-on): Add unistr/base.
65597         (configure.ac): Remove gl_UTF_UCS4.
65598         (Makefile.am): Update.
65599         (Include): Change to unistr.h.
65600         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
65601         (Depends-on): Add unistr/base.
65602         (configure.ac): Remove gl_UCS4_UTF.
65603         (Makefile.am): Update.
65604         (Include): Change to unistr.h.
65605         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
65606         (Depends-on): Add unistr/base.
65607         (configure.ac): Remove gl_UCS4_UTF.
65608         (Makefile.am): Update.
65609         (Include): Change to unistr.h.
65610         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
65611         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
65612         utf8-ucs4-unsafe.h.
65613         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
65614         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
65615         utf16-ucs4-unsafe.h.
65616         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
65617         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
65618         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
65619         * lib/unistr/u8-strchr.c: Likewise.
65620         * lib/unistr/u8-strrchr.c: Likewise.
65621         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
65622         * lib/unistr/u16-strchr.c: Likewise.
65623         * lib/unistr/u16-strrchr.c: Likewise.
65624         * lib/striconveh.c: Update.
65625         * lib/linebreak.c: Update.
65626
65627 2007-03-24  Bruno Haible  <bruno@clisp.org>
65628
65629         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
65630         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
65631
65632 2007-03-22  Bruno Haible  <bruno@clisp.org>
65633
65634         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
65635
65636 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
65637
65638         * MODULES.html.sh (File system functions): New module write-any-file.
65639         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
65640         * m4/write-any-file.m4: New files.
65641
65642 2007-03-23  Eric Blake  <ebb9@byu.net>
65643
65644         * gnulib-tool: Rearrange space-tab sequences, since some editors
65645         like to eat them.
65646
65647 2007-03-23  Eric Blake  <ebb9@byu.net>
65648
65649         * lib/version-etc.c (version_etc_va): Update license wording to
65650         be more concise.  Recommended by Richard Stallman.
65651
65652 2007-03-22  Bruno Haible  <bruno@clisp.org>
65653
65654         * lib/poll.c (MSG_PEEK): New fallback definition.
65655
65656 2007-03-22  Bruno Haible  <bruno@clisp.org>
65657
65658         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
65659         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
65660         (main): Update.
65661         Fixes a compilation error on BeOS.
65662
65663 2007-03-22  Bruno Haible  <bruno@clisp.org>
65664
65665         * modules/frexpl-tests: New file.
65666         * tests/test-frexpl.c: New file.
65667
65668         * modules/frexpl: New file.
65669         * m4/frexpl.m4: New file.
65670         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
65671         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
65672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
65673         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
65674         (Depends-on): Add frexpl. Remove isnanl-nolibm.
65675         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
65676
65677 2007-03-22  Bruno Haible  <bruno@clisp.org>
65678
65679         * lib/frexpl.c: Share code with lib/frexp.c.
65680         * modules/mathl (Files): Add lib/frexp.c.
65681         (Depends-on): Add isnanl-nolibm.
65682
65683 2007-03-22  Bruno Haible  <bruno@clisp.org>
65684
65685         * modules/printf-frexp (Files): Add m4/frexp.m4.
65686         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
65687         only if the found frexp function actually works.
65688
65689 2007-03-22  Bruno Haible  <bruno@clisp.org>
65690
65691         * lib/frexp.c: Remove older implementation that uses divisions.
65692
65693 2007-03-21  Bruno Haible  <bruno@clisp.org>
65694
65695         * modules/frexp-tests: New file.
65696         * tests/test-frexp.c: New file.
65697
65698         * modules/frexp: New file.
65699         * lib/frexp.c: New file.
65700         * m4/frexp.m4: New file.
65701         * lib/math_.h (frexp): New declaration.
65702         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
65703         REPLACE_FREXP.
65704         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
65705
65706 2007-03-21  Bruno Haible  <bruno@clisp.org>
65707
65708         * modules/isnanl-tests: New file.
65709         * tests/test-isnanl.c: New file.
65710
65711         * modules/isnanl: New file.
65712         * lib/isnanl.h: New file.
65713         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
65714         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
65715         gl_FUNC_ISNANL_WORKS.
65716         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
65717         New macros.
65718
65719 2007-03-21  Bruno Haible  <bruno@clisp.org>
65720
65721         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
65722         lib/isnanl.h.
65723         (Include): Update.
65724         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
65725         * lib/vasnprintf.c: Update.
65726         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
65727         tests/test-isnanl.h, remove tests/test-isnanl.c.
65728         (Makefile.am): Update.
65729         * tests/test-isnanl-nolibm.c: New file.
65730         * tests/test-isnanl.h: New file.
65731         * tests/test-isnanl.c: Remove file.
65732
65733 2007-03-21  Jim Meyering  <jim@meyering.net>
65734
65735         When trying to open ".", treat ESTALE like EACCES.
65736         * lib/savewd.c (savewd_save): Resort to forking not just upon
65737         failure with EACCES, but also when errno is ESTALE.
65738
65739 2007-03-20  Bruno Haible  <bruno@clisp.org>
65740
65741         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
65742         Needed on AIX 5.1. Reported by Matthew Woehlke.
65743
65744 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
65745
65746         Suggestions by Bruno Haible:
65747         * lib/acl-internal.h: Include "gettext.h" rather than rolling
65748         our own.
65749         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
65750         * modules/acl (Depends-on): Add gettext.
65751
65752 2007-03-19  Bruno Haible  <bruno@clisp.org>
65753
65754         * modules/iconvme: Remove file.
65755         * lib/iconvme.h: Remove file.
65756         * lib/iconvme.c: Remove file.
65757         * m4/iconvme.m4: Remove file.
65758
65759 2007-03-19  Bruno Haible  <bruno@clisp.org>
65760
65761         * doc/relocatable-maint.texi: Break long shell script line.
65762         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
65763
65764 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
65765
65766         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
65767         handle file_has_acl.
65768         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
65769         * lib/acl.c: Move header inclusions and related macro defns into
65770         lib/acl-internal.h.
65771         (S_ISLNK): Remove defn, since that's now done for us.
65772         (file_has_acl): Move to lib/file-has-acl.c.
65773         Call acl_trivial if available.  This is the crucial part of the fix.
65774         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
65775         shared within the library.  Rewrite a bit, partly to make it compatible
65776         with the GNU coding style.
65777         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
65778         Remove unnecessary double-quotes.
65779         Don't test for acl_to_text; the build will catch that.
65780         Replace acl_entries if it doesn't exist and it is needed.
65781         Check for -lsec and acl_trivial (as used on Solaris 10).
65782         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
65783         lib/file-has-acl.c.
65784         (Depends-on): Add sys_stat, for S_ISLNK.
65785
65786 2007-03-19  Ben Pfaff  <blp@gnu.org>
65787
65788         * doc/gnulib.texi: Fix typos.
65789         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
65790
65791 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
65792
65793         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
65794         If size is zero here, buf must be zero.
65795
65796 2007-03-19  Simon Josefsson  <simon@josefsson.org>
65797
65798         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
65799         <bruno@clisp.org>.
65800
65801 2007-03-18  Bruno Haible  <bruno@clisp.org>
65802
65803         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
65804         Suggested by Eric Blake.
65805
65806 2007-03-18  Ben Pfaff  <blp@gnu.org>
65807
65808         * doc/relocatable.texi: Recommend using as prefix a directory
65809         that does not exist and will never be created.  Based on
65810         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
65811         and others.
65812
65813 2007-03-17  Bruno Haible  <bruno@clisp.org>
65814
65815         * lib/fchownat.c: Include lchown.h.
65816
65817 2007-03-17  Bruno Haible  <bruno@clisp.org>
65818
65819         Fix endless loop when the given allocated size was > INT_MAX.
65820         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
65821         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
65822         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
65823         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
65824         * lib/sprintf.c (sprintf): Likewise.
65825
65826 2007-03-17  Bruno Haible  <bruno@clisp.org>
65827
65828         * tests/test-argp-2.sh (func_compare): Output a context diff.
65829
65830 2007-03-17  Bruno Haible  <bruno@clisp.org>
65831
65832         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
65833         locale's decimal-point character.
65834
65835 2007-03-17  Bruno Haible  <bruno@clisp.org>
65836
65837         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
65838         before comparing it. Needed because on some platforms (e.g. x86) a
65839         'long double' occupies less bytes than sizeof (long double).
65840
65841 2007-03-17  Bruno Haible  <bruno@clisp.org>
65842
65843         * tests/test-crc.c (main): Make printf statements 64-bit clean.
65844         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
65845         * tests/test-getaddrinfo.c (simple): Likewise.
65846         * tests/test-read-file.c (main): Likewise.
65847
65848 2007-03-17  Bruno Haible  <bruno@clisp.org>
65849
65850         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
65851
65852 2007-03-17  Bruno Haible  <bruno@clisp.org>
65853
65854         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
65855         unused variable.
65856
65857 2007-03-17  Bruno Haible  <bruno@clisp.org>
65858
65859         * tests/test-c-strcasecmp.c: Include c-strcase.h.
65860         * tests/test-c-strncasecmp.c: Likewise.
65861
65862 2007-03-17  Bruno Haible  <bruno@clisp.org>
65863
65864         * modules/stdlib (Depends-on): Add unistd.
65865         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
65866         Needed for MacOS X 10.3.
65867
65868 2007-03-17  Bruno Haible  <bruno@clisp.org>
65869
65870         * lib/unistr/u-strdup.h: Include <stdlib.h>.
65871
65872 2007-03-17  Bruno Haible  <bruno@clisp.org>
65873
65874         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
65875
65876 2007-03-17  Bruno Haible  <bruno@clisp.org>
65877
65878         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
65879         to reflect files copied from gnulib (with or without modifications).
65880         Suggested by Jim Meyering.
65881
65882 2007-03-17  Eric Blake  <ebb9@byu.net>
65883
65884         * NEWS: Document stdlib change from 2007-02-18.
65885
65886 2007-03-17  Jim Meyering  <jim@meyering.net>
65887
65888         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
65889         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
65890         someone uses a name containing shell meta-characters.
65891         Reported by Alfred M. Szmidt.
65892
65893         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
65894
65895 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
65896
65897         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
65898         and copy gettext configuration files only if configure.ac contains
65899         a use of AM_GNU_GETTEXT_VERSION.
65900
65901 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
65902
65903         * build-aux/bootstrap (gnulib_name): New variable.
65904         (gnulib_tool_options): Use it.
65905
65906 2007-03-13  Simon Josefsson  <simon@josefsson.org>
65907
65908         * tests/test-des.c: Use new namespace.
65909
65910 2007-03-15  Bruno Haible  <bruno@clisp.org>
65911
65912         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
65913         Reported by James Youngman <jay@gnu.org>.
65914
65915 2007-03-15  Bruno Haible  <bruno@clisp.org>
65916
65917         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
65918         declared prototype. Needed with cc on OSF/1 5.1.
65919
65920 2007-03-15  Bruno Haible  <bruno@clisp.org>
65921
65922         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
65923         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
65924         (struct gl_list_implementation): Add dispose_fn argument to the
65925         'create_empty', 'create' methods.
65926         (struct gl_list_impl_base): Add field 'dispose_fn'.
65927         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
65928         argument.
65929         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
65930         dispose_fn argument.
65931         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
65932         dispose_fn on the dropped values.
65933         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
65934         dispose_fn argument.
65935         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
65936         dropped values.
65937         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
65938         (gl_tree_remove_node): Call dispose_fn on the dropped value.
65939         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
65940         (gl_tree_remove_node): Call dispose_fn on the dropped value.
65941         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
65942         argument.
65943         (gl_tree_list_free): Call dispose_fn on the dropped values.
65944         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
65945         the dropped values.
65946         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65947         Add dispose_fn argument.
65948         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
65949         Call dispose_fn on the dropped values.
65950         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
65951         Add dispose_fn argument.
65952         (gl_sublist_create): Initialize the 'dispose_fn' field.
65953         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
65954         * tests/test-array_list.c (main): Update.
65955         * tests/test-carray_list.c (main): Update.
65956         * tests/test-avltree_list.c (main): Update.
65957         * tests/test-rbtree_list.c (main): Update.
65958         * tests/test-avltreehash_list.c (main): Update.
65959         * tests/test-rbtreehash_list.c (main): Update.
65960         * tests/test-linked_list.c (main): Update.
65961         * tests/test-linkedhash_list.c (main): Update.
65962         * tests/test-array_oset.c (main): Update.
65963
65964 2007-03-15  Bruno Haible  <bruno@clisp.org>
65965
65966         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
65967         (gl_oset_create_empty): Add dispose_fn argument.
65968         (struct gl_oset_implementation): Add dispose_fn argument to
65969         'create_empty' method.
65970         (struct gl_oset_impl_base): Add dispose_fn field.
65971         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
65972         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
65973         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
65974         values.
65975         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
65976         (gl_tree_oset_free): Call dispose_fn on the dropped values.
65977         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
65978         dropped value.
65979         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
65980         dropped value.
65981         * tests/test-array_oset.c (main): Update.
65982         * tests/test-avltree_oset.c (main): Update.
65983         * tests/test-rbtree_oset.c (main): Update.
65984         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
65985
65986 2007-03-13  Bruno Haible  <bruno@clisp.org>
65987
65988         * tests/test-stdbool.c (i): Update after last patch.
65989
65990 2007-03-12  Bruno Haible  <bruno@clisp.org>
65991
65992         * lib/quotearg.c: Include <wctype.h> early, before the definition of
65993         the iswprint macro. Needed on Solaris 2.5.1.
65994
65995 2007-03-12  Bruno Haible  <bruno@clisp.org>
65996
65997         * tests/test-printf-frexp.c (main): Declare x as volatile.
65998
65999 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66000
66001         * doc/gnulib.texi (Build robot for gnulib): New section.
66002
66003 2007-03-12  Jim Meyering  <jim@meyering.net>
66004
66005         * build-aux/bootstrap: New file.
66006         * build-aux/bootstrap.conf: New file, from coreutils.
66007
66008 2007-03-11  Bruno Haible  <bruno@clisp.org>
66009
66010         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
66011
66012 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66013
66014         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
66015         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
66016         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
66017
66018 2007-03-11  Bruno Haible  <bruno@clisp.org>
66019
66020         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
66021         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
66022
66023 2007-03-11  Bruno Haible  <bruno@clisp.org>
66024
66025         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
66026         formula. Needed for SunPRO C 5.0.
66027
66028 2007-03-11  Bruno Haible  <bruno@clisp.org>
66029
66030         * modules/long-options (Depends-on): Add getopt.
66031
66032 2007-03-11  Bruno Haible  <bruno@clisp.org>
66033
66034         * modules/modechange (Depends-on): Add stdbool.
66035
66036 2007-03-11  Bruno Haible  <bruno@clisp.org>
66037
66038         * modules/i-ring (Depends-on): Add stdbool.
66039
66040 2007-03-11  Bruno Haible  <bruno@clisp.org>
66041
66042         * modules/gc-des (Depends-on): Add stdbool.
66043
66044 2007-03-11  Bruno Haible  <bruno@clisp.org>
66045
66046         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
66047
66048 2007-03-11  Bruno Haible  <bruno@clisp.org>
66049
66050         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
66051
66052 2007-03-11  Bruno Haible  <bruno@clisp.org>
66053
66054         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
66055
66056 2007-03-11  Bruno Haible  <bruno@clisp.org>
66057
66058         * lib/vasnprintf.c (sprintf): Undefine.
66059
66060 2007-03-11  Bruno Haible  <bruno@clisp.org>
66061
66062         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
66063         initializers in SunPRO C and Compaq C compilers.
66064
66065 2007-03-11  Bruno Haible  <bruno@clisp.org>
66066
66067         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
66068         decrementing code ANSI C compliant.
66069
66070 2007-03-11  Bruno Haible  <bruno@clisp.org>
66071
66072         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
66073         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
66074
66075 2007-03-11  Bruno Haible  <bruno@clisp.org>
66076
66077         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
66078         <stdbool.h> substitute doesn't pass.
66079
66080 2007-03-11  Bruno Haible  <bruno@clisp.org>
66081
66082         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
66083
66084 2007-03-11  Bruno Haible  <bruno@clisp.org>
66085
66086         * gnulib-tool (func_create_megatestdir): Create also an autobuild
66087         script, for submission to autobuild.josefsson.org.
66088
66089 2007-03-10  Bruno Haible  <bruno@clisp.org>
66090
66091         * modules/canonicalize-lgpl-tests: New file.
66092         * tests/test-canonicalize-lgpl.sh: New file.
66093         * tests/test-canonicalize-lgpl.c: New file.
66094
66095         * modules/c-strcase-tests: New file.
66096         * tests/test-c-strcase.sh: New file.
66097         * tests/test-c-strcasecmp.c: New file.
66098         * tests/test-c-strncasecmp.c: New file.
66099
66100         * modules/atexit-tests: New file.
66101         * tests/test-atexit.sh: New file.
66102         * tests/test-atexit.c: New file.
66103
66104 2007-03-10  Bruno Haible  <bruno@clisp.org>
66105
66106         * tests/test-binary-io.sh: Use temporary filenames that are not so
66107         likely to clash with those of other tests (in a parallel make).
66108         * tests/test-binary-io.c: Likewise.
66109
66110 2007-03-10  Bruno Haible  <bruno@clisp.org>
66111
66112         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
66113         fallback; use #error instead.
66114         Suggested by Simon Josefsson.
66115
66116 2007-03-10  Bruno Haible  <bruno@clisp.org>
66117
66118         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
66119         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
66120         first and the last.
66121
66122 2007-03-10  Bruno Haible  <bruno@clisp.org>
66123
66124         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
66125
66126 2007-03-10  Bruno Haible  <bruno@clisp.org>
66127
66128         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
66129         "make distcheck".
66130         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
66131         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
66132         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
66133
66134 2007-03-10  Bruno Haible  <bruno@clisp.org>
66135
66136         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
66137         variable.
66138         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
66139         variable.
66140
66141 2007-03-09  Eric Blake  <ebb9@byu.net>
66142         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
66143
66144         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
66145         types are not being provided by gnulib.
66146         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
66147         types are supported.
66148
66149 2007-03-10  Bruno Haible  <bruno@clisp.org>
66150
66151         * lib/stdio_.h (__attribute__): New macro.
66152         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
66153         vsprintf): Specify __attribute__ __format__ for GCC.
66154         Suggested by Eric Blake.
66155
66156 2007-03-09  Bruno Haible  <bruno@clisp.org>
66157
66158         * modules/printf-posix-tests: New file.
66159         * tests/test-printf-posix.sh: New file.
66160         * tests/test-printf-posix.c: New file.
66161
66162         * modules/printf-posix: New file.
66163         * lib/printf.c: New file.
66164         * m4/printf-posix-rpl.m4: New file.
66165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
66166         REPLACE_PRINTF.
66167         * lib/stdio_.h (printf): New declaration.
66168         (format, __format__, ____printf____, ____scanf____, ____strftime____,
66169         ____strfmon____): New macros.
66170         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
66171         REPLACE_PRINTF.
66172
66173 2007-03-09  Bruno Haible  <bruno@clisp.org>
66174
66175         * tests/test-vasnprintf-posix2.sh: New file.
66176         * tests/test-vasnprintf-posix2.c: New file.
66177         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
66178         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
66179         (Makefile.am): Activate test-vasnprintf-posix2.sh.
66180
66181         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
66182         a locale dependent decimal point, rather than always '.'.
66183
66184 2007-03-09  Eric Blake  <ebb9@byu.net>
66185
66186         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
66187         spite of platforms like Tandem/NSK that define it to -1.
66188
66189 2007-03-08  Bruno Haible  <bruno@clisp.org>
66190
66191         * modules/vprintf-posix-tests: New file.
66192         * tests/test-vprintf-posix.sh: New file.
66193         * tests/test-vprintf-posix.c: New file.
66194         * tests/test-printf-posix.h: New file.
66195
66196         * modules/vprintf-posix: New file.
66197         * lib/vprintf.c: New file.
66198         * m4/vprintf-posix.m4: New file.
66199         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
66200         REPLACE_VPRINTF.
66201         * lib/stdio_.h (vprintf): New declaration.
66202         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
66203         REPLACE_VPRINTF.
66204
66205 2007-03-08  Bruno Haible  <bruno@clisp.org>
66206
66207         * modules/fprintf-posix-tests: New file.
66208         * tests/test-fprintf-posix.sh: New file.
66209         * tests/test-fprintf-posix.c: New file.
66210
66211         * modules/fprintf-posix: New file.
66212         * lib/fprintf.c: New file.
66213         * m4/fprintf-posix.m4: New file.
66214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
66215         REPLACE_FPRINTF.
66216         * lib/stdio_.h (fprintf): New declaration.
66217         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
66218         REPLACE_FPRINTF.
66219
66220 2007-03-08  Bruno Haible  <bruno@clisp.org>
66221
66222         * modules/vfprintf-posix-tests: New file.
66223         * tests/test-vfprintf-posix.sh: New file.
66224         * tests/test-vfprintf-posix.c: New file.
66225         * tests/test-fprintf-posix.h: New file.
66226         * tests/test-fprintf-posix.out: New file.
66227
66228         * modules/vfprintf-posix: New file.
66229         * lib/vfprintf.c: New file.
66230         * m4/vfprintf-posix.m4: New file.
66231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
66232         REPLACE_VFPRINTF.
66233         * lib/stdio_.h (vfprintf): New declaration.
66234         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
66235         REPLACE_VFPRINTF.
66236
66237 2007-03-08  Bruno Haible  <bruno@clisp.org>
66238
66239         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
66240
66241 2007-03-08  Bruno Haible  <bruno@clisp.org>
66242
66243         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
66244         instead of 'expr' invocations.
66245         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66246         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66247         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66248         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66249         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66250         Suggested by Paul Eggert.
66251
66252 2007-03-08  Bruno Haible  <bruno@clisp.org>
66253
66254         * modules/fseterr-tests: New file.
66255         * tests/test-fseterr.c: New file.
66256
66257         * modules/fseterr: New file.
66258         * lib/fseterr.h: New file.
66259         * lib/fseterr.c: New file.
66260
66261 2007-03-08  Bruno Haible  <bruno@clisp.org>
66262
66263         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
66264         * lib/getopt_.h: Likewise.
66265         * lib/mbswidth.h: Likewise.
66266         * lib/setenv.h: Likewise.
66267         * lib/vasnprintf.h: Likewise.
66268         * lib/vasprintf.h: Likewise.
66269         * lib/verror.h: Likewise.
66270         * lib/xsetenv.h: Likewise.
66271         * lib/xvasprintf.h: Likewise.
66272
66273 2007-03-08  Jim Meyering  <jim@meyering.net>
66274
66275         * users.txt: Add parted.
66276
66277         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
66278
66279 2007-03-07  Bruno Haible  <bruno@clisp.org>
66280
66281         * m4/printf.m4: Make the shell script snippets copy&pastable.
66282
66283 2007-03-02  Bruno Haible  <bruno@clisp.org>
66284
66285         * lib/netinet_in_.h: New file.
66286         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
66287         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
66288         * modules/netinet_in (Files): Add lib/netinet_in_.h.
66289         (Depends-on): Add absolute-header.
66290         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
66291         into netinet/in.h.
66292
66293 2007-03-03  Bruno Haible  <bruno@clisp.org>
66294
66295         * lib/sys_select_.h: New file.
66296         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
66297         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
66298         * modules/sys_select (Files): Add lib/sys_select_.h.
66299         (Depends-on): Add absolute-header.
66300         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
66301         into sys/select.h.
66302
66303 2007-03-02  Bruno Haible  <bruno@clisp.org>
66304
66305         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
66306         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
66307         values.
66308         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
66309         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
66310         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
66311         * modules/sys_socket (Depends-on): Add absolute-header.
66312         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
66313         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
66314         (Include): Remove requirement of inclusion of <sys/types.h>.
66315
66316 2007-03-02  Bruno Haible  <bruno@clisp.org>
66317
66318         * lib/byteswap_.h (bswap_32): Fix formula.
66319
66320 2007-03-06  Bruno Haible  <bruno@clisp.org>
66321
66322         * modules/sprintf-posix-tests: New file.
66323         * tests/test-sprintf-posix.c: New file.
66324
66325         * modules/sprintf-posix: New file.
66326         * lib/sprintf.c: New file.
66327         * m4/sprintf-posix.m4: New file.
66328         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
66329         REPLACE_SPRINTF.
66330         * lib/stdio_.h (sprintf): New declaration.
66331         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
66332         REPLACE_SPRINTF.
66333
66334 2007-03-06  Bruno Haible  <bruno@clisp.org>
66335
66336         * modules/vsprintf-posix-tests: New file.
66337         * tests/test-vsprintf-posix.c: New file.
66338         * tests/test-sprintf-posix.h: New file.
66339
66340         * modules/vsprintf-posix: New file.
66341         * lib/vsprintf.c: New file.
66342         * m4/vsprintf-posix.m4: New file.
66343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
66344         REPLACE_VSPRINTF.
66345         * lib/stdio_.h (vsprintf): New declaration.
66346         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
66347         REPLACE_VSPRINTF.
66348
66349 2007-03-06  Bruno Haible  <bruno@clisp.org>
66350
66351         * modules/vsnprintf (Depend-on): Remove minmax.
66352
66353 2007-03-06  Bruno Haible  <bruno@clisp.org>
66354
66355         * modules/snprintf-posix-tests: New file.
66356         * tests/test-snprintf-posix.c: New file.
66357
66358         * modules/snprintf-posix: New file.
66359         * m4/snprintf-posix.m4: New file.
66360         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
66361         gl_FUNC_SNPRINTF.
66362         (gl_FUNC_SNPRINTF): Invoke it.
66363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
66364         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
66365         is set.
66366         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
66367
66368 2007-03-06  Bruno Haible  <bruno@clisp.org>
66369
66370         * modules/vsnprintf-posix-tests: New file.
66371         * tests/test-vsnprintf-posix.c: New file.
66372         * tests/test-snprintf-posix.h: New file.
66373
66374         * modules/vsnprintf-posix: New file.
66375         * m4/vsnprintf-posix.m4: New file.
66376         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
66377         gl_FUNC_VSNPRINTF.
66378         (gl_FUNC_VSNPRINTF): Invoke it.
66379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
66380         * lib/stdio_.h (vsnprintf): Define as a replacement if
66381         REPLACE_VSNPRINTF is set.
66382         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
66383
66384 2007-03-06  Bruno Haible  <bruno@clisp.org>
66385
66386         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
66387         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
66388
66389 2007-03-06  Bruno Haible  <bruno@clisp.org>
66390
66391         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
66392         (asinl): Declare also if HAVE_DECL_ASINL is set.
66393         (atanl): Declare also if HAVE_DECL_ATANL is set.
66394         (ceill): Declare also if HAVE_DECL_CEILL is set.
66395         (cosl): Declare also if HAVE_DECL_COSL is set.
66396         (expl): Declare also if HAVE_DECL_EXPL is set.
66397         (floorl): Declare also if HAVE_DECL_FLOORL is set.
66398         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
66399         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
66400         (logl): Declare also if HAVE_DECL_LOGL is set.
66401         (sinl): Declare also if HAVE_DECL_SINL is set.
66402         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
66403         (tanl): Declare also if HAVE_DECL_TANL is set.
66404         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
66405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
66406         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
66407         declaration of frexpl, ldexpl.
66408         * modules/printf-frexpl (Depends-on): Add math.
66409         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
66410
66411 2007-03-05  Bruno Haible  <bruno@clisp.org>
66412
66413         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
66414         frexpl and ldexpl are declared.
66415         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
66416
66417 2007-03-05  Bruno Haible  <bruno@clisp.org>
66418
66419         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
66420         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
66421
66422 2007-03-05  Bruno Haible  <bruno@clisp.org>
66423
66424         * lib/stdio_.h: Include <stddef.h>.
66425
66426 2007-03-05  Bruno Haible  <bruno@clisp.org>
66427
66428         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
66429
66430 2007-03-05  Bruno Haible  <bruno@clisp.org>
66431
66432         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
66433         NetBSD 4, from Ralf Wildenhues.
66434
66435 2007-03-04  Bruno Haible  <bruno@clisp.org>
66436
66437         * lib/vasprintf.h: Update #if logic for the case when the functions
66438         exist but are overridden.
66439
66440 2007-03-04  Bruno Haible  <bruno@clisp.org>
66441
66442         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
66443         implementations: glibc-2.4 and MacOS X 10.3.
66444         * tests/test-vasnprintf-posix.c (test_function): Test also the case
66445         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
66446         * tests/test-vasprintf-posix.c (test_function): Likewise.
66447
66448 2007-03-04  Bruno Haible  <bruno@clisp.org>
66449
66450         * modules/vasprintf-posix-tests: New file.
66451         * tests/test-vasprintf-posix.c: New file.
66452
66453         * modules/vasprintf-posix: New file.
66454         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
66455         defined.
66456         * m4/vasprintf-posix.m4: New file.
66457         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
66458         gl_FUNC_VASPRINTF.
66459         (gl_FUNC_VASPRINTF): Invoke it.
66460         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
66461         here.
66462         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
66463
66464 2007-03-04  Bruno Haible  <bruno@clisp.org>
66465
66466         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
66467         REPLACE_GETTIMEOFDAY.
66468         * modules/sys_time (Makefile.am): Likewise.
66469         * m4/sys_time_h.m4: Likewise.
66470         * m4/gettimeofday.m4: Likewise.
66471
66472 2007-03-04  Bruno Haible  <bruno@clisp.org>
66473
66474         * modules/vasnprintf-posix-tests: New file.
66475         * tests/test-vasnprintf-posix.c: New file.
66476
66477         * modules/vasnprintf-posix: New file.
66478         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
66479         printf-frexpl.h.
66480         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
66481         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
66482         REPLACE_VASNPRINTF is defined.
66483         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
66484         gl_FUNC_VASNPRINTF.
66485         (gl_FUNC_VASNPRINTF): Invoke it.
66486         * m4/vasnprintf-posix.m4: New file.
66487         * m4/printf.m4: New file.
66488
66489 2007-03-04  Bruno Haible  <bruno@clisp.org>
66490
66491         Compile progreloc.c only if --enable-relocatable is specified.
66492         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
66493         if --enable-relocatable was specified.
66494         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
66495         lib_SOURCES.
66496
66497 2007-03-04  Jim Meyering  <jim@meyering.net>
66498
66499         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
66500         Use it consistently, rather than enumerating errno constants.
66501
66502 2007-03-04  Bruno Haible  <bruno@clisp.org>
66503
66504         * modules/xvasprintf-tests: New file.
66505         * tests/test-xvasprintf.c: New file.
66506
66507         * modules/vasprintf-tests: New file.
66508         * tests/test-vasprintf.c: New file.
66509
66510         * modules/vasnprintf-tests: New file.
66511         * tests/test-vasnprintf.c: New file.
66512
66513         * modules/vsnprintf-tests: New file.
66514         * tests/test-vsnprintf.c: New file.
66515
66516         * modules/snprintf-tests: New file.
66517         * tests/test-snprintf.c: New file.
66518
66519 2007-03-04  Bruno Haible  <bruno@clisp.org>
66520
66521         Compile relocatable.c only if --enable-relocatable is specified.
66522         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
66523         gl_RELOCATABLE_LIBRARY.
66524         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
66525         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
66526         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
66527         gl_RELOCATABLE_LIBRARY.
66528         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
66529         (Makefile.am): Remove lib_SOURCES.
66530         * modules/relocatable-lib-lgpl (configure.ac): Invoke
66531         gl_RELOCATABLE_LIBRARY.
66532         (Makefile.am): Remove lib_SOURCES.
66533         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
66534         always.
66535         * modules/relocatable-prog-wrapper (configure.ac): Invoke
66536         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
66537
66538 2007-03-04  Bruno Haible  <bruno@clisp.org>
66539
66540         * modules/argmatch-tests: New file.
66541         * tests/test-argmatch.c: New file.
66542
66543         * tests/test-allocsa.c (main): Halve the number of loop runs.
66544
66545         * modules/alloca-opt-tests: New file.
66546         * tests/test-alloca-opt.c: New file.
66547
66548 2007-03-04  Jim Meyering  <jim@meyering.net>
66549
66550         Work around difference between Linux ACLs and Solaris 10 ZFS.
66551         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
66552         for EINVAL.
66553
66554 2007-03-03  Bruno Haible  <bruno@clisp.org>
66555
66556         * modules/relocatable-prog (Depends-on): Add back progreloc's
66557         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
66558
66559 2007-03-03  Bruno Haible  <bruno@clisp.org>
66560
66561         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
66562         * modules/relocatable-lib: New file.
66563
66564 2007-03-03  Bruno Haible  <bruno@clisp.org>
66565
66566         * modules/relocatable-prog: Renamed from modules/relocatable.
66567         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
66568
66569 2007-03-03  Bruno Haible  <bruno@clisp.org>
66570
66571         * modules/relocatable-script (Files): Add doc/relocatable.texi,
66572         m4/relocatable-lib.m4.
66573         (Depends-on): Remove 'relocatable'.
66574         (configure.ac): Add gl_RELOCATABLE_NOP.
66575
66576 2007-03-03  Bruno Haible  <bruno@clisp.org>
66577
66578         * modules/relocatable-prog-wrapper: New file.
66579         * modules/relocatable (Depends-on): Add it. Remove all other
66580         dependencies except progname.
66581         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
66582
66583         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
66584         (gl_FUNC_STRERROR): Nop.
66585         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
66586
66587         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
66588         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
66589
66590         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
66591         (gl_FUNC_READLINK): Update.
66592
66593         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
66594
66595 2007-03-03  Bruno Haible  <bruno@clisp.org>
66596
66597         * lib/xreadlink.c: Include <unistd.h> unconditionally.
66598         * modules/xreadlink (Depends-on): Add unistd.
66599         * modules/xreadlink-with-size (Depends-on): Likewise.
66600
66601 2007-03-03  Bruno Haible  <bruno@clisp.org>
66602
66603         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
66604         extracted from gt_FUNC_SETENV.
66605         (gt_FUNC_SETENV): Remove macro.
66606         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
66607         remove gt_FUNC_SETENV.
66608
66609 2007-03-03  Bruno Haible  <bruno@clisp.org>
66610
66611         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
66612         ENABLE_RELOCATABLE here.
66613         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
66614
66615 2007-03-03  Bruno Haible  <bruno@clisp.org>
66616
66617         * modules/rbtreehash-list-tests (Depends-on): Add progname.
66618         * tests/test-rbtreehash_list.c: Include progname.h.
66619         (main): Call set_program_name.
66620
66621         * modules/rbtree-oset-tests (Depends-on): Add progname.
66622         * tests/test-rbtree_oset.c: Include progname.h.
66623         (main): Call set_program_name.
66624
66625         * modules/rbtree-list-tests (Depends-on): Add progname.
66626         * tests/test-rbtree_list.c: Include progname.h.
66627         (main): Call set_program_name.
66628
66629         * modules/linked-list-tests (Depends-on): Add progname.
66630         * tests/test-linked_list.c: Include progname.h.
66631         (main): Call set_program_name.
66632
66633 2007-03-03  Bruno Haible  <bruno@clisp.org>
66634
66635         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
66636         All uses of __restrict changed to _Restrict_.
66637         * lib/glob_.h (__restrict): Remove macro.
66638
66639 2007-03-02  Bruno Haible  <bruno@clisp.org>
66640
66641         * modules/gettext (configure.ac): Require gettext infrastructure
66642         from version 0.16.1.
66643
66644 2007-03-02  Bruno Haible  <bruno@clisp.org>
66645
66646         * modules/linkedhash-list-tests (Depends-on): Add progname.
66647         * tests/test-linkedhash_list.c: Include progname.h.
66648         (main): Call set_program_name.
66649
66650         * modules/carray-list-tests (Depends-on): Add progname.
66651         * tests/test-carray_list.c: Include progname.h.
66652         (main): Call set_program_name.
66653
66654         * modules/avltreehash-list-tests (Depends-on): Add progname.
66655         * tests/test-avltreehash_list.c: Include progname.h.
66656         (main): Call set_program_name.
66657
66658         * modules/avltree-oset-tests (Depends-on): Add progname.
66659         * tests/test-avltree_oset.c: Include progname.h.
66660         (main): Call set_program_name.
66661
66662         * modules/avltree-list-tests (Depends-on): Add progname.
66663         * tests/test-avltree_list.c: Include progname.h.
66664         (main): Call set_program_name.
66665
66666         * modules/array-oset-tests (Depends-on): Add progname.
66667         * tests/test-array_oset.c: Include progname.h.
66668         (main): Call set_program_name.
66669
66670         * modules/array-list-tests (Depends-on): Add progname.
66671         * tests/test-array_list.c: Include progname.h.
66672         (main): Call set_program_name.
66673
66674         * modules/argp-tests (Depends-on): Add progname.
66675         * tests/test-argp.c: Include argp.h first. Include progname.h.
66676         (main): Call set_program_name.
66677
66678 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
66679
66680         * doc/gnulib-tool.texi (Initial import): Reword description of
66681         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
66682         limited effect even if defined after the first system include.
66683
66684 2007-03-01  Bruno Haible  <bruno@clisp.org>
66685
66686         * build-aux/config.libpath: Update to libtool-1.5.22.
66687         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
66688
66689 2007-03-01  Bruno Haible  <bruno@clisp.org>
66690
66691         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
66692         foo_CFLAGS.
66693         Reported by Ralf Wildenhues.
66694
66695 2007-03-01  Bruno Haible  <bruno@clisp.org>
66696
66697         * build-aux/install-reloc: Remove object files left over by some
66698         compilers.
66699         Reported by Ralf Wildenhues.
66700
66701 2007-03-01  Bruno Haible  <bruno@clisp.org>
66702
66703         * build-aux/install-reloc: Break long lines.
66704
66705 2007-03-01  Bruno Haible  <bruno@clisp.org>
66706
66707         * doc/relocatable.texi: Document that it may not work on OpenBSD.
66708         Reported by Ralf Wildenhues.
66709
66710 2007-03-01  Bruno Haible  <bruno@clisp.org>
66711
66712         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
66713         include ordering constraints.
66714
66715 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66716
66717         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
66718         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
66719         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
66720         as another example.
66721         * lib/time_.h: Fix misspelling.
66722         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66723         Require gl_HEADER_TIME_H_DEFAULTS.
66724         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
66725         * m4/time_r.m4 (gl_TIME_R): Likewise.
66726         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
66727
66728 2007-03-01  Bruno Haible  <bruno@clisp.org>
66729
66730         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
66731         * m4/utimens.m4 (gl_UTIMENS): Likewise.
66732
66733 2007-03-01  Jim Meyering  <jim@meyering.net>
66734
66735         * modules/xreadlink (Maintainer): Add my name.
66736         * modules/xreadlink-with-size (Depends-on): Alphabetize.
66737
66738 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
66739             Bruno Haible  <bruno@clisp.org>
66740
66741         * build-aux/install-reloc: Compile also c-ctype.c.
66742         * build-aux/relocatable.sh.in: New file.
66743         * doc/relocatable.texi: New file.
66744         * doc/relocatable-maint.texi: New file.
66745         * doc/gnulib.texi: Include relocatable-maint.texi.
66746         * lib/progreloc.c: Include unistd.h unconditionally.
66747         * lib/relocwrapper.c: Include unistd.h unconditionally.
66748         Include c-ctype.h.
66749         (add_dotbin): Use c_tolower.
66750         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
66751         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
66752         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
66753         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
66754         to m4/relocatable-lib.m4.
66755         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
66756         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
66757         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
66758         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
66759         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
66760         * modules/relocatable: New file.
66761         * modules/relocatable-lib: New file.
66762         * modules/relocatable-script: New file.
66763
66764 2007-02-28  Bruno Haible  <bruno@clisp.org>
66765
66766         Import --enable-relocatable infrastructure.
66767         * build-aux/config.libpath: New file, from GNU gettext.
66768         * build-aux/install-reloc: New file, from GNU gettext.
66769         * build-aux/reloc-ldflags: New file, from GNU gettext.
66770         * lib/relocatable.h: New file, from GNU gettext.
66771         * lib/relocatable.c: New file, from GNU gettext.
66772         * lib/relocwrapper.c: New file, from GNU gettext.
66773         * m4/relocatable.m4: New file, from GNU gettext.
66774
66775 2007-02-28  Bruno Haible  <bruno@clisp.org>
66776
66777         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
66778
66779         * modules/xreadlink: New file, from GNU gettext with modifications.
66780         * lib/xreadlink.c: New file, from GNU gettext.
66781         * lib/xreadlink.h: Add comments.
66782         (xreadlink): New declaration.
66783
66784         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
66785         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
66786         lib/xreadlink-with-size.c.
66787         (configure.ac): Remove gl_XREADLINK invocation.
66788         (Makefile.am): Augment lib_SOURCES.
66789         * m4/xreadlink.m4: Remove file.
66790         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
66791         (xreadlink_with_size): Renamed from xreadink.
66792         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
66793         * modules/canonicalize (Depends-on): Replace xreadlink with
66794         xreadlink-with-size.
66795         * lib/canonicalize.c (canonicalize_filename_mode): Update.
66796
66797 2007-02-25  Jim Meyering  <jim@meyering.net>
66798
66799         * build-aux/announce-gen: When complaining about excess arguments,
66800         list them.
66801
66802 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66803
66804         * README: Document signed integer overflow situation more
66805         accurately.
66806
66807 2007-02-25  Bruno Haible  <bruno@clisp.org>
66808
66809         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
66810         'a' or 'A' conversion.
66811
66812 2007-02-25  Bruno Haible  <bruno@clisp.org>
66813
66814         * modules/filename: Renamed from modules/pathname.
66815         (Files): Replace lib/pathname.h with lib/filename.h. Replace
66816         lib/concatpath.c with lib/concat-filename.c.
66817         (Makefile.am): Update.
66818         (Include): Replace pathname.h with filename.h.
66819         * lib/filename.h: Renamed from lib/pathname.h.
66820         (concatenated_filename): Renamed from concatenated_pathname.
66821         * lib/concat-filename.c: Renamed from lib/concatpath.c.
66822         (concatenated_filename): Renamed from concatenated_pathname.
66823         * lib/findprog.c: Include filename.h instead of pathname.h.
66824         (find_in_path): Update.
66825         * lib/javacomp.c: Include filename.h instead of pathname.h.
66826         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
66827         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
66828         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
66829         is_oldgcj_14_13_usable, is_javac_usable): Update.
66830         * lib/javaexec.c: Include filename.h instead of pathname.h.
66831         (execute_java_class): Update.
66832         * modules/findprog: Update.
66833         * modules/javacomp: Update.
66834         * modules/javaexec: Update.
66835         * MODULES.html.sh (File system functions): Add 'filename', remove
66836         'pathname'.
66837
66838 2007-02-25  Bruno Haible  <bruno@clisp.org>
66839
66840         * modules/printf-frexpl-tests: New file.
66841         * tests/test-printf-frexpl.c: New file.
66842
66843         * modules/printf-frexpl: New file.
66844         * lib/printf-frexpl.h: New file.
66845         * lib/printf-frexpl.c: New file.
66846         * m4/printf-frexpl.m4: New file.
66847
66848 2007-02-25  Bruno Haible  <bruno@clisp.org>
66849
66850         * modules/printf-frexp-tests: New file.
66851         * tests/test-printf-frexp.c: New file.
66852
66853         * modules/printf-frexp: New file.
66854         * lib/printf-frexp.h: New file.
66855         * lib/printf-frexp.c: New file.
66856         * m4/printf-frexp.m4: New file.
66857
66858 2007-02-25  Bruno Haible  <bruno@clisp.org>
66859
66860         Assume automake >= 1.10 for the tests.
66861         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
66862         * modules/arctwo-tests: Likewise.
66863         * modules/argp-tests: Likewise.
66864         * modules/avltree-list-tests: Likewise.
66865         * modules/avltree-oset-tests: Likewise.
66866         * modules/avltreehash-list-tests: Likewise.
66867         * modules/carray-list-tests: Likewise.
66868         * modules/crc-tests: Likewise.
66869         * modules/des-tests: Likewise.
66870         * modules/gc-arcfour-tests: Likewise.
66871         * modules/gc-arctwo-tests: Likewise.
66872         * modules/gc-des-tests: Likewise.
66873         * modules/gc-hmac-md5-tests: Likewise.
66874         * modules/gc-hmac-sha1-tests: Likewise.
66875         * modules/gc-md2-tests: Likewise.
66876         * modules/gc-md4-tests: Likewise.
66877         * modules/gc-md5-tests: Likewise.
66878         * modules/gc-pbkdf2-sha1-tests: Likewise.
66879         * modules/gc-rijndael-tests: Likewise.
66880         * modules/gc-sha1-tests: Likewise.
66881         * modules/gc-tests: Likewise.
66882         * modules/getaddrinfo-tests: Likewise.
66883         * modules/hmac-md5-tests: Likewise.
66884         * modules/hmac-sha1-tests: Likewise.
66885         * modules/linked-list-tests: Likewise.
66886         * modules/linkedhash-list-tests: Likewise.
66887         * modules/lock-tests: Likewise.
66888         * modules/md2-tests: Likewise.
66889         * modules/md4-tests: Likewise.
66890         * modules/md5-tests: Likewise.
66891         * modules/rbtree-list-tests: Likewise.
66892         * modules/rbtree-oset-tests: Likewise.
66893         * modules/rbtreehash-list-tests: Likewise.
66894         * modules/read-file-tests: Likewise.
66895         * modules/rijndael-tests: Likewise.
66896         * modules/stdint-tests: Likewise.
66897         * modules/tls-tests: Likewise.
66898
66899 2007-02-24  Bruno Haible  <bruno@clisp.org>
66900
66901         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
66902         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
66903         function; instead check whether isnan with a double argument links.
66904         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
66905         function; instead check whether isnan with a 'long double' argument
66906         links.
66907         Reported by Eric Blake <ebb9@byu.net>.
66908
66909 2007-02-24  Bruno Haible  <bruno@clisp.org>
66910
66911         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
66912         defined.
66913         * lib/isnanl.c: Remove all code. Just include isnan.c.
66914         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
66915
66916 2007-02-25  Jim Meyering  <jim@meyering.net>
66917
66918         Avoid conflicting types for 'unsetenv' on FreeBSD.
66919         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
66920         conflicting with FreeBSD's (5.0 and 6.1) function declaration
66921         in stdlib.h.
66922
66923 2007-02-24  Bruno Haible  <bruno@clisp.org>
66924
66925         * modules/isnanl-nolibm-tests: New file.
66926         * tests/test-isnanl.c: New file.
66927
66928         * modules/isnanl-nolibm: New file.
66929         * lib/isnanl.h: New file.
66930         * lib/isnanl.c: New file.
66931         * m4/isnanl.m4: New file.
66932
66933 2007-02-24  Bruno Haible  <bruno@clisp.org>
66934
66935         * modules/isnan-nolibm-tests: New file.
66936         * tests/test-isnan.c: New file.
66937
66938         * modules/isnan-nolibm: New file.
66939         * lib/isnan.h: New file.
66940         * lib/isnan.c: New file.
66941         * m4/isnan.m4: New file.
66942
66943 2007-02-24  Bruno Haible  <bruno@clisp.org>
66944
66945         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
66946         assume that an exponent fits in 20 bits.
66947
66948 2007-02-24  Jim Meyering  <jim@meyering.net>
66949
66950         * m4/regex.m4: Update the description of the configure-time option,
66951         --without-included-regex, to state accurately what the defaults are,
66952         and perhaps to give people an idea why using this option is risky.
66953
66954 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
66955
66956         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
66957         loops on small arguments.  This attempts to avoid the problem
66958         Bruno Haible reported for AIX 4.3.2 in
66959         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
66960
66961 2007-02-23  Bruno Haible  <bruno@clisp.org>
66962
66963         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
66964         Needed for help2man.
66965
66966 2007-02-23  Karl Berry  <karl@gnu.org>
66967
66968         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
66969         exists, foo.h should be cvs-ignored, not committed.
66970
66971 2007-02-23  Eric Blake  <ebb9@byu.net>
66972
66973         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
66974         * lib/stat-time.h (includes): Likewise.
66975         * lib/utimecmp.c (includes): Likewise.
66976         * lib/utimens.h (includes): Likewise.
66977         * lib/getdate.y (includes): Also include "timespec.h" for use
66978         internal to the module.
66979         * modules/utimens (Depends-on): Revert yesterday's patch.
66980         * modules/nanosleep (Depends-on): Add missing dependency.
66981
66982 2007-02-22  Bruno Haible  <bruno@clisp.org>
66983
66984         * lib/glob.c: Don't include getlogin_r.h.
66985
66986 2007-02-22  Jim Meyering  <jim@meyering.net>
66987
66988         * modules/utimens (Depends-on): Add timespec, required for
66989         utimens.h's inclusion of timespec.h.
66990
66991 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
66992
66993         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
66994         long unreadable paths in GNU/Linux.  Problem reported by Andreas
66995         Schwab in
66996         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
66997         I'll try to think of a better way to fix the Solaris problem.
66998
66999         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67000         like glibc; on Solaris 10, it fails with errno == EINVAL.
67001         POSIX says the behavior is unspecified if the first argument is NULL,
67002         so play it safe and never pass NULL to the system getcwd.
67003
67004 2007-02-21  Jim Meyering  <jim@meyering.net>
67005
67006         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67007         of gettimeofday.  It would conflict with the one now always
67008         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67009         an IRIX 6.5 build failure.
67010
67011 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67012
67013         Minor fixups to port to Solaris 10 with Sun C 5.8.
67014         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
67015         * modules/getcwd (Depends-on): Add dirfd.
67016         * lib/putenv.c (putenv): #undef it.
67017         (rpl_putenv): New decl.
67018         (malloc, free): Include <stdlib.h> rather than prototyping separately.
67019
67020 2007-02-20  Bruno Haible  <bruno@clisp.org>
67021
67022         * modules/stdio-tests: New file.
67023         * tests/test-stdio.c: New file.
67024
67025         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
67026         (Depends-on): Add stdio.
67027         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67028         (Include): Use <stdio.h> instead of vsnprintf.h.
67029         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67030         HAVE_DECL_VSNPRINTF.
67031         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
67032
67033         * modules/snprintf (Files): Remove lib/snprintf.h.
67034         (Depends-on): Add stdio.
67035         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67036         (Include): Use <stdio.h> instead of snprintf.h.
67037         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67038         HAVE_DECL_SNPRINTF.
67039         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
67040         * lib/getaddrinfo.c: Likewise.
67041
67042         * modules/stdio: New file.
67043         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
67044         * lib/snprintf.h: Remove file.
67045         * lib/vsnprintf.h: Remove file.
67046         * lib/.cppi-disable: Remove snprintf.h.
67047         * m4/stdio_h.m4: New file.
67048         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
67049
67050 2007-02-20  Jim Meyering  <jim@meyering.net>
67051
67052         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
67053         used by e.g., mingw.  From Bruno Haible.
67054
67055 2007-02-19  Bruno Haible  <bruno@clisp.org>
67056
67057         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
67058         warnings.
67059         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67060
67061 2007-02-19  Bruno Haible  <bruno@clisp.org>
67062
67063         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
67064         from mingw users.
67065
67066 2007-02-19  Bruno Haible  <bruno@clisp.org>
67067
67068         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
67069         warnings.
67070         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
67071
67072 2007-02-19  Jim Meyering  <jim@meyering.net>
67073
67074         Don't use FD after a successful "fdopendir (fd)".
67075         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
67076         Reset it by calling dirfd on the just-obtained DIR*.
67077
67078         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
67079         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
67080
67081 2007-02-18  Bruno Haible  <bruno@clisp.org>
67082
67083         * lib/readlink.c: Include <unistd.h>.
67084         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
67085         HAVE_READLINK.
67086         * modules/readlink (Depends-on): Add unistd.
67087         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67088         (Include): Add <unistd.h>.
67089
67090         * lib/getlogin_r.h: Remove file.
67091         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
67092         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
67093         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
67094         HAVE_DECL_GETLOGIN_R.
67095         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
67096         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67097         (Include): Use <unistd.h> instead of getlogin_r.h.
67098
67099         * lib/getcwd.h: Remove file.
67100         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
67101         * lib/xgetcwd.c: Likewise.
67102         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
67103         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
67104         * modules/getcwd (Files): Remove lib/getcwd.h.
67105         (Depends-on): Add unistd.
67106         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67107         (Include): Use <unistd.h> instad of getcwd.h.
67108
67109         * lib/ftruncate.c: Include <unistd.h> first.
67110         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
67111         Set HAVE_FTRUNCATE.
67112         * modules/ftruncate (Depends-on): Add unistd.
67113         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67114
67115         * lib/fchdir.c: Include <unistd.h> first.
67116         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
67117         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
67118         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
67119         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67120         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
67121
67122         * lib/dup2.c: Include <unistd.h> first.
67123         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
67124         HAVE_DUP2.
67125         * modules/dup2 (Depends-on): Add unistd.
67126         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67127
67128         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
67129         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
67130         REPLACE_CHOWN. Don't define chown as a macro here.
67131         * modules/chown (Depends-on): Add unistd.
67132         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67133
67134         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
67135         Add definition for GL_LINK_WARNING.
67136         (chown, dup2): New declarations.
67137         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
67138         link warning.
67139         (ftruncate): New declaration.
67140         (getcwd): New declaration, taken from old getcwd.h.
67141         (getlogin_r): New declaration, taken from old getlogin_r.h.
67142         (readlink): New declaration.
67143         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
67144         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
67145         (gl_PREREQ_UNISTD): Remove macro.
67146         (gl_UNISTD_MODULE_INDICATOR): New macro.
67147         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
67148         many new variables. Don't set UNISTD_H.
67149         * modules/unistd (Description): Change.
67150         (Depends-on): Add link-warning.
67151         (configure.ac): Update.
67152         (Makefile.am): Create unistd.h always. Substitute many new variables
67153         into it.
67154
67155 2007-02-18  Bruno Haible  <bruno@clisp.org>
67156
67157         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
67158         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
67159         HAVE_GETSUBOPT.
67160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
67161         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
67162         * lib/getsubopt.h: Remove file.
67163         * modules/getsubopt (Files): Remove lib/getsubopt.h.
67164         (Depends-on): Add stdlib.
67165         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67166         (Includes): Use <stdlib.h> instead of getsubopt.h.
67167         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
67168         Set HAVE_GETSUBOPT.
67169         * lib/getsubopt.c: Don't include getsubopt.h.
67170
67171 2007-02-18  Bruno Haible  <bruno@clisp.org>
67172
67173         * modules/fchdir (Depends-on): Add dup2.
67174
67175 2007-02-18  Bruno Haible  <bruno@clisp.org>
67176
67177         * lib/stdlib_.h: Handle glibc's special invocation convention
67178         specially.
67179
67180 2007-02-18  Bruno Haible  <bruno@clisp.org>
67181
67182         * modules/stdlib-tests: New file.
67183         * tests/test-stdlib.c: New file.
67184
67185         * modules/mkstemp (Files): Remove lib/mkstemp.h.
67186         (Depends-on): Add stdlib.
67187         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67188         (Includes): Use <stdlib.h> instead of mkstemp.h.
67189         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67190         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
67191         * lib/mkstemp.c: Don't include mkstemp.h.
67192         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
67193         * lib/stdlib--.h: Don't include mkstemp.h.
67194
67195         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
67196         (Depends-on): Add stdlib.
67197         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67198         (Includes): Use <stdlib.h> instead of mkdtemp.h.
67199         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67200         HAVE_MKDTEMP.
67201         * lib/mkdtemp.c: Don't include mkdtemp.h.
67202         * lib/clean-temp.c: Don't include mkdtemp.h.
67203
67204         * modules/exit (Files): Remove lib/exit.h.
67205         (Depends-on): Add stdlib.
67206         (Makefile.am): Remove lib_SOURCES.
67207         (Include): Use <stdlib.h> instead of exit.h.
67208         * lib/argmatch.c: Don't include exit.h.
67209         * lib/execute.c: Likewise.
67210         * lib/pagealign_alloc.c: Likewise.
67211         * lib/pipe.c: Likewise.
67212         * lib/wait-process.c: Likewise.
67213         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
67214         * lib/exitfail.c: Likewise.
67215         * lib/savewd.c: Likewise.
67216         * lib/xsetenv.c: Likewise.
67217
67218         * modules/stdlib: New file.
67219         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
67220         and extra comments about mkstemp().
67221         * lib/exit.h: Remove file.
67222         * lib/mkdtemp.h: Remove file.
67223         * lib/mkstemp.h: Remove file.
67224         * m4/stdlib_h.m4: New file.
67225         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
67226
67227 2007-02-18  Bruno Haible  <bruno@clisp.org>
67228
67229         * modules/math-tests: New file.
67230         * tests/test-math.c: New file.
67231
67232         * modules/math: New file.
67233         * modules/mathl (Files): Remove lib/mathl.h.
67234         (Depends-on): Add math.
67235         (Makefile.am): Don't mention mathl.h.
67236         (Include): Use <math.h> instead of mathl.h.
67237         * lib/math_.h: New file.
67238         * lib/mathl.h: Remove file.
67239         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
67240         mathl.h.
67241         * lib/asinl.c: Likewise.
67242         * lib/atanl.c: Likewise.
67243         * lib/ceill.c: Likewise.
67244         * lib/cosl.c: Likewise.
67245         * lib/expl.c: Likewise.
67246         * lib/floorl.c: Likewise.
67247         * lib/frexpl.c: Likewise.
67248         * lib/ldexpl.c: Likewise.
67249         * lib/logl.c: Likewise.
67250         * lib/sincosl.c: Likewise.
67251         * lib/sinl.c: Likewise.
67252         * lib/sqrtl.c: Likewise.
67253         * lib/tanl.c: Likewise.
67254         * lib/trigl.c: Likewise.
67255         * m4/math_h.m4: New file.
67256         * MODULES.html.sh (Mathematics): Add math.
67257
67258 2007-02-17  Bruno Haible  <bruno@clisp.org>
67259
67260         * modules/wctype-tests: New file.
67261         * tests/test-wctype.c: New file.
67262
67263         * modules/wchar-tests: New file.
67264         * tests/test-wchar.c: New file.
67265
67266         * modules/unistd-tests: New file.
67267         * tests/test-unistd.c: New file.
67268
67269         * modules/time-tests: New file.
67270         * tests/test-time.c: New file.
67271
67272         * modules/sysexits-tests: New file.
67273         * tests/test-sysexits.c: New file.
67274
67275         * modules/sys_time-tests: New file.
67276         * tests/test-sys_time.c: New file.
67277
67278         * modules/sys_stat-tests: New file.
67279         * tests/test-sys_stat.c: New file.
67280
67281         * modules/sys_socket-tests: New file.
67282         * tests/test-sys_socket.c: New file.
67283
67284         * modules/sys_select-tests: New file.
67285         * tests/test-sys_select.c: New file.
67286
67287         * modules/string-tests: New file.
67288         * tests/test-string.c: New file.
67289
67290         * modules/stdbool-tests: New file.
67291         * tests/test-stdbool.c: New file.
67292
67293         * modules/netinet_in-tests: New file.
67294         * tests/test-netinet_in.c: New file.
67295
67296         * modules/inttypes-tests: New file.
67297         * tests/test-inttypes.c: New file.
67298
67299         * modules/fcntl-tests: New file.
67300         * tests/test-fcntl.c: New file.
67301
67302         * modules/byteswap-tests: New file.
67303         * tests/test-byteswap.c: New file.
67304
67305         * modules/arpa_inet-tests: New file.
67306         * tests/test-arpa_inet.c: New file.
67307
67308 2007-02-17  Bruno Haible  <bruno@clisp.org>
67309
67310         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
67311         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
67312         if the corresponding module is not enabled. Emit link warnings if
67313         the function is used nevertheless.
67314         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
67315         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
67316         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
67317         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
67318         * modules/inttypes (Depends-on): Add link-warning.
67319         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67320         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
67321         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
67322         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
67323         * modules/imaxdiv (configure.ac): Likewise.
67324         * modules/strtoimax (configure.ac): Likewise.
67325         * modules/strtoumax (configure.ac): Likewise.
67326
67327 2007-02-17  Bruno Haible  <bruno@clisp.org>
67328
67329         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
67330         gl_STRING_MODULE_INDICATOR_DEFAULTS.
67331         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
67332         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
67333
67334 2007-02-17  Bruno Haible  <bruno@clisp.org>
67335
67336         * modules/link-warning: New file.
67337         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
67338         * lib/string_.h (GL_LINK_WARNING): Remove definition.
67339         * modules/string (Depends-on): Add link-warning.
67340         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67341         string.h.
67342         * MODULES.html.sh (Support for building libraries and executables): Add
67343         link-warning.
67344
67345 2007-02-17  Bruno Haible  <bruno@clisp.org>
67346
67347         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
67348         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
67349         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
67350         long lines.
67351
67352 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
67353             Bruno Haible  <bruno@clisp.org>
67354
67355         * modules/tmpfile: New file.
67356         * lib/tmpfile.c: New file.
67357         * m4/tmpfile.m4: New file.
67358         * MODULES.html.sh (func_all_modules): New section "Input/output".
67359
67360 2007-02-15  Bruno Haible  <bruno@clisp.org>
67361
67362         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
67363         (supports_delete_on_close): New function.
67364         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
67365
67366 2007-02-14  Bruno Haible  <bruno@clisp.org>
67367
67368         * modules/mbspcasecmp-tests: New file.
67369         * tests/test-mbspcasecmp.sh: New file.
67370         * tests/test-mbspcasecmp.c: New file.
67371
67372         New module mbspcasecmp.
67373         * modules/mbspcasecmp: New file.
67374         * lib/mbspcasecmp.c: New file.
67375         * lib/string_.h (strncasecmp): Change warning message.
67376         (mbspcasecmp): New declaration.
67377         * m4/mbspcasecmp.m4: New file.
67378         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67379         GNULIB_MBSPCASECMP.
67380         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
67381         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
67382
67383 2007-02-14  Bruno Haible  <bruno@clisp.org>
67384
67385         * modules/mbsncasecmp-tests: New file.
67386         * tests/test-mbsncasecmp.sh: New file.
67387         * tests/test-mbsncasecmp.c: New file.
67388
67389         New module mbsncasecmp.
67390         * modules/mbsncasecmp: New file.
67391         * lib/mbsncasecmp.c: New file.
67392         * lib/string_.h (mbsncasecmp): New declaration.
67393         * m4/mbsncasecmp.m4: New file.
67394         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67395         GNULIB_MBSNCASECMP.
67396         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
67397         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
67398
67399 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67400
67401         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
67402         Verify that it doesn't overlap with our flags.
67403         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
67404         do not have the desired effect in multibyte locales; instead, use
67405         mbscasecmp.
67406         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
67407         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
67408         we don't require GNU fnmatch ourselves (if our users require it, they
67409         should do so explicitly).
67410
67411         Fix regex code so it doesn't rely on strcasecmp.
67412         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
67413         Otherwise, include gnulib's langinfo.h.
67414         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
67415         undesirable behavior in non-C locales.  Instead, rely on localecharset.
67416         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
67417         * modules/regex (FILES): Remove m4/codeset.m4.
67418         (Depends-on): Add localcharset.  Remove strcase.
67419
67420 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67421
67422         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
67423         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
67424
67425 2007-02-13  Bruno Haible  <bruno@clisp.org>
67426
67427         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
67428         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67429
67430 2007-02-12  Bruno Haible  <bruno@clisp.org>
67431
67432         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
67433         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
67434         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
67435         time warning rather than a link error.
67436
67437 2007-02-12  Bruno Haible  <bruno@clisp.org>
67438
67439         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
67440         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
67441         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67442
67443 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
67444
67445         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
67446         args, not 2.
67447
67448 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
67449
67450         New module 'time', so that apps can include <time.h> as per
67451         POSIX and GNU instead of separate include files like time_r.h
67452         and timegm.h.  This implementation tries out a simpler approach
67453         for replacing decls in standard include files (as compared to
67454         the string module), somewhat as an experiment.
67455
67456         * config/srclist.txt: Comment out mktime.c for now.
67457         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
67458         since it doesn't apply any more.  Use generic wording instead.
67459         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
67460         'time'.
67461         * lib/time_.h, m4/time_h.m4, modules/time: New files.
67462         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
67463         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
67464         Don't include <sys/types.h>; no longer needed since we assume C89.
67465         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
67466         * lib/strftime.c: Likewise.
67467         * lib/time_r.c: Likewise.
67468         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
67469         * lib/nanosleep.c: Include <time.h> first, to check interface.
67470         * lib/strptime.c: Likewise.
67471         * lib/time_r.c: Likewise.
67472         * lib/timegm.c: Likewise.
67473         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
67474         needed.
67475         * lib/timegm.c: Don't include timegm.h; no longer needed.
67476         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
67477         time.h now handles any problems in that area.
67478         (struct timespec, nanosleep): Remove; time.h now arranges for these.
67479         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
67480         that time.h defines struct timespec.
67481         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
67482         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
67483         handles that.
67484         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
67485         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
67486         needed.  Set REPLACE_LOCALTIME.
67487         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
67488         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
67489         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
67490         nanosleep; time_h.m4 now does that.  Don't require
67491         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
67492         module handles this now.
67493         * modules/getdate (Depends-on): Remove timespec.  Add time.
67494         * modules/nanosleep (Depends-on): Likewise.
67495         * modules/stat-time (Depends-on): Likewise.
67496         * modules/nanosleep (Include): Include time.h, not timespec.h.
67497         * modules/strptime (Files): Remove lib/strptime.h.
67498         (Depends-on): Add extensions, time.
67499         (Include): Include time.h, not strptime.h.
67500         * modules/time_r (Files): Remove lib/time_r.h.
67501         (Depends-on): Add time.
67502         (Include): Include time.h, not time_r.h.
67503         * modules/timegm: Likewise.
67504         * modules/timespec (Description): Now does timespec-related decls
67505         of our own, instead of struct timespec itself.
67506         (Depends-on): Add time; remove extensions.
67507         (Maintainer): Add self.
67508         * modules/utimecmp (Depends-on): Add time; remove timespec.
67509         * modules/utimens (Depends-on): Likewise.
67510         * modules/xnanosleep (Depends-on): Likewise.
67511
67512 2007-02-11  Bruno Haible  <bruno@clisp.org>
67513
67514         * lib/c-strstr.c: Include allocsa.h.
67515         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67516         * lib/c-strcasestr.c: Include allocsa.h.
67517         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67518         * lib/strcasestr.c: Include allocsa.h.
67519         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67520         * lib/mbsstr.c: Include allocsa.h.
67521         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
67522         allocsa/freesa instead of malloc/free.
67523         * lib/mbscasestr.c: Include allocsa.h.
67524         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
67525         allocsa/freesa instead of malloc/free.
67526         * modules/c-strstr (Depends-on): Add allocsa.
67527         * modules/c-strcasestr (Depends-on): Likewise.
67528         * modules/strcasestr (Depends-on): Likewise.
67529         * modules/mbsstr (Depends-on): Likewise.
67530         * modules/mbscasestr (Depends-on): Likewise.
67531
67532 2007-02-11  Bruno Haible  <bruno@clisp.org>
67533
67534         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
67535
67536         * modules/mbsspn-tests: New file.
67537         * tests/test-mbsspn.sh: New file.
67538         * tests/test-mbsspn.c: New file.
67539
67540 2007-02-11  Bruno Haible  <bruno@clisp.org>
67541
67542         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
67543
67544         * modules/mbspbrk-tests: New file.
67545         * tests/test-mbspbrk.sh: New file.
67546         * tests/test-mbspbrk.c: New file.
67547
67548 2007-02-11  Bruno Haible  <bruno@clisp.org>
67549
67550         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
67551         unneeded cast.
67552
67553         * modules/mbscspn-tests: New file.
67554         * tests/test-mbscspn.sh: New file.
67555         * tests/test-mbscspn.c: New file.
67556
67557 2007-02-11  Bruno Haible  <bruno@clisp.org>
67558
67559         * modules/mbscasecmp-tests: New file.
67560         * tests/test-mbscasecmp.sh: New file.
67561         * tests/test-mbscasecmp.c: New file.
67562
67563 2007-02-11  Bruno Haible  <bruno@clisp.org>
67564
67565         Ensure O(n) worst-case complexity of mbscasestr.
67566         * lib/mbscasestr.c: Include stdbool.h.
67567         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
67568         functions.
67569         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
67570         the bookkeeping indicates that it's worth it.
67571         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
67572
67573         * modules/mbscasestr-tests: New file.
67574         * tests/test-mbscasestr1.c: New file.
67575         * tests/test-mbscasestr2.sh: New file.
67576         * tests/test-mbscasestr2.c: New file.
67577         * tests/test-mbscasestr3.sh: New file.
67578         * tests/test-mbscasestr3.c: New file.
67579         * tests/test-mbscasestr4.sh: New file.
67580         * tests/test-mbscasestr4.c: New file.
67581         * m4/locale-tr.m4: New file.
67582
67583 2007-02-11  Bruno Haible  <bruno@clisp.org>
67584
67585         Ensure O(n) worst-case complexity of mbsstr.
67586         * lib/mbsstr.c: Include stdbool.h.
67587         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
67588         functions.
67589         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
67590         bookkeeping indicates that it's worth it.
67591         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
67592
67593         * modules/mbsstr-tests: New file.
67594         * tests/test-mbsstr1.c: New file.
67595         * tests/test-mbsstr2.sh: New file.
67596         * tests/test-mbsstr2.c: New file.
67597         * tests/test-mbsstr3.sh: New file.
67598         * tests/test-mbsstr3.c: New file.
67599         * m4/locale-fr.m4: New file.
67600
67601 2007-02-11  Bruno Haible  <bruno@clisp.org>
67602
67603         * lib/mbsrchr.c (mbsrchr): Fix bug.
67604
67605         * modules/mbsrchr-tests: New file.
67606         * tests/test-mbsrchr.sh: New file.
67607         * tests/test-mbsrchr.c: New file.
67608
67609 2007-02-11  Bruno Haible  <bruno@clisp.org>
67610
67611         * lib/mbschr.c (mbschr): Fix bug.
67612
67613         * modules/mbschr-tests: New file.
67614         * tests/test-mbschr.sh: New file.
67615         * tests/test-mbschr.c: New file.
67616         * m4/locale-zh.m4: New file.
67617
67618 2007-02-11  Bruno Haible  <bruno@clisp.org>
67619
67620         Support for copying multibyte string iterators.
67621         * lib/mbiter.h: Include <string.h>.
67622         (mbiter_multi_copy): New function.
67623         (mbi_copy): New macro.
67624         * lib/mbuiter.h: Include <string.h>.
67625         (mbuiter_multi_copy): New function.
67626         (mbui_copy): New macro.
67627
67628 2007-02-11  Bruno Haible  <bruno@clisp.org>
67629
67630         New module mbslen.
67631         * modules/mbslen: New file.
67632         * lib/mbslen.c: New file.
67633         * lib/string_.h (mbslen): New declaration.
67634         * m4/mbslen.m4: New file.
67635         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67636         GNULIB_MBSLEN.
67637         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
67638         * MODULES.html.sh (Internationalization functions): Add mbslen.
67639
67640 2007-02-11  Bruno Haible  <bruno@clisp.org>
67641
67642         Ensure O(n) worst-case complexity of strcasestr substitute.
67643         * lib/strcasestr.c: Include stdbool.h.
67644         (knuth_morris_pratt): New function.
67645         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
67646         bookkeeping indicates that it's worth it.
67647         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
67648
67649         * modules/strcasestr-tests: New file.
67650         * tests/test-strcasestr.c: New file.
67651
67652 2007-02-11  Bruno Haible  <bruno@clisp.org>
67653
67654         Ensure O(n) worst-case complexity of c_strcasestr.
67655         * lib/c-strcasestr.c: Include stdbool.h, string.h.
67656         (knuth_morris_pratt): New function.
67657         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
67658         the bookkeeping indicates that it's worth it.
67659         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
67660
67661         * modules/c-strcasestr-tests: New file.
67662         * tests/test-c-strcasestr.c: New file.
67663
67664 2007-02-11  Bruno Haible  <bruno@clisp.org>
67665
67666         Ensure O(n) worst-case complexity of c_strstr.
67667         * lib/c-strstr.c: Include stdbool.h, string.h.
67668         (knuth_morris_pratt): New function.
67669         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
67670         bookkeeping indicates that it's worth it.
67671         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
67672
67673         * lib/c-strstr.c: Complete rewrite for maintainability.
67674
67675         * modules/c-strstr-tests: New file.
67676         * tests/test-c-strstr.c: New file.
67677
67678 2007-02-11  Bruno Haible  <bruno@clisp.org>
67679
67680         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
67681         5.2.1 and earlier, whereby \055 was treated just like the range
67682         delimiter '-'.
67683         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67684
67685 2007-02-08  Bruno Haible  <bruno@clisp.org>
67686
67687         * modules/regex (Depends-on): Add stdbool.
67688         Reported by Dalibor Topic <robilad@kaffe.org>.
67689
67690 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
67691
67692         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
67693         Prefer returning from main to exiting from it.
67694         Remove unnecessary parens after sizeof.
67695
67696 2007-02-05  Bruno Haible  <bruno@clisp.org>
67697
67698         New module mbssep.
67699         * modules/mbssep: New file.
67700         * lib/mbssep.c: New file.
67701         * lib/string_.h (strsep): Add a conditional link warning.
67702         (mbssep): New declaration.
67703         * m4/mbssep.m4: New file.
67704         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67705         GNULIB_MBSSEP.
67706         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
67707         * MODULES.html.sh (Internationalization functions): Add mbssep.
67708
67709 2007-02-05  Bruno Haible  <bruno@clisp.org>
67710
67711         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
67712         Optimize search in case of 1 delimiter.
67713
67714 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
67715
67716         * lib/acl.h: Include sys/types.h before sys/acl.h.
67717
67718 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
67719
67720         Merge upstream fix for glibc bugzilla #3957:
67721
67722         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
67723
67724         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
67725         bit for RE_HAT_LISTS_NOT_NEWLINE.
67726         (build_charclass_op): Remove bogus comment.
67727
67728 2007-02-05  Simon Josefsson  <simon@josefsson.org>
67729
67730         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
67731
67732 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
67733
67734         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
67735         * lib/memmem.c [!defined _LIBC]: Include config.h.
67736
67737 2007-02-04  Bruno Haible  <bruno@clisp.org>
67738
67739         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
67740         warning message.
67741
67742 2007-02-04  Bruno Haible  <bruno@clisp.org>
67743
67744         New module mbstok_r.
67745         * modules/mbstok_r: New file.
67746         * lib/mbstok_r.c: New file.
67747         * lib/string_.h (strtok_r): Change argument names to match the
67748         comments. Add a conditional link warning.
67749         (mbstok_r): New declaration.
67750         * m4/mbstok_r.m4: New file.
67751         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67752         GNULIB_MBSTOK_R.
67753         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
67754         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
67755
67756 2007-02-04  Bruno Haible  <bruno@clisp.org>
67757
67758         New module mbsspn.
67759         * modules/mbsspn: New file.
67760         * lib/mbsspn.c: New file.
67761         * lib/string_.h (strspn): Add a conditional link warning.
67762         (mbsspn): New declaration.
67763         * m4/mbsspn.m4: New file.
67764         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67765         GNULIB_MBSSPN.
67766         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
67767         * MODULES.html.sh (Internationalization functions): Add mbsspn.
67768
67769 2007-02-04  Bruno Haible  <bruno@clisp.org>
67770
67771         New module mbspbrk.
67772         * modules/mbspbrk: New file.
67773         * lib/mbspbrk.c: New file.
67774         * lib/string_.h (strpbrk): Add a conditional link warning.
67775         (mbspbrk): New declaration.
67776         * m4/mbspbrk.m4: New file.
67777         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67778         GNULIB_MBSPBRK.
67779         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
67780         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
67781
67782 2007-02-04  Bruno Haible  <bruno@clisp.org>
67783
67784         New module mbscspn.
67785         * modules/mbscspn: New file.
67786         * lib/mbscspn.c: New file.
67787         * lib/string_.h (strcspn): Add a conditional link warning.
67788         (mbscspn): New declaration.
67789         * m4/mbscspn.m4: New file.
67790         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67791         GNULIB_MBSCSPN.
67792         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
67793         * MODULES.html.sh (Internationalization functions): Add mbscspn.
67794
67795 2007-02-04  Bruno Haible  <bruno@clisp.org>
67796
67797         New module mbscasestr, reduced goal of strcasestr.
67798         * modules/mbscasestr: New file.
67799         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
67800         (mbscasestr): Renamed from strcasestr.
67801         * lib/strcasestr.c: Don't include mbuiter.h.
67802         (strcasestr): Remove support for multibyte locales.
67803         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
67804         Change the conditional link warning.
67805         (mbscasestr): New declaration.
67806         * m4/mbscasestr.m4: New file.
67807         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
67808         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
67809         REPLACE_STRCASESTR.
67810         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
67811         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
67812         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
67813         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
67814         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
67815         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
67816         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
67817         (Depends-on): Remove mbuiter.
67818         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
67819
67820 2007-02-04  Bruno Haible  <bruno@clisp.org>
67821
67822         Simplify handling of strncasecmp.
67823         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
67824         the conditional link warning.
67825         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
67826         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
67827         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
67828         * modules/strcase (configure.ac): Don't invoke
67829         gl_STRING_MODULE_INDICATOR.
67830         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
67831
67832 2007-02-04  Bruno Haible  <bruno@clisp.org>
67833
67834         New module mbscasecmp, reduced goal of strcasecmp.
67835         * modules/mbscasecmp: New file.
67836         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
67837         (mbscasecmp): Renamed from strcasecmp.
67838         * lib/strcasecmp.c: Don't include mbuiter.h.
67839         (strcasecmp): Remove support for multibyte locales.
67840         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
67841         Change the conditional link warning.
67842         (mbscasecmp): New declaration.
67843         * m4/mbscasecmp.m4: New file.
67844         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
67845         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
67846         REPLACE_STRCASECMP.
67847         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
67848         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67849         GNULIB_MBSCASECMP.
67850         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
67851         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
67852         * modules/strcase (Files): Remove m4/mbrtowc.m4.
67853         (Depends-on): Remove mbuiter.
67854         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
67855
67856 2007-02-04  Bruno Haible  <bruno@clisp.org>
67857
67858         New module mbsstr. Remove module strstr.
67859         * modules/mbsstr: New file.
67860         * modules/strstr: Remove file.
67861         * lib/mbsstr.c: Renamed from lib/strstr.c.
67862         (mbsstr): Renamed from strstr.
67863         * lib/string_.h (strstr): Remove declaration. Change the conditional
67864         link warning.
67865         (mbsstr): New declaration.
67866         * m4/mbsstr.m4: New file.
67867         * m4/strstr.m4: Remove file.
67868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
67869         REPLACE_STRSTR.
67870         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
67871         Don't initialize GNULIB_STRSTR.
67872         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
67873         substitute GNULIB_STRSTR and REPLACE_STRSTR.
67874         * MODULES.html.sh (Internationalization functions): Add mbsstr.
67875         (Support for systems lacking ANSI C 89): Remove strstr.
67876
67877 2007-02-04  Bruno Haible  <bruno@clisp.org>
67878
67879         New module mbsrchr.
67880         * modules/mbsrchr: New file.
67881         * lib/mbsrchr.c: New file.
67882         * lib/string_.h (strrchr): Add a conditional link warning.
67883         (mbsrchr): New declaration.
67884         * m4/mbsrchr.m4: New file.
67885         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67886         GNULIB_MBSRCHR.
67887         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
67888         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
67889
67890 2007-02-04  Bruno Haible  <bruno@clisp.org>
67891
67892         New module mbschr.
67893         * modules/mbschr: New file.
67894         * lib/mbschr.c: New file.
67895         * lib/string_.h (strchr): Add a conditional link warning.
67896         (mbschr): New declaration.
67897         * m4/mbschr.m4: New file.
67898         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67899         GNULIB_MBSCHR.
67900         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
67901         * MODULES.html.sh (Internationalization functions): Add mbschr.
67902
67903 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
67904
67905         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
67906
67907         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
67908
67909 2007-02-04  Bruno Haible  <bruno@clisp.org>
67910
67911         New module description section 'configure.ac-early'.
67912         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
67913         (func_get_autoconf_early_snippet): New function.
67914         (func_import, func_create_testdir): Use it. Remove special cases for
67915         modules 'extensions' and 'lock'.
67916         * modules/extensions (configure.ac-early): Require
67917         gl_USE_SYSTEM_EXTENSIONS.
67918         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
67919
67920 2007-02-04  Bruno Haible  <bruno@clisp.org>
67921
67922         Make use of gcj-4.3's -fsource and -ftarget option.
67923         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
67924         and if so try the options -fsource and -ftarget.
67925         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
67926         source_version, ftarget_option, target_version arguments.
67927         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
67928         (is_envjavac_oldgcj_14_14_usable): Renamed from
67929         is_envjavac_gcj_14_14_usable.
67930         (is_envjavac_oldgcj_14_13_usable): Renamed from
67931         is_envjavac_gcj_14_13_usable.
67932         (is_gcj_present): Update.
67933         (is_gcj_43, is_gcj43_usable): New functions.
67934         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
67935         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
67936         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
67937         try the options -fsource and -ftarget.
67938
67939 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67940
67941         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
67942         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
67943         larger value.
67944
67945 2007-02-03  Jim Meyering  <jim@meyering.net>
67946
67947         Give tools a better chance to allocate space for very large buffers.
67948         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
67949
67950         Make pwd and readlink work also when run with an unreadable parent dir
67951         on systems with openat support.
67952         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
67953         provided getcwd function, even when we have openat support.
67954         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
67955
67956 2007-02-02  Bruno Haible  <bruno@clisp.org>
67957
67958         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
67959         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
67960         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
67961         portability problems if one of these functions is only used on specific
67962         platforms.
67963         Reported by Paul Eggert.
67964
67965 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
67966
67967         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
67968         is causing more trouble than it's curing.
67969         * lib/regex_internal.h (__mempcpy): Remove.
67970         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
67971         (and make the code a tad smaller to boot).
67972         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
67973
67974 2007-02-02  Jim Meyering  <jim@meyering.net>
67975
67976         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
67977         section, not in the Makefile.am: one.
67978
67979 2007-02-02  Eric Blake  <ebb9@byu.net>
67980
67981         * lib/strchrnul.c: Always include config.h first.
67982
67983         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
67984         gnulib strstr is not necessary here.
67985
67986 2007-02-02  Simon Josefsson  <simon@josefsson.org>
67987
67988         * m4/socklen.m4: Fix typo.
67989
67990 2007-02-02  Eric Blake  <ebb9@byu.net>
67991
67992         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
67993         * modules/netinet_in (Makefile.am): Likewise.
67994
67995 2007-02-01  Bruno Haible  <bruno@clisp.org>
67996
67997         * lib/string_.h (GL_LINK_WARNING): New macro.
67998         (strcasecmp, strstr, strcasestr): If provided by the system,
67999         conditionally define as a macro that leads to a warning instead of to
68000         an error.
68001         (strncasecmp): Conditionally define as a macro that leads to a warning.
68002
68003 2007-02-01  Karl Berry  <karl@gnu.org>
68004
68005         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68006
68007 2007-02-01  Bruno Haible  <bruno@clisp.org>
68008
68009         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68010         renamings.
68011
68012 2007-02-01  Eric Blake  <ebb9@byu.net>
68013
68014         * modules/regex (Depends-on): Revert dependence on mempcpy.
68015         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
68016         module's definition of mempcpy.
68017         Reported by Paul Eggert.
68018
68019 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68020
68021         * lib/string_.h: If the gnulib module XYZ is not present, undefine
68022         the symbol XYZ before redefining it.  This fixes a problem with
68023         programs that don't use XYZ, when compiled on systems that define
68024         XYZ to something else.
68025
68026 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
68027
68028         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
68029         occurs when "mkdir -m foo" creates a setgid directory that is (1)
68030         writeable to group or other and (2) is intended to have a special
68031         mode bit that is set or cleared.  In such a case, the directory
68032         should be neither group- nor other-writeable until the special
68033         mode bits are right.
68034
68035 2007-01-31  Eric Blake  <ebb9@byu.net>
68036
68037         * modules/mountlist (Depends-on): Add strstr.
68038
68039         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
68040         bug.
68041         * modules/string (Makefile.am): Remove redundant replacement.
68042         * modules/regex (Depends-on): Add mempcpy.
68043
68044 2007-01-31  Bruno Haible  <bruno@clisp.org>
68045
68046         New module description field 'Link'.
68047         * gnulib-tool (func_usage): Document --extract-link-directive.
68048         (sed_extract_prog): Recognize 'Link' directive.
68049         (func_get_link_directive): New function.
68050         (func_import): Show summary of link directives.
68051         Handle --extract-link-directive option.
68052         * modules/acl (Link): New section.
68053         * modules/clock-time (Link): New section.
68054         * modules/euidaccess (Link): New section.
68055         * modules/gettext (Link): New section.
68056         * modules/iconv (Link): New section.
68057         * modules/lock (Link): New section.
68058         * modules/nanosleep (Link): New section.
68059         * modules/readline (Link): New section.
68060
68061 2007-01-27  Bruno Haible  <bruno@clisp.org>
68062
68063         Enforce the use of gnulib modules for unportable <string.h> functions.
68064         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
68065         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
68066         (gl_HEADER_STRING_H_BODY): Require it.
68067         * lib/string_.h: If the gnulib module XYZ is not present, redefine
68068         the symbol XYZ to one that gives a link error.
68069         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
68070         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
68071         * modules/mempcpy (configure.ac): Likewise.
68072         * modules/memrchr (configure.ac): Likewise.
68073         * modules/stpcpy (configure.ac): Likewise.
68074         * modules/stpncpy (configure.ac): Likewise.
68075         * modules/strcase (configure.ac): Likewise.
68076         * modules/strcasestr (configure.ac): Likewise.
68077         * modules/strchrnul (configure.ac): Likewise.
68078         * modules/strdup (configure.ac): Likewise.
68079         * modules/strndup (configure.ac): Likewise.
68080         * modules/strnlen (configure.ac): Likewise.
68081         * modules/strpbrk (configure.ac): Likewise.
68082         * modules/strsep (configure.ac): Likewise.
68083         * modules/strstr (configure.ac): Likewise.
68084         * modules/strtok_r (configure.ac): Likewise.
68085
68086 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
68087
68088         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
68089
68090 2007-01-30  Jim Meyering  <jim@meyering.net>
68091
68092         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
68093
68094 2007-01-29  Bruno Haible  <bruno@clisp.org>
68095
68096         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
68097         * lib/execute.c: Likewise.
68098         * lib/pipe.c: Likewise.
68099         * lib/printf-args.h: Likewise.
68100         * lib/printf-args.c: Likewise.
68101         * lib/printf-parse.c: Likewise.
68102         * lib/vasnprintf.c: Likewise.
68103
68104 2007-01-29  Eric Blake  <ebb9@byu.net>
68105
68106         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
68107         declaration.
68108
68109 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
68110
68111         * lib/strptime.h (strptime): Use 'restrict' for args where
68112         POSIX requires this.
68113         * lib/strptime.c (strptime): Likewise.
68114         Change license notice from LGPL to GPL, since gnulib-tool will
68115         change this as needed.
68116         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
68117         defined.
68118         Include "strptime.h" first, to check interface.
68119         Do not #undef _LIBC and _NL_CURRENT.
68120         Do not include <stdlib.h>; no longer needed.
68121         Include "time_r.h" and declare ptime_locale_status
68122         only if _LIBC is not defined.
68123         (__P): Remove unused macro.
68124         (match_string): Bring back glibc version, but use it only if _LIBC
68125         is defined.
68126         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
68127         Remove unnecessary assertion and abort() call.
68128         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
68129         * m4/strptime.m4: Fix serial number comment.
68130         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
68131         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
68132         (Depends-on): Add time_r.
68133
68134 2007-01-29  Bruno Haible  <bruno@clisp.org>
68135
68136         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68137         strptime.
68138         * modules/strptime (Depends-on): Add stdbool.
68139         * lib/strptime.h: Include <time.h> always. Add comments.
68140
68141 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68142
68143         * modules/strptime: New file.
68144         * lib/strptime.h: New file.
68145         * lib/strptime.c: New file.
68146         * m4/strptime.m4: New file.
68147
68148 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68149
68150         * MODULES.html.sh: New module mpsort.
68151         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
68152
68153         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
68154         a circularity problem with HP-UX ia64 reported by Bob Proulx in
68155         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
68156         All uses changed.
68157         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
68158         All uses changed.
68159         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
68160         to _Restrict_.
68161         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
68162         the parameter matches the prototype.
68163
68164 2007-01-28  Jim Meyering  <jim@meyering.net>
68165
68166         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
68167         sys/time.h here, reverting that part of the previous patch:
68168         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
68169
68170 2007-01-28  Bruno Haible  <bruno@clisp.org>
68171
68172         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
68173         value of $(SYS_TIME_H).
68174         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
68175         remove it conditionally, too. [added by Jim Meyering]
68176         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
68177         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
68178         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
68179         GETTIMEOFDAY_REPLACEMENT to 1.
68180
68181 2007-01-28  Bruno Haible  <bruno@clisp.org>
68182
68183         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
68184         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
68185         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
68186         Set UNISTD_H instead of UNISTD_H2.
68187         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
68188
68189 2007-01-28  Bruno Haible  <bruno@clisp.org>
68190
68191         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
68192         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
68193
68194 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68195
68196         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
68197         (func_create_testdir): Ensure C locale for `grep' and `tr'
68198         character ranges.
68199         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
68200         ACLOCAL_AMFLAGS parsing state machine.
68201
68202 2007-01-27  Bruno Haible  <bruno@clisp.org>
68203
68204         * modules/unistr/base: Update.
68205
68206 2007-01-27  Bruno Haible  <bruno@clisp.org>
68207
68208         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
68209         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
68210         * modules/unistr/u32-mbtouc-unsafe: Renamed from
68211         modules/unistr/u32-mbtouc.
68212         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
68213         * lib/unistr.h: Update.
68214         * lib/linebreak.c: Update.
68215         * modules/unistr/u32-mbtouc: Renamed from
68216         modules/unistr/u32-mbtouc-safe.
68217         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
68218         * lib/unistr.h: Update.
68219         * lib/unistr/u32-to-u8.c: Update.
68220         * lib/unistr/u32-to-u16.c: Update.
68221
68222 2007-01-27  Bruno Haible  <bruno@clisp.org>
68223
68224         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
68225         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
68226         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
68227         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
68228         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
68229         * modules/unistr/u16-mbtouc-unsafe: Renamed from
68230         modules/unistr/u16-mbtouc.
68231         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
68232         * lib/unistr.h: Update.
68233         * lib/linebreak.c: Update.
68234         * modules/linebreak: Update.
68235         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
68236         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
68237         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
68238         * modules/unistr/u16-mbtouc: Renamed from
68239         modules/unistr/u16-mbtouc-safe.
68240         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
68241         * lib/unistr.h: Update.
68242         * lib/unistr/u16-to-u8.c: Update.
68243         * modules/unistr/u16-to-u8: Update.
68244         * lib/unistr/u16-to-u32.c: Update.
68245         * modules/unistr/u16-to-u32: Update.
68246
68247 2007-01-27  Bruno Haible  <bruno@clisp.org>
68248
68249         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
68250         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
68251         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
68252         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
68253         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
68254         * modules/unistr/u8-mbtouc-unsafe: Renamed from
68255         modules/unistr/u8-mbtouc.
68256         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
68257         * lib/unistr.h: Update.
68258         * lib/striconveh.c: Update.
68259         * modules/striconveh: Update.
68260         * lib/linebreak.c: Update.
68261         * modules/linebreak: Update.
68262         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
68263         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
68264         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
68265         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
68266         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
68267         * lib/unistr.h: Update.
68268         * lib/striconveh.c: Update.
68269         * modules/striconveh: Update.
68270         * lib/unistr/u8-to-u16.c: Update.
68271         * modules/unistr/u8-to-u16: Update.
68272         * lib/unistr/u8-to-u32.c: Update.
68273         * modules/unistr/u8-to-u32: Update.
68274
68275 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68276
68277         Sync from Libtool.
68278         * lib/argz.c: Do not include strings.h nor memory.h, include
68279         string.h unconditionally.  Patch by Simon Josefsson.
68280
68281 2007-01-27  Bruno Haible  <bruno@clisp.org>
68282
68283         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
68284         from gl_HEADER_STRING_H_BODY.
68285         (gl_HEADER_STRING_H_BODY): Require it.
68286         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
68287         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
68288         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
68289         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
68290         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68291         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
68292         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
68293         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
68294         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
68295         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
68296         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
68297         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
68298         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
68299         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
68300         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68301
68302 2007-01-27  Bruno Haible  <bruno@clisp.org>
68303
68304         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
68305         check_PROGRAMS into noinst_PROGRAMS.
68306         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
68307         check_PROGRAMS in this case.
68308         (func_import): Set for_test to false.
68309         (func_create_testdir): Set for_test to true.
68310
68311 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
68312             Bruno Haible  <bruno@clisp.org>
68313
68314         * modules/strcasestr (Files): Remove lib/strcasestr.h.
68315         (Depends-on): Add string.
68316         (Includes): Use <string.h> instead of strcasestr.h.
68317         * modules/string (Makefile.am): Also substitute the value of
68318         REPLACE_STRCASESTR.
68319         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
68320         assume strcasestr is declared in <string.h> not <strings.h>. Also
68321         set REPLACE_STRCASESTR.
68322         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
68323         REPLACE_STRCASESTR.
68324         * lib/strcasestr.h: Remove file.
68325         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
68326         * lib/string_.h (strcasestr): New declaration.
68327
68328 2007-01-27  Bruno Haible  <bruno@clisp.org>
68329
68330         * lib/string_.h: Use 'extern'.
68331
68332 2007-01-27  Jim Meyering  <jim@meyering.net>
68333
68334         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
68335         of set-but-not-used local, "q".
68336
68337         * lib/mempcpy.c: Include <config.h> before <string.h>.
68338         This fixes a compilation error on HP-UX, due to the system's
68339         "restrict"-using mempcpy prototype.
68340
68341 2007-01-26  Bruno Haible  <bruno@clisp.org>
68342
68343         Small optimization.
68344         * lib/javacomp.c: Include c-strstr.h.
68345          (is_envjavac_gcj): Use c_strstr instead of strstr.
68346         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
68347
68348 2007-01-26  Bruno Haible  <bruno@clisp.org>
68349
68350         * MODULES.html.sh (Unicode string functions): Add the new modules.
68351
68352         * modules/uniconv/u32-strconv-to-locale: New file.
68353         * lib/uniconv/u32-strconv-to-locale.c: New file.
68354
68355         * modules/uniconv/u16-strconv-to-locale: New file.
68356         * lib/uniconv/u16-strconv-to-locale.c: New file.
68357
68358         * modules/uniconv/u8-strconv-to-locale: New file.
68359         * lib/uniconv/u8-strconv-to-locale.c: New file.
68360
68361         * modules/uniconv/u32-strconv-from-locale: New file.
68362         * lib/uniconv/u32-strconv-from-locale.c: New file.
68363
68364         * modules/uniconv/u16-strconv-from-locale: New file.
68365         * lib/uniconv/u16-strconv-from-locale.c: New file.
68366
68367         * modules/uniconv/u8-strconv-from-locale: New file.
68368         * lib/uniconv/u8-strconv-from-locale.c: New file.
68369
68370         * modules/uniconv/u32-strconv-to-enc: New file.
68371         * lib/uniconv/u32-strconv-to-enc.c: New file.
68372         * modules/uniconv/u32-strconv-to-enc-tests: New file.
68373         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
68374
68375         * modules/uniconv/u16-strconv-to-enc: New file.
68376         * lib/uniconv/u16-strconv-to-enc.c: New file.
68377         * lib/uniconv/u-strconv-to-enc.h: New file.
68378         * modules/uniconv/u16-strconv-to-enc-tests: New file.
68379         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
68380
68381         * modules/uniconv/u8-strconv-to-enc: New file.
68382         * lib/uniconv/u8-strconv-to-enc.c: New file.
68383         * modules/uniconv/u8-strconv-to-enc-tests: New file.
68384         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
68385
68386         * modules/uniconv/u32-strconv-from-enc: New file.
68387         * lib/uniconv/u32-strconv-from-enc.c: New file.
68388         * modules/uniconv/u32-strconv-from-enc-tests: New file.
68389         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
68390
68391         * modules/uniconv/u16-strconv-from-enc: New file.
68392         * lib/uniconv/u16-strconv-from-enc.c: New file.
68393         * modules/uniconv/u16-strconv-from-enc-tests: New file.
68394         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
68395
68396         * modules/uniconv/u8-strconv-from-enc: New file.
68397         * lib/uniconv/u8-strconv-from-enc.c: New file.
68398         * lib/uniconv/u-strconv-from-enc.h: New file.
68399         * modules/uniconv/u8-strconv-from-enc-tests: New file.
68400         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
68401
68402         * modules/uniconv/u32-conv-from-enc: New file.
68403         * lib/uniconv/u32-conv-from-enc.c: New file.
68404         * modules/uniconv/u32-conv-from-enc-tests: New file.
68405         * tests/uniconv/test-u32-conv-from-enc.c: New file.
68406
68407         * modules/uniconv/u16-conv-from-enc: New file.
68408         * lib/uniconv/u16-conv-from-enc.c: New file.
68409         * lib/uniconv/u-conv-from-enc.h: New file.
68410         * modules/uniconv/u16-conv-from-enc-tests: New file.
68411         * tests/uniconv/test-u16-conv-from-enc.c: New file.
68412
68413         * modules/uniconv/u8-conv-from-enc: New file.
68414         * lib/uniconv/u8-conv-from-enc.c: New file.
68415         * modules/uniconv/u8-conv-from-enc-tests: New file.
68416         * tests/uniconv/test-u8-conv-from-enc.c: New file.
68417
68418         * modules/uniconv/base: New file.
68419         * lib/uniconv.h: New file.
68420
68421 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68422
68423         * doc/gnulib-tool.texi (Initial import): Update to match current
68424         behavior with strdup module.
68425         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
68426         * lib/memmem.h: Remove; all uses removed.  This is now done
68427         by <string.h>.
68428         * lib/mempcpy.h: Likewise.
68429         * lib/memrchr.h: Likewise.
68430         * lib/stpcpy.h: Likewise.
68431         * lib/stpncpy.h: Likewise.
68432         * lib/strcase.h: Likewise.
68433         * lib/strchrnul.h: Likewise.
68434         * lib/strdup.h: Likewise.
68435         * lib/strndup.h: Likewise.
68436         * lib/strnlen.h: Likewise.
68437         * lib/strpbrk.h: Likewise.
68438         * lib/strsep.h: Likewise.
68439         * lib/strstr.h: Likewise.
68440         * lib/strtok_r.h: Likewise.
68441         * lib/string_.h: New file.
68442         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
68443         Rely on <string.h> instead.
68444         * lib/canon-host.c: Likewise.
68445         * lib/chdir-long.c: Likewise.
68446         * lib/concatpath.c: Likewise.
68447         * lib/exclude.c: Likewise.
68448         * lib/fchdir.c: Likewise.
68449         * lib/getaddrinfo.c: Likewise.
68450         * lib/getcwd.c: Likewise.
68451         * lib/getsubopt.c: Likewise.
68452         * lib/glob.c: Likewise.
68453         * lib/hard-locale.c: Likewise.
68454         * lib/iconvme.c: Likewise.
68455         * lib/javacomp.c: Likewise.
68456         * lib/mempcpy.c: Likewise.
68457         * lib/memrchr.c: Likewise.
68458         * lib/regex_internal.h: Likewise.
68459         * lib/stpncpy.c: Likewise.
68460         * lib/strcasecmp.c: Likewise.
68461         * lib/strchrnul.c: Likewise.
68462         * lib/strdup.c: Likewise.
68463         * lib/striconv.c: Likewise.
68464         * lib/striconveh.c: Likewise.
68465         * lib/striconveha.c: Likewise.
68466         * lib/strncasecmp.c: Likewise.
68467         * lib/strndup.c: Likewise.
68468         * lib/strnlen.c: Likewise.
68469         * lib/strsep.c: Likewise.
68470         * lib/strstr.c: Likewise.
68471         * lib/strtok_r.c: Likewise.
68472         * lib/userspec.c: Likewise.
68473         * lib/w32spawn.h: Likewise.
68474         * lib/xstrndup.c: Likewise.
68475         * lib/mountlist.c (strstr): Remove decl.
68476         * m4/string_h.m4: New file.
68477         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
68478         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
68479         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
68480         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
68481         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
68482         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
68483         Set REPLACE_STRCASECMP if necessary.
68484         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
68485         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
68486         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
68487         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
68488         HAVE_DECL_STRDUP if necessary.
68489         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
68490         since gl_FUNC_STRNDUP does that now.
68491         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
68492         Check for decl here...
68493         (gl_PREREQ_STRNLEN): ... not here.
68494         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
68495         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
68496         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
68497         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
68498         necessary.
68499         * modules/string: New file.
68500         * modules/memmem (Files): Remove special-purpose include file.
68501         (Depends-on): Add string.
68502         (Include): Include <string.h>, not the removed file.
68503         * modules/mempcpy: Likewise.
68504         * modules/memrchr: Likewise.
68505         * modules/stpcpy: Likewise.
68506         * modules/stpncpy: Likewise.
68507         * modules/strcase: Likewise.
68508         * modules/strchrnul: Likewise.
68509         * modules/strdup: Likewise.
68510         * modules/strndup: Likewise.
68511         * modules/strnlen: Likewise.
68512         * modules/strpbrk: Likewise.
68513         * modules/strsep: Likewise.
68514         * modules/strstr: Likewise.
68515         * modules/strtok_r: Likewise.
68516         * tests/test-dirname.c: Don't include "strdup.h", since
68517         <string.h> now suffices.
68518         * tests/test-memmem.c: Don't include "memmem.h", since
68519         <string.h> now suffices.
68520
68521 2007-01-25  Bruno Haible  <bruno@clisp.org>
68522
68523         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
68524         *resultp is 0.
68525
68526         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
68527         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
68528         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
68529         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
68530
68531         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
68532         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
68533         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
68534         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
68535         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
68536         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
68537
68538 2007-01-24  Bruno Haible  <bruno@clisp.org>
68539
68540         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
68541         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
68542         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
68543         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
68544         gl_FUNC_FTS_CORE.
68545         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
68546         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
68547         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68548         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
68549         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
68550         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
68551         gl_FUNC_FCHOWNAT.
68552         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
68553         gl_FUNC_STRFTIME.
68554         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
68555         Reported by Ralf Wildenhues.
68556
68557 2007-01-24  Bruno Haible  <bruno@clisp.org>
68558
68559         Drop AC_REQUIRE calls that are redundant with the module dependencies.
68560         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
68561         gl_GETADDRINFO.
68562         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
68563         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
68564         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
68565
68566 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
68567
68568         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
68569         Don't use 'exit'; just return from 'main'.
68570         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
68571
68572         * lib/fnmatch_.h: Readjust white space and comments to match
68573         glibc, to avoid spurious diffs.
68574
68575 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68576
68577         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
68578         2004-12-01 change by Jakub Jelinek, since this code won't compile
68579         if !LIBC.  Problem reported by Bob Proulx.
68580
68581 2007-01-23  Bruno Haible  <bruno@clisp.org>
68582
68583         * lib/striconveh.c: Include c-strcaseeq.h.
68584         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
68585         * modules/striconveh (Depends-on): Add c-strcaseeq.
68586
68587 2007-01-23  Bruno Haible  <bruno@clisp.org>
68588
68589         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
68590
68591         * modules/c-strcaseeq: New file.
68592         * lib/c-strcaseeq.h: New file.
68593
68594         * modules/streq: New file.
68595         * lib/streq.h: New file.
68596
68597 2007-01-23  Bruno Haible  <bruno@clisp.org>
68598
68599         * modules/striconveha-tests: New file.
68600         * tests/test-striconveha.c: New file.
68601
68602         * lib/striconveha.h: Include <stdbool.h>.
68603         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
68604         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
68605         (mem_iconveha_notranslit): Renamed from mem_iconveha.
68606         (mem_iconveha): New function.
68607         (str_iconveha_notranslit): Renamed from str_iconveha.
68608         (str_iconveha): New function.
68609         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
68610         c-strcase.
68611
68612 2007-01-23  Bruno Haible  <bruno@clisp.org>
68613
68614         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
68615         encodings without forgiving before trying any encoding with handler.
68616         (str_iconveha): Try all encodings without forgiving before trying any
68617         encoding with handler.
68618
68619 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68620
68621         Import the following changes from libc.
68622
68623         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68624
68625         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
68626
68627         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
68628
68629         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
68630         normal_bracket label.
68631
68632         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
68633
68634         [BZ #361]
68635         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
68636         to normal_bracket after fetching the next character.
68637
68638 2007-01-22  Bruno Haible  <bruno@clisp.org>
68639
68640         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
68641         argument.
68642         * lib/striconveh.c (iconv_carefully_1): New function.
68643         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
68644         argument.
68645         (str_cd_iconveh): Update.
68646         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
68647         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
68648         * tests/test-striconveh.c (MAGIC): New macro.
68649         (new_offsets): New function.
68650         (main): Test call with and without offsets.
68651
68652 2007-01-22  Bruno Haible  <bruno@clisp.org>
68653
68654         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
68655         * modules/sys_select (Makefile.am): Likewise.
68656         * modules/sys_socket (Makefile.am): Likewise.
68657         * modules/sys_time (Makefile.am): Likewise.
68658
68659 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
68660
68661         * modules/gettimeofday (License): Change from GPL to LGPL, since
68662         gettimeofday is a library function.
68663
68664 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68665
68666         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
68667
68668 2007-01-21  Bruno Haible  <bruno@clisp.org>
68669
68670         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
68671
68672 2007-01-21  Bruno Haible  <bruno@clisp.org>
68673
68674         * modules/striconveha: New file.
68675         * lib/striconveha.h: New file.
68676         * lib/striconveha.c: New file.
68677         * MODULES.html.sh (Internationalization functions): Add striconveha.
68678         * lib/striconv.c (str_iconv): Optimize the case of an empty input
68679         string.
68680         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
68681
68682 2007-01-21  Bruno Haible  <bruno@clisp.org>
68683
68684         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
68685         * lib/striconveh.c (str_iconveh): Likewise.
68686
68687 2007-01-21  Bruno Haible  <bruno@clisp.org>
68688
68689         * lib/striconveh.h (mem_iconveh): New declaration.
68690         * lib/striconveh.c (mem_iconveh): New function.
68691         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
68692
68693 2007-01-21  Bruno Haible  <bruno@clisp.org>
68694
68695         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
68696
68697         * lib/striconveh.h (mem_cd_iconveh): Change specification.
68698         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
68699         original result buffer.
68700         (str_cd_iconveh): Update.
68701         * tests/test-striconveh.c (main): Update.
68702
68703         * lib/striconv.h (mem_cd_iconv): Change specification.
68704         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
68705         result buffer.
68706         (str_cd_iconv): Update.
68707         * tests/test-striconv.c (main): Update.
68708
68709 2007-01-21  Bruno Haible  <bruno@clisp.org>
68710
68711         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
68712
68713 2007-01-20  Jim Meyering  <jim@meyering.net>
68714
68715         * lib/userspec.c (parse_with_separator): If a user or group string
68716         starts with "+", skip the corresponding name-to-ID look-up, since
68717         such a look-up must fail: user and group names may not include "+".
68718
68719 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68720
68721         * lib/poll.c: Include sys/time.h and time.h unconditionally,
68722         since we now assume the sys_time module.
68723         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
68724         check for sys/time.h; no longer needed.
68725         * modules/poll (Depends-on): Depend on sys_time.
68726
68727 2007-01-18  Bruno Haible  <bruno@clisp.org>
68728
68729         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
68730         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
68731
68732         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
68733         gettimeofday.
68734
68735         * tests/test-gettimeofday.c: Include <time.h>.
68736         (dummy): Remove variable.
68737
68738         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
68739         gl_HEADER_SYS_TIME_H.
68740         (gl_HEADER_SYS_TIME_H): New macro.
68741
68742         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
68743         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68744         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
68745         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
68746         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68747         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
68748         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
68749         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68750         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
68751         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
68752         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68753
68754         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
68755         last change; it caused a compilation error when cross-compiling to
68756         Cygwin.
68757
68758 2007-01-18  Jim Meyering  <jim@meyering.net>
68759
68760         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
68761         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
68762         than the race-prone "test -d sys || mkdir sys".
68763         (configure.ac): Use AC_PROG_MKDIR_P.
68764         * modules/sys_select: Likewise.
68765         * modules/sys_socket: Likewise.
68766         * modules/sys_time: Likewise.
68767
68768 2007-01-18  Eric Blake  <ebb9@byu.net>
68769
68770         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
68771         replace gettimeofday.
68772         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
68773         name, to avoid infinite recursion.
68774
68775 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
68776
68777         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
68778         module sys_time.
68779         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
68780         assume timespec.h defines struct timeval.
68781         * lib/settime.c: Likewise.
68782         * lib/utimens.c: Likewise.
68783         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
68784         since we now assume the gettimeofday module.
68785         * lib/tempname.c (__gen_tempname): Likewise.
68786         * lib/gettimeofday.h: Remove.
68787         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
68788         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
68789         Include <time.h>, for 'time()'.
68790         (localtime_buffer_addr): Also use this workaround if
68791         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
68792         to simplify the uses.  All uses changed.
68793         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
68794         that #undef is inside {}, and 'const' follows type name consistently.
68795         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
68796         (gettimeofday): Do not use the maximum possible value for
68797         tv->tv_usec, since that might break usages other than ls.c.
68798         Instead, we'll leave ls.c alone.  This undoes today's patch
68799         by Bruno.  Add a compile-time warning for 1s-clock resolution;
68800         we've never observed the problem but might as well keep the
68801         canary.
68802         * lib/nanosleep.c: Include timespec.h first, for interface check.
68803         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
68804         now assume the sys_time module.
68805         * lib/tempname.c: Likewise.
68806         * lib/timespec.h: Likewise.
68807         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
68808         needed.
68809         * lib/strftime.c: Likewise.
68810         * lib/timespec.h: Likewise.
68811         * lib/posixtm.c: Include posixtm.h first, for interface check.
68812         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
68813         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
68814         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
68815         * lib/sys_time_.h: New file.
68816         * lib/timespec.h (struct timespec): Use long int, not long.
68817         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
68818         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
68819         Remove obsolescent call to AC_HEADER_TIME.
68820         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
68821         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68822         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
68823         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
68824         Likewise.
68825         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
68826         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
68827         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
68828         into the sys_time module.  Check for gettimeofday just once.
68829         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
68830         for gettimeofday signature to just check the signature.  Merely
68831         compile it, since linking doesn't test signature.  Improve test for
68832         whether gettimeofday.o is actually needed.
68833         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
68834         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
68835         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
68836         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68837         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
68838         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
68839         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
68840         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
68841         than worrying about sys/time.h.
68842         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68843         Don't bother worrying about TIME_WITH_SYS_TIME.
68844         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
68845         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
68846         * m4/sys_time_h.m4: New file.
68847         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
68848         Don't include sys/time.h.  Return from main rather than exiting.
68849         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
68850         all uses changed.
68851         * modules/gethrxtime (Depends-on): Add sys_time.
68852         * modules/gettime (Depends-on): Likewise.
68853         * modules/gettimeofday (Depends-on): Likewise.
68854         * modules/nanosleep (Depends-on): Likewise.
68855         * modules/settime (Depends-on): Likewise.
68856         * modules/tempname (Depends-on): Likewise.
68857         * modules/utimens (Depends-on): Likewise.
68858         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
68859         (Include): Change back to <sys/time.h>.
68860         (Maintainer): Add self.
68861         * modules/sys_time: New file.
68862         * modules/tempname (Depends-on): Add gettimeofday.
68863         * tests/test-gettimeofday.c: Include <sys/time.h>
68864         rather than gettimeofday.h.
68865
68866 2007-01-17  Bruno Haible  <bruno@clisp.org>
68867
68868         * gnulib-tool (func_get_license): Revert last patch. Instead, let
68869         the license default to GPL.
68870         (func_create_testdir): Don't complain if a module is LGPL and its
68871         tests module depends on GPLed modules.
68872
68873 2007-01-17  Bruno Haible  <bruno@clisp.org>
68874
68875         * lib/gettimeofday.c (gettimeofday): Add code for the case
68876         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
68877         maximum possible value for tv->tv_usec, rather than the minimum one.
68878
68879 2005-10-08  Martin Lambers  <marlam@marlam.de>
68880 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68881 2007-01-16  Bruno Haible  <bruno@clisp.org>
68882
68883         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
68884         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
68885         gl_FUNC_GETTIMEOFDAY.
68886         (Include): Add gettimeofday.h.
68887         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
68888         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
68889         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
68890         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
68891         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
68892         * lib/gettimeofday.h: New file.
68893         * lib/gettimeofday.c: Include <sys/timeb.h>.
68894         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
68895         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68896         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
68897         fall back on time().
68898
68899         * tests/test-gettimeofday.c: New file.
68900         * modules/gettimeofday-tests: New file.
68901
68902 2007-01-16  Eric Blake  <ebb9@byu.net>
68903
68904         * modules/fnmatch (Depends-on): Depend on wchar.
68905         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
68906         * m4/fnmatch.m4: Likewise.
68907         * modules/mbchar (Makefile.am): Assume <wchar.h>.
68908         * m4/mbchar.m4: Likewise.
68909         * modules/mbswidth (Depends-on): Depend on wchar.
68910         * lib/mbswidth.c: Assume <wchar.h>.
68911         * m4/mbswidth.m4: Likewise.
68912         * modules/quotearg (Depends-on): Depend on wchar.
68913         * lib/quotearg.c: Assume <wchar.h>.
68914         * m4/quotearg.m4: Likewise.
68915         * modules/regex (Depends-on): Depend on wchar.
68916         * lib/regex_internal.h: Assume <wchar.h>.
68917         * m4/regex.m4: Likewise.
68918         * modules/stdint (Depends-on): Depend on wchar.
68919         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
68920         * m4/stdint.m4: Likewise.
68921         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
68922         * modules/strftime (Depends-on): Depend on wchar.
68923         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
68924         * modules/strtol (Depends-on): Depend on wchar.
68925         * lib/strtol.c: Assume <wchar.h>.
68926         * modules/wcwidth (Depends-on): Depend on wchar.
68927         * lib/wcwidth.h: Assume <wchar.h>.
68928         * m4/wcwidth.m4: Likewise.
68929
68930 2007-01-16  Bruno Haible  <bruno@clisp.org>
68931
68932         * modules/csharpexec-script: New, created from...
68933         * modules/csharpexec: ... this.
68934
68935 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
68936
68937         * modules/javaexec-script: New, created from...
68938         * modules/javaexec: ... this.
68939
68940 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68941
68942         * modules/poll (Dependencies): Add sys_select.
68943
68944 2007-01-15  Jim Meyering  <jim@meyering.net>
68945
68946         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
68947         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
68948         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
68949         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
68950
68951 2007-01-15  Bruno Haible  <bruno@clisp.org>
68952
68953         * modules/striconveh: New file.
68954         * lib/striconveh.h: New file.
68955         * lib/striconveh.c: New file.
68956         * MODULES.html.sh (Internationalization functions): Add striconveh.
68957
68958         * modules/striconveh-tests: New file.
68959         * tests/test-striconveh.c: New file.
68960
68961 2007-01-15  Bruno Haible  <bruno@clisp.org>
68962
68963         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
68964         not from GNU libiconv or GNU libc.
68965
68966 2007-01-15  Bruno Haible  <bruno@clisp.org>
68967
68968         * doc/gnulib-intro.texi (Copyright): Explain the different license
68969         terms for module descriptions, autoconf macros, tests, documentation.
68970
68971 2007-01-14  Bruno Haible  <bruno@clisp.org>
68972
68973         * modules/striconv-tests: New file.
68974         * tests/test-striconv.c: New file.
68975
68976 2007-01-14  Bruno Haible  <bruno@clisp.org>
68977
68978         * modules/iconv-tests: New file.
68979         * tests/test-iconv.c: New file.
68980
68981 2007-01-14  Bruno Haible  <bruno@clisp.org>
68982
68983         * gnulib-tool (func_get_license): For test modules, use the license of
68984         the main module.
68985
68986 2007-01-14  Bruno Haible  <bruno@clisp.org>
68987
68988         * modules/iconv (Include): Clarify that <iconv.h> can only be included
68989         if iconv is found to exist.
68990
68991 2007-01-14  Bruno Haible  <bruno@clisp.org>
68992
68993         * modules/c-ctype-tests: New file.
68994         * tests/test-c-ctype.c: New file.
68995
68996 2007-01-14  Bruno Haible  <bruno@clisp.org>
68997
68998         * modules/binary-io-tests: New file.
68999         * tests/test-binary-io.sh: New file.
69000         * tests/test-binary-io.c: New file.
69001
69002 2007-01-14  Bruno Haible  <bruno@clisp.org>
69003
69004         * modules/array-oset-tests: New file.
69005         * tests/test-array_oset.c: New file.
69006
69007 2007-01-14  Bruno Haible  <bruno@clisp.org>
69008
69009         * modules/array-list-tests: New file.
69010         * tests/test-array_list.c: New file.
69011
69012 2007-01-14  Bruno Haible  <bruno@clisp.org>
69013
69014         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
69015         and make.
69016         Reported by Simon Josefsson in
69017         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
69018
69019 2007-01-14  Bruno Haible  <bruno@clisp.org>
69020
69021         * modules/allocsa-tests: New file.
69022         * tests/test-allocsa.c: New file.
69023
69024 2007-01-14  Bruno Haible  <bruno@clisp.org>
69025
69026         * modules/fchdir (Depends-on): Add absolute-header.
69027         * modules/unistd (Depends-on): Likewise.
69028
69029 2006-12-30  Bruno Haible  <bruno@clisp.org>
69030
69031         * modules/fchdir: New file.
69032         * modules/unistd (Files): Add lib/unistd_.h.
69033         (Makefile.am): Generate unistd.h from unistd_.h.
69034         * lib/fchdir.c: New file.
69035         * lib/dirent_.h: New file.
69036         * lib/unistd_.h: New file.
69037         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
69038         * m4/fchdir.m4: New file.
69039         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
69040         (gl_HEADER_UNISTD): Invoke it.
69041         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
69042         function.
69043         * lib/backupfile.c (opendir, closedir): Undefine.
69044         * lib/chown.c (open, close): Undefine.
69045         * lib/clean-temp.c (open, close): Undefine.
69046         * lib/copy-file.c (open, close): Undefine.
69047         * lib/execute.c (open, close): Undefine.
69048         * lib/fsusage.c (open, close): Undefine.
69049         * lib/gc-gnulib.c (open, close): Undefine.
69050         * lib/getcwd.c (opendir, closedir): Undefine.
69051         * lib/glob.c (opendir, closedir): Undefine.
69052         * lib/javacomp.c (open, close): Undefine.
69053         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
69054         * lib/openat-proc.c (open, close): Undefine.
69055         * lib/pagealign_alloc.c (open, close): Undefine.
69056         * lib/pipe.c (open, close): Undefine.
69057         * lib/progreloc.c (open, close): Undefine.
69058         * lib/savedir.c (opendir, closedir): Undefine.
69059         * lib/utime.c (open, close): Undefine.
69060         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
69061
69062 2007-01-10  Bruno Haible  <bruno@clisp.org>
69063
69064         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
69065
69066 2007-01-12  Eric Blake  <ebb9@byu.net>
69067
69068         Provide a robust <wchar.h>.  Further simplifications are now
69069         possible in other modules, but not included here.
69070         * modules/wchar: New module.
69071         * m4/wchar.m4: New file.
69072         * lib/wchar_.h: Likewise.
69073         * modules/mbchar (Depends-on): Depend on wchar, as the first use
69074         of the new module.
69075         * MODULES.html.sh (Extended multibyte and wide character utilities):
69076         New section.
69077
69078 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
69079
69080         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
69081         to a reasonable default for memory allocation.
69082         (xreadlink): Don't allocate a huge buffer, to work around a buggy
69083         file system that reports garbage st_size values for symlinks.
69084         Problem reported by Liyang Hu.
69085
69086 2007-01-11  Simon Josefsson  <simon@josefsson.org>
69087
69088         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
69089         Emacs .#* auto-save files).
69090
69091 2007-01-11  Bruno Haible  <bruno@clisp.org>
69092
69093         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
69094         directory.
69095
69096 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69097
69098         Use @...@ consistently in lib/wctype_.h.
69099         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
69100         on it being set to 1 or 0.
69101         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
69102         go back to AC_SUBSTing it.
69103         * modules/wctype (Makefile.am): Undo previous change.
69104
69105 2007-01-10  Eric Blake  <ebb9@byu.net>
69106
69107         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
69108         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
69109         * modules/wctype (Makefile.am): Likewise.
69110         Reported by Chris McGuire.
69111
69112 2007-01-10  Jim Meyering  <jim@meyering.net>
69113
69114         fts.c: a small readability/maintainability improvement
69115         * lib/fts.c (fts_read): Make this code slightly more readable and
69116         maintainable by hoisting the "sp->fts_cur = p" assignments to
69117         immediately follow the statements that set P.  Derived from
69118         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
69119
69120 2007-01-10  Eric Blake  <ebb9@byu.net>
69121
69122         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
69123         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
69124         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
69125         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
69126         Reported by Chris McGuire.
69127
69128 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69129
69130         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
69131         in sed script.
69132
69133 2007-01-09  Bruno Haible  <bruno@clisp.org>
69134
69135         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
69136         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
69137         variables.
69138         (func_module): Use them.
69139
69140 2007-01-09  Bruno Haible  <bruno@clisp.org>
69141
69142         * modules/unistr/base: New file.
69143         * lib/unistr.h: New file.
69144
69145         * modules/unistr/u8-to-u16: New file.
69146         * lib/unistr/u8-to-u16.c: New file.
69147
69148         * modules/unistr/u8-to-u32: New file.
69149         * lib/unistr/u8-to-u32.c: New file.
69150
69151         * modules/unistr/u16-to-u8: New file.
69152         * lib/unistr/u16-to-u8.c: New file.
69153
69154         * modules/unistr/u16-to-u32: New file.
69155         * lib/unistr/u16-to-u32.c: New file.
69156
69157         * modules/unistr/u32-to-u8: New file.
69158         * lib/unistr/u32-to-u8.c: New file.
69159
69160         * modules/unistr/u32-to-u16: New file.
69161         * lib/unistr/u32-to-u16.c: New file.
69162
69163         * modules/unistr/u8-check: New file.
69164         * modules/unistr/u16-check: New file.
69165         * modules/unistr/u32-check: New file.
69166         * lib/unistr/u8-check.c: New file.
69167         * lib/unistr/u16-check.c: New file.
69168         * lib/unistr/u32-check.c: New file.
69169
69170         * modules/unistr/u8-chr: New file.
69171         * modules/unistr/u16-chr: New file.
69172         * modules/unistr/u32-chr: New file.
69173         * lib/unistr/u8-chr.c: New file.
69174         * lib/unistr/u16-chr.c: New file.
69175         * lib/unistr/u32-chr.c: New file.
69176
69177         * modules/unistr/u8-cmp: New file.
69178         * modules/unistr/u16-cmp: New file.
69179         * modules/unistr/u32-cmp: New file.
69180         * lib/unistr/u8-cmp.c: New file.
69181         * lib/unistr/u16-cmp.c: New file.
69182         * lib/unistr/u32-cmp.c: New file.
69183
69184         * modules/unistr/u8-cpy: New file.
69185         * modules/unistr/u16-cpy: New file.
69186         * modules/unistr/u32-cpy: New file.
69187         * lib/unistr/u8-cpy.c: New file.
69188         * lib/unistr/u16-cpy.c: New file.
69189         * lib/unistr/u32-cpy.c: New file.
69190         * lib/unistr/u-cpy.h: New file.
69191
69192         * modules/unistr/u8-cpy-alloc: New file.
69193         * modules/unistr/u16-cpy-alloc: New file.
69194         * modules/unistr/u32-cpy-alloc: New file.
69195         * lib/unistr/u8-cpy-alloc.c: New file.
69196         * lib/unistr/u16-cpy-alloc.c: New file.
69197         * lib/unistr/u32-cpy-alloc.c: New file.
69198         * lib/unistr/u-cpy-alloc.h: New file.
69199
69200         * modules/unistr/u8-endswith: New file.
69201         * modules/unistr/u16-endswith: New file.
69202         * modules/unistr/u32-endswith: New file.
69203         * lib/unistr/u8-endswith.c: New file.
69204         * lib/unistr/u16-endswith.c: New file.
69205         * lib/unistr/u32-endswith.c: New file.
69206         * lib/unistr/u-endswith.h: New file.
69207
69208         * modules/unistr/u8-mblen: New file.
69209         * modules/unistr/u16-mblen: New file.
69210         * modules/unistr/u32-mblen: New file.
69211         * lib/unistr/u8-mblen.c: New file.
69212         * lib/unistr/u16-mblen.c: New file.
69213         * lib/unistr/u32-mblen.c: New file.
69214
69215         * modules/unistr/u8-mbtouc: New file.
69216         * modules/unistr/u16-mbtouc: New file.
69217         * modules/unistr/u32-mbtouc: New file.
69218         * lib/unistr/u8-mbtouc.c: New file.
69219         * lib/unistr/u16-mbtouc.c: New file.
69220         * lib/unistr/u32-mbtouc.c: New file.
69221
69222         * modules/unistr/u8-mbtouc-safe: New file.
69223         * modules/unistr/u16-mbtouc-safe: New file.
69224         * modules/unistr/u32-mbtouc-safe: New file.
69225         * lib/unistr/u8-mbtouc-safe.c: New file.
69226         * lib/unistr/u16-mbtouc-safe.c: New file.
69227         * lib/unistr/u32-mbtouc-safe.c: New file.
69228
69229         * modules/unistr/u8-move: New file.
69230         * modules/unistr/u16-move: New file.
69231         * modules/unistr/u32-move: New file.
69232         * lib/unistr/u8-move.c: New file.
69233         * lib/unistr/u16-move.c: New file.
69234         * lib/unistr/u32-move.c: New file.
69235         * lib/unistr/u-move.h: New file.
69236
69237         * modules/unistr/u8-next: New file.
69238         * modules/unistr/u16-next: New file.
69239         * modules/unistr/u32-next: New file.
69240         * lib/unistr/u8-next.c: New file.
69241         * lib/unistr/u16-next.c: New file.
69242         * lib/unistr/u32-next.c: New file.
69243
69244         * modules/unistr/u8-prev: New file.
69245         * modules/unistr/u16-prev: New file.
69246         * modules/unistr/u32-prev: New file.
69247         * lib/unistr/u8-prev.c: New file.
69248         * lib/unistr/u16-prev.c: New file.
69249         * lib/unistr/u32-prev.c: New file.
69250
69251         * modules/unistr/u8-set: New file.
69252         * modules/unistr/u16-set: New file.
69253         * modules/unistr/u32-set: New file.
69254         * lib/unistr/u8-set.c: New file.
69255         * lib/unistr/u16-set.c: New file.
69256         * lib/unistr/u32-set.c: New file.
69257         * lib/unistr/u-set.h: New file.
69258
69259         * modules/unistr/u8-startswith: New file.
69260         * modules/unistr/u16-startswith: New file.
69261         * modules/unistr/u32-startswith: New file.
69262         * lib/unistr/u8-startswith.c: New file.
69263         * lib/unistr/u16-startswith.c: New file.
69264         * lib/unistr/u32-startswith.c: New file.
69265         * lib/unistr/u-startswith.h: New file.
69266
69267         * modules/unistr/u8-stpcpy: New file.
69268         * modules/unistr/u16-stpcpy: New file.
69269         * modules/unistr/u32-stpcpy: New file.
69270         * lib/unistr/u8-stpcpy.c: New file.
69271         * lib/unistr/u16-stpcpy.c: New file.
69272         * lib/unistr/u32-stpcpy.c: New file.
69273         * lib/unistr/u-stpcpy.h: New file.
69274
69275         * modules/unistr/u8-stpncpy: New file.
69276         * modules/unistr/u16-stpncpy: New file.
69277         * modules/unistr/u32-stpncpy: New file.
69278         * lib/unistr/u8-stpncpy.c: New file.
69279         * lib/unistr/u16-stpncpy.c: New file.
69280         * lib/unistr/u32-stpncpy.c: New file.
69281         * lib/unistr/u-stpncpy.h: New file.
69282
69283         * modules/unistr/u8-strcat: New file.
69284         * modules/unistr/u16-strcat: New file.
69285         * modules/unistr/u32-strcat: New file.
69286         * lib/unistr/u8-strcat.c: New file.
69287         * lib/unistr/u16-strcat.c: New file.
69288         * lib/unistr/u32-strcat.c: New file.
69289         * lib/unistr/u-strcat.h: New file.
69290
69291         * modules/unistr/u8-strchr: New file.
69292         * modules/unistr/u16-strchr: New file.
69293         * modules/unistr/u32-strchr: New file.
69294         * lib/unistr/u8-strchr.c: New file.
69295         * lib/unistr/u16-strchr.c: New file.
69296         * lib/unistr/u32-strchr.c: New file.
69297
69298         * modules/unistr/u8-strcmp: New file.
69299         * modules/unistr/u16-strcmp: New file.
69300         * modules/unistr/u32-strcmp: New file.
69301         * lib/unistr/u8-strcmp.c: New file.
69302         * lib/unistr/u16-strcmp.c: New file.
69303         * lib/unistr/u32-strcmp.c: New file.
69304
69305         * modules/unistr/u8-strcpy: New file.
69306         * modules/unistr/u16-strcpy: New file.
69307         * modules/unistr/u32-strcpy: New file.
69308         * lib/unistr/u8-strcpy.c: New file.
69309         * lib/unistr/u16-strcpy.c: New file.
69310         * lib/unistr/u32-strcpy.c: New file.
69311         * lib/unistr/u-strcpy.h: New file.
69312
69313         * modules/unistr/u8-strcspn: New file.
69314         * modules/unistr/u16-strcspn: New file.
69315         * modules/unistr/u32-strcspn: New file.
69316         * lib/unistr/u8-strcspn.c: New file.
69317         * lib/unistr/u16-strcspn.c: New file.
69318         * lib/unistr/u32-strcspn.c: New file.
69319         * lib/unistr/u-strcspn.h: New file.
69320
69321         * modules/unistr/u8-strdup: New file.
69322         * modules/unistr/u16-strdup: New file.
69323         * modules/unistr/u32-strdup: New file.
69324         * lib/unistr/u8-strdup.c: New file.
69325         * lib/unistr/u16-strdup.c: New file.
69326         * lib/unistr/u32-strdup.c: New file.
69327         * lib/unistr/u-strdup.h: New file.
69328
69329         * modules/unistr/u8-strlen: New file.
69330         * modules/unistr/u16-strlen: New file.
69331         * modules/unistr/u32-strlen: New file.
69332         * lib/unistr/u8-strlen.c: New file.
69333         * lib/unistr/u16-strlen.c: New file.
69334         * lib/unistr/u32-strlen.c: New file.
69335         * lib/unistr/u-strlen.h: New file.
69336
69337         * modules/unistr/u8-strmblen: New file.
69338         * modules/unistr/u16-strmblen: New file.
69339         * modules/unistr/u32-strmblen: New file.
69340         * lib/unistr/u8-strmblen.c: New file.
69341         * lib/unistr/u16-strmblen.c: New file.
69342         * lib/unistr/u32-strmblen.c: New file.
69343
69344         * modules/unistr/u8-strmbtouc: New file.
69345         * modules/unistr/u16-strmbtouc: New file.
69346         * modules/unistr/u32-strmbtouc: New file.
69347         * lib/unistr/u8-strmbtouc.c: New file.
69348         * lib/unistr/u16-strmbtouc.c: New file.
69349         * lib/unistr/u32-strmbtouc.c: New file.
69350
69351         * modules/unistr/u8-strncat: New file.
69352         * modules/unistr/u16-strncat: New file.
69353         * modules/unistr/u32-strncat: New file.
69354         * lib/unistr/u8-strncat.c: New file.
69355         * lib/unistr/u16-strncat.c: New file.
69356         * lib/unistr/u32-strncat.c: New file.
69357         * lib/unistr/u-strncat.h: New file.
69358
69359         * modules/unistr/u8-strncmp: New file.
69360         * modules/unistr/u16-strncmp: New file.
69361         * modules/unistr/u32-strncmp: New file.
69362         * lib/unistr/u8-strncmp.c: New file.
69363         * lib/unistr/u16-strncmp.c: New file.
69364         * lib/unistr/u32-strncmp.c: New file.
69365
69366         * modules/unistr/u8-strncpy: New file.
69367         * modules/unistr/u16-strncpy: New file.
69368         * modules/unistr/u32-strncpy: New file.
69369         * lib/unistr/u8-strncpy.c: New file.
69370         * lib/unistr/u16-strncpy.c: New file.
69371         * lib/unistr/u32-strncpy.c: New file.
69372         * lib/unistr/u-strncpy.h: New file.
69373
69374         * modules/unistr/u8-strnlen: New file.
69375         * modules/unistr/u16-strnlen: New file.
69376         * modules/unistr/u32-strnlen: New file.
69377         * lib/unistr/u8-strnlen.c: New file.
69378         * lib/unistr/u16-strnlen.c: New file.
69379         * lib/unistr/u32-strnlen.c: New file.
69380         * lib/unistr/u-strnlen.h: New file.
69381
69382         * modules/unistr/u8-strpbrk: New file.
69383         * modules/unistr/u16-strpbrk: New file.
69384         * modules/unistr/u32-strpbrk: New file.
69385         * lib/unistr/u8-strpbrk.c: New file.
69386         * lib/unistr/u16-strpbrk.c: New file.
69387         * lib/unistr/u32-strpbrk.c: New file.
69388         * lib/unistr/u-strpbrk.h: New file.
69389
69390         * modules/unistr/u8-strrchr: New file.
69391         * modules/unistr/u16-strrchr: New file.
69392         * modules/unistr/u32-strrchr: New file.
69393         * lib/unistr/u8-strrchr.c: New file.
69394         * lib/unistr/u16-strrchr.c: New file.
69395         * lib/unistr/u32-strrchr.c: New file.
69396
69397         * modules/unistr/u8-strspn: New file.
69398         * modules/unistr/u16-strspn: New file.
69399         * modules/unistr/u32-strspn: New file.
69400         * lib/unistr/u8-strspn.c: New file.
69401         * lib/unistr/u16-strspn.c: New file.
69402         * lib/unistr/u32-strspn.c: New file.
69403         * lib/unistr/u-strspn.h: New file.
69404
69405         * modules/unistr/u8-strstr: New file.
69406         * modules/unistr/u16-strstr: New file.
69407         * modules/unistr/u32-strstr: New file.
69408         * lib/unistr/u8-strstr.c: New file.
69409         * lib/unistr/u16-strstr.c: New file.
69410         * lib/unistr/u32-strstr.c: New file.
69411         * lib/unistr/u-strstr.h: New file.
69412
69413         * modules/unistr/u8-strtok: New file.
69414         * modules/unistr/u16-strtok: New file.
69415         * modules/unistr/u32-strtok: New file.
69416         * lib/unistr/u8-strtok.c: New file.
69417         * lib/unistr/u16-strtok.c: New file.
69418         * lib/unistr/u32-strtok.c: New file.
69419         * lib/unistr/u-strtok.h: New file.
69420
69421         * modules/unistr/u8-uctomb: New file.
69422         * modules/unistr/u16-uctomb: New file.
69423         * modules/unistr/u32-uctomb: New file.
69424         * lib/unistr/u8-uctomb.c: New file.
69425         * lib/unistr/u16-uctomb.c: New file.
69426         * lib/unistr/u32-uctomb.c: New file.
69427
69428         * MODULES.html.sh (Unicode string functions): Add the new modules.
69429
69430 2007-01-08  Bruno Haible  <bruno@clisp.org>
69431
69432         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
69433         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
69434         subdirectories.
69435
69436 2007-01-08  Karl Berry  <karl@gnu.org>
69437
69438         * doc/error.texi: mention that main() fns must set program_name
69439         when progname is used.
69440
69441 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
69442
69443         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
69444         WCTYPE_H is empty, for the benefit of builds from non-distclean
69445         directories.  Problem reported by Eric Blake in
69446         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
69447
69448 2007-01-08  Bruno Haible  <bruno@clisp.org>
69449
69450         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
69451         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
69452         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
69453         PROVIDE_CANONICALIZE_FILENAME_MODE.
69454         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
69455
69456 2007-01-08  Bruno Haible  <bruno@clisp.org>
69457
69458         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
69459         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
69460         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
69461         * lib/fts.c: Likewise.
69462         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
69463
69464 2006-12-25  Bruno Haible  <bruno@clisp.org>
69465
69466         * modules/utf8-ucs4-safe: New file.
69467         * lib/utf8-ucs4-safe.h: New file.
69468         * lib/unistr/utf8-ucs4-safe.c: New file.
69469
69470         * modules/utf16-ucs4-safe: New file.
69471         * lib/utf16-ucs4-safe.h: New file.
69472         * lib/unistr/utf16-ucs4-safe.c: New file.
69473
69474         * MODULES.html.sh (Unicode string functions): Add the new modules.
69475
69476 2007-01-08  Bruno Haible  <bruno@clisp.org>
69477
69478         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
69479         (Depends-on): Add unitypes.
69480         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
69481         (u8_mbtouc_aux): Move out to separate file.
69482         (u8_mbtouc): Use ucs4_t, uint8_t types.
69483         * lib/unistr/utf8-ucs4.c: New file.
69484
69485         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
69486         (Depends-on): Add unitypes.
69487         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
69488         (u16_mbtouc_aux): Move out to separate file.
69489         (u16_mbtouc): Use ucs4_t, uint16_t types.
69490         * lib/unistr/utf16-ucs4.c: New file.
69491
69492         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
69493         (Depends-on): Add unitypes.
69494         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
69495         (u8_uctomb_aux): Move out to separate file.
69496         (u8_uctomb): Use ucs4_t, uint8_t types.
69497         * lib/unistr/ucs4-utf8.c: New file.
69498
69499         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
69500         (Depends-on): Add unitypes.
69501         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
69502         (u16_uctomb_aux): Move out to separate file.
69503         (u16_uctomb): Use ucs4_t, uint16_t types.
69504         * lib/unistr/ucs4-utf16.c: New file.
69505
69506 2006-12-25  Bruno Haible  <bruno@clisp.org>
69507
69508         * modules/unitypes: New file.
69509         * lib/unitypes.h: New file.
69510         * MODULES.html.sh (func_all_modules): New section "Unicode string
69511         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
69512         this section. Add unitypes.
69513
69514 2007-01-08  Bruno Haible  <bruno@clisp.org>
69515
69516         Avoid variable names that conflict with those from libtool.
69517         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
69518         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
69519         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
69520         library_names_spec to acl_library_names_spec, hardcode_* to
69521         acl_hardcode_*.
69522         Reported by Ralf Wildenhues.
69523
69524 2007-01-08  Bruno Haible  <bruno@clisp.org>
69525
69526         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
69527         definition.
69528         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
69529         definition.
69530         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
69531         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
69532         definition.
69533         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
69534         definition.
69535         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
69536         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
69537         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
69538         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
69539         definition.
69540         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
69541         definition.
69542         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
69543         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
69544         GC_USE_<algorithm>.
69545         * lib/gc-libgcrypt.c: Likewise.
69546         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
69547         * modules/gc-arctwo (configure.ac): Likewise.
69548         * modules/gc-des (configure.ac): Likewise.
69549         * modules/gc-hmac-md5 (configure.ac): Likewise.
69550         * modules/gc-hmac-sha1 (configure.ac): Likewise.
69551         * modules/gc-md2 (configure.ac): Likewise.
69552         * modules/gc-md4 (configure.ac): Likewise.
69553         * modules/gc-md5 (configure.ac): Likewise.
69554         * modules/gc-random (configure.ac): Likewise.
69555         * modules/gc-rijndael (configure.ac): Likewise.
69556         * modules/gc-sha1 (configure.ac): Likewise.
69557
69558 2007-01-08  Bruno Haible  <bruno@clisp.org>
69559
69560         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
69561         macro definition.
69562         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
69563         definition.
69564         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
69565         definition.
69566         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
69567         * modules/fcntl-safer (configure.ac): Likewise.
69568         * modules/fopen-safer (configure.ac): Likewise.
69569         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
69570         GNULIB_FWRITEERROR macro definition.
69571
69572 2007-01-08  Bruno Haible  <bruno@clisp.org>
69573
69574         * m4/gnulib-common.m4: New file.
69575         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
69576         (func_get_filelist): Add m4/gnulib-common.m4.
69577
69578 2007-01-08  Bruno Haible  <bruno@clisp.org>
69579
69580         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
69581         command.
69582
69583 2007-01-08  Jim Meyering  <jim@meyering.net>
69584
69585         Use a more robust test for a "can't happen" condition.
69586         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
69587         narrowed the st_size value.  Presuming the "can't happen" condition
69588         is true, that narrowing could conceivably convert an invalid st_size
69589         value into a valid one.  Instead, use a change based on Matthew
69590         Woehlke's original patch.
69591
69592         Slight readability improvement: use an assert-like macro
69593         in place of literal "abort ()" uses.
69594         * lib/fts.c (fts_assert): Define.
69595         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
69596         Use this macro instead of a bare 'abort'.
69597
69598 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
69599
69600         Don't worry about using IRIX 5.3's wctype.h broken definitions;
69601         simply work around them.
69602         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
69603         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
69604         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
69605         declaring.
69606         Don't bother to define as macros, since the standard doesn't require it.
69607         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
69608         longer worry about IRIX 5.3.
69609         (HAVE_WCTYPE_CTMP_BUG): Remove.
69610
69611 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69612
69613         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
69614         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
69615         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69616         Problems reported by Georg Schwarz for IRIX 5.3.
69617
69618         * gnulib-tool (autoconf_minversion): Take the maximum version number
69619         found, not the minimum.  Problem reported by James Youngman.
69620
69621 2007-01-03  Karl Berry  <karl@gnu.org>
69622
69623         * doc/error.texi: new file, explaining interaction with progname.
69624         * doc/gnulib.texi: include it.  Update copyright.
69625
69626 2007-01-03  Simon Josefsson  <simon@josefsson.org>
69627
69628         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
69629         AC_CANONICAL_HOST, to improve autobuild outputs.
69630
69631 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
69632             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69633
69634         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
69635         sockets, server sockets, and other file descriptors.  Count errors
69636         to compute the return value.  Reorder the code a bit to be easier
69637         to follow.  Don't set event bits that were not requested (except
69638         POLLERR and POLLHUP).
69639
69640 2007-01-01  Bruno Haible  <bruno@clisp.org>
69641
69642         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
69643
69644 2007-01-03  Jim Meyering  <jim@meyering.net>
69645
69646         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
69647
69648 2007-01-02  Bruno Haible  <bruno@clisp.org>
69649
69650         * modules/settime (Include): Require timespec.h.
69651         * modules/nanosleep (Include): Likewise.
69652
69653 2007-01-01  Bruno Haible  <bruno@clisp.org>
69654
69655         * gnulib-tool (func_emit_copyright_notice): Bump year.
69656         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
69657
69658 2007-01-01  Bruno Haible  <bruno@clisp.org>
69659
69660         Improve support for OpenBSD.
69661         * build-aux/config.rpath (libname_spec): Export.
69662         (library_names_spec): New variable. Export.
69663         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
69664         library_names_spec from the config.rpath output. Locate shared library
69665         through the name pattern in library_names_spec.
69666
69667 2007-01-01  Eric Blake  <ebb9@byu.net>
69668
69669         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
69670
69671 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
69672
69673         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
69674         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
69675         assume the C locale, and avoid an "eval" that could cause trouble.
69676         Problem with SORT reported by Bob Proulx.
69677
69678         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
69679         Define.  Trivial patch from Henning Nielsen Lund, originally
69680         sent to bug-grep@gnu.org today.
69681
69682 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
69683
69684         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
69685         struct stat.  Problem reported by Henning Nielsen Lund.
69686         * lib/acl.c: Include acl.h first, to check interface.  Don't
69687         bother to include sys/types.h and sys/stat.h again.
69688
69689 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69690
69691         Import the following change from libc; problem reported by
69692         Sven Verdoolaege.
69693
69694         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
69695
69696         [BZ #1373]
69697         * lib/argp.h: Remove __NTH for __argp_usage inline function.
69698
69699 2006-12-28  Jim Meyering  <jim@meyering.net>
69700
69701         * build-aux/announce-gen: Do not assume that the package
69702         builds any of tar.gz, tar.bz2, and .xdelta files.
69703         Suggestion from Simon Josefsson.
69704
69705 2006-12-28  Simon Josefsson  <simon@josefsson.org>
69706
69707         * modules/announce-gen: New file.
69708
69709 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
69710
69711         * lib/mbchar.h: Just include <wctype.h>; the wctype module
69712         handles its gotchas now.
69713         * lib/mbswidth.c: Likewise.
69714         * lib/wcwidth.h: Likewise.
69715         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
69716         and iswcntrl; the wctype module does this stuff now.
69717         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69718         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
69719         * modules/mbchar (Depends-on): Add wctype.
69720         * modules/mbswidth (Depends-on): Likewise.
69721         * modules/wcwidth (Depends-on): Likewise.
69722
69723 2006-12-27  Eric Blake  <ebb9@byu.net>
69724
69725         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
69726         module uses more than what <wctype.h> is required to provide.
69727
69728 2006-12-26  Eric Blake  <ebb9@byu.net>
69729
69730         * gnulib-tool (sed_extract_prog): Avoid space-tab.
69731
69732 2006-12-26  Eric Blake  <ebb9@byu.net>
69733
69734         * modules/absolute-header: New module.
69735         * modules/fcntl (Depends-on): Depend on it.
69736         * modules/inttypes (Depends-on): Likewise.
69737         * modules/stdint (Depends-on): Likewise.
69738         * modules/sys_stat (Depends-on): Likewise.
69739         * modules/wctype (Depends-on): Likewise.
69740         * MODULES.html.sh (Support for building libraries and
69741         executables): Document it.
69742
69743 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
69744
69745         * gnulib-tool (SED): Remove, undoing previous change.
69746         The problem was that it broke coreutils on Solaris, because
69747         "sed --posix" leaked into a makefile.
69748         (sed): New alias, if 'alias' and GNU sed.
69749
69750 2006-12-24  Jim Meyering  <jim@meyering.net>
69751
69752         Work around an fchownat bug in glibc-2.4:
69753         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
69754         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
69755         in spite of the -P option.
69756         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
69757         New macros.
69758         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
69759         * modules/openat (Files): Add lib/fchownat.c.
69760         * lib/openat.c (fchownat): Don't define here.  Move to...
69761         * lib/fchownat.c: ...this new file.
69762
69763 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69764
69765         Fix bug reported by Bruno Haible in
69766         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
69767         where quotearg.c didn't compile on Mac OS X 10.2 because it
69768         lacks <wchar.h> and wint_t.
69769         * lib/wctype_.h (__wctype_wint_t): New type.
69770         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
69771         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
69772         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
69773         Arg is now of type __wctype_wint_t, not wint_t.
69774         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
69775         substitute HAVE_WINT_T.
69776         * modules/wctype (Files): Add m4/wint_t.m4.
69777         (wctype.h): Substitute HAVE_WINT_T.
69778
69779 2006-12-23  Bruno Haible  <bruno@clisp.org>
69780
69781         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
69782
69783 2006-12-23  Bruno Haible  <bruno@clisp.org>
69784
69785         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
69786         S_ISLNK.
69787         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
69788         mingw.
69789
69790 2006-12-22  Bruno Haible  <bruno@clisp.org>
69791
69792         * lib/copy-file.c: Include acl.h.
69793         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
69794         Close the file descriptors only after being done with copy_acl.
69795         * modules/copy-file (Depends-on): Add acl.
69796
69797 2006-12-22  Bruno Haible  <bruno@clisp.org>
69798
69799         * gnulib-tool (SED): New variable.
69800         Use $SED instead of sed everywhere.
69801
69802 2006-12-22  Bruno Haible  <bruno@clisp.org>
69803
69804         * modules/no-c++: New file.
69805         * m4/no-c++.m4: New file.
69806         * MODULES.html.sh (Support for building libraries and executables):
69807         Add no-c++.
69808
69809 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
69810
69811         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69812         Include <limits.h>, and use its INT_MAX to rewrite the
69813         j loop so that it does not overflow 'int'.  Problem reported by
69814         Ralf Wildenhues in
69815         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
69816         Play it safe by shifting left by 1 rather than multiplying by 2,
69817         as GCC is less likely to optimize this away when the value
69818         is signed (when it assumes overflow leads to undefined behavior).
69819         Also, don't assume time_t uses two's complement.
69820
69821 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
69822
69823         * MODULES.html.sh: New module wctype.
69824         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
69825         * lib/fnmatch.c: Don't bother to include <wchar.h> before
69826         <wctype.h>, since the new wctype module should fix this.
69827         * lib/quotearg.c: Include <wctype.h> unconditionally, since
69828         the wctype module should arrange for it.
69829         * lib/regex_internal.h: Likewise.
69830         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
69831         since the wctype module should handle this now.
69832         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
69833         * modules/fnmatch (Depends-on): Add wctype.
69834         * modules/quotearg (Depends-on): Likewise.
69835         * modules/regex (Depends-on): Likewise.
69836
69837 2006-12-19  Bruno Haible  <bruno@clisp.org>
69838
69839         * lib/strdup.h [C++]: Wrap definitions in extern "C".
69840         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
69841
69842 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69843
69844         * modules/savewd (Depends-on): Fix dependency on fcntl.
69845
69846 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
69847
69848         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
69849         conforms to C99, rather than relying on the user's environment
69850         setting of STDINT_H.
69851
69852 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
69853         and Eric Blake  <ebb9@byu.net>
69854
69855         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
69856         This is more consistent with the other defines here.
69857         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
69858         Port to z/OS.  Problem reported by Paul Gilmartin.
69859         Change local vars to use gl_ prefix rather than ac_.
69860         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
69861         with other defines.
69862         * modules/double-slash-root: New module.
69863         * modules/dirname (Files): Remove m4/double-slash-root.m4.
69864         (Depends-on): Add double-slash-root.
69865         * MODULES.html.sh (File system functions): Mention new module.
69866
69867 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
69868
69869         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
69870         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
69871         This is for the benefit of gzip, which doesn't do i18n.
69872
69873 2006-12-12  Jim Meyering  <jim@meyering.net>
69874
69875         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
69876         Reported by Andreas Schwab <schwab@suse.de>.
69877
69878 2006-12-12  Bruno Haible  <bruno@clisp.org>
69879
69880         Merge these changes.
69881         2006-09-05  Bruno Haible  <bruno@clisp.org>
69882         * lib/iconvme.c (iconv_string): No need to save and restore errno when
69883         iconv_alloc succeeded.
69884         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
69885         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
69886         test for " && dest " at the end - dest is always != NULL there. Call
69887         iconv with 4xNULL arguments initially, to reset the state. Call iconv
69888         with 2xNULL arguments, also to flush the state storage. Handle the
69889         IRIX iconv behaviour. Realloc the final result, to throw away unused
69890         memory.
69891
69892 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
69893
69894         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
69895         and fchmodat unconditionally, since glibc 2.4 has them.
69896         Problem reported by Arkadiusz Miskiewicz.
69897
69898 2006-12-10  Bruno Haible  <bruno@clisp.org>
69899
69900         * gnulib-tool (func_import): Show the include files only for those
69901         modules that are copied and specified.
69902         Reported by Karl Berry.
69903
69904 2006-12-08  Jim Meyering  <jim@meyering.net>
69905
69906         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
69907         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
69908
69909         * build-aux/announce-gen: Add two new options, both optional:
69910         --bootstrap-tools=TOOL_LIST
69911               a comma-separated list of tools, e.g.,
69912               autoconf,automake,bison,gnulib
69913         --gnulib-snapshot-date=DATE
69914               if gnulib is in the bootstrap tool list,
69915               then report this as the snapshot date.
69916               If not specified, use the current date/time.
69917               If you specify a date here, be sure it's UTC.
69918
69919 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69920
69921         * tests/test-argp-2.sh: Fix test to match actual output.
69922         (func_compare): Fix sed script to be portable.
69923
69924 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
69925
69926         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
69927         workaround for this case.  It is not autoconfigured now; offhand
69928         it's hard to see how to autoconfigure it.
69929
69930 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
69931
69932         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
69933         a directory that is about to be chowned.  Such a directory's
69934         initial file permissions should permit the owner only and this
69935         should not be changed until after the chown, since the group and
69936         other bits would be incorrect if they granted permission before
69937         the chown.
69938
69939         Fix porting problem for iswctype reported by Georg Schwarz in:
69940         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
69941         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
69942         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
69943         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
69944         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69945
69946 2006-12-03  Jim Meyering  <jim@meyering.net>
69947
69948         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
69949         p->fts_statp may not yet be defined.
69950         (fts_read): Instead, set it in the caller, once p->fts_statp is
69951         sure to be defined, and corresponds to a top-level directory.
69952         This bug made du -x fail.  Here's the coreutils test case:
69953         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
69954         Reported by Mike Frysinger.
69955
69956 2006-12-01  Jim Meyering  <jim@meyering.net>
69957
69958         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
69959         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
69960         Reported by Simon Josefsson.
69961
69962 2006-11-30  Jim Meyering  <jim@meyering.net>
69963
69964         * m4/warning.m4: Use the all-permissive copyright notice
69965         recommended by RMS (rather than LGPL).
69966         * m4/vararrays.m4: Likewise.
69967         * m4/flexmember.m4: Likewise.
69968
69969 2006-11-29  Bruno Haible  <bruno@clisp.org>
69970
69971         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69972         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
69973         using +=.
69974         Reported by Simon Josefsson <simon@josefsson.org>.
69975
69976 2006-11-28  James Youngman <jay@gnu.org>
69977
69978         * README: Advise users that they might find the bug-gnulib@gnu.org
69979         and autotools-announce@gnu.org mailing lists useful.
69980
69981 2006-11-28  Bruno Haible  <bruno@clisp.org>
69982
69983         * m4/ptrdiff_max.m4: Remove file.
69984
69985 2006-11-21  Bruno Haible  <bruno@clisp.org>
69986
69987         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
69988         _AC_COMPUTE_INT.
69989         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69990         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
69991         _AC_COMPUTE_INT.
69992         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69993         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
69994         _AC_COMPUTE_INT.
69995         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69996
69997 2006-11-28  Jim Meyering  <jim@meyering.net>
69998
69999         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70000         warning from "gcc -Wshadow" about shadowing the builtin.
70001
70002 2006-11-27  Bruno Haible  <bruno@clisp.org>
70003
70004         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70005         _AC_COMPUTE_INT.
70006         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70007
70008 2006-11-27  Bruno Haible  <bruno@clisp.org>
70009             Paul Eggert  <eggert@cs.ucla.edu>
70010
70011         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
70012
70013 2006-11-26  Bruno Haible  <bruno@clisp.org>
70014
70015         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70016         noinst_LTLIBRARIES.
70017
70018 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70019             Bruno Haible  <bruno@clisp.org>
70020
70021         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
70022         if compiling with "gcc -ansi".
70023
70024 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70025
70026         Fix some incompatibilities with gcc -ansi -pedantic.
70027         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
70028         if compiling pedantically with GCC, unless it's C99 or later.
70029         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
70030         it mishandles gcc -ansi -pedantic as well.
70031         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
70032         if gcc -pedantic.
70033         * lib/regexec.c (check_node_accept_bytes): Don't use auto
70034         initializers for struct if -pedantic, unless it's C99 or later.
70035
70036 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
70037
70038         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
70039         Don't close an fd more than once. Identical atimes indicate
70040         success, not failure.
70041
70042 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
70043
70044         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
70045
70046 2006-11-23  Jim Meyering  <jim@meyering.net>
70047
70048         * build-aux/announce-gen: New file.  From coreutils.
70049
70050 2006-11-22  Jim Meyering  <jim@meyering.net>
70051
70052         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
70053         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
70054         (fts_read): Use a temporary to narrow the overused st_size member
70055         before using it in a switch statement.  Reported by Matthew Woehlke.
70056
70057         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
70058         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70059
70060 2006-11-20  Bruno Haible  <bruno@clisp.org>
70061
70062         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
70063         changequote instead of pairs of brackets.
70064         Reported by Andreas Schwab <schwab@suse.de>.
70065
70066 2006-11-21  Jim Meyering  <jim@meyering.net>
70067
70068         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
70069         so as to remain compatible with older compilers.
70070         Patch from Michael Deutschmann.
70071
70072 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70073
70074         * MODULES.html.sh (File system functions): Add openat.
70075
70076         * lib/openat.h (rpl_fstatat): New macro, if
70077         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
70078         (fstatat): Define to rpl_fstatat under the same conditions,
70079         unless COMPILING_FSTATAT.
70080         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
70081         seems to have the bug.
70082         * lib/fstatat.c: New file.
70083         * modules/openat (Files): Add it.
70084
70085 2006-11-20  Bruno Haible  <bruno@clisp.org>
70086
70087         * Makefile: New file.
70088
70089 2006-11-20  Jim Meyering  <jim@meyering.net>
70090
70091         The beginnings of syntax-related checks for gnulib.
70092         * lib/Makefile: New file.
70093         * lib/t-idcache: New script.  Ensure that the two halves of
70094         idcache.c stay in sync.
70095
70096         * lib/idcache.c: Adjust comments in user- and group- portions to
70097         be more accurate, and to be consistent with one another.
70098
70099 2006-11-20  Jim Meyering  <jim@meyering.net>
70100
70101         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
70102         continue using the flexible array member (thus, this module performs
70103         half as many malloc calls), with the addition that...
70104         (getgroup, getuser): Consistently record a non-match via an empty
70105         "name" string, and map an empty string match to a NULL return value.
70106         * modules/idcache (Depends-on): Re-add flexmember.
70107
70108         * lib/idcache.c (getuser): Remove all uses of the register keyword.
70109         (getuidbyname, getgroup, getgidbyname): Likewise.
70110
70111         Use cleaner syntax: NULL rather than 0.
70112         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
70113
70114 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70115
70116         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
70117         It mishandled the case where the group was missing.
70118         Problem reported by Greg Schafer.
70119         * modules/idcache: Likewise.
70120
70121 2006-11-18  Jim Meyering  <jim@meyering.net>
70122
70123         * check-module (%exempt_header): Add exception for some
70124         conditionally-included headers.
70125
70126         * modules/i-ring (Depends-on): Add verify.
70127         (License): Change to LGPL.
70128
70129 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70130
70131         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
70132         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
70133         and inttostr.h.  Use snprintf rather than uinttostr, so that
70134         LGPLed code doesn't depend on GPLed.
70135
70136 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70137
70138         * modules/inline (License): Change from GPL to LGPL.
70139
70140 2006-11-17  Jim Meyering  <jim@meyering.net>
70141
70142         * modules/d-type (License): Switch to LGPL.
70143
70144 2006-11-15  Bruno Haible  <bruno@clisp.org>
70145
70146         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
70147
70148 2006-11-15  Eric Blake  <ebb9@byu.net>
70149
70150         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
70151         the module dependency.
70152
70153 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70154             Bruno Haible  <bruno@clisp.org>
70155
70156         * gnulib-tool (func_create_testdir): Add license consistency check.
70157
70158 2006-11-15  Eric Blake  <ebb9@byu.net>
70159
70160         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
70161         random "(cached)" in configure output.
70162
70163 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70164
70165         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
70166         test for conforming inttypes.h is both announced and cached.
70167
70168         * MODULES.html.sh (seen_modules, seen_files): New variables.
70169         (func_module): Rewrite to use a few less gnulib-tool and sed
70170         invocations.  Avoid a couple of quadratic algorithms for ...
70171         (missed_modules, missed_files): ... these, with ...
70172         (func_append, func_tmpdir): ... these new functions, from
70173         gnulib-tool.  Analogously, install traps for cleanup.
70174
70175         * tests/test-gc.c (main): Remove unused variables.
70176         * tests/test-read-file.c: Include stdlib.h, for 'free'.
70177
70178 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
70179
70180         * modules/inttostr (License): Change to LGPL.
70181
70182 2006-11-14  Eric Blake  <ebb9@byu.net>
70183
70184         * modules/tempname (License): Change to LGPL.
70185
70186 2006-11-14  Eric Blake  <ebb9@byu.net>
70187
70188         * doc/functions.texi (Function Portability): *printf functions on
70189         Cygwin now understand all POSIX size specifiers.
70190
70191 2006-11-14  Bruno Haible  <bruno@clisp.org>
70192
70193         * modules/c-ctype (License): Change to LGPL.
70194
70195 2006-11-12  Bruno Haible  <bruno@clisp.org>
70196
70197         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
70198         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
70199         for GNOME libraries, for which the include files are installed in
70200         subdirectories of $prefix/include.
70201
70202 2006-11-12  Bruno Haible  <bruno@clisp.org>
70203
70204         * m4/lib-link.m4: Require at least autoconf-2.54.
70205         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
70206         name to underscores for the --with option.
70207
70208 2006-11-13  Bruno Haible  <bruno@clisp.org>
70209
70210         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
70211         the tests directory.
70212         Reported by Ralf Wildenhues.
70213
70214 2006-11-13  Bruno Haible  <bruno@clisp.org>
70215
70216         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
70217         (func_emit_initmacro_end): Undo the override here.
70218         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
70219         Works around the famous automake error in coreutils.
70220
70221 2006-11-13  Eric Blake  <ebb9@byu.net>
70222
70223         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
70224         element, not its node.
70225
70226 2006-11-12  Bruno Haible  <bruno@clisp.org>
70227
70228         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
70229         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
70230
70231 2006-11-12  Bruno Haible  <bruno@clisp.org>
70232
70233         * gnulib-tool: New option --local-symlink.
70234         (func_usage): Document it.
70235         (lsymbolic): New variable.
70236         (func_import, func_create_testdir): If --symlink was not specified,
70237         test whether --local-symlink was specified and the file comes from
70238         the local_gnulib_dir.
70239
70240 2006-11-12  Bruno Haible  <bruno@clisp.org>
70241
70242         * gnulib-tool (func_ln): New function.
70243         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
70244
70245 2006-11-12  Bruno Haible  <bruno@clisp.org>
70246
70247         Finish support for source files in subdirectories.
70248         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
70249         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
70250         AUTOMAKE_OPTIONS.
70251         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
70252
70253 2006-11-12  Bruno Haible  <bruno@clisp.org>
70254
70255         * gnulib-tool (func_get_automake_snippet): Synthesize also an
70256         EXTRA_lib_SOURCES augmentation.
70257         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
70258
70259 2006-11-12  Jim Meyering  <jim@meyering.net>
70260
70261         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
70262         file descriptors.  This also averts a failure on systems with
70263         native openat support when a traversed directory lacks "x" access.
70264         * lib/fts_.h: Include "i-ring.h"
70265         (struct FTS) [fts_fd_ring]: New member.
70266         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
70267         (FCHDIR): Add parentheses.
70268         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
70269         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
70270         When descending, rather than simply closing the previous
70271         fts_cwd_fd value, push that file descriptor onto the ring.
70272         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
70273         (fts_open): Initialize the new fd_ring member.
70274         (fts_close): Clear the ring.
70275         (fts_safe_changedir): When possible, use our new fd_ring to skip
70276         the diropen and fstat and dev/ino comparison that would normally
70277         accompany a virtual `chdir ("..")'.
70278
70279         * modules/fts (Depends-on): Add i-ring.
70280         * modules/i-ring: New module.
70281         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
70282         * m4/i-ring.m4: New file.
70283
70284 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70285
70286         * gnulib-tool (func_create_testdir): Fix replacement of
70287         `build-aux' in configure.ac.  Run autotools in gltests
70288         subdirectory.
70289         (func_create_testdir, func_create_megatestdir, test): There is
70290         no need for '--force' in most autotool invocations in a new
70291         tree.  Actually fail the whole test if any of the tools, or the
70292         configure or make stages fail.
70293
70294         Sync from Automake.
70295         * build-aux/gnupload: Revert last change.  Add pointer to upload
70296         instructions of the GNU Maintenance Instructions.
70297         Suggestion by Karl Berry.
70298
70299 2006-11-10  Jim Meyering  <jim@meyering.net>
70300
70301         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
70302
70303 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70304
70305         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
70306         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
70307         (bind_textdomain_codeset) [! ENABLE_NLS]:
70308         Evaluate all the arguments.  That way, callers get compatible behavior
70309         if the arguments have side effects.  Also, it avoids some GCC
70310         diagnostics in some cases; Joel E. Denny reported problems when Bison
70311         was configured with --enable-gcc-warnigs.
70312
70313 2006-11-10  Jim Meyering  <jim@meyering.net>
70314
70315         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
70316         relevant options in CFLAGS (like -O, -fno-inline) are taken into
70317         account.
70318
70319 2006-11-10  Jim Meyering  <jim@meyering.net>
70320
70321         * modules/inline: New file/module.
70322         * modules/xalloc (Files): Remove m4/inline.m4.
70323         (Depends-on): Add inline, instead.
70324         * modules/oset: Likewise.
70325         * modules/list: Likewise.
70326
70327 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70328
70329         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
70330         Problem reported by Matthew Woehlke.
70331
70332 2006-11-09  Bruno Haible  <bruno@clisp.org>
70333
70334         * lib/tempname.c (gen_tempname): Remove variant that invokes
70335         __gen_tempname.
70336         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
70337         __gen_tempname.
70338
70339 2006-11-08  Bruno Haible  <bruno@clisp.org>
70340
70341         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
70342         to 'yes' instead of 'cross-compiling'.
70343
70344 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
70345
70346         * lib/quotearg.h (quotearg_free): New decl.
70347         * lib/quotearg.c (quotearg_free): New function.
70348         (slot0, nslots, slotvec0, slotvec):
70349         Now file-scope so that quotearg_free can get at them.
70350
70351 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70352
70353         Sync from Automake.
70354         * build-aux/gnupload: Add missing 'gnu' to example URL.
70355         Report by Karl Berry.
70356
70357 2006-11-08  Bruno Haible  <bruno@clisp.org>
70358
70359         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
70360         Suggested by Paul Eggert.
70361
70362 2006-11-08  Jim Meyering  <jim@meyering.net>
70363
70364         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
70365         It's already included if !_LIBC.
70366         (fts_safe_changedir): Add a comment.
70367
70368 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
70369
70370         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
70371         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
70372         Matthew Woehlke.
70373
70374         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
70375         definitions up, to avoid colliding with change below.
70376         (static_inline) [HAVE_INLINE]: New macro.
70377         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
70378         Provide extern decls when !HAVE_INLINE.  Do not define unless
70379         static_inline is defined, either by us or by xmalloc.c.  Use
70380         static_inline rather than static inline.
70381         (XCALLOC): Optimize sizeof(T) = 1 case.
70382         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
70383
70384 2006-11-07  Bruno Haible  <bruno@clisp.org>
70385
70386         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
70387         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
70388         AC_C_INLINE.
70389         * modules/xalloc (Files): Add m4/inline.m4.
70390
70391 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70392
70393         * README: Fix typo.
70394         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
70395         (Miscellanous Notes): ...from this.
70396
70397 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
70398
70399         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
70400         Mention that offsetof should be used instead of sizeof.
70401         From Bruno Haible.
70402
70403 2006-11-07  Bruno Haible  <bruno@clisp.org>
70404
70405         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
70406
70407 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
70408
70409         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
70410         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
70411         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
70412         (gl_tree_add_before, gl_tree_add_after):
70413         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
70414         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
70415         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70416         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
70417         (gl_linked_add_after, gl_linked_add_at): Likewise.
70418         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
70419         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
70420         (gl_tree_add_before, gl_tree_add_after): Likewise.
70421         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
70422         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
70423         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
70424
70425 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70426
70427         * lib/gl_oset.h: Use C comment style, not C++ comment style.
70428
70429 2006-11-06  Bruno Haible  <bruno@clisp.org>
70430
70431         * m4/inline.m4: New file.
70432         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
70433         * modules/list (Files): Add m4/inline.m4.
70434         * modules/oset (Files): Likewise.
70435
70436 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
70437
70438         * lib/idcache.c: Include <stddef.h>, for offsetof.
70439         (struct userid.name): Change from char * to a flexible array member.
70440         All uses changed.
70441         * modules/idcache (Depends-on): Add flexmember.
70442
70443         * MODULES.html.sh (Core language properties): New module flexmember.
70444         * modules/flexmember, m4/flexmember.m4: New files.
70445
70446         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
70447         inline functions that are identical with the old xnmalloc_inline,
70448         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
70449         that we can avoid some unnecessary integer multiplications and
70450         divisions in the common case where the element size is known at
70451         compile time.
70452         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
70453         needed.
70454         (xnboundedmalloc): Remove.
70455         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
70456         arguments, for consistency with rest of this header.
70457         (xcharalloc): Rewrite using XNMALLOC.
70458         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
70459         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
70460         versions have been moved to lib/xalloc.h and renamed to be the
70461         non-*_inline versions.
70462         (xmalloc, xrealloc): Implement without reference to the xnmalloc
70463         and xnrealloc functions, since those functions are now inline and
70464         now call us.
70465         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
70466         renaming described above.
70467         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
70468         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
70469         captures the dependency in AC_C_INLINE.
70470
70471         New module canonicalize-lgpl, proposed by Charles Wilson in
70472         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
70473         with a few small changes afterwards.
70474         * MODULES.html.sh (File system functions): New module
70475         canonicalize-lgpl.
70476         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
70477         and canonicalize_file_name.
70478         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
70479         * modules/canonicalize-lgpl: New files.
70480
70481 2006-11-05  Bruno Haible  <bruno@clisp.org>
70482
70483         * gnulib-tool (func_import, func_create_testdir): Create directories
70484         also for files in subdirectories of lib/.
70485
70486 2006-11-05  Bruno Haible  <bruno@clisp.org>
70487
70488         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
70489         ANSI C compliant.
70490
70491 2006-11-03  Bruno Haible  <bruno@clisp.org>
70492
70493         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
70494         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
70495         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
70496         (xnboundedmalloc): New inline function.
70497         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
70498         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
70499         xmalloc.
70500         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
70501         xmalloc.
70502         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
70503         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
70504         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
70505         xmalloc.
70506         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
70507         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
70508         xmalloc.
70509         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
70510         gl_tree_add_after): Use XMALLOC instead of xmalloc.
70511         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
70512         xmalloc.
70513         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
70514         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
70515         gl_tree_add_after): Use XMALLOC instead of xmalloc.
70516         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
70517         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
70518         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
70519         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
70520
70521 2006-11-03  Bruno Haible  <bruno@clisp.org>
70522
70523         * lib/c-ctype.h [C++]: Define functions without name mangling.
70524         * lib/fwriteerror.h [C++]: Likewise.
70525         * lib/gcd.h [C++]: Likewise.
70526         * lib/linebreak.h [C++]: Likewise.
70527
70528 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
70529
70530         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
70531         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
70532         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
70533         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70534         Check for functions and headers just once.
70535         Check for declaration of canonicalize_file_name.
70536         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
70537
70538 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70539
70540         * gnulib-tool (func_import): Fix typo in actioncmd.
70541
70542 2006-11-02  Bruno Haible  <bruno@clisp.org>
70543
70544         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
70545         newline sequence in the Makefile.am snippet as a space, like "make"
70546         does.
70547         Reported by Roger Persson <perrog@gmail.com>.
70548
70549 2006-11-01  Bruno Haible  <bruno@clisp.org>
70550
70551         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
70552         already declared in <string.h>.
70553         * lib/strcase.h (strncasecmp): Don't declare it if yes.
70554
70555 2006-11-01  Bruno Haible  <bruno@clisp.org>
70556
70557         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
70558         * lib/strcase.h: Include <string.h>.
70559         (strcasecmp): Define to rpl_strcasecmp here.
70560
70561 2006-11-01  Bruno Haible  <bruno@clisp.org>
70562
70563         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
70564
70565 2006-11-01  Eric Blake  <ebb9@byu.net>
70566
70567         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
70568
70569         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
70570
70571 2006-10-29  Bruno Haible  <bruno@clisp.org>
70572
70573         Make it compile in C++ mode.
70574         * lib/full-write.c (full_rw): Add a cast.
70575
70576 2006-11-01  Bruno Haible  <bruno@clisp.org>
70577
70578         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
70579         be POSIX compliant.
70580         Reported by Roger Persson <perrog@gmail.com>.
70581
70582 2006-11-01  Eric Blake  <ebb9@byu.net>
70583
70584         * lib/getopt_.h: Fix comments.
70585
70586 2006-10-31  Eric Blake  <ebb9@byu.net>
70587
70588         * modules/tmpdir (Depends-on): Add sys_stat.
70589         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
70590         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
70591         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
70592         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
70593         tempname.
70594
70595 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
70596
70597         Avoid some C++ diagnostics reported by Bruno Haible.
70598         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
70599         xmalloc.
70600         (quotearg_alloc): Use xcharalloc rather than xmalloc.
70601         (struct slotvec): Move to top level.
70602         (quotearg_n_options): Rewrite to avoid xmalloc.
70603         * lib/xalloc.h (xcharalloc): New function.
70604         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
70605         [defined __cplusplus]: Add function template that provides result
70606         type propagation.  This part of the change is from Bruno Haible.
70607
70608 2006-10-29  Bruno Haible  <bruno@clisp.org>
70609
70610         Make it compile in C++ mode.
70611         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
70612         * lib/strnlen1.c (strnlen1): Cast memchr result.
70613         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
70614         * lib/clean-temp.c (string_equals, string_hash): Add casts.
70615         (create_temp_dir): Rename local variable 'template'.
70616         (compile_csharp_using_sscli): Add cast.
70617         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
70618         * lib/findprog.c (find_in_path): Likewise.
70619         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
70620         * lib/wait-process.c (register_slave_subprocess): Likewise.
70621
70622 2006-10-22  Bruno Haible  <bruno@clisp.org>
70623
70624         * modules/tsearch: New file.
70625         * lib/tsearch.h: New file.
70626         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
70627         * m4/tsearch.m4: New file.
70628         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
70629
70630 2006-10-29  Eric Blake  <ebb9@byu.net>
70631
70632         * lib/arcfour.c: Assume config.h.
70633         * lib/arctwo.c: Likewise.
70634         * lib/base64.c: Likewise.
70635         * lib/check-version.c: Likewise.
70636         * lib/crc.c: Likewise.
70637         * lib/des.c: Likewise.
70638         * lib/gc-gnulib.c: Likewise.
70639         * lib/gc-libgcrypt.c: Likewise.
70640         * lib/gc-pbkdf2-sha1.c: Likewise.
70641         * lib/getaddrinfo.c: Likewise.
70642         * lib/getdelim.c: Likewise.
70643         * lib/getline.c: Likewise.
70644         * lib/hmac-md5.c: Likewise.
70645         * lib/hmac-sha1.c: Likewise.
70646         * lib/iconvme.c: Likewise.
70647         * lib/md2.c: Likewise.
70648         * lib/md4.c: Likewise.
70649         * lib/memxor.c: Likewise.
70650         * lib/read-file.c: Likewise.
70651         * lib/readline.c: Likewise.
70652         * lib/rijndael-alg-fst.c: Likewise.
70653         * lib/rijndael-api-fst.c: Likewise.
70654         * lib/xgetdomainname.c: Likewise.
70655
70656 2006-10-28  Eric Blake  <ebb9@byu.net>
70657
70658         * lib/xstrndup.c: Assume config.h.
70659
70660 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70661
70662         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
70663         stat-macros.h is now for our own macros, whereas stat_h is for
70664         macros in the <sys/stat.h> name space.
70665         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
70666         (STAT_MACROS_H): Remove.
70667         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
70668         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
70669         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
70670         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
70671         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
70672         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
70673         Move these macros to ...
70674         * lib/stat_.h: here.  Don't include stat-macros.h.
70675         * lib/canonicalize.c: Don't include stat-macros.h.
70676         * lib/chown.c: Likewise.
70677         * lib/euidaccess.c: Likewise.
70678         * lib/file-type.c: Likewise.
70679         * lib/filemode.c: Likewise.
70680         * lib/glob.c: Likewise.
70681         * lib/isapipe.c: Likewise.
70682         * lib/lchown.c: Likewise.
70683         * lib/lstat.c: Likewise.
70684         * lib/mkdir-p.c: Likewise.
70685         * lib/rmdir.c: Likewise.
70686         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
70687         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
70688         unless mkdir isn't declared, to speed up 'configure'.
70689         Always create sys/stat.h, since it's unlikely any real sys/stat.h
70690         would define all the S_* symbols.
70691         * modules/canonicalize (Depends-on):
70692         Depend on sys_stat, not stat-macros.
70693         * modules/chown: Likewise.
70694         * modules/euidaccess: Likewise.
70695         * modules/filemode: Likewise.
70696         * modules/file-type: Likewise.
70697         * modules/glob: Likewise.
70698         * modules/isapipe: Likewise.
70699         * modules/lchown: Likewise.
70700         * modules/lstat: Likewise.
70701         * modules/mkancesdirs: Likewise.
70702         * modules/rmdir: Likewise.
70703         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
70704         * modules/modechange: Likewise.
70705         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
70706         (configure.ac): Remove gl_STAT_MACROS.
70707         * modules/sys_stat (Depends-on): Remove stat-macros.
70708
70709 2006-10-27  Bruno Haible  <bruno@clisp.org>
70710
70711         * m4/signed.m4: Remove file.
70712         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
70713         invocation.
70714         * modules/vasnprintf (Files): Remove m4/signed.m4.
70715
70716 2006-10-27  Bruno Haible  <bruno@clisp.org>
70717
70718         Update to GNU gettext 0.16.
70719         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
70720         m4/inttypes-h.m4, m4/signed.m4.
70721         * m4/gettext.m4: Update to GNU gettext 0.16.
70722         * m4/intl.m4: New file, from GNU gettext.
70723         * m4/intldir.m4: New file, from GNU gettext.
70724         * config/srclist.txt: Update
70725
70726 2006-10-27  Eric Blake  <ebb9@byu.net>
70727
70728         * MODULES.html.sh: Document tempname.
70729         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
70730         dependencies.
70731         (Files): Move lib/tempname.c...
70732         * modules/tempname: ...to this new module.
70733         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
70734         (gl_PREREQ_TEMPNAME): Move...
70735         * m4/tempname.m4: ...to this new file.
70736         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
70737         * modules/sys_stat (Depends-on): Add stat-macros.
70738         * lib/stat_.h (includes): Pick up stat macros.
70739         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
70740         if stat macros are broken.
70741         * lib/tempname.c (includes): No need to include "stat-macros.h".
70742         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
70743         (direxists, __path_search) [!_LIBC]: Don't compile these in
70744         gnulib; the tmpdir module covers that.
70745         * lib/tempname.h: New file.
70746
70747 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
70748
70749         * COPYING: Explain how gnulib-tool converts licence headers.
70750         Almost all wording by Eric Blake.
70751
70752 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
70753
70754         * lib/mbchar.h (is_basic_table): Make read-only.
70755         * lib/mbchar.c (is_basic_table): Likewise.
70756         Reported by John Darrington.
70757
70758 2006-10-25  Bruno Haible  <bruno@clisp.org>
70759
70760         * lib/progname.h (set_program_name): Undefine before defining.
70761
70762 2006-10-25  Bruno Haible  <bruno@clisp.org>
70763
70764         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
70765         false for non-gcc C++ compilers.
70766         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
70767
70768 2006-10-24  Bruno Haible  <bruno@clisp.org>
70769
70770         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
70771         iconv implementations like Irix iconv.
70772
70773 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70774
70775         * modules/vararrays: New file.
70776         * m4/vararrays.m4: New file, taken from diffutils.
70777         * MODULES.html.sh: New module vararrays.
70778
70779 2006-10-24  Karl Berry  <karl@gnu.org>
70780
70781         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
70782         Don't call GNU Unix.
70783
70784 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70785
70786         * users.txt: Add Libtool.
70787
70788         Sync from Libtool:
70789
70790         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70791
70792         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
70793         to gnulib's policy of including config.h unconditionally.
70794
70795 2006-10-24  Bruno Haible  <bruno@clisp.org>
70796
70797         * modules/wcwidth (Files): Add m4/wint_t.m4.
70798         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
70799         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
70800
70801 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70802
70803         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
70804         to pacify GCC with some -W flags enabled.  Problem reported by
70805         Bruno Haible.
70806
70807 2006-10-24  Jim Meyering  <jim@meyering.net>
70808
70809         * MODULES.html.sh: Remove uinttostr.  It's not a module.
70810         Reported by Karl Berry.
70811
70812 2006-10-23  Bruno Haible  <bruno@clisp.org>
70813
70814         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
70815
70816 2006-10-24  Bruno Haible  <bruno@clisp.org>
70817
70818         * lib/gl_list.h: Use C comment style, not C++ comment style.
70819
70820 2006-10-23  Eric Blake  <ebb9@byu.net>
70821
70822         * lib/getaddrinfo.c (includes): Add missing include.
70823
70824 2006-10-23  Bruno Haible  <bruno@clisp.org>
70825             Paul Eggert  <eggert@cs.ucla.edu>
70826
70827         Ability to rename obstack_free.
70828         * lib/obstack.h (__obstack_free): New macro. Declare instead of
70829         obstack_free.
70830         (obstack_free): Invoke the __obstack_free macro.
70831         * lib/obstack.c (obstack_free): Use __obstack_free macro.
70832
70833 2006-10-23  Bruno Haible  <bruno@clisp.org>
70834             Paul Eggert  <eggert@cs.ucla.edu>
70835
70836         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
70837         __argc, __argv from the declaration. (They are defined as macros on
70838         mingw.)
70839
70840 2006-10-22  Bruno Haible  <bruno@clisp.org>
70841
70842         * doc/gnulib-intro.texi: New file.
70843         * doc/gnulib.texi: Include it.
70844
70845 2006-10-21  Bruno Haible  <bruno@clisp.org>
70846
70847         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
70848         "Introduction", "Miscellanous Notes", "Particular Modules".
70849
70850 2006-10-21  Bruno Haible  <bruno@clisp.org>
70851
70852         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70853         Change mostlyclean-local rule to avoid sh syntax error from bash
70854         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
70855
70856 2006-10-23  Jim Meyering  <jim@meyering.net>
70857
70858         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
70859         in place of snprintf.
70860
70861         * modules/inttostr (Files): Add lib/uinttostr.c.
70862         * lib/uinttostr.c (inttostr): New file/function.
70863         * lib/inttostr.h (uinttostr): Declare.
70864         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
70865         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
70866         Add uinttostr.
70867         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
70868
70869 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
70870
70871         * lib/canonicalize.c (ELOOP): Define if not already defined.
70872         Problem reported by Bruno Haible in
70873         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
70874
70875 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
70876
70877         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
70878         Problem reported by Perry Smith and Ville Laurikari.
70879
70880         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
70881         uses.
70882
70883 2006-10-19  Bruno Haible  <bruno@clisp.org>
70884
70885         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
70886         for mingw.
70887
70888 2006-10-19  Bruno Haible  <bruno@clisp.org>
70889
70890         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
70891         Needed for mingw.
70892
70893 2006-10-19  Bruno Haible  <bruno@clisp.org>
70894
70895         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
70896
70897 2006-10-19  Bruno Haible  <bruno@clisp.org>
70898
70899         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
70900         it.
70901
70902 2006-10-19  Bruno Haible  <bruno@clisp.org>
70903
70904         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
70905         invocation.
70906
70907 2006-10-19  Bruno Haible  <bruno@clisp.org>
70908
70909         * gnulib-tool (func_create_testdir): Don't include ftruncate and
70910         mountlist by default.
70911
70912 2006-10-16  Bruno Haible  <bruno@clisp.org>
70913
70914         * lib/c-strstr.c: Include c-strstr.h.
70915
70916 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70917
70918         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
70919         in a slash.
70920
70921 2006-10-18  Bruno Haible  <bruno@clisp.org>
70922
70923         * lib/lock.h [C++]: Wrap definitions in extern "C".
70924
70925 2006-10-18  Bruno Haible  <bruno@clisp.org>
70926
70927         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
70928         gl_LIBOBJS list.
70929
70930 2006-10-18  Bruno Haible  <bruno@clisp.org>
70931
70932         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
70933
70934 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
70935
70936         * lib/xstrtol.h: Include gettext.h.
70937         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
70938         Problem reported by Eric Blake.
70939         * modules/xstrtol (Depends-on): Add gettext-h.
70940
70941 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
70942
70943         * lib/strftime.c (advance): New macro.
70944         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
70945         incomplete type, so you can't add 0 to it.  Problem and patch
70946         reported by Eelco Dolstra for dietlibc.
70947
70948 2006-10-18  Jim Meyering  <jim@meyering.net>
70949
70950         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
70951         type for a local, and rename it: s/up/user_proc/.
70952
70953 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
70954
70955         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
70956         READ_UTMP_USER_PROCESS.
70957         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
70958
70959 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70960
70961         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
70962         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
70963
70964 2006-10-17  Eric Blake  <ebb9@byu.net>
70965
70966         * lib/sigprocmask.c (sigprocmask): Fix typo.
70967
70968         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
70969
70970         * modules/clean-temp (Makefile.am): Don't add to make output...
70971         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
70972         config.h.
70973
70974 2006-10-17  Bruno Haible  <bruno@clisp.org>
70975
70976         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
70977         differently if DEFAULT_TEXT_DOMAIN is set.
70978
70979 2006-10-16  Bruno Haible  <bruno@clisp.org>
70980
70981         * lib/clean-temp.c: Include fwriteerror.h.
70982
70983 2006-10-16  Bruno Haible  <bruno@clisp.org>
70984
70985         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
70986
70987 2006-10-16  Bruno Haible  <bruno@clisp.org>
70988
70989         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
70990         * lib/sigprocmask.h: Include <sys/types.h>.
70991         (sigset_t): Use the system's definition if present.
70992
70993 2006-10-17  Eric Blake  <ebb9@byu.net>
70994
70995         * lib/xvasprintf.c (includes): Assume config.h.
70996         * lib/xasprintf.c (includes): Likewise.
70997
70998 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
70999
71000         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71001         at least as wide as intmax_t.
71002
71003 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71004
71005         (Imported from Automake.)
71006         * build-aux/gnupload: Update to version 1.1 of directive file.
71007
71008 2006-10-16  Eric Blake  <ebb9@byu.net>
71009
71010         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
71011         match Automake 1.10a.
71012
71013 2006-10-14  Bruno Haible  <bruno@clisp.org>
71014
71015         * modules/sigprocmask: New file.
71016         * lib/sigprocmask.h: New file.
71017         * lib/sigprocmask.c: New file.
71018         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
71019         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
71020         request sigprocmask.o.
71021         (gl_PREREQ_SIGPROCMASK): New macro.
71022         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71023         (Depends-on): Add sigprocmask.
71024         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
71025         gt_SIGNALBLOCKING. Test for 'raise' only once.
71026         * lib/fatal-signal.c: Include sigprocmask.h.
71027         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
71028         unblock_fatal_signals): Define always.
71029         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71030         sigprocmask.
71031
71032 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71033
71034         Sync from Automake.
71035         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
71036         which incorrectly sets the mode of an existing destination
71037         directory.  In some cases the unpatched install-sh could do the
71038         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
71039         system.  We hope this is rare in practice, but it's clearly worth
71040         fixing.  Problem reported by Alex Unleashed in
71041         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
71042         Also, don't bother to check for -m bugs unless we're using -m;
71043         suggested by Stepan Kasal.
71044
71045 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71046
71047         Sync from Automake.
71048         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
71049         `-c' flag, so they appear at the same position as in %FASTDEP%
71050         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
71051         which ignores unknown options only after the first non-option.
71052         Bug report against M4 by Nelson H. F. Beebe.
71053
71054 2006-10-13  Jim Meyering  <jim@meyering.net>
71055
71056         Fix a bug in yesterday's change.
71057         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
71058         p->fts_statp->st_dev would be used uninitialized.
71059         Ensures that we always call fts_stat on the very first entry.
71060         Miklos Szeredi reported that find -xdev stopped working.
71061
71062 2006-10-12  Bruno Haible  <bruno@clisp.org>
71063
71064         * gnulib-tool (func_get_automake_snippet): Append an automatically
71065         computed EXTRA_DIST augmentation.
71066         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
71067         * modules/alloca-opt (Makefile.am): Likewise.
71068         * modules/allocsa (Makefile.am): Likewise.
71069         * modules/arcfour (Makefile.am): Likewise.
71070         * modules/arctwo (Makefile.am): Likewise.
71071         * modules/argmatch (Makefile.am): Likewise.
71072         * modules/argz (Makefile.am): Likewise.
71073         * modules/atexit (Makefile.am): Likewise.
71074         * modules/backupfile (Makefile.am): Likewise.
71075         * modules/byteswap (Makefile.am): Likewise.
71076         * modules/c-strtod (Makefile.am): Likewise.
71077         * modules/c-strtold (Makefile.am): Likewise.
71078         * modules/calloc (Makefile.am): Likewise.
71079         * modules/canon-host (Makefile.am): Likewise.
71080         * modules/canonicalize (Makefile.am): Likewise.
71081         * modules/chdir-long (Makefile.am): Likewise.
71082         * modules/chdir-safer (Makefile.am): Likewise.
71083         * modules/check-version (Makefile.am): Likewise.
71084         * modules/chown (Makefile.am): Likewise.
71085         * modules/cloexec (Makefile.am): Likewise.
71086         * modules/close-stream (Makefile.am): Likewise.
71087         * modules/closeout (Makefile.am): Likewise.
71088         * modules/crc (Makefile.am): Likewise.
71089         * modules/csharpexec (Makefile.am): Likewise.
71090         * modules/cycle-check (Makefile.am): Likewise.
71091         * modules/des (Makefile.am): Likewise.
71092         * modules/dev-ino (Makefile.am): Likewise.
71093         * modules/dirfd (Makefile.am): Likewise.
71094         * modules/dirname (Makefile.am): Likewise.
71095         * modules/dup2 (Makefile.am): Likewise.
71096         * modules/eealloc (Makefile.am): Likewise.
71097         * modules/error (Makefile.am): Likewise.
71098         * modules/euidaccess (Makefile.am): Likewise.
71099         * modules/exclude (Makefile.am): Likewise.
71100         * modules/exitfail (Makefile.am): Likewise.
71101         * modules/fcntl-safer (Makefile.am): Likewise.
71102         * modules/fcntl (Makefile.am): Likewise.
71103         * modules/file-type (Makefile.am): Likewise.
71104         * modules/fileblocks (Makefile.am): Likewise.
71105         * modules/filemode (Makefile.am): Likewise.
71106         * modules/filenamecat (Makefile.am): Likewise.
71107         * modules/fnmatch (Makefile.am): Likewise.
71108         * modules/fopen-safer (Makefile.am): Likewise.
71109         * modules/fpending (Makefile.am): Likewise.
71110         * modules/fprintftime (Makefile.am): Likewise.
71111         * modules/free (Makefile.am): Likewise.
71112         * modules/fsusage (Makefile.am): Likewise.
71113         * modules/ftruncate (Makefile.am): Likewise.
71114         * modules/fts (Makefile.am): Likewise.
71115         * modules/gc-arcfour (Makefile.am): Likewise.
71116         * modules/gc-des (Makefile.am): Likewise.
71117         * modules/gc-hmac-md5 (Makefile.am): Likewise.
71118         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
71119         * modules/gc-md4 (Makefile.am): Likewise.
71120         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71121         * modules/gc-sha1 (Makefile.am): Likewise.
71122         * modules/gc (Makefile.am): Likewise.
71123         * modules/getaddrinfo (Makefile.am): Likewise.
71124         * modules/getcwd (Makefile.am): Likewise.
71125         * modules/getdelim (Makefile.am): Likewise.
71126         * modules/getdomainname (Makefile.am): Likewise.
71127         * modules/getgroups (Makefile.am): Likewise.
71128         * modules/gethostname (Makefile.am): Likewise.
71129         * modules/gethrxtime (Makefile.am): Likewise.
71130         * modules/getline (Makefile.am): Likewise.
71131         * modules/getloadavg (Makefile.am): Likewise.
71132         * modules/getlogin_r (Makefile.am): Likewise.
71133         * modules/getndelim2 (Makefile.am): Likewise.
71134         * modules/getopt (Makefile.am): Likewise.
71135         * modules/getpagesize (Makefile.am): Likewise.
71136         * modules/getpass-gnu (Makefile.am): Likewise.
71137         * modules/getpass (Makefile.am): Likewise.
71138         * modules/getsubopt (Makefile.am): Likewise.
71139         * modules/gettime (Makefile.am): Likewise.
71140         * modules/gettimeofday (Makefile.am): Likewise.
71141         * modules/getugroups (Makefile.am): Likewise.
71142         * modules/getusershell (Makefile.am): Likewise.
71143         * modules/glob (Makefile.am): Likewise.
71144         * modules/group-member (Makefile.am): Likewise.
71145         * modules/hard-locale (Makefile.am): Likewise.
71146         * modules/hash (Makefile.am): Likewise.
71147         * modules/hmac-md5 (Makefile.am): Likewise.
71148         * modules/hmac-sha1 (Makefile.am): Likewise.
71149         * modules/human (Makefile.am): Likewise.
71150         * modules/idcache (Makefile.am): Likewise.
71151         * modules/imaxabs (Makefile.am): Likewise.
71152         * modules/imaxdiv (Makefile.am): Likewise.
71153         * modules/inet_ntop (Makefile.am): Likewise.
71154         * modules/inet_pton (Makefile.am): Likewise.
71155         * modules/intprops (Makefile.am): Likewise.
71156         * modules/inttostr (Makefile.am): Likewise.
71157         * modules/inttypes (Makefile.am): Likewise.
71158         * modules/isapipe (Makefile.am): Likewise.
71159         * modules/javaversion (Makefile.am): Likewise.
71160         * modules/lchmod (Makefile.am): Likewise.
71161         * modules/lchown (Makefile.am): Likewise.
71162         * modules/localcharset (Makefile.am): Likewise.
71163         * modules/long-options (Makefile.am): Likewise.
71164         * modules/lstat (Makefile.am): Likewise.
71165         * modules/malloc (Makefile.am): Likewise.
71166         * modules/mathl (Makefile.am): Likewise.
71167         * modules/mbchar (Makefile.am): Likewise.
71168         * modules/md2 (Makefile.am): Likewise.
71169         * modules/md4 (Makefile.am): Likewise.
71170         * modules/md5 (Makefile.am): Likewise.
71171         * modules/memcasecmp (Makefile.am): Likewise.
71172         * modules/memchr (Makefile.am): Likewise.
71173         * modules/memcmp (Makefile.am): Likewise.
71174         * modules/memcoll (Makefile.am): Likewise.
71175         * modules/memcpy (Makefile.am): Likewise.
71176         * modules/memmem (Makefile.am): Likewise.
71177         * modules/memmove (Makefile.am): Likewise.
71178         * modules/mempcpy (Makefile.am): Likewise.
71179         * modules/memrchr (Makefile.am): Likewise.
71180         * modules/memset (Makefile.am): Likewise.
71181         * modules/memxor (Makefile.am): Likewise.
71182         * modules/mkancesdirs (Makefile.am): Likewise.
71183         * modules/mkdir-p (Makefile.am): Likewise.
71184         * modules/mkdir (Makefile.am): Likewise.
71185         * modules/mkdtemp (Makefile.am): Likewise.
71186         * modules/mkstemp (Makefile.am): Likewise.
71187         * modules/mktime (Makefile.am): Likewise.
71188         * modules/modechange (Makefile.am): Likewise.
71189         * modules/mountlist (Makefile.am): Likewise.
71190         * modules/nanosleep (Makefile.am): Likewise.
71191         * modules/obstack (Makefile.am): Likewise.
71192         * modules/openat (Makefile.am): Likewise.
71193         * modules/pagealign_alloc (Makefile.am): Likewise.
71194         * modules/pathmax (Makefile.am): Likewise.
71195         * modules/physmem (Makefile.am): Likewise.
71196         * modules/poll (Makefile.am): Likewise.
71197         * modules/posixtm (Makefile.am): Likewise.
71198         * modules/posixver (Makefile.am): Likewise.
71199         * modules/putenv (Makefile.am): Likewise.
71200         * modules/quote (Makefile.am): Likewise.
71201         * modules/quotearg (Makefile.am): Likewise.
71202         * modules/raise (Makefile.am): Likewise.
71203         * modules/read-file (Makefile.am): Likewise.
71204         * modules/readline (Makefile.am): Likewise.
71205         * modules/readlink (Makefile.am): Likewise.
71206         * modules/readtokens (Makefile.am): Likewise.
71207         * modules/readutmp (Makefile.am): Likewise.
71208         * modules/realloc (Makefile.am): Likewise.
71209         * modules/regex (Makefile.am): Likewise.
71210         * modules/rename-dest-slash (Makefile.am): Likewise.
71211         * modules/rename (Makefile.am): Likewise.
71212         * modules/rijndael (Makefile.am): Likewise.
71213         * modules/rmdir (Makefile.am): Likewise.
71214         * modules/rpmatch (Makefile.am): Likewise.
71215         * modules/safe-read (Makefile.am): Likewise.
71216         * modules/safe-write (Makefile.am): Likewise.
71217         * modules/same-inode (Makefile.am): Likewise.
71218         * modules/same (Makefile.am): Likewise.
71219         * modules/save-cwd (Makefile.am): Likewise.
71220         * modules/savedir (Makefile.am): Likewise.
71221         * modules/setenv (Makefile.am): Likewise.
71222         * modules/settime (Makefile.am): Likewise.
71223         * modules/sha1 (Makefile.am): Likewise.
71224         * modules/sig2str (Makefile.am): Likewise.
71225         * modules/snprintf (Makefile.am): Likewise.
71226         * modules/stat-macros (Makefile.am): Likewise.
71227         * modules/stat-time (Makefile.am): Likewise.
71228         * modules/stdbool (Makefile.am): Likewise.
71229         * modules/stdint (Makefile.am): Likewise.
71230         * modules/stdlib-safer (Makefile.am): Likewise.
71231         * modules/stpcpy (Makefile.am): Likewise.
71232         * modules/stpncpy (Makefile.am): Likewise.
71233         * modules/strcase (Makefile.am): Likewise.
71234         * modules/strcasestr (Makefile.am): Likewise.
71235         * modules/strchrnul (Makefile.am): Likewise.
71236         * modules/strcspn (Makefile.am): Likewise.
71237         * modules/strdup (Makefile.am): Likewise.
71238         * modules/strerror (Makefile.am): Likewise.
71239         * modules/strftime (Makefile.am): Likewise.
71240         * modules/strndup (Makefile.am): Likewise.
71241         * modules/strnlen (Makefile.am): Likewise.
71242         * modules/strpbrk (Makefile.am): Likewise.
71243         * modules/strsep (Makefile.am): Likewise.
71244         * modules/strstr (Makefile.am): Likewise.
71245         * modules/strtod (Makefile.am): Likewise.
71246         * modules/strtoimax (Makefile.am): Likewise.
71247         * modules/strtok_r (Makefile.am): Likewise.
71248         * modules/strtol (Makefile.am): Likewise.
71249         * modules/strtoll (Makefile.am): Likewise.
71250         * modules/strtoul (Makefile.am): Likewise.
71251         * modules/strtoull (Makefile.am): Likewise.
71252         * modules/strtoumax (Makefile.am): Likewise.
71253         * modules/strverscmp (Makefile.am): Likewise.
71254         * modules/sys_socket (Makefile.am): Likewise.
71255         * modules/sys_stat (Makefile.am): Likewise.
71256         * modules/sysexits (Makefile.am): Likewise.
71257         * modules/time_r (Makefile.am): Likewise.
71258         * modules/timegm (Makefile.am): Likewise.
71259         * modules/timespec (Makefile.am): Likewise.
71260         * modules/tmpfile-safer (Makefile.am): Likewise.
71261         * modules/trim (Makefile.am): Likewise.
71262         * modules/unistd-safer (Makefile.am): Likewise.
71263         * modules/unlinkdir (Makefile.am): Likewise.
71264         * modules/unlocked-io (Makefile.am): Likewise.
71265         * modules/userspec (Makefile.am): Likewise.
71266         * modules/utime (Makefile.am): Likewise.
71267         * modules/utimecmp (Makefile.am): Likewise.
71268         * modules/utimens (Makefile.am): Likewise.
71269         * modules/vasnprintf (Makefile.am): Likewise.
71270         * modules/vasprintf (Makefile.am): Likewise.
71271         * modules/vsnprintf (Makefile.am): Likewise.
71272         * modules/xalloc (Makefile.am): Likewise.
71273         * modules/xgetcwd (Makefile.am): Likewise.
71274         * modules/xnanosleep (Makefile.am): Likewise.
71275         * modules/xreadlink (Makefile.am): Likewise.
71276         * modules/xstrtod (Makefile.am): Likewise.
71277         * modules/xstrtol (Makefile.am): Likewise.
71278         * modules/xstrtold (Makefile.am): Likewise.
71279         * modules/yesno (Makefile.am): Likewise.
71280         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
71281
71282 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
71283
71284         * modules/error (Makefile.am): Distribute files through
71285         EXTRA_DIST, not lib_SOURCES.
71286
71287 2006-10-12  Eric Blake  <ebb9@byu.net>
71288
71289         * modules/error (Makefile.am): Distribute files in /lib.
71290         * modules/obstack (Makefile.am): Likewise.
71291
71292 2006-10-12  Bruno Haible  <bruno@clisp.org>
71293
71294         * modules/acl (Makefile.am): Distribute all files in lib/ through
71295         EXTRA_DIST.
71296         * modules/arcfour (Makefile.am): Likewise.
71297         * modules/arctwo (Makefile.am): Likewise.
71298         * modules/argmatch (Makefile.am): Likewise.
71299         * modules/argz (Makefile.am): Likewise.
71300         * modules/atexit (Makefile.am): Likewise.
71301         * modules/backupfile (Makefile.am): Likewise.
71302         * modules/c-strtod (Makefile.am): Likewise.
71303         * modules/c-strtold (Makefile.am): Likewise.
71304         * modules/calloc (Makefile.am): Likewise.
71305         * modules/canon-host (Makefile.am): Likewise.
71306         * modules/canonicalize (Makefile.am): Likewise.
71307         * modules/chdir-long (Makefile.am): Likewise.
71308         * modules/chdir-safer (Makefile.am): Likewise.
71309         * modules/check-version (Makefile.am): Likewise.
71310         * modules/chown (Makefile.am): Likewise.
71311         * modules/cloexec (Makefile.am): Likewise.
71312         * modules/close-stream (Makefile.am): Likewise.
71313         * modules/closeout (Makefile.am): Likewise.
71314         * modules/crc (Makefile.am): Likewise.
71315         * modules/cycle-check (Makefile.am): Likewise.
71316         * modules/des (Makefile.am): Likewise.
71317         * modules/dirfd (Makefile.am): Likewise.
71318         * modules/dirname (Makefile.am): Likewise.
71319         * modules/dup2 (Makefile.am): Likewise.
71320         * modules/euidaccess (Makefile.am): Likewise.
71321         * modules/exclude (Makefile.am): Likewise.
71322         * modules/exitfail (Makefile.am): Likewise.
71323         * modules/fcntl-safer (Makefile.am): Likewise.
71324         * modules/file-type (Makefile.am): Likewise.
71325         * modules/fileblocks (Makefile.am): Likewise.
71326         * modules/filemode (Makefile.am): Likewise.
71327         * modules/filenamecat (Makefile.am): Likewise.
71328         * modules/fnmatch (Makefile.am): Likewise.
71329         * modules/fopen-safer (Makefile.am): Likewise.
71330         * modules/fpending (Makefile.am): Likewise.
71331         * modules/fprintftime (Makefile.am): Likewise.
71332         * modules/free (Makefile.am): Likewise.
71333         * modules/fsusage (Makefile.am): Likewise.
71334         * modules/ftruncate (Makefile.am): Likewise.
71335         * modules/fts (Makefile.am): Likewise.
71336         * modules/gc (Makefile.am): Likewise.
71337         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71338         * modules/getaddrinfo (Makefile.am): Likewise.
71339         * modules/getcwd (Makefile.am): Likewise.
71340         * modules/getdelim (Makefile.am): Likewise.
71341         * modules/getdomainname (Makefile.am): Likewise.
71342         * modules/getgroups (Makefile.am): Likewise.
71343         * modules/gethostname (Makefile.am): Likewise.
71344         * modules/gethrxtime (Makefile.am): Likewise.
71345         * modules/getline (Makefile.am): Likewise.
71346         * modules/getloadavg (Makefile.am): Likewise.
71347         * modules/getlogin_r (Makefile.am): Likewise.
71348         * modules/getopt (Makefile.am): Likewise.
71349         * modules/getpass (Makefile.am): Likewise.
71350         * modules/getpass-gnu (Makefile.am): Likewise.
71351         * modules/getsubopt (Makefile.am): Likewise.
71352         * modules/gettime (Makefile.am): Likewise.
71353         * modules/gettimeofday (Makefile.am): Likewise.
71354         * modules/getugroups (Makefile.am): Likewise.
71355         * modules/getusershell (Makefile.am): Likewise.
71356         * modules/glob (Makefile.am): Likewise.
71357         * modules/group-member (Makefile.am): Likewise.
71358         * modules/hard-locale (Makefile.am): Likewise.
71359         * modules/hash (Makefile.am): Likewise.
71360         * modules/hmac-md5 (Makefile.am): Likewise.
71361         * modules/hmac-sha1 (Makefile.am): Likewise.
71362         * modules/human (Makefile.am): Likewise.
71363         * modules/idcache (Makefile.am): Likewise.
71364         * modules/imaxabs (Makefile.am): Likewise.
71365         * modules/imaxdiv (Makefile.am): Likewise.
71366         * modules/inet_ntop (Makefile.am): Likewise.
71367         * modules/inet_pton (Makefile.am): Likewise.
71368         * modules/inttostr (Makefile.am): Likewise.
71369         * modules/isapipe (Makefile.am): Likewise.
71370         * modules/lchown (Makefile.am): Likewise.
71371         * modules/long-options (Makefile.am): Likewise.
71372         * modules/lstat (Makefile.am): Likewise.
71373         * modules/malloc (Makefile.am): Likewise.
71374         * modules/mathl (Makefile.am): Likewise.
71375         * modules/mbchar (Makefile.am): Likewise.
71376         * modules/md2 (Makefile.am): Likewise.
71377         * modules/md4 (Makefile.am): Likewise.
71378         * modules/md5 (Makefile.am): Likewise.
71379         * modules/memcasecmp (Makefile.am): Likewise.
71380         * modules/memchr (Makefile.am): Likewise.
71381         * modules/memcmp (Makefile.am): Likewise.
71382         * modules/memcoll (Makefile.am): Likewise.
71383         * modules/memcpy (Makefile.am): Likewise.
71384         * modules/memmem (Makefile.am): Likewise.
71385         * modules/memmove (Makefile.am): Likewise.
71386         * modules/mempcpy (Makefile.am): Likewise.
71387         * modules/memrchr (Makefile.am): Likewise.
71388         * modules/memset (Makefile.am): Likewise.
71389         * modules/memxor (Makefile.am): Likewise.
71390         * modules/mkancesdirs (Makefile.am): Likewise.
71391         * modules/mkdir (Makefile.am): Likewise.
71392         * modules/mkdir-p (Makefile.am): Likewise.
71393         * modules/mkdtemp (Makefile.am): Likewise.
71394         * modules/mkstemp (Makefile.am): Likewise.
71395         * modules/mktime (Makefile.am): Likewise.
71396         * modules/modechange (Makefile.am): Likewise.
71397         * modules/mountlist (Makefile.am): Likewise.
71398         * modules/nanosleep (Makefile.am): Likewise.
71399         * modules/openat (Makefile.am): Likewise.
71400         * modules/pagealign_alloc (Makefile.am): Likewise.
71401         * modules/physmem (Makefile.am): Likewise.
71402         * modules/poll (Makefile.am): Likewise.
71403         * modules/posixtm (Makefile.am): Likewise.
71404         * modules/posixver (Makefile.am): Likewise.
71405         * modules/putenv (Makefile.am): Likewise.
71406         * modules/quote (Makefile.am): Likewise.
71407         * modules/quotearg (Makefile.am): Likewise.
71408         * modules/raise (Makefile.am): Likewise.
71409         * modules/read-file (Makefile.am): Likewise.
71410         * modules/readline (Makefile.am): Likewise.
71411         * modules/readlink (Makefile.am): Likewise.
71412         * modules/readtokens (Makefile.am): Likewise.
71413         * modules/readutmp (Makefile.am): Likewise.
71414         * modules/realloc (Makefile.am): Likewise.
71415         * modules/regex (Makefile.am): Likewise.
71416         * modules/rename (Makefile.am): Likewise.
71417         * modules/rename-dest-slash (Makefile.am): Likewise.
71418         * modules/rijndael (Makefile.am): Likewise.
71419         * modules/rmdir (Makefile.am): Likewise.
71420         * modules/rpmatch (Makefile.am): Likewise.
71421         * modules/safe-read (Makefile.am): Likewise.
71422         * modules/safe-write (Makefile.am): Likewise.
71423         * modules/same (Makefile.am): Likewise.
71424         * modules/save-cwd (Makefile.am): Likewise.
71425         * modules/savedir (Makefile.am): Likewise.
71426         * modules/setenv (Makefile.am): Likewise.
71427         * modules/settime (Makefile.am): Likewise.
71428         * modules/sha1 (Makefile.am): Likewise.
71429         * modules/sig2str (Makefile.am): Likewise.
71430         * modules/snprintf (Makefile.am): Likewise.
71431         * modules/stdlib-safer (Makefile.am): Likewise.
71432         * modules/stpcpy (Makefile.am): Likewise.
71433         * modules/stpncpy (Makefile.am): Likewise.
71434         * modules/strcase (Makefile.am): Likewise.
71435         * modules/strcasestr (Makefile.am): Likewise.
71436         * modules/strchrnul (Makefile.am): Likewise.
71437         * modules/strcspn (Makefile.am): Likewise.
71438         * modules/strdup (Makefile.am): Likewise.
71439         * modules/strerror (Makefile.am): Likewise.
71440         * modules/strftime (Makefile.am): Likewise.
71441         * modules/strndup (Makefile.am): Likewise.
71442         * modules/strnlen (Makefile.am): Likewise.
71443         * modules/strpbrk (Makefile.am): Likewise.
71444         * modules/strsep (Makefile.am): Likewise.
71445         * modules/strstr (Makefile.am): Likewise.
71446         * modules/strtod (Makefile.am): Likewise.
71447         * modules/strtoimax (Makefile.am): Likewise.
71448         * modules/strtok_r (Makefile.am): Likewise.
71449         * modules/strtol (Makefile.am): Likewise.
71450         * modules/strtoll (Makefile.am): Likewise.
71451         * modules/strtoul (Makefile.am): Likewise.
71452         * modules/strtoull (Makefile.am): Likewise.
71453         * modules/strtoumax (Makefile.am): Likewise.
71454         * modules/strverscmp (Makefile.am): Likewise.
71455         * modules/time_r (Makefile.am): Likewise.
71456         * modules/timegm (Makefile.am): Likewise.
71457         * modules/tmpfile-safer (Makefile.am): Likewise.
71458         * modules/unistd-safer (Makefile.am): Likewise.
71459         * modules/unlinkdir (Makefile.am): Likewise.
71460         * modules/userspec (Makefile.am): Likewise.
71461         * modules/utime (Makefile.am): Likewise.
71462         * modules/utimecmp (Makefile.am): Likewise.
71463         * modules/utimens (Makefile.am): Likewise.
71464         * modules/vasnprintf (Makefile.am): Likewise.
71465         * modules/vasprintf (Makefile.am): Likewise.
71466         * modules/vsnprintf (Makefile.am): Likewise.
71467         * modules/xalloc (Makefile.am): Likewise.
71468         * modules/xgetcwd (Makefile.am): Likewise.
71469         * modules/xnanosleep (Makefile.am): Likewise.
71470         * modules/xreadlink (Makefile.am): Likewise.
71471         * modules/xstrtod (Makefile.am): Likewise.
71472         * modules/xstrtol (Makefile.am): Likewise.
71473         * modules/xstrtold (Makefile.am): Likewise.
71474         * modules/yesno (Makefile.am): Likewise.
71475
71476 2006-10-12  Jim Meyering  <jim@meyering.net>
71477
71478         * m4/getloadavg.m4: Revert the change below.
71479
71480         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
71481         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
71482         fail with a symlink, which is what coreutils' ./bootstrap now
71483         creates by default.
71484
71485 2006-10-12  Bruno Haible  <bruno@clisp.org>
71486
71487         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
71488         mingw.
71489         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
71490         MSVC and mingw explicitly.
71491
71492 2006-10-11  Simon Josefsson  <jas@extundo.com>
71493             Bruno Haible  <bruno@clisp.org>
71494
71495         Add support for multiple gnulib-tool invocations in the scope of a
71496         single configure.ac file.
71497         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
71498         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
71499         with the same contents as the _LIBADD variable.
71500         (func_emit_initmacro_start, func_emit_initmacro_end,
71501         func_emit_initmacro_done): New functions.
71502         (func_import, func_create_testdir): Invoke them. Allow the identifiers
71503         gl_LIBOBJS and gl_LTLIBOBJS.
71504
71505 2006-10-11  Bruno Haible  <bruno@clisp.org>
71506
71507         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
71508         (func_create_testdir): Don't create po/Makefile.am, don't invoke
71509         autoreconf. Instead, invoke autopoint explicitly but move back the
71510         *.m4 files from gnulib.
71511
71512 2006-10-11  Bruno Haible  <bruno@clisp.org>
71513
71514         * gnulib-tool (func_usage): Make module names after --create-testdir
71515         optional.
71516         (func_create_testdir): If no module was specified, use nearly all
71517         modules.
71518
71519 2006-10-12  Jim Meyering  <jim@meyering.net>
71520
71521         Big performance improvement for fts-based tools that use FTS_NOSTAT.
71522         Avoid spurious inode-mismatch problems on non-POSIX file systems.
71523         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
71524         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
71525         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
71526         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
71527         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
71528         (fts_set_stat_required): New function.
71529         (fts_open): Defer the calls to fts_stat, if possible or requested.
71530         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
71531         into fts_stat itself.
71532         (fts_read): Perform any required (deferred) fts_stat call.
71533         (fts_build): Likewise, for the directory we're about to open and read.
71534         In the readdir loop, carefully decide whether each entry will require
71535         an eventual call to fts_stat, using dirent.d_type info if available.
71536         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
71537         a command line argument into this function.  Update all callers.
71538         Map a return value of FTS_DOT to FTS_D for a command line argument.
71539         * modules/fts (Depends-on): Add d-type.  Alphabetize.
71540         Thanks to Miklos Szeredi for his tenacity and for the initial
71541         bug report about "find" failing on a FUSE-based file system.
71542
71543         * lib/fts.c (fts_open): Use consistent indentation.
71544
71545 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
71546
71547         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
71548         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
71549         reported by Jim Meyering.  All uses of cache variables renamed
71550         to match Autoconf's.
71551         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
71552         the other one.
71553
71554         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
71555         Fix misspelling in diagnostic.
71556
71557 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
71558
71559         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
71560         defined.  Problem reported by Matthew Woehlke.
71561
71562         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
71563         Add support for Tandem NonStop R series.
71564         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
71565         Use new macro.
71566
71567         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
71568         (has_trailing_slash): Omit size arg; all callers changed.
71569         Omit 'inline', since it doesn't help performance and we'd
71570         need to configure it.
71571         Don't count //, ///, etc. as having a trailing slash.
71572         As a side effect, this removes a C99ism reported by Matthew Woehlke.
71573         (rpl_rename_dest_slash): On failure, use rename's errno rather
71574         than (in some cases) an incorrect or junk errno.
71575         Simplify code by removing need to compute length; this does
71576         cause it to make two passes instead of one over the file name,
71577         but it's worth it.
71578
71579         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
71580         change, since Autoconf's version may no longer be appropriate now
71581         that we are using CVS Autoconf's version.  Add support for Tandem.
71582
71583 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
71584             Bruno Haible  <bruno@clisp.org>
71585
71586         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
71587         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
71588         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
71589         gl_AC_TYPE_LONG_LONG.
71590
71591         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
71592         instead of HAVE_LONG_LONG.
71593         * lib/printf-args.c (printf_fetchargs): Likewise.
71594         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
71595         * lib/vasnprintf.c (VASNPRINTF): Likewise.
71596         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
71597         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
71598         gl_AC_TYPE_LONG_LONG.
71599
71600 2006-10-11  Bruno Haible  <bruno@clisp.org>
71601
71602         * m4/longlong.m4: Add comments.
71603         * m4/ulonglong.m4: Likewise.
71604
71605 2006-10-10  Bruno Haible  <bruno@clisp.org>
71606
71607         Make it possible to #define stpcpy, strdup to aliases.
71608         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
71609         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
71610
71611 2006-10-10  Bruno Haible  <bruno@clisp.org>
71612
71613         Make it possible to #define gcd to an alias.
71614         * lib/gcd.c: Include config.h.
71615
71616 2006-10-10  Bruno Haible  <bruno@clisp.org>
71617
71618         Make it possible to #define c_isascii to an alias.
71619         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
71620         defined. Undefine the macros before defining them, to avoid gcc
71621         warnings.
71622         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
71623         define NO_C_CTYPE_MACROS early.
71624
71625 2006-10-10  Bruno Haible  <bruno@clisp.org>
71626
71627         Make it possible to #define set_program_name to an alias.
71628         * lib/progname.c: Don't undefine set_program_name; instead, undefine
71629         ENABLE_RELOCATABLE early.
71630
71631 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71632
71633         Port to Tandem NSK OSS, which has 64-bit signed int but at most
71634         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
71635         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
71636         More generally, don't assume that 64-bit signed int is available
71637         if unsigned int is, and vice versa.
71638         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
71639         unsigned symbols, not on their signed counterparts.
71640         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
71641         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
71642         (UINT64_C, UINTMAX_C):
71643         Likewise.
71644         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
71645         unsigned counterparts.
71646         (Have_long_long, Unsigned): New macros.
71647         (Int): Renamed from INT.
71648         (strtoimax): Use the new macros.
71649         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
71650         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
71651         * modules/inttypes (inttypes.h): Substitute
71652         HAVE_UNSIGNED_LONG_LONG_INT.
71653         * modules/stdint (stdint.h): Likewise.
71654         (Files): Add m4/ulonglong.m4.
71655
71656 2006-10-10  Bruno Haible  <bruno@clisp.org>
71657
71658         Fix a gcc -Wshadow warning.
71659         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
71660         to 'bucket'.
71661         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
71662         gl_linked_indexof_from_to): Likewise.
71663         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
71664         Likewise.
71665         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
71666         Likewise.
71667         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
71668         Reported by Eric Blake.
71669
71670 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
71671
71672         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
71673         for NetBSD.  Problem reported by Bruno Haible.
71674
71675 2006-10-09  Jim Meyering  <jim@meyering.net>
71676
71677         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
71678         Patch from Bruno Haible.
71679
71680 2006-10-09  Jim Meyering  <jim@meyering.net>
71681
71682         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
71683         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
71684         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
71685
71686 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71687
71688         Don't include <config.h> twice; this doesn't work in some cases,
71689         e.g., when config.h has "#define intmax_t long long int" and
71690         we include <config.h>, <inttypes.h>, <config.h> in that order.
71691         Problem reported by Matthew Woehlke in:
71692         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
71693         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
71694         * lib/fts-cycle.c: Don't include config.h.
71695         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
71696         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
71697         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
71698         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
71699         inttypes.h.
71700         * lib/xstrtoumax.c: Likewise.
71701         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
71702         __strtol and the like, so that this module is more like its siblings.
71703         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
71704         Remove; no longer needed now that we assume gnulib inttypes.h.
71705
71706 2006-10-08  Bruno Haible  <bruno@clisp.org>
71707
71708         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
71709         option.
71710
71711 2006-10-07  Jim Meyering  <jim@meyering.net>
71712
71713         * modules/inttypes (inttypes.h): Revert what seems to have been
71714         an inadvertent part of today's change: use "|", not "/" in the
71715         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
71716
71717 2006-10-07  Bruno Haible  <bruno@clisp.org>
71718
71719         * modules/sublist: New file.
71720
71721 2006-10-07  Bruno Haible  <bruno@clisp.org>
71722
71723         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
71724         * modules/argz (argz.h): Likewise.
71725         * modules/arpa_inet (arpa/inet.h): Likewise.
71726         * modules/byteswap (byteswap.h): Likewise.
71727         * modules/configmake (configmake.h): Likewise.
71728         * modules/fcntl (fcntl.h): Likewise.
71729         * modules/fnmatch (fnmatch.h): Likewise.
71730         * modules/getopt (getopt.h): Likewise.
71731         * modules/glob (glob.h): Likewise.
71732         * modules/inttypes (inttypes.h): Likewise.
71733         * modules/netinet_in (netinet/in.h): Likewise.
71734         * modules/poll (poll.h): Likewise.
71735         * modules/stdbool (stdbool.h): Likewise.
71736         * modules/stdint (stdint.h): Likewise.
71737         * modules/sys_select (sys/select.h): Likewise.
71738         * modules/sys_socket (sys/socket.h): Likewise.
71739         * modules/sys_stat (sys/stat.h): Likewise.
71740         * modules/sysexits (sysexits.h): Likewise.
71741         * modules/unistd (unistd.h): Likewise.
71742         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71743         Add a "DO NOT EDIT" comment to the generated file.
71744         (func_import): Likewise for gnulib-comp.m4.
71745
71746 2006-10-07  Bruno Haible  <bruno@clisp.org>
71747
71748         * lib/gl_sublist.h: New file.
71749         * lib/gl_sublist.c: New file.
71750
71751 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71752
71753         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
71754         name (relative to the original working directory) and the file
71755         name component (relative to the temporary working directory).  All
71756         callers changed.
71757         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
71758         * lib/mkdir-p.c (make_dir_parents): Likewise.
71759         * lib/mkdir-p.h (make_dir_parents): Likewise.
71760
71761 2006-10-06  Eric Blake  <ebb9@byu.net>
71762
71763         Define several macros for use by the clean-temp module.
71764         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
71765         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
71766         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
71767
71768         * lib/clean-temp.h (close_stream_temp): New declaration.
71769         * lib/clean-temp.c (includes): Pull in headers according to what
71770         other modules are in use.
71771         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
71772
71773 2006-10-06  Bruno Haible  <bruno@clisp.org>
71774
71775         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
71776         instead of fopen, fwriteerror.
71777
71778 2006-10-06  Bruno Haible  <bruno@clisp.org>
71779
71780         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
71781         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
71782         int.
71783         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
71784         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
71785         Return an error indicator.
71786         Suggested by Eric Blake.
71787
71788 2006-10-06  Bruno Haible  <bruno@clisp.org>
71789
71790         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
71791         Reported by Eric Blake.
71792
71793 2006-10-06  Bruno Haible  <bruno@clisp.org>
71794
71795         * modules/closeout (Description): Mention stderr too.
71796
71797 2006-10-06  Bruno Haible  <bruno@clisp.org>
71798         and Paul Eggert  <eggert@cs.ucla.edu>
71799
71800         * lib/closeout.c (close_stdout): Also close stderr.
71801         * lib/closeout.h: Update comment.
71802
71803 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
71804
71805         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
71806         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
71807         * lib/dirchownmod.c: Include lchown.h.
71808         * lib/lchown.c: Don't include files that lchown.h now includes.
71809         Don't declare chown, since lchown.h now does that.
71810         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
71811         (lchown): Define to rpl_chown if lchown is declared but
71812         does not exist.  Declare using a prototype if lchown is not
71813         declared.  Add a copyright notice.
71814         * lib/mkstemp.h: Include <unistd.h>.
71815         * lib/openat.c: Include lchown.h.
71816
71817         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
71818         we now test for that separately.
71819         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
71820         rather than O_NOFOLLOW, when testing whether it's possible to
71821         avoid a race condition reliably.
71822         * lib/savewd.c (savewd_chdir): Likewise.
71823
71824         Remove macros that are no longer needed now that stdint.h is
71825         reliable.
71826         * lib/fsusage.c (UINTMAX_MAX): Remove.
71827         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
71828         * lib/utimecmp.c (SIZE_MAX): Remove.
71829
71830         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
71831
71832         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
71833         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
71834         O_NOATIME works.
71835
71836 2006-10-05  Bruno Haible  <bruno@clisp.org>
71837
71838         * lib/gl_list.h (gl_sortedlist_search_from_to,
71839         gl_sortedlist_indexof_from_to): New declarations.
71840         (gl_list_implementation): New fields sortedlist_search_from_to,
71841         sortedlist_indexof_from_to.
71842         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
71843         inline functions.
71844         * lib/gl_list.c (gl_sortedlist_search_from_to,
71845         gl_sortedlist_indexof_from_to): New functions.
71846         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
71847         function.
71848         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
71849         (gl_array_sortedlist_search_from_to): New function.
71850         (gl_array_list_implementation): Update.
71851         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
71852         function.
71853         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
71854         (gl_carray_sortedlist_search_from_to): New function.
71855         (gl_carray_list_implementation): Update.
71856         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
71857         gl_linked_sortedlist_indexof_from_to): New functions.
71858         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
71859         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
71860         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
71861         gl_tree_sortedlist_indexof_from_to): New functions.
71862         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
71863         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
71864         Update.
71865         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
71866         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
71867         Update.
71868
71869 2006-10-05  Bruno Haible  <bruno@clisp.org>
71870
71871         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
71872         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
71873         (struct gl_list_implementation): Add fields search_from_to,
71874         indexof_from_to. Remove fields search, indexof.
71875         (gl_list_search): Use the search_from_to method.
71876         (gl_list_search_from, gl_list_search_from_to): New functions.
71877         (gl_list_indexof): Use the indexof_from_to method.
71878         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
71879         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
71880         (gl_list_search_from, gl_list_search_from_to): New functions.
71881         (gl_list_indexof): Use the indexof_from_to method.
71882         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
71883         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
71884         gl_array_indexof. Add start_index, end_index arguments.
71885         (gl_array_search_from_to): Renamed from gl_array_search. Add
71886         start_index, end_index arguments.
71887         (gl_array_remove, gl_array_list_implementation): Update.
71888         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
71889         gl_carray_indexof. Add start_index, end_index arguments.
71890         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
71891         start_index, end_index arguments.
71892         (gl_carray_remove, gl_carray_list_implementation): Update.
71893         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
71894         gl_linked_search. Add start_index, end_index arguments.
71895         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
71896         start_index, end_index arguments.
71897         (gl_linked_remove): Update.
71898         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
71899         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
71900         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
71901         field to 'size_t'.
71902         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
71903         gl_tree_search. Add start_index, end_index arguments.
71904         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
71905         start_index, end_index arguments.
71906         (gl_tree_remove): Update.
71907         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
71908         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
71909         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
71910         function.
71911         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
71912         gl_tree_search. Add start_index, end_index arguments.
71913         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
71914         start_index, end_index arguments.
71915         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
71916         Update.
71917         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
71918
71919 2006-10-05  Bruno Haible  <bruno@clisp.org>
71920
71921         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
71922
71923         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
71924         fwriteerror_temp): New declarations.
71925         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
71926         (descriptors): New variable.
71927         (cleanup): First, close the descriptors.
71928         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
71929         fclose_temp, fwriteerror_temp): New functions.
71930
71931 2006-10-04  Jim Meyering  <jim@meyering.net>
71932
71933         * lib/fts.c (fts_open): Tiny comment change.
71934
71935 2006-10-04  Bruno Haible  <bruno@clisp.org>
71936
71937         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
71938         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
71939         gl_LOCK_BODY.
71940         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
71941         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
71942         gl_LOCK_EARLY_BODY.
71943         (gl_LOCK): Require gl_LOCK_BODY.
71944
71945 2006-10-04  Bruno Haible  <bruno@clisp.org>
71946
71947         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
71948         (gl_oset_search_atleast): New declaration.
71949         (struct gl_oset_implementation): Add field 'search_atleast'.
71950         (gl_oset_search_atleast): New inline function.
71951         * lib/gl_oset.c (gl_oset_search_atleast): New function.
71952         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
71953         (gl_array_oset_implementation): Update.
71954         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
71955         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
71956         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
71957
71958 2006-10-04  Bruno Haible  <bruno@clisp.org>
71959
71960         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
71961
71962 2006-10-03  Bruno Haible  <bruno@clisp.org>
71963
71964         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
71965         from gl_avltreehash_list_implementation.
71966
71967 2006-10-03  Bruno Haible  <bruno@clisp.org>
71968
71969         * lib/gl_oset.c (gl_oset_add): Fix return type.
71970
71971 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
71972
71973         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
71974
71975 2006-10-02  Eric Blake  <ebb9@byu.net>
71976
71977         * modules/strnlen (Depends-on): Add extensions.
71978
71979 2006-10-02  Eric Blake  <ebb9@byu.net>
71980
71981         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
71982         definition in 2.60+.
71983
71984 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
71985
71986         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
71987         checks.
71988
71989 2006-10-02  Bruno Haible  <bruno@clisp.org>
71990
71991         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
71992         to the AUTOMAKE_OPTIONS.
71993         Reported by Jim Meyering.
71994
71995 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
71996
71997         Work around bug in Solaris 10 /proc file system:
71998         /proc/self/fd/NNN/.. isn't the parent directory of
71999         the directory whose file descriptor is NNN.  This needs to
72000         be worked around at run time, not compile time, since a
72001         program might be built on Solaris 8, where things work, and
72002         run on Solaris 10.
72003         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72004         to use the following interface instead:
72005         (OPENAT_BUFFER_SIZE): New macro.
72006         (openat_proc_name): New function.
72007         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72008         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72009         Likewise.
72010         * lib/openat-proc.c: New file.
72011         * modules/openat (Files): Add lib/openat-proc.c.
72012         (Depends-on): Add same-inode, stdbool.
72013         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
72014
72015 2006-09-29  Bruno Haible  <bruno@clisp.org>
72016
72017         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
72018         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
72019         argument. Set stdout_closed before testing for ferror, not after.
72020         (fwriteerror, fwriteerror_no_ebadf): New functions.
72021
72022 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72023
72024         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
72025
72026 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
72027
72028         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
72029         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
72030
72031 2006-09-28  Jim Meyering  <jim@meyering.net>
72032
72033         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
72034         Include <unistd.h>.
72035
72036 2006-09-28  Bruno Haible  <bruno@clisp.org>
72037
72038         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
72039         * modules/linkedhash-list (Depends-on): Likewise.
72040         * modules/rbtreehash-list (Depends-on): Likewise.
72041
72042 2006-09-28  Bruno Haible  <bruno@clisp.org>
72043
72044         * lib/strndup.h: Simplify the redefinition of strndup.
72045         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
72046         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
72047
72048 2006-09-28  Bruno Haible  <bruno@clisp.org>
72049
72050         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
72051         * lib/gl_linkedhash_list.c: Likewise.
72052         * lib/gl_rbtreehash_list.c: Likewise.
72053
72054 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72055
72056         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
72057         getaddrinfo.
72058
72059         * lib/__fpending.h: Don't include <stdio_ext.h> unless
72060         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
72061         it causes <stdio_ext.h> to cause a compile-time error.
72062         Problem reported by Nelson H. F. Beebe.
72063         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
72064         of HAVE_DECL___PENDING.
72065
72066         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
72067         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
72068         declaration.
72069
72070 2006-09-27  Jim Meyering  <jim@meyering.net>
72071
72072         This file could end up with a definition for a function
72073         named __strndup, rather than rpl_strndup on a system with
72074         incomplete weak_alias support.
72075         * lib/strndup.c (strndup): Rename from __strndup.
72076         Remove #defines that used to map __strndup to strndup.
72077         Don't use K&R prototypes.
72078         Remove LIBC-related code, since this file is not sync'd with glibc.
72079         * lib/strndup.h: Revamp, accordingly.
72080         * m4/strndup.m4: Modernize.
72081
72082 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72083
72084         * modules/savewd (Depends-on): Add 'raise'.
72085         * lib/savewd.c: Include <signal.h>, for 'raise'.
72086
72087 2006-09-26  Jim Meyering  <jim@meyering.net>
72088
72089         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
72090         when we detect Darwin 8.7.0's acl_get_file bug.
72091         Rearrange to perform the new (below) run-test while $LIBS
72092         contains any acl-related library.  Set USE_ACL at the end.
72093         (gl_ACL_GET_FILE): New function.
72094
72095 2006-09-26  Eric Blake  <ebb9@byu.net>
72096
72097         * lib/verror.c: Include <config.h> unconditionally.
72098
72099 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
72100
72101         * modules/clock-time (Maintainer): Add self.
72102         * modules/getlogin_r (Depends-on): Add extensions.
72103
72104 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72105
72106         * modules/clock-time: New module.
72107         * modules/nanosleep (Depends-on): Add clock-time.
72108         * modules/gethrxtime (Depends-on): Likewise.
72109         * modules/gettime (Depends-on): Likewise.
72110         * modules/settime (Depends-on): Likewise.
72111
72112         * modules/fts-lgpl: Depend on openat.
72113         * modules/mkancesdirs: Depend on savewd.
72114         * modules/mkdir-p: Likewise.
72115
72116 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72117
72118         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
72119
72120         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
72121         `gl_have_arbitrary_file_name_length_limit' to
72122         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
72123         actually works between configure runs.
72124
72125 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72126             Bruno Haible  <bruno@clisp.org>
72127
72128         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
72129
72130 2006-09-25  Jim Meyering  <jim@meyering.net>
72131
72132         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
72133         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
72134
72135 2006-09-25  Eric Blake  <ebb9@byu.net>
72136
72137         * gnulib-tool (func_import, func_create_testdir): Fix typos in
72138         exec's in 2006-09-18 patch when shuffling fds.
72139
72140 2006-09-25  Bruno Haible  <bruno@clisp.org>
72141
72142         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
72143         Reported by Jim Meyering.
72144
72145 2006-09-24  Jim Meyering  <jim@meyering.net>
72146
72147         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
72148         compare a pointer against a literal "0".  That caused failures with
72149         at least HP-UX's hpcc.
72150
72151 2006-09-22  Simon Josefsson  <jas@extundo.com>
72152
72153         * modules/gc-sha1:
72154         * modules/gc-md4:
72155         * modules/gc-hmac-sha1:
72156         * modules/gc-hmac-md5:
72157         * modules/gc-des:
72158         * modules/gc-arcfour: Distribute more files.
72159
72160 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72161
72162         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
72163         (gl_linked_iterator_from_to): Initialize struct completely.
72164         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
72165         (gl_tree_iterator_from_to): Likewise
72166         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
72167         * lib/gl_array_list.c [lint] (gl_array_iterator)
72168         (gl_array_iterator_from_to): Likewise.
72169         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
72170         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
72171         (gl_carray_iterator_from_to): Likewise.
72172
72173         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
72174         * lib/md4.c (md4_process_block): Remove unused variable.
72175         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
72176         parentheses for clarity.
72177
72178 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72179
72180         * modules/bison-i18n (Depends-on): Add gettext.
72181
72182 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72183
72184         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
72185         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
72186         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
72187         also add missing comma that caused broken test.
72188         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
72189         stdlib.h, for `abort'.
72190         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
72191         variables.
72192         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
72193         include unistd.h if present, for `rmdir'.
72194         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
72195         variables.
72196         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
72197         in the process include standard headers for prototypes.
72198         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
72199         gets declared on GNU/Linux.
72200         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
72201         unistd.h, for `rmdir'.
72202         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
72203
72204         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
72205         always true.
72206         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
72207
72208         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
72209
72210 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72211
72212         * gnulib-tool (func_version): Create output all at once.  This
72213         may help avoid triggering unnecessary SIGPIPEs, and at any
72214         rate it doesn't hurt.
72215
72216 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72217             Bruno Haible  <bruno@clisp.org>
72218
72219         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
72220         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72221         * m4/signed.m4 (bh_C_SIGNED): Likewise.
72222
72223         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
72224         (gl_FUNC_VASPRINTF): Invoke it.
72225
72226 2006-09-22  Bruno Haible  <bruno@clisp.org>
72227
72228         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
72229         getloadavg.c as first argument.
72230
72231 2006-09-22  Bruno Haible  <bruno@clisp.org>
72232
72233         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
72234         at the beginning of the gl_INIT macro.
72235         * modules/getloadavg (configure.ac): Pass $gl_source_base to
72236         gl_GETLOADAVG.
72237
72238 2006-09-22  Bruno Haible  <bruno@clisp.org>
72239
72240         * gnulib-tool (func_create_megatestdir): Don't include the config-h
72241         module.
72242         Suggested by Ralf Wildenhues.
72243
72244 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72245
72246         Import this patch from libc:
72247
72248         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
72249
72250         * lib/regex_internal.c (re_string_reconstruct): Handle
72251         offset < pstr->valid_raw_len && pstr->offsets_needed case.
72252         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
72253         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
72254         re_string_context_at.
72255
72256         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
72257         now requires it.
72258         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
72259         gl_REGEX now does it for us.
72260         (gl_REGEX): Add test taken from
72261         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
72262
72263         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
72264         Check that large offsets work.  Modernize Autoconf usages.
72265         Prefer "yes" to mean a good thing rather than a bad.
72266         Don't put "#define mkstemp" in config.h, as this might interfere
72267         with standard system headers that "#define mkstemp mkstemp64".
72268
72269         * modules/mkstemp (Depends-on): Add extensions, so that
72270         mkstemp is visible on some platforms.
72271         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
72272         (Include): Change to "mkstemp.h" from <stdlib.h>.
72273         (Files): Add mkstemp.h.
72274
72275         * lib/mkstemp.h: New file, since some standard headers
72276         #define mkstemp.
72277         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
72278         Include "mkstemp.h".
72279         Make the _LIBC code resemble glibc original more,
72280         e.g., use K&R style.
72281         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
72282         (mkstemp): Remove, since mkstemp.h does this for us.
72283         * lib/stdlib--.h: Include mkstemp.h.
72284
72285         Import this patch from libc:
72286
72287         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72288
72289         * lib/tempname.c (__gen_tempname): Change attempts_min
72290         into a macro.  Use preprocessor to decide how to initialize
72291         attempts [Coverity CID 67].
72292
72293 2006-09-20  Bruno Haible  <bruno@clisp.org>
72294
72295         * lib/mkdtemp.c: Import from libc.
72296         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72297                 * sysdeps/posix/tempname.c (__gen_tempname): Change
72298                 attempts_min into a macro.  Use preprocessor to decide how to
72299                 initialize attempts [Coverity CID 67].
72300         2001-11-27  Paul Eggert  <eggert@twinsun.com>
72301                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
72302                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
72303
72304 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72305
72306         * gnulib-tool (func_exit): New function, to allow to pass the
72307         exit status portably through the trap.  Use everywhere.
72308         (--help, --version): Signal a write error.
72309         (trap): catch SIGPIPE, for write errors.
72310         Exit at the end of the trap, with the correct exit status.
72311
72312 2006-09-19  Karl Berry  <karl@gnu.org>
72313
72314         * doc/gnulib.texi: note about the license texinfo files.
72315
72316 2006-09-19  Eric Blake  <ebb9@byu.net>
72317
72318         * gnulib-tool: Avoid space-tab.
72319
72320 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72321
72322         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
72323         that prevented coreutils 6.1 from building.  Problem reported
72324         by Petter Reinholdtsen.
72325
72326 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72327
72328         * gnulib-tool (avoidlist): Fix typo that broke options like
72329         --avoid=lock that are used by coreutils bootstrap.
72330
72331 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
72332
72333         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
72334         more systematically.
72335
72336 2006-09-18  Jim Meyering  <jim@meyering.net>
72337
72338         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
72339
72340 2006-09-18  Bruno Haible  <bruno@clisp.org>
72341
72342         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
72343
72344 2006-09-18  Bruno Haible  <bruno@clisp.org>
72345
72346         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
72347         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
72348         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
72349         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
72350         * m4/gettext.m4: Require autoconf >= 2.52.
72351         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
72352         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
72353         of gl_cv_header_inttypes_h.
72354
72355 2006-09-18  Bruno Haible  <bruno@clisp.org>
72356
72357         * lib/javaversion.c: Include configmake.h.
72358
72359 2006-09-18  Bruno Haible  <bruno@clisp.org>
72360
72361         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
72362         avoid that the while loops be executed in a subshell.
72363
72364 2006-09-18  Bruno Haible  <bruno@clisp.org>
72365
72366         * MODULES.html.sh (func_module): Break long lines.
72367         Suggested by Bruce Korb <bkorb@gnu.org>.
72368
72369 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72370
72371         Speed up by a factor of 1.12.
72372         * gnulib-tool (nl): New variable.
72373         (func_import): Rewrite include directive extraction to only read each
72374         directive once.
72375
72376 2006-09-17  Bruno Haible  <bruno@clisp.org>
72377
72378         * modules/javaversion (Makefile.am): Remove DEFS setting.
72379         (Depends-on): Add configmake, for PKGDATADIR definition.
72380
72381 2006-09-17  Bruno Haible  <bruno@clisp.org>
72382
72383         * gnulib-tool (func_create_testdir): Rewrite all files at once.
72384
72385 2006-09-17  Bruno Haible  <bruno@clisp.org>
72386
72387         * gnulib-tool (func_append): New function, stolen from libtool.m4.
72388         (func_modules_transitive_closure, func_modules_add_dummy,
72389         func_modules_to_filelist, func_import, func_create_testdir,
72390         func_create_megatestdir, ...): Use it wherever possible.
72391         Suggested by Ralf Wildenhues.
72392
72393 2006-09-16  Karl Berry  <karl@gnu.org>
72394
72395         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
72396         to avoid sectioning errors.
72397         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
72398         [ifinfo]: blank line after @center-ed titles.
72399         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
72400         Spell FSF address consistently with others.
72401         (These changes approved by rms.)
72402
72403 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72404
72405         Speed up by a factor of 1.61.
72406         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
72407         already checked module names again.
72408
72409 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72410
72411         Speed up by a factor of 1.13.
72412         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
72413         for new_files, and the input to func_add_or_update.
72414
72415 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72416
72417         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
72418         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
72419
72420 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72421
72422         * modules/mkancesdirs (Depends-on): Add fcntl.
72423         * modules/savewd: New file.
72424         * MODULES.html.sh (File system functions): Add savewd.
72425
72426         * modules/configmake (Makefile.am): Add support for the
72427         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
72428
72429 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72430
72431         * m4/savewd.m4: New file.
72432
72433 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72434
72435         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
72436         (dirchownmod): New arg FD.  All callers changed.
72437         Use FD rather than opening the directory ourself, as opening is
72438         now the caller's responsibility.
72439         * lib/dirchownmod.h: Likewise.
72440         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
72441         hosts that require <sys/types.h> before <sys/stat.h>.  Include
72442         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
72443         (test_dir): Remove.
72444         (mkancesdirs): Return length of prefix of FILE that has already
72445         been made, or -2 if there is a child doing the work.  Redo
72446         algorithm so that it is O(N) rather than O(N**2).  Optimize away
72447         ".", and treat ".." specially since it might stray back into
72448         already-created areas.  Use a subprocess if necessary.  New arg
72449         WD; all users changed.  MAKE_DIR function should now return 1
72450         if it creates a directory that is not readable.  Return -2 if
72451         a child process is spun off.
72452         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
72453         Adjust signature to match code.
72454         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
72455         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
72456         all users changed.
72457         * lib/savewd.c, lib/savewd.h: New files.
72458
72459 2006-09-15  Jim Meyering  <jim@meyering.net>
72460
72461         * modules/rename-dest-slash: New module.
72462         * MODULES.html.sh (posix_compat): Add it here.
72463
72464         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
72465
72466 2006-09-15  Jim Meyering  <jim@meyering.net>
72467
72468         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
72469         file.
72470
72471         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
72472
72473 2006-09-15  Jim Meyering  <jim@meyering.net>
72474
72475         * lib/rename-dest-slash.c (has_trailing_slash): Use
72476         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
72477         (rpl_rename_dest_slash): Perform the cheaper trailing slash
72478         test before testing whether SRC is a directory.
72479         Suggestions from Bruno Haible.
72480
72481         Avoid a warning about an unused variable.
72482         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
72483         into the #ifdef block where it's used.
72484
72485         * lib/rename-dest-slash.c: New file.
72486
72487 2006-09-14  Bruno Haible  <bruno@clisp.org>
72488
72489         * lib/allocsa.c: Include <config.h> unconditionally.
72490         * lib/asnprintf.c: Likewise.
72491         * lib/asprintf.c: Likewise.
72492         * lib/c-strcasecmp.c: Likewise.
72493         * lib/c-strcasestr.c: Likewise.
72494         * lib/c-strncasecmp.c: Likewise.
72495         * lib/c-strstr.c: Likewise.
72496         * lib/classpath.c: Likewise.
72497         * lib/clean-temp.c: Likewise.
72498         * lib/concatpath.c: Likewise.
72499         * lib/copy-file.c: Likewise.
72500         * lib/csharpcomp.c: Likewise.
72501         * lib/csharpexec.c: Likewise.
72502         * lib/execute.c: Likewise.
72503         * lib/fatal-signal.c: Likewise.
72504         * lib/findprog.c: Likewise.
72505         * lib/fwriteerror.c: Likewise.
72506         * lib/gl_array_list.c: Likewise.
72507         * lib/gl_array_oset.c: Likewise.
72508         * lib/gl_avltree_list.c: Likewise.
72509         * lib/gl_avltree_oset.c: Likewise.
72510         * lib/gl_avltreehash_list.c: Likewise.
72511         * lib/gl_carray_list.c: Likewise.
72512         * lib/gl_linked_list.c: Likewise.
72513         * lib/gl_linkedhash_list.c: Likewise.
72514         * lib/gl_list.c: Likewise.
72515         * lib/gl_oset.c: Likewise.
72516         * lib/gl_rbtree_list.c: Likewise.
72517         * lib/gl_rbtree_oset.c: Likewise.
72518         * lib/gl_rbtreehash_list.c: Likewise.
72519         * lib/imaxabs.c: Likewise.
72520         * lib/imaxdiv.c: Likewise.
72521         * lib/javacomp.c: Likewise.
72522         * lib/javaexec.c: Likewise.
72523         * lib/javaversion.c: Likewise.
72524         * lib/linebreak.c: Likewise.
72525         * lib/localcharset.c: Likewise.
72526         * lib/lock.c: Likewise.
72527         * lib/mbchar.c: Likewise.
72528         * lib/mbswidth.c: Likewise.
72529         * lib/mkdtemp.c: Likewise.
72530         * lib/pipe.c: Likewise.
72531         * lib/printf-args.c: Likewise.
72532         * lib/printf-parse.c: Likewise.
72533         * lib/progname.c: Likewise.
72534         * lib/progreloc.c: Likewise.
72535         * lib/readlink.c: Likewise.
72536         * lib/sh-quote.c: Likewise.
72537         * lib/stpcpy.c: Likewise.
72538         * lib/stpncpy.c: Likewise.
72539         * lib/strcasecmp.c: Likewise.
72540         * lib/strcasestr.c: Likewise.
72541         * lib/strcspn.c: Likewise.
72542         * lib/striconv.c: Likewise.
72543         * lib/strncasecmp.c: Likewise.
72544         * lib/strnlen1.c: Likewise.
72545         * lib/strstr.c: Likewise.
72546         * lib/strtok_r.c: Likewise.
72547         * lib/tls.c: Likewise.
72548         * lib/tmpdir.c: Likewise.
72549         * lib/unicodeio.c: Likewise.
72550         * lib/unsetenv.c: Likewise.
72551         * lib/vasnprintf.c: Likewise.
72552         * lib/vasprintf.c: Likewise.
72553         * lib/wait-process.c: Likewise.
72554         * lib/xallocsa.c: Likewise.
72555         * lib/xsetenv.c: Likewise.
72556         * lib/xstriconv.c: Likewise.
72557
72558 2006-09-13  Simon Josefsson  <jas@extundo.com>
72559
72560         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
72561         that internally, suggested by Ralf Wildenhues
72562         <Ralf.Wildenhues@gmx.de>.
72563
72564 2006-09-13  Simon Josefsson  <jas@extundo.com>
72565
72566         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
72567         @LIBOBJS@.
72568         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72569
72570 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72571
72572         * lib/_fpending.c: Include <config.h> unconditionally, since we no
72573         longer worry about uses that don't define HAVE_CONFIG_H.
72574         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
72575         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
72576         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
72577         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
72578         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
72579         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
72580         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
72581         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
72582         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
72583         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
72584         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
72585         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
72586         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
72587         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
72588         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
72589         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
72590         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
72591         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
72592         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
72593         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
72594         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
72595         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
72596         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
72597         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
72598         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
72599         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
72600         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
72601         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
72602         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
72603         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
72604         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
72605         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
72606         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
72607         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
72608         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
72609         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
72610         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
72611         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
72612         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
72613         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
72614         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
72615         Likewise.
72616
72617 2006-09-13  Eric Blake  <ebb9@byu.net>
72618
72619         * lib/getopt.c: Fix typo in last commit.
72620
72621 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
72622
72623         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
72624         dgettext.
72625
72626 2006-09-12  Jim Meyering  <jim@meyering.net>
72627
72628         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
72629         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
72630         Reported by Nelson H. F. Beebe.
72631
72632 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72633
72634         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
72635         program_invocation_name and program_invocation_short_name are
72636         initialized.
72637         * lib/argp-namefrob.h: Move declarations of program_invocation_name
72638         and program_invocation_short_name to argp.h, so they are visible
72639         to user programs.
72640         * lib/argp.h: Likewise
72641
72642 2006-09-10  Bruno Haible  <bruno@clisp.org>
72643
72644         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
72645         m4/inttypes_h.m4, m4/uintmax_t.m4.
72646
72647 2006-09-10  Bruno Haible  <bruno@clisp.org>
72648
72649         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
72650         gl_AC_TYPE_UINTMAX_T.
72651
72652 2006-09-10  Bruno Haible  <bruno@clisp.org>
72653
72654         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
72655
72656 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72657
72658         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
72659         convention.  Text proposed by Bruno Haible.
72660         (struct argp_option): Document the use of N_() wrappers.
72661
72662         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
72663         '\v', and translate the two parts separately, instead of feeding
72664         the whole string to gettext.  This allows to exclude
72665         '\v' from the strings visible to the translator by writing doc
72666         strings as N_("..") "\v" N_("..").
72667
72668 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
72669
72670         * config/srclist.txt: Undo latest change; the bug was fixed.
72671
72672 2006-09-09  Bruno Haible  <bruno@clisp.org>
72673
72674         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
72675         assignments if building a library without libtool.
72676         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
72677         in func_emit_lib_Makefile_am.
72678         (func_import): When building a static library libfoo.a, arrange to
72679         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
72680         (func_create_testdir): Likewise.
72681         * modules/gc (configure.ac, Makefile.am): If building statically,
72682         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
72683         * modules/iconvme (configure.ac, Makefile.am): Likewise.
72684         * modules/striconv (configure.ac, Makefile.am): Likewise.
72685         Based on a suggestion by Ralf Wildenhues.
72686
72687 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72688
72689         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72690         Check for unistd.h too, since Autoconf doesn't assume POSIX.
72691         Also:
72692
72693         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72694         Add year_2050_test to catch glibc bug 2821
72695         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
72696
72697         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72698         Prefer #ifdef to #if.
72699
72700         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
72701         Return from 'main' instead of calling 'exit'.
72702
72703 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72704
72705         * lib/mktime.c (guess_time_tm): Fix bug where mktime
72706         returned the maximum time_t value rather than (time_t) -1.
72707         Problem originally reported by William Bardwell
72708         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
72709
72710         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
72711         Moved to here ...
72712         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
72713         ... from here.
72714
72715 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72716
72717         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
72718         2821 is fixed.
72719
72720 2006-09-08  Jim Meyering  <jim@meyering.net>
72721
72722         Don't make generated files read-only.  That would bother too many
72723         people.  However, do retain the ability to work when targets are
72724         read-only: remove the destination and temporary files before writing
72725         them (when generated via sed or echo), or by using the -f option for
72726         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
72727         * modules/alloca-opt, modules/argz, modules/arpa_inet:
72728         * modules/byteswap, modules/configmake, modules/fcntl:
72729         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
72730         * modules/localcharset, modules/netinet_in, modules/poll:
72731         * modules/stdbool, modules/stdint, modules/sys_select:
72732         * modules/sys_socket, modules/sys_stat, modules/sysexits:
72733
72734 2006-09-08  Jim Meyering  <jim@meyering.net>
72735
72736         Avoid new build failure on FreeBSD 6.0.
72737         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
72738         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
72739         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
72740
72741 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72742
72743         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
72744
72745 2006-09-07  Jim Meyering  <jim@meyering.net>
72746
72747         Fix global typo in last change: use chmod u-w, not chmod u-x.
72748         Spotted by Paul Eggert and Bruce Korb.
72749         * modules/alloca-opt, modules/argz, modules/arpa_inet:
72750         * modules/byteswap, modules/configmake, modules/fcntl:
72751         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
72752         * modules/localcharset, modules/netinet_in, modules/poll:
72753         * modules/stdbool, modules/stdint, modules/sys_select:
72754         * modules/sys_socket, modules/sys_stat, modules/sysexits:
72755
72756 2006-09-06  Jim Meyering  <jim@meyering.net>
72757
72758         Make generated files be read-only.
72759         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
72760         Ensure that each generated file is now read-only.
72761         * modules/argz: Likewise.
72762         * modules/arpa_inet: Likewise.
72763         * modules/byteswap: Likewise.
72764         * modules/configmake: Likewise.
72765         * modules/fcntl: Likewise.
72766         * modules/fnmatch: Likewise.
72767         * modules/getopt: Likewise.
72768         * modules/glob: Likewise.
72769         * modules/inttypes: Likewise.
72770         * modules/netinet_in: Likewise.
72771         * modules/poll: Likewise.
72772         * modules/stdbool: Likewise.
72773         * modules/stdint: Likewise.
72774         * modules/sys_select: Likewise.
72775         * modules/sys_socket: Likewise.
72776         * modules/sys_stat: Likewise.
72777         * modules/sysexits: Likewise.
72778         * modules/localcharset: Same as above, but continue using temporary
72779         file named "t-$@" (why different?) rather than the "$@-t" used
72780         everywhere else.
72781
72782         * modules/sysexits (Makefile.am): Replace literal occurrences
72783         of "sysexit.h" more readable, and more consistent, "$@".
72784
72785 2006-09-06  Bruno Haible  <bruno@clisp.org>
72786
72787         * modules/striconv: New file.
72788         * modules/xstriconv: New file.
72789         * MODULES.html.sh (Internationalization functions): Add striconv,
72790         xstriconv.
72791
72792 2006-09-06  Bruno Haible  <bruno@clisp.org>
72793
72794         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
72795         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
72796         not using libtool correctly.
72797
72798 2006-09-06  Bruno Haible  <bruno@clisp.org>
72799
72800         * lib/striconv.h: New file.
72801         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
72802         iconvstring.c.
72803         * lib/xstriconv.h: New file.
72804         * lib/xstriconv.c: New file.
72805
72806 2006-09-06  Bruno Haible  <bruno@clisp.org>
72807
72808         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72809         lib_..._LDFLAGS.
72810
72811 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72812
72813         * lib/argz_.h: Sync from Libtool.
72814
72815         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
72816                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72817
72818         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
72819
72820 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
72821
72822         * modules/trim: New file.
72823
72824 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
72825
72826         * lib/trim.h: New file.
72827         * lib/trim.c: New file.
72828
72829 2006-09-05  Bruno Haible  <bruno@clisp.org>
72830
72831         * MODULES.html.sh (String handling): Add trim.
72832
72833 2006-09-04  Karl Berry  <karl@gnu.org>
72834
72835         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
72836         until next release.
72837
72838 2006-09-03  Bruno Haible  <bruno@clisp.org>
72839
72840         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
72841         correctly.
72842
72843 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72844
72845         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
72846         not gl_GETLOADAVG.  Omit unneeded semicolons.
72847         Problems reported by Ralf Wildenhues in
72848         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
72849         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
72850         at the end, which is the usual gnulib style.
72851
72852         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
72853         of doing all the work ourselves.
72854         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
72855         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
72856
72857 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72858
72859         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
72860         Problem reported by Ralf Wildenhues in
72861         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
72862
72863         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
72864         HAVE_STRUCT_STATFS_F_FSTYPENAME.
72865
72866 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72867
72868         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
72869         yesterday's patch by changing test -n to test -z.
72870
72871 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72872
72873         * modules/getloadavg (Files): Add m4/getloadavg.m4.
72874         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
72875         the former is now obsolescent.
72876
72877         * modules/chdir-long (Depends-on): Add fcntl.
72878
72879 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72880
72881         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
72882         obsolescent, and programs should use gnulib instead.
72883         * m4/getloadavg.m4: New file, with contents taken from Autoconf
72884         but with prefixes changed.
72885
72886 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72887
72888         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
72889         or stdbool.h, because they might not exist while configuring.
72890
72891         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
72892         Don't include unistd.h or limits.h; not needed, since chdir-long.h
72893         does that for us.
72894         (O_DIRECTORY): Remove.
72895
72896 2006-08-31  Eric Blake  <ebb9@byu.net>
72897
72898         * gnulib-tool: Don't let emacs change spaces to TAB.
72899
72900 2006-08-31  Bruno Haible  <bruno@clisp.org>
72901
72902         * gnulib-tool: When calling func_import more than once, do it in a
72903         subshell.
72904         Reported by Eric Blake <ebb9@byu.net>.
72905
72906 2006-08-31  Bruno Haible  <bruno@clisp.org>
72907
72908         * gnulib-tool (nl): Remove variable.
72909         (sed_transform_lib_file): Use more robust test for config-h module.
72910         (func_import): Fix typo in 2006-08-25 patch.
72911
72912 2006-08-31  Bruno Haible  <bruno@clisp.org>
72913
72914         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
72915         specified, augment Makefile.am variables instead of assigning them.
72916
72917 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72918
72919         Work around a bug in both the Linux and SunOS 64-bit kernels:
72920         nanosleep mishandles sleeps for longer than 2**31 seconds.
72921         Problem reported by Frank v Waveren in
72922         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
72923         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
72924         Check for nanosleep bug.
72925         (LIB_NANOSLEEP): Append clock_gettime library if needed.
72926
72927 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72928
72929         Work around a bug in both the Linux and SunOS 64-bit kernels:
72930         nanosleep mishandles sleeps for longer than 2**31 seconds.
72931         Problem reported by Frank v Waveren in
72932         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
72933         * lib/nanosleep.c (BILLION): New constant.
72934         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
72935         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
72936         implementation.
72937
72938 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72939
72940         * modules/nanosleep (Depends-on): Add gettime.
72941
72942 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72943         and Simon Josefsson  <jas@extundo.com>
72944         and Oskar Liljeblad  <oskar@osk.mine.nu>
72945
72946         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
72947         * gnulib-tool (func_import): New license type 'unmodifiable license
72948         text'.
72949         * modules/fdl: Use it.  Longer description.
72950         * module/gpl, module/lgpl: New files.
72951
72952 2006-08-30  Jim Meyering  <jim@meyering.net>
72953
72954         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
72955         shadowing the parameter.
72956
72957 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72958
72959         Sync from Libtool:
72960
72961         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72962
72963         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
72964         sharing with gnulib.  Report by Eric Blake.
72965
72966 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72967
72968         * modules/isapipe: New file.
72969         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
72970
72971 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72972
72973         * modules/configmake (Makefile.am): Add a comment, and omit
72974         the CONFIGMAKE_ prefix from generated macro names.  Suggested
72975         by Bruno Haible.
72976
72977 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72978
72979         * m4/isapipe.m4: New file.
72980
72981 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72982
72983         * lib/isapipe.c, lib/isapipe.h: New files.
72984
72985 2006-08-29  Jim Meyering  <jim@meyering.net>
72986
72987         * modules/configmake (Makefile.am): Make configmake.h depend on
72988         Makefile.  Otherwise, a stale configmake.h could hang around.
72989
72990 2006-08-29  Eric Blake  <ebb9@byu.net>
72991
72992         * lib/error.c (error_at_line, print_errno_message): Match libc, after
72993         resolution of upstream bug 3044.
72994
72995 2006-08-29  Bruno Haible  <bruno@clisp.org>
72996
72997         * modules/localcharset (Depends-on): Add configmake.
72998         (Makefile.am): Remove setting of LIBDIR through DEFS.
72999
73000 2006-08-29  Bruno Haible  <bruno@clisp.org>
73001
73002         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73003         defined.
73004
73005 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73006
73007         * modules/fcntl: New file.
73008         * modules/chdir-safer (Depends-on): Add fcntl.
73009         * modules/fts: Likewise.
73010         * modules/mkdir-p: Likewise.
73011
73012         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
73013         This undoes the most recent change, since we're now addressing the
73014         problem in a different way.
73015
73016         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
73017         into output, since the output might be called Makefile.am even
73018         if $makefile_name is something different.
73019         (func_import): Use $makefile_am rather than
73020         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
73021         empty.
73022
73023         * modules/inttypes (Files): Add m4/inttypes-h.m4.
73024
73025 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73026
73027         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
73028         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
73029         recent change to stdint.m4, since we're now addressing the problem in a
73030         different way.
73031
73032 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73033
73034         * m4/fcntl_h.m4: New file.
73035
73036 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73037
73038         * lib/fcntl_.h: New file.
73039         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
73040         the fcntl module.
73041         * lib/dirchownmod.c: Likewise.
73042         * lib/fts.c: Likewise.
73043
73044         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
73045         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
73046         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
73047         just before including <inttypes.h>, to avoid circular inclusion.
73048
73049 2006-08-28  Jim Meyering  <jim@meyering.net>
73050
73051         * doc/visibility.texi: Actually read and correct the grammar of the
73052         sentence affected by yesterday's change.
73053
73054 2006-08-28  Eric Blake  <ebb9@byu.net>
73055
73056         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
73057         needs wrapper.
73058
73059 2006-08-28  Eric Blake  <ebb9@byu.net>
73060
73061         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
73062
73063 2006-08-28  Eric Blake  <ebb9@byu.net>
73064
73065         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
73066
73067 2006-08-28  Bruno Haible  <bruno@clisp.org>
73068
73069         * modules/c-strstr: New file, from GNU gettext.
73070         * MODULES.html.sh (String handling): Add c-strstr.
73071
73072 2006-08-28  Bruno Haible  <bruno@clisp.org>
73073
73074         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
73075         macros.
73076         Reported by Eric Blake.
73077
73078 2006-08-28  Bruno Haible  <bruno@clisp.org>
73079
73080         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
73081         (VASNPRINTF): Return a string of length > INT_MAX without failing.
73082         * lib/vasprintf.c: Include errno.h, limits.h.
73083         (EOVERFLOW): New fallback definition.
73084         (vasprintf): Test here whether the string length is > INT_MAX.
73085         * lib/vsnprintf.c: Include errno.h, limits.h.
73086         (EOVERFLOW): New fallback definition.
73087         (vsnprintf): Fix bug when generated string was too long for the buffer.
73088         Test here whether the string length is > INT_MAX.
73089
73090 2006-08-28  Bruno Haible  <bruno@clisp.org>
73091
73092         * lib/inttypes_.h (SCNX*): Remove definitions.
73093         Reported by Eric Blake.
73094
73095 2006-08-28  Bruno Haible  <bruno@clisp.org>
73096
73097         * lib/c-strstr.h: New file, from GNU gettext.
73098         * lib/c-strstr.c: New file, from GNU gettext.
73099
73100 2006-08-28  Bruno Haible  <bruno@clisp.org>
73101
73102         * gnulib-tool: Reorder some statements.
73103
73104 2006-08-28  Bruno Haible  <bruno@clisp.org>
73105
73106         * gnulib-tool: New option --makefile-name.
73107         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
73108         $makefile_name.
73109         (func_import): Write $makefile_name to the cache file, and read it from
73110         there unless explicitly specified. Use $makefile_name as file name
73111         instead of Makefile.am. Adjust the recommendations accordingly.
73112
73113 2006-08-28  Bruno Haible  <bruno@clisp.org>
73114
73115         * gnulib-tool (func_verify_module): Check against misapplying patch.
73116
73117 2006-08-28  Bruno Haible  <bruno@clisp.org>
73118
73119         * gnulib-tool (func_relativize, func_relconcat): New functions.
73120         Give an error if --local-dir is given with --update.
73121         Remove trailing slashes from $local_gnulib_dir.
73122         (func_import): Store the relativized $local_gnulib_dir in
73123         gnulib-cache.m4, and read it from there if not specified explicitly.
73124
73125 2006-08-28  Bruno Haible  <bruno@clisp.org>
73126
73127         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
73128         is the current directory. Respect also $local_gnulib_dir.
73129
73130 2006-08-28  Bruno Haible  <bruno@clisp.org>
73131             Simon Josefsson  <jas@extundo.com>
73132
73133         BeOS portability.
73134         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
73135
73136 2006-08-27  Jim Meyering  <jim@meyering.net>
73137
73138         * doc/visibility.texi: Remove duplicate word: "pointer".
73139
73140 2006-08-26  Bruno Haible  <bruno@clisp.org>
73141
73142         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
73143         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
73144         (Makefile.am): Create inttypes.h from inttypes_.h.
73145         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
73146
73147         * modules/imaxabs: New file.
73148
73149         * modules/imaxdiv: New file.
73150
73151 2006-08-26  Bruno Haible  <bruno@clisp.org>
73152
73153         * m4/inttypes.m4: New file.
73154         * m4/_inttypes_h.m4: Remove file.
73155         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
73156         PRI_MACROS_BROKEN.
73157         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
73158
73159         * m4/imaxabs.m4: New file.
73160
73161         * m4/imaxdiv.m4: New file.
73162
73163 2006-08-26  Bruno Haible  <bruno@clisp.org>
73164
73165         * lib/inttypes_.h: New file.
73166         * lib/inttypes.h: Remove file.
73167         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
73168
73169         * lib/imaxabs.c: New file.
73170
73171         * lib/imaxdiv.c: New file.
73172
73173 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73174
73175         New config-h module, so that "make" output needn't be cluttered
73176         by -DHAVE_CONFIG_H.
73177         * MODULES.html.sh (Support for building libraries and executables):
73178         Add config-h.
73179         * modules/config-h: New file.
73180         * gnulib-tool (nl, sed_transform_lib_file): New vars.
73181         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
73182         the config-h module is used.
73183
73184         New configmake module, so that "make" output needn't be cluttered
73185         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
73186         * MODULES.html.sh (Support for building libraries and executables):
73187         Add configmake.
73188         * modules/configmake: New file.
73189
73190 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73191
73192         * m4/config-h.m4: New file.
73193
73194 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73195
73196         * config/srclist.txt: Add elisp-comp.
73197
73198 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73199
73200         * MODULES.html.sh (Support for building libraries and executables):
73201         Add elisp-comp.
73202         * build-aux/elisp-comp: New file.
73203         * modules/elisp-comp: New file.
73204
73205 2006-08-24  Bruno Haible  <bruno@clisp.org>
73206
73207         * gnulib-tool (func_create_testdir): Use non-default values of
73208         sourcebase and m4base.
73209
73210 2006-08-24  Bruno Haible  <bruno@clisp.org>
73211
73212         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
73213         HTML structure.
73214
73215 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73216
73217         * modules/openat (Depends-on): Add lchown.
73218
73219 2006-08-23  Bruno Haible  <bruno@clisp.org>
73220
73221         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
73222         of gl_LOCK_EARLY instead of gl_LOCK.
73223
73224 2006-08-23  Bruno Haible  <bruno@clisp.org>
73225
73226         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
73227         on OSF/1 to no.
73228         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
73229
73230 2006-08-23  Bruno Haible  <bruno@clisp.org>
73231
73232         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
73233         as unusable.
73234
73235         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
73236         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
73237         (gl_LOCK): New macro.
73238
73239 2006-08-22  Simon Josefsson  <jas@extundo.com>
73240
73241         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
73242         to md5 module.
73243
73244 2006-08-22  Simon Josefsson  <jas@extundo.com>
73245
73246         * MODULES.html.sh: Add "Support for maintaining and release
73247         projects".
73248
73249         * build-aux/gnupload: New file, from coreutils.
73250
73251 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73252
73253         Avoid the need for AC_LIBSOURCES in m4 macros.
73254         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
73255         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
73256         * modules/check-version (EXTRA_DIST): Add check-version.h.
73257         * modules/crc (EXTRA_DIST): Add crc.h.
73258         * modules/des (EXTRA_DIST): Add des.h.
73259         * modules/gc (EXTRA_DIST): Add gc.h.
73260         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
73261         * modules/getline (EXTRA_DIST): Add getline.h.
73262         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
73263         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
73264         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
73265         * modules/md2 (EXTRA_DIST): Add md2.h.
73266         * modules/md4 (EXTRA_DIST): Add md4.h.
73267         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
73268         * modules/read-file (EXTRA_DIST): Add read-file.h.
73269         * modules/readline (EXTRA_DIST): Add readline.h.
73270         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
73271         rijndael-api-fst.h.
73272
73273 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73274
73275         * m4/rijndael.m4 (gl_ARCFOUR):
73276         * m4/arctwo.m4 (gl_ARCTWO):
73277         * m4/check-version.m4 (gl_CHECK_VERSION):
73278         * m4/crc.m4 (gl_CRC):
73279         * m4/des.m4 (gl_DES):
73280         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
73281         * m4/gc.m4 (gl_GC):
73282         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
73283         * m4/getline.m4 (gl_FUNC_GETLINE):
73284         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
73285         * m4/hmac-md5.m4 (gl_HMAC_MD5):
73286         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
73287         * m4/md2.m4 (gl_MD2):
73288         * m4/md4.m4 (gl_MD4):
73289         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
73290         * m4/read-file.m4 (gl_FUNC_READ_FILE):
73291         * m4/readline.m4 (gl_FUNC_READLINE):
73292         * m4/rijndael.m4 (gl_RIJNDAEL):
73293         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
73294         to get the necessary .h files and whatnot.
73295
73296 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73297
73298         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
73299         gnulib rather than the other way around.
73300         * config/srclistvars.sh (COREUTILS): Remove.
73301
73302 2006-08-22  Jim Meyering  <jim@meyering.net>
73303
73304         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
73305
73306         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
73307
73308 2006-08-22  Eric Blake  <ebb9@byu.net>
73309
73310         * modules/regexprops-generic: New file.
73311         * MODULES.html.sh (Support for building documentation): List it.
73312
73313 2006-08-22  Eric Blake  <ebb9@byu.net>
73314
73315         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
73316         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
73317         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
73318         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
73319
73320 2006-08-22  Bruno Haible  <bruno@clisp.org>
73321
73322         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
73323         and lib_LTLIBRARIES like the other lib_* variables.
73324
73325 2006-08-22  Bruno Haible  <bruno@clisp.org>
73326
73327         * build-aux/x-to-1.in: New file, from GNU gettext.
73328
73329 2006-08-22  Bruno Haible  <bruno@clisp.org>
73330
73331         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
73332         <utmpx.h> exists.
73333
73334 2006-08-22  Bruno Haible  <bruno@clisp.org>
73335
73336         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
73337         <utmpx.h> exists.
73338
73339 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73340
73341         BeOS portability.
73342         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
73343         exist.
73344         Problem reported by Bruno Haible.
73345
73346 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73347
73348         Avoid the need for AC_LIBSOURCES in m4 macros.
73349         * modules/acl (EXTRA_DIST): Add acl.h.
73350         * modules/argmatch (Files): Add m4/argmatch.m4.
73351         (configure.ac): Add gl_ARGMATCH.
73352         (EXTRA_DIST): Renamed from lib_SOURCES, for
73353         consistency with the other modules.  Remove argmatch.c.
73354         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
73355         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
73356         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
73357         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
73358         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
73359         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
73360         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
73361         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
73362         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
73363         * modules/closeout (EXTRA_DIST): Add closeout.h.
73364         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
73365         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
73366         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
73367         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
73368         dirname.h; remove basename.c and stripslash.c.
73369         * modules/exclude (EXTRA_DIST): Add exclude.h.
73370         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
73371         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
73372         * modules/file-type (EXTRA_DIST): Add file-type.h.
73373         * modules/filemode (EXTRA_DIST): Add filemode.h.
73374         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
73375         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
73376         * modules/fpending (EXTRA_DIST): Add __fpending.h.
73377         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
73378         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
73379         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
73380         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
73381         * modules/getdate (EXTRA_DIST): Add getdate.c.
73382         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
73383         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
73384         * modules/getpass (EXTRA_DIST): Add getpass.h.
73385         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
73386         * modules/group-member (EXTRA_DIST): Add group-member.h.
73387         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
73388         * modules/hash (EXTRA_DIST): Add hash.h.
73389         * modules/human (EXTRA_DIST): Add human.h.
73390         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
73391         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
73392         * modules/lchown (EXTRA_DIST): Add lchown.h.
73393         * modules/long-options (EXTRA_DIST): Add long-options.h.
73394         * modules/lstat (EXTRA_DIST): Add lstat.h.
73395         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
73396         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
73397         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
73398         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
73399         * modules/memxor (EXTRA_DIST): Add memxor.h.
73400         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
73401         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
73402         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
73403         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
73404         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
73405         * modules/physmem (EXTRA_DIST): Add physmem.h.
73406         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
73407         * modules/posixver (EXTRA_DIST): Add posixver.h.
73408         * modules/quote (EXTRA_DIST): Add quote.h.
73409         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
73410         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
73411         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
73412         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
73413         regex_internal.h regexec.c.
73414         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
73415         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
73416         * modules/same (EXTRA_DIST): Add same.h.
73417         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
73418         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
73419         * modules/savedir (EXTRA_DIST): Add savedir.h.
73420         * modules/sha1 (EXTRA_DIST): Add sha1.h.
73421         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
73422         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
73423         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
73424         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
73425         * modules/strdup (EXTRA_DIST): Add strdup.h.
73426         * modules/strftime (EXTRA_DIST): Add strftime.h.
73427         * modules/strndup (EXTRA_DIST): Add strndup.h.
73428         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
73429         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
73430         * modules/time_r (EXTRA_DIST): Add time_r.h.
73431         * modules/timespec (EXTRA_DIST): Add timespec.h.
73432         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
73433         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
73434         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
73435         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
73436         * modules/userspec (EXTRA_DIST): Add userspec.h.
73437         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
73438         * modules/utimens (EXTRA_DIST): Add utimens.h.
73439         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
73440         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
73441         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
73442         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
73443         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
73444         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
73445         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
73446         * modules/yesno (EXTRA_DIST): Add yesno.h.
73447
73448 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73449
73450         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
73451
73452         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
73453         * m4/dev-ino.m4, same-inode.m4: Remove.
73454
73455         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
73456         * m4/acl.m4 (AC_FUNC_ACL):
73457         * m4/backupfile.m4 (gl_BACKUPFILE):
73458         * m4/c-strtod.m4 (gl_C99_STRTOLD):
73459         * m4/canon-host.m4 (gl_CANON_HOST):
73460         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73461         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
73462         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
73463         * m4/cloexec.m4 (gl_CLOEXEC):
73464         * m4/close-stream.m4 (gl_CLOSE_STREAM):
73465         * m4/closeout.m4 (gl_CLOSEOUT):
73466         * m4/dirfd.m4 (gl_FUNC_DIRFD):
73467         * m4/dirname.m4 (gl_DIRNAME):
73468         * m4/exclude.m4 (gl_EXCLUDE):
73469         * m4/exitfail.m4 (gl_EXITFAIL):
73470         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
73471         * m4/file-type.m4 (gl_FILE_TYPE):
73472         * m4/filemode.m4 (gl_FILEMODE):
73473         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
73474         * m4/fpending.m4 (gl_FUNC_FPENDING):
73475         * m4/fprintftime.m4 (gl_FPRINTFTIME):
73476         * m4/fts.m4 (gl_FUNC_FTS):
73477         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
73478         * m4/getdate.m4 (gl_GETDATE):
73479         * m4/gethrxtime.m4 (gl_GETHRXTIME):
73480         * m4/getpagesize.m4 (gl_GETPAGESIZE):
73481         * m4/getpass.m4 (gl_FUNC_GETPASS):
73482         * m4/gettime.m4 (gl_GETTIME):
73483         * m4/getugroups.m4 (gl_GETUGROUPS):
73484         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
73485         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
73486         * m4/hard-locale.m4 (gl_HARD_LOCALE):
73487         * m4/hash.m4 (gl_HASH):
73488         * m4/idcache.m4 (gl_IDCACHE):
73489         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
73490         * m4/lchown.m4 (gl_FUNC_LCHOWN):
73491         * m4/long-options.m4 (gl_LONG_OPTIONS):
73492         * m4/lstat.m4 (gl_FUNC_LSTAT):
73493         * m4/md5.m4 (gl_MD5):
73494         * m4/memcasecmp.m4 (gl_MEMCASECMP):
73495         * m4/memcoll.m4 (gl_MEMCOLL):
73496         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
73497         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
73498         * m4/memxor.m4 (gl_MEMXOR):
73499         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
73500         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
73501         * m4/modechange.m4 (gl_MODECHANGE):
73502         * m4/mountlist.m4 (gl_MOUNTLIST):
73503         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73504         * m4/openat.m4 (gl_FUNC_OPENAT):
73505         * m4/pathmax.m4 (gl_PATHMAX):
73506         * m4/physmem.m4 (gl_PHYSMEM):
73507         * m4/posixtm.m4 (gl_POSIXTM):
73508         * m4/posixver.m4 (gl_POSIXVER):
73509         * m4/quote.m4 (gl_QUOTE):
73510         * m4/quotearg.m4 (gl_QUOTEARG):
73511         * m4/readtokens.m4 (gl_READTOKENS):
73512         * m4/readutmp.m4 (gl_READUTMP):
73513         * m4/regex.m4 (gl_REGEX):
73514         * m4/safe-read.m4 (gl_SAFE_READ):
73515         * m4/safe-write.m4 (gl_SAFE_WRITE):
73516         * m4/same.m4 (gl_SAME):
73517         * m4/save-cwd.m4 (gl_SAVE_CWD):
73518         * m4/savedir.m4 (gl_SAVEDIR):
73519         * m4/settime.m4 (gl_SETTIME):
73520         * m4/sha1.m4 (gl_SHA1):
73521         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
73522         * m4/stat-macros.m4 (gl_STAT_MACROS):
73523         * m4/stat-time.m4 (gl_STAT_TIME):
73524         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
73525         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
73526         * m4/strdup.m4 (gl_FUNC_STRDUP):
73527         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
73528         * m4/strndup.m4 (gl_FUNC_STRNDUP):
73529         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
73530         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
73531         * m4/time_r.m4 (gl_TIME_R):
73532         * m4/timespec.m4 (gl_TIMESPEC):
73533         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
73534         * m4/unlinkdir.m4 (gl_UNLINKDIR):
73535         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
73536         * m4/userspec.m4 (gl_USERSPEC):
73537         * m4/utimecmp.m4 (gl_UTIMECMP):
73538         * m4/utimens.m4 (gl_UTIMENS):
73539         * m4/xalloc.m4 (gl_XALLOC):
73540         * m4/xgetcwd.m4 (gl_XGETCWD):
73541         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
73542         * m4/xreadlink.m4 (gl_XREADLINK):
73543         * m4/xstrtod.m4 (gl_XSTRTOD):
73544         * m4/yesno.m4 (gl_YESNO):
73545         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
73546         to get the necessary .h files and whatnot.
73547
73548 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
73549             Bruno Haible  <bruno@clisp.org>
73550
73551         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
73552         /bin/sh understanding of '!' conditional negation.
73553
73554 2006-08-21  Jim Meyering  <jim@meyering.net>
73555
73556         * modules/openat (Depends-on): Really alphabetize.
73557
73558         * modules/acl (Depends-on): Add error and quote.
73559
73560         * check-module (find_included_lib_files): Add at-func.c to the
73561         ok-to-include-more-than-once white list.
73562
73563         * modules/openat (Depends-on): Add lstat.  Alphabetize.
73564
73565 2006-08-21  Bruno Haible  <bruno@clisp.org>
73566
73567         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73568         Emit a pkgdata_DATA variable only if some snippets add contents to it.
73569         Reported by Martin Lambers <marlam@marlam.de>.
73570
73571 2006-08-21  Bruno Haible  <bruno@clisp.org>
73572
73573         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
73574         specify an installation location, don't emit a noinst_LIBRARIES or
73575         noinst_LTLIBRARIES assignment.
73576
73577 2006-08-21  Bruno Haible  <bruno@clisp.org>
73578
73579         BeOS portability.
73580         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
73581         BeOS has mbrtowc() but no <wctype.h>.
73582
73583 2006-08-21  Bruno Haible  <bruno@clisp.org>
73584
73585         BeOS portability.
73586         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
73587         exist.
73588
73589 2006-08-21  Bruno Haible  <bruno@clisp.org>
73590
73591         BeOS portability.
73592         * lib/mbchar.h: Include <wctype.h> only if it exists.
73593
73594 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73595
73596         Remove files that are no longer needed by their respective modules.
73597         * m4/obstack.m4: Remove.
73598         * m4/strerror_r.m4: Remove.
73599         * m4/uint32_t.m4: Remove.
73600         * m4/uintptr_t.m4: Remove.
73601         * m4/ullong_max.m4: Remove.
73602         * m4/xstrtoimax.m4: Remove.
73603         * m4/xstrtoumax.m4: Remove.
73604
73605         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
73606         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
73607         dependencies now capture this.
73608
73609         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
73610         Do not use AC_LIBSOURCES, since gnulib modules now do this.
73611         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
73612         * m4/human.m4 (gl_HUMAN): Likewise.
73613         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
73614         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
73615
73616         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
73617
73618         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
73619         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
73620         stdint.
73621         * m4/human.m4 (gl_HUMAN): Likewise.
73622         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
73623         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
73624         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
73625         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
73626         * m4/xstrtol (gl_XSTRTOL): Likewise.
73627
73628         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
73629         AC_TYPE_LONG_LONG_INT.
73630         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
73631         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
73632         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
73633         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
73634
73635         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
73636         on stdbool.
73637
73638         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
73639         (gl_PREREQ_XSTRTOUL): Remove.
73640
73641         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
73642
73643         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
73644         mode.
73645
73646 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73647
73648         Add and change modules to make it easier for coreutils to use
73649         gnulib-tool.
73650         * modules/backupfile (Files): Remove m4/d-ino.m4.
73651         (Depends-on): Add d-ino.
73652         * modules/cycle-check (Depends-on): Add stdint.
73653         (lib_SOURCES): Add cycle-check.h.
73654         * modules/d-ino: New module.
73655         * modules/d-type: New module.
73656         * modules/error (Files): Remove m4/strerror_r.m4.
73657         * modules/filemode (Files): Add m4/st_dm_mode.m4.
73658         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73659         m4/inttypes_h.m4, m4/uintmax_t.m4.
73660         (Depends-on): Add stdint.
73661         (lib_SOURCES): Add fsusage.h.
73662         * modules/getcwd (Files): Remove d-ino.m4.
73663         (Depends-on): Add d-ino.
73664         * modules/getndelim2 (Depends-on): Add stdint.
73665         * modules/glob (Files): Remove m4/d-type.m4.
73666         (Depends-on): Add d-type.
73667         * modules/host-os: New module.
73668         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
73669         m4/inttypes_h.m4, m4/uintmax_t.m4.
73670         * Depends-on: Add stdint.
73671         (lib_SOURCES): Add human.h.
73672         * modules/inttostr (Files): Remove m4/intmax_t.m4,
73673         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
73674         m4/uintmax_t.m4, m4/ulonglong.m4.
73675         (Depends-on): Add stdint.
73676         (EXTRA_DIST): Add inttostr.h.
73677         * modules/lchmod: New module.
73678         * modules/link-follow: New module.
73679         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
73680         (Depends-on): Add lchmod.
73681         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
73682         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
73683         (Depends-on): Add stdint.
73684         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
73685         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
73686         (Depends-on): Add stdint.
73687         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
73688         * modules/perl: New module.
73689         * modules/regex (Depends-on): Add stdint.
73690         * modules/rmdir-errno: New module.
73691         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
73692         m4/intmax_t.m4.
73693         (Depends-on): Add stdint.
73694         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
73695         m4/uintmax_t.m4.
73696         (Depends-on): Add stdint.
73697         * modules/unlink-busy: New module.
73698         * modules/utimecmp (Depends-on): Add stdint.
73699         * modules/uptime: New module.
73700         * modules/winsz-ioctl: New module.
73701         * modules/winsz-termios: New module.
73702         * modules/xnanosleep (Depends-on): Add nanosleep.
73703         * modules/ullong_max: Remove.
73704         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
73705         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
73706         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
73707         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
73708         (Depends-on): Add inttypes.
73709         (lib_SOURCES): Add xstrtol.h.
73710         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
73711         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
73712         * MODULES.html.sh: Move 'assert' into the assert section.
73713         Move 'dummy' into the linking section.
73714         Remove ullong_max.
73715         Add section for compatibility checks for POSIX:2001 functions,
73716         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
73717         winsz-ioctl, and winsz-termios into it.
73718         Add lchmod.
73719         Add top-level Misc section and put host-os, perl, and uptime
73720         into it.
73721
73722 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73723
73724         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
73725         now assume the stdint module.  Do not include inttypes.h.
73726         * lib/fsusage.h: Likewise.
73727         * lib/getndelim2.c: Likewise.
73728         * lib/human.h: Likewise.
73729         * lib/inttostr.h: Likewise.
73730         * lib/obstack.c: Likewise.
73731         * lib/regex_internal.h: Likewise.
73732         * lib/tempname.c: Likewise.
73733         * lib/utimecmp.c: Likewise.
73734         * lib/xstrtol.h: Likewise.
73735
73736         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
73737
73738         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
73739         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
73740         * lib/xtime.h: Likewise.
73741
73742 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73743
73744         * modules/openat (Files): Add lib/fchmodat.c.
73745         Fixes problem reported by Jay Youngman.
73746
73747 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73748
73749         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
73750         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
73751
73752 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
73753             Bruno Haible  <bruno@clisp.org>
73754
73755         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
73756         and is a script that invokes bison. Tighten the code. Add comments.
73757
73758 2006-08-18  Jim Meyering  <jim@meyering.net>
73759
73760         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
73761         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
73762         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
73763         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
73764
73765 2006-08-18  Bruno Haible  <bruno@clisp.org>
73766
73767         * modules/bison-i18n: New file.
73768         * MODULES.html.sh (Internationalization functions): Add it.
73769
73770 2006-08-18  Bruno Haible  <bruno@clisp.org>
73771
73772         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
73773         sys/statvfs.h. When getmntinfo was found, check its declaration and
73774         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
73775
73776 2006-08-18  Bruno Haible  <bruno@clisp.org>
73777
73778         * m4/bison-i18n.m4: New file, from bison.
73779
73780 2006-08-18  Bruno Haible  <bruno@clisp.org>
73781
73782         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
73783         (ME_DUMMY): Treat "kernfs" as a dummy.
73784         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
73785
73786 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73787
73788         Update from coreutils.
73789
73790         2006-08-15  Jim Meyering  <jim@meyering.net>
73791
73792         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
73793
73794         2006-01-17  Jim Meyering  <jim@meyering.net>
73795
73796         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
73797
73798         2006-01-11  Jim Meyering  <jim@meyering.net>
73799
73800         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
73801         Check for the lchmod function.
73802
73803 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73804
73805         Update from coreutils.
73806
73807         * lib/__fpending.h: Add copyright notice.
73808         * lib/fprintftime.h: Likewise.
73809         * lib/savedir.c: Use (C) in copyright notice.
73810         * lib/savedir.h: Likewise.
73811
73812         2006-08-15  Jim Meyering  <jim@meyering.net>
73813
73814         * lib/at-func.c: New file, with the logic of all emulated at-functions.
73815         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
73816         in support of the EXPECTED_ERRNO macro.
73817         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
73818         definitions.  Instead, define the appropriate symbols and include
73819         "at-func.c".
73820         * lib/mkdirat.c (mkdirat): Likewise.
73821         * lib/fchmodat.c (fchmodat): Likewise.
73822         (ENOSYS): Remove definition.
73823         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
73824         it.  Don't include "unistd--.h" -- it wasn't ever used.
73825
73826         2006-01-17  Jim Meyering  <jim@meyering.net>
73827
73828         Rewrite fts.c not to change the current working directory,
73829         by using openat, fstatat, fdopendir, etc..
73830
73831         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
73832         (HAVE_OPENAT_SUPPORT): Define.
73833         [_LIBC] (fchdir): Don't undef or define; no longer used.
73834         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
73835         Now, this `function' always succeeds, and consumes its file descriptor
73836         parameter -- so callers must not close such FDs.  Update callers.
73837         (diropen_fd, opendirat, cwd_advance_fd): New functions.
73838         (diropen): Add parameter, SP.  Adjust all callers.
73839         Implement using diropen_fd, rather than open.
73840         (fts_open): Initialize new member, fts_cwd_fd.
73841         Remove fts_rft-setting code.
73842         (fts_close): Close fts_cwd_fd, if necessary.
73843         (__opendir2): Define in terms of opendir or opendirat,
73844         depending on whether the FST_NOCHDIR flag is set.
73845         (fts_build): Since fts_safe_changedir consumes its FD, and since
73846         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
73847         and close the dup'd file descriptor upon failure.
73848         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
73849         (fts_safe_changedir): Tweak semantics to reflect that this function
73850         now calls cwd_advance_fd and hence consumes its FD argument.
73851         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
73852         [struct FTS] (fts_rft): Remove now-unused member.
73853         [struct FTS] (fts_cycle.state): Improve comment.
73854
73855         * lib/openat.c (openat_needs_fchdir): New function.
73856         * lib/openat.h (openat_needs_fchdir): Declare it.
73857
73858 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
73859
73860         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
73861         Problem and fix reported by Pádraig Brady in
73862         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
73863
73864 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73865
73866         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
73867
73868 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73869
73870         * lib/memcoll.c (memcoll): Optimize for the common case where the
73871         arguments are bytewise equal.
73872
73873 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73874
73875         * doc/regexprops-generic.texi: Add a copyright notice.
73876
73877 2006-08-15  Bruno Haible  <bruno@clisp.org>
73878
73879         * modules/tmpdir (License): Change to LGPL.
73880
73881 2006-08-15  Bruno Haible  <bruno@clisp.org>
73882
73883         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
73884         module.
73885
73886 2006-08-14  Simon Josefsson  <jas@extundo.com>
73887
73888         * config/srclist.txt: Add gnupload.
73889
73890 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73891
73892         Change copyright notice from LGPL 2 to GPL 2, since that's the
73893         standard form used in the gnulib repository.
73894         * tests/test-lock.c: Likewise.
73895         * tests/test-stdint.c: Likewise.
73896         * tests/test-tls.c: Likewise.
73897
73898         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
73899         prelude-manager.  User shorter URLs for GNU projects, without '?'.
73900         Add copyright notice.
73901
73902         * check-module: Add copyright notice.  Output a copyright
73903         notice if "--version" is specified.
73904         * modules/COPYING: New file.
73905         * tests/test-getaddrinfo.c: Add copyright notice.
73906         * tests/test-verify.c: Likewise.
73907
73908 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73909
73910         Change copyright notice from LGPL 2 to GPL 2, since that's the
73911         standard form used in the gnulib repository.
73912         * lib/lock.c: LGPL -> GPL.
73913         * lib/lock.h: Likewise.
73914         * lib/strnlen1.c: Likewise.
73915         * lib/strnlen1.h: Likewise.
73916         * lib/tls.c: Likewise.
73917         * lib/tls.h: Likewise.
73918         * lib/tmpdir.c: Likewise.
73919
73920         * lib/TODO: Remove; this belongs only in coreutils.
73921
73922 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73923
73924         Add copyright notices to long-enough files that lack them, since
73925         otherwise the files aren't clearly free.  Use the same notice that
73926         getdate.texi already uses.
73927         * doc/alloca-opt.texi: Add copyright notice.
73928         * doc/alloca.texi: Likewise.
73929         * doc/ctime.texi: Likewise.
73930         * doc/functions.texi: Likewise.
73931         * doc/gcd.texi: Likewise.
73932         * doc/gnulib-tool.texi: Likewise.
73933         * doc/inet_ntoa.texi: Likewise.
73934         * doc/visibility.texi: Likewise.
73935
73936         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
73937         * doc/quote.texi: Add copyright notice.
73938
73939         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
73940         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
73941         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
73942         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
73943         is now obsolete, and give a pointer to the Sun list.
73944         Add copyright notice.
73945
73946 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73947
73948         * config/srclistvars.sh: Add copyright notice.
73949
73950 2006-08-14  Eric Blake  <ebb9@byu.net>
73951
73952         Import the following change from libc:
73953
73954         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
73955
73956         Upstream bug 2997.
73957         * lib/misc/error.c: Add space between program name and message if file
73958         name is missing.
73959
73960 2006-08-12  Karl Berry  <karl@gnu.org>
73961
73962         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
73963         remove, these originate in gnulib now.
73964
73965 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73966
73967         * doc/Makefile (standards.info standards.html standards.dvi):
73968         Also depend on make-stds.texi.
73969
73970 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73971
73972         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
73973         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
73974
73975         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
73976         in wchar_t.  Problem reported by Eric Blake.
73977
73978         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
73979         LEN is smaller than SIZE.  Suggested by Bruno Haible.
73980         Also, help the compiler to keep LEN in a register.
73981
73982 2006-08-11  Eric Blake  <ebb9@byu.net>
73983
73984         * users.txt: Sort.  Add tar.
73985
73986 2006-08-11  Bruno Haible  <bruno@clisp.org>
73987
73988         * users.txt: New file.
73989
73990 2006-08-11  Bruno Haible  <bruno@clisp.org>
73991
73992         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
73993         before <wchar.h>. Needed for OSF/1 and BSD/OS.
73994
73995 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
73996
73997         * modules/snprintf (Depends-on): Remove minmax.
73998         (Maintainer): Add self and Bruno.
73999
74000 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74001
74002         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74003         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74004         (EOVERFLOW): Define if the system does not.
74005         Do not include "minmax.h"; it wasn't used.
74006         (snprintf): Don't assume size_t promotes to an unsigned type.
74007         Fix bug when generated string was too long for the buffer: the
74008         buffer's contents are supposed to be the initial prefix of the
74009         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74010         exceeds INT_MAX; do the check ourselves.
74011
74012         Import the following changes from libc:
74013
74014         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
74015
74016         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
74017         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
74018         set wc to the byte which couldn't be converted.
74019         (re_string_reconstruct): Don't clear valid_raw_len before calling
74020         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
74021         tip_context using re_string_context_at.
74022
74023         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
74024
74025         * lib/posix/regex.h: g++ still cannot handled [restrict].
74026
74027         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
74028
74029         * lib/posix/regex.h: Remove special handling for VMS.
74030
74031 2006-08-10  Jim Meyering  <jim@meyering.net>
74032
74033         * modules/same-inode: New module.
74034         * modules/dev-ino: New module.
74035         * modules/cycle-check: Depend on these modules, rather than simply
74036         including their .h files.
74037         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
74038         required via m4/cycle-check.m4.
74039         * modules/same: Depend on new same-inode module, rather than
74040         including same-inode.h.
74041         * modules/chdir-safer: New file.
74042
74043         * modules/chown (Depends-on): Add stat-macros.
74044
74045 2006-08-10  Jim Meyering  <jim@meyering.net>
74046
74047         * m4/cycle-check.m4: New file.
74048         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
74049         * m4/dev-ino.m4, m4/same-inode.m4: New files.
74050
74051 2006-08-10  Eric Blake  <ebb9@byu.net>
74052
74053         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
74054         in from original proposal.
74055
74056 2006-08-10  Eric Blake  <ebb9@byu.net>
74057         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74058
74059         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
74060         namespace.
74061
74062 2006-08-10  Bruno Haible  <bruno@clisp.org>
74063
74064         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
74065         as well.
74066
74067 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74068
74069         Sync from coreutils.
74070
74071         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
74072
74073         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
74074         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
74075
74076 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74077
74078         * modules/restrict: Remove; no longer needed now that we assume
74079         Autoconf 2.59 or later.
74080         * MODULES.html.sh: Remove 'restrict'.
74081         * modules/argp (Depends-on): Remove 'restrict'.
74082         * modules/base64 (Depends-on): Likewise.
74083         * modules/gc (Depends-on): Likewise.
74084         * modules/getaddrinfo (Depends-on): Likewise.
74085         * modules/glob (Depends-on): Likewise.
74086         * modules/inet_ntop (Depends-on): Likewise.
74087         * modules/inet_pton (Depends-on): Likewise.
74088         * modules/memxor (Depends-on): Likewise.
74089         * modules/regex (Depends-on): Likewise.
74090         * modules/strtok_r (Depends-on): Likewise.
74091         * modules/time_r (Depends-on): Likewise.
74092
74093 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74094
74095         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
74096         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
74097         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
74098         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
74099         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
74100         * m4/memxor.m4 (gl_MEMXOR): Likewise.
74101         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
74102         gl_C_RESTRICT replaced by AC_C_RESTRICT.
74103
74104         Merge from coreutils.
74105         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
74106         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
74107         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74108         * m4/time_r.m4 (gl_TIME_R): Likewise.
74109
74110 2006-08-09  Karl Berry  <karl@gnu.org>
74111
74112         * config/srclist.txt: no more gettext-tools, per Bruno.
74113
74114 2006-08-08  Eric Blake  <ebb9@byu.net>
74115
74116         * modules/verror: New module.
74117         * MODULES.html.sh: Document it.
74118
74119 2006-08-08  Eric Blake  <ebb9@byu.net>
74120
74121         * lib/verror.h, lib/verror.c: New files.
74122
74123 2006-08-08  Eric Blake  <ebb9@byu.net>
74124
74125         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
74126         verror_at_line output complies with GNU Coding Standards even when
74127         file is NULL.
74128
74129 2006-08-07  Bruno Haible  <bruno@clisp.org>
74130
74131         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
74132         versions of AIX.
74133         Reported by Ralf Wildenhues.
74134
74135 2006-08-07  Bruno Haible  <bruno@clisp.org>
74136
74137         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
74138         in an AC_DEFUN. Needed so that the autoconf snippets can use
74139         AC_REQUIRE.
74140
74141 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74142
74143         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74144         Initialize pkgdata_DATA.
74145         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
74146         overriding it.
74147
74148 2006-08-06  Eric Blake  <ebb9@byu.net>
74149
74150         * lib/error.h: Fold in some upstream changes from glibc.
74151         * lib/error.c: Likewise.
74152
74153 2006-08-04  Bruno Haible  <bruno@clisp.org>
74154
74155         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74156         Make the mostlyclean-local rule depend on mostlyclean-generic.
74157         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
74158
74159 2006-07-31  Bruno Haible  <bruno@clisp.org>
74160
74161         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
74162         <stdlib.h>, <string.h>.
74163
74164 2006-07-30  Bruno Haible  <bruno@clisp.org>
74165
74166         * modules/readlink (License): Change to LGPL.
74167
74168 2006-07-30  Bruno Haible  <bruno@clisp.org>
74169
74170         * modules/javaversion (Makefile.am): Distribute javaversion.java and
74171         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
74172         set PKGDATADIR to point to it.
74173
74174 2006-07-30  Bruno Haible  <bruno@clisp.org>
74175
74176         * modules/csharpexec (configure.ac): Comment out macro invocation.
74177         * modules/javaexec (configure.ac): Likewise.
74178         * modules/javacomp-script (configure.ac): Likewise.
74179
74180         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
74181
74182 2006-07-30  Bruno Haible  <bruno@clisp.org>
74183
74184         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
74185         linked-list.
74186
74187 2006-07-30  Bruno Haible  <bruno@clisp.org>
74188
74189         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
74190
74191 2006-07-30  Bruno Haible  <bruno@clisp.org>
74192
74193         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74194         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
74195         get removed.
74196
74197 2006-07-29  Bruno Haible  <bruno@clisp.org>
74198
74199         Make it possible for gnulib-tool to work with locally modified or
74200         augmented gnulib repositories.
74201         * gnulib-tool (func_usage): Document --local-dir option.
74202         (local_gnulib_dir): New variable.
74203         Handle --local-dir option.
74204         (func_lookup_file): New function.
74205         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
74206         (func_get_description, func_get_filelist, func_get_description,
74207         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
74208         func_get_automake_snippet, func_get_include_directive,
74209         func_get_license, func_get_maintainer): Use func_lookup_file.
74210         (func_import, func_create_testdir): Use func_lookup_file.
74211
74212 2006-07-29  Bruno Haible  <bruno@clisp.org>
74213
74214         * modules/setenv (Depends-on): Add unistd.
74215
74216 2006-07-29  Bruno Haible  <bruno@clisp.org>
74217
74218         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
74219
74220 2006-07-29  Bruno Haible  <bruno@clisp.org>
74221
74222         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
74223
74224 2006-07-29  Bruno Haible  <bruno@clisp.org>
74225
74226         * gnulib-tool (import, update): If there is no Makefile.am, look at
74227         aclocal.m4, instead of bailing out.
74228
74229 2006-07-29  Bruno Haible  <bruno@clisp.org>
74230
74231         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
74232         Categorize the options by when they are useful.
74233
74234 2006-07-29  Bruno Haible  <bruno@clisp.org>
74235
74236         * gnulib-tool (func_usage): Document option --no-libtool.
74237         Handle option --no-libtool.
74238         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
74239         for changed semantics of $libtool variable.
74240         (func_import): Likewise. If libtool is not used, show this through
74241         an option --no-libtool.
74242         (func_create_testdir): Update.
74243
74244 2006-07-29  Bruno Haible  <bruno@clisp.org>
74245
74246         * gnulib-tool (func_import): Extend error message about missing
74247         --doc-base.
74248
74249 2006-07-29  Bruno Haible  <bruno@clisp.org>
74250
74251         * gnulib-tool (func_import): Don't create the $docbase directory if
74252         there is no file to store there.
74253
74254 2006-07-29  Bruno Haible  <bruno@clisp.org>
74255
74256         * gnulib-tool (autoconf_minversion): If a --dir option is given and
74257         relevant, look for configure.ac there, not in the current directory.
74258         Also use a simple search for AC_PREREQ, not "autoconf --trace".
74259
74260 2006-07-29  Bruno Haible  <bruno@clisp.org>
74261
74262         * gnulib-tool (SORT): New variable.
74263         (func_usage): Undocument --assume-autoconf option.
74264         Remove --assume-autoconf option handling.
74265         (autoconf_minversion): Determine from the contents of configure.ac.
74266         (func_import): Remove autoconf_minversion handling.
74267         Suggested by Eric Blake.
74268
74269 2006-07-29  Bruno Haible  <bruno@clisp.org>
74270
74271         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
74272
74273 2006-07-29  Bruno Haible  <bruno@clisp.org>
74274
74275         * config/srclist.txt (*setenv.[ch]): Remove rules.
74276
74277 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74278
74279         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
74280
74281 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74282
74283         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
74284         arpa/inet.h.
74285
74286 2006-07-28  Simon Josefsson  <jas@extundo.com>
74287
74288         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
74289         * modules/inet_pton (Depends-on): Likewise.
74290
74291 2006-07-28  Simon Josefsson  <jas@extundo.com>
74292
74293         * m4/netinet_in_h.m4: New file.
74294
74295 2006-07-28  Simon Josefsson  <jas@extundo.com>
74296
74297         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
74298         #include's.
74299
74300 2006-07-28  Simon Josefsson  <jas@extundo.com>
74301
74302         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
74303         #include's.
74304
74305 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
74306
74307         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
74308         setgid on directories only if they set these bits.
74309         * lib/modechange.h: Remove obsolete comment about masks.
74310
74311 2006-07-28  Eric Blake  <ebb9@byu.net>
74312
74313         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
74314         macro expansion.
74315
74316 2006-07-28  Bruno Haible  <bruno@clisp.org>
74317
74318         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
74319
74320 2006-07-28  Bruno Haible  <bruno@clisp.org>
74321
74322         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
74323
74324 2006-07-28  Bruno Haible  <bruno@clisp.org>
74325
74326         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
74327         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
74328         Define fallbacks.
74329         Avoids link error on FreeBSD 4.x.
74330         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74331
74332         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
74333         encoding.
74334         * lib/mbswidth.c (iswcntrl): Likewise.
74335
74336 2006-07-27  Bruno Haible  <bruno@clisp.org>
74337
74338         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
74339         test.
74340
74341 2006-07-27  Bruno Haible  <bruno@clisp.org>
74342
74343         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
74344         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
74345         defined.
74346
74347 2006-07-26  Eric Blake  <ebb9@byu.net>
74348
74349         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
74350
74351 2006-07-26  Eric Blake  <ebb9@byu.net>
74352
74353         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
74354         like mingw that lack mkstemp.
74355         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
74356         avoid compilation warning on mingw.
74357
74358 2006-07-26  Bruno Haible  <bruno@clisp.org>
74359
74360         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
74361         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
74362         INT_FAST*_MIN, INTPTR_MIN.
74363
74364 2006-07-25  Bruno Haible  <bruno@clisp.org>
74365
74366         * modules/version-etc (Depends-on): Add stdarg.
74367
74368 2006-07-25  Bruno Haible  <bruno@clisp.org>
74369
74370         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
74371         complex commands.
74372
74373 2006-07-25  Bruno Haible  <bruno@clisp.org>
74374
74375         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
74376         defined in <stdarg.h> or config.h.
74377
74378 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
74379
74380         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
74381         (gl_STDIO_SAFER): Remove.
74382
74383 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
74384
74385         * MODULES.html.sh (File stream based Input/Output):
74386         Add fopen-safer, tmpfile-safer; remove stdio-safer.
74387         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
74388         * modules/fopen-safer, modules/tmpfile-safer: New files.
74389         * modules/stdio-safer: Remove.
74390
74391 2006-07-24  Bruno Haible  <bruno@clisp.org>
74392
74393         * modules/tmpdir: New file.
74394         * MODULES.html.sh (File system functions): Add it.
74395
74396 2006-07-24  Bruno Haible  <bruno@clisp.org>
74397
74398         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
74399         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
74400
74401 2006-07-24  Bruno Haible  <bruno@clisp.org>
74402
74403         * modules/clean-temp: New file.
74404
74405 2006-07-24  Bruno Haible  <bruno@clisp.org>
74406
74407         * m4/tmpdir.m4: New file, from GNU gettext.
74408
74409 2006-07-24  Bruno Haible  <bruno@clisp.org>
74410
74411         * lib/tmpdir.h: New file, from GNU gettext.
74412         * lib/tmpdir.c: New file, from GNU gettext.
74413
74414 2006-07-24  Bruno Haible  <bruno@clisp.org>
74415
74416         * lib/clean-temp.h: New file, from GNU gettext.
74417         * lib/clean-temp.c: New file, from GNU gettext.
74418
74419 2006-07-23  Eric Blake  <ebb9@byu.net>
74420
74421         * modules/stdio-safer (Files): Add tmpfile-safer.c.
74422         (Depends-on): Add binary-io.
74423
74424 2006-07-23  Eric Blake  <ebb9@byu.net>
74425
74426         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
74427
74428 2006-07-23  Eric Blake  <ebb9@byu.net>
74429
74430         * lib/tmpfile-safer.c: New file.
74431         * lib/stdio-safer.h (fopen_safer): Add prototype.
74432         * lib/stdio--.h (tmpfile): Make safer.
74433
74434 2006-07-23  Bruno Haible  <bruno@clisp.org>
74435
74436         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
74437         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
74438         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
74439         gl_linked_remove_at): Use it.
74440
74441 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74442         and Simon Josefsson <jas@extundo.com>
74443
74444         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
74445
74446         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
74447
74448 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74449
74450         * modules/close-stream: New file.
74451         * modules/closeout (Description): Make it clear that it exits
74452         with a diagnostic on error.
74453         (Depends-on): Add close-stream.  Remove fpending, stdbool.
74454         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
74455
74456 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74457
74458         * m4/close-stream.m4: New file.
74459
74460 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74461
74462         * lib/close-stream.c, lib/close-stream.h: New files.
74463
74464 2006-07-22  Bruno Haible  <bruno@clisp.org>
74465
74466         Merge from GNU gettext 0.15.
74467
74468         2006-05-01  Bruno Haible  <bruno@clisp.org>
74469
74470                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
74471
74472         2006-07-22  Bruno Haible  <bruno@clisp.org>
74473
74474                 * modules/javaversion: New file.
74475                 * MODULES.html.sh (Java): Add javaversion.
74476
74477         2006-03-12  Bruno Haible  <bruno@clisp.org>
74478
74479                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
74480
74481         2005-12-04  Bruno Haible  <bruno@clisp.org>
74482
74483                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
74484                 (untested).
74485
74486         2006-06-21  Bruno Haible  <bruno@clisp.org>
74487
74488                 Avoid warnings from recent versions of mcs.
74489                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
74490                 -o, -L, -r any more. Use options documented since mcs-1.0
74491                 instead. Similarly for -g.
74492
74493         2005-12-04  Bruno Haible  <bruno@clisp.org>
74494
74495                 * build-aux/csharpcomp.sh.in: Suffix for resources is
74496                 .resources, not .resource.
74497
74498         2005-07-09  Bruno Haible  <bruno@clisp.org>
74499
74500                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
74501                 add a .dll suffix.
74502                 Reported by Mark Junker <mjscod@gmx.de>.
74503
74504         2006-07-22  Bruno Haible  <bruno@clisp.org>
74505
74506                 * modules/gettext: Upgrade to gettext-0.15.
74507                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
74508                 m4/visibility.m4.
74509                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
74510
74511 2006-07-22  Bruno Haible  <bruno@clisp.org>
74512
74513         Merge from GNU gettext 0.15.
74514
74515         2006-03-25  Bruno Haible  <bruno@clisp.org>
74516
74517                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
74518
74519         2006-07-21  Bruno Haible  <bruno@clisp.org>
74520
74521                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
74522                 "1.1".
74523
74524         2006-05-09  Bruno Haible  <bruno@clisp.org>
74525
74526                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
74527                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
74528                 for the conftestver execution.
74529
74530         2006-05-01  Bruno Haible  <bruno@clisp.org>
74531
74532                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
74533                 optional target-version argument. Verify that the compiler
74534                 groks source of the specified source-version, or add -source
74535                 option as necessary. Verify that the compiler produces
74536                 bytecode in the specified target-version, or add -target and
74537                 -source options as necessary. Make the result of the test
74538                 available as variable CONF_JAVAC. Also log error output in
74539                 config.log.
74540
74541         2006-03-11  Bruno Haible  <bruno@clisp.org>
74542
74543                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
74544
74545         2006-05-09  Bruno Haible  <bruno@clisp.org>
74546
74547                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
74548                 CLASSPATH_SEPARATOR to a semicolon.
74549
74550         2006-03-12  Bruno Haible  <bruno@clisp.org>
74551
74552                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
74553                 available as variable CONF_JAVA, for subsequent autoconf
74554                 tests. Also log error output in config.log.
74555
74556         2006-07-19  Bruno Haible  <bruno@clisp.org>
74557
74558                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
74559                 that getline works on glibc2 systems. Needed to avoid trouble
74560                 in relocatable.c.
74561                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
74562
74563         2005-12-04  Bruno Haible  <bruno@clisp.org>
74564
74565                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
74566                 launcher (untested).
74567
74568         2005-12-04  Bruno Haible  <bruno@clisp.org>
74569
74570                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
74571
74572         2006-07-22  Bruno Haible  <bruno@clisp.org>
74573
74574                 * gettext.m4: Update from GNU gettext-0.15.
74575                 * nls.m4: Likewise.
74576                 * po.m4: Likewise.
74577                 * inttypes-pri.m4: Likewise.
74578                 * inttypes-h.m4: Renamed from inttypes.m4.
74579                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
74580
74581 2006-07-22  Bruno Haible  <bruno@clisp.org>
74582
74583         Merge from GNU gettext 0.15.
74584
74585         2005-07-05  Bruno Haible  <bruno@clisp.org>
74586
74587                 * printf-args.c (printf_fetchargs): Work around broken
74588                 definition of wint_t on mingw.
74589
74590         2005-02-12  Bruno Haible  <bruno@clisp.org>
74591
74592                 * xallocsa.h: Add extern "C" for C++.
74593
74594         2006-05-17  Bruno Haible  <bruno@clisp.org>
74595
74596                 Cygwin portability.
74597                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
74598
74599         2006-04-30  Bruno Haible  <bruno@clisp.org>
74600
74601                 * progreloc.c: Include <mach-o/dyld.h> if available.
74602                 (find_executable): Use _NSGetExecutablePath when possible.
74603
74604         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74605
74606                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
74607                 function.
74608
74609         2005-12-29  Bruno Haible  <bruno@clisp.org>
74610
74611                 * progreloc.c (set_program_name_and_installdir): Fix
74612                 compilation error.
74613
74614         2005-12-04  Bruno Haible  <bruno@clisp.org>
74615
74616                 Cygwin portability.
74617                 * progreloc.c: Include <windows.h> also on Cygwin.
74618                 (find_executable): Add support for Cygwin.
74619                 (set_program_name_and_installdir): Handle also platforms with
74620                 nonempty EXEEXT.
74621
74622         2006-07-11  Bruno Haible  <bruno@clisp.org>
74623
74624                 * javacomp.c: Fix a comment.
74625                 Reported by Jim Meyering.
74626
74627         2006-04-30  Bruno Haible  <bruno@clisp.org>
74628
74629                 * javacomp.h (compile_java_class): Add source_version,
74630                 target_version arguments.
74631                 * javacomp.c: Rewritten to choose only a compiler that
74632                 respects the specified source_version and target_version.
74633
74634         2006-06-27  Bruno Haible  <bruno@clisp.org>
74635
74636                 Assume correct S_ISDIR macro.
74637                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
74638
74639         2006-07-22  Bruno Haible  <bruno@clisp.org>
74640
74641                 * javaversion.h: New file, from GNU gettext.
74642                 * javaversion.c: New file, from GNU gettext.
74643                 * javaversion.java: New file, from GNU gettext.
74644                 * javaversion.class: New file, from GNU gettext.
74645
74646         2006-05-17  Bruno Haible  <bruno@clisp.org>
74647
74648                 Cygwin portability.
74649                 * javaexec.c (execute_java_class): Test for jview program
74650                 also on Cygwin.
74651
74652         2006-04-09  Bruno Haible  <bruno@clisp.org>
74653
74654                 * fatal-signal.c: Don't include string.h.
74655                 (at_fatal_signal): Use a copying loop instead of memcpy.
74656
74657         2005-12-04  Bruno Haible  <bruno@clisp.org>
74658
74659                 * csharpexec.c: Add support for 'clix' launcher (untested).
74660                 (execute_csharp_using_sscli): New function.
74661                 (execute_csharp_program): Call it.
74662
74663         2006-06-21  Bruno Haible  <bruno@clisp.org>
74664
74665                 Avoid warnings from recent versions of mcs.
74666                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
74667                 -o, -L, -r any more. Use options documented since mcs-1.0
74668                 instead. Similarly for -g.
74669
74670         2005-07-09  Bruno Haible  <bruno@clisp.org>
74671
74672                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
74673                 add a .dll suffix.
74674                 Reported by Mark Junker <mjscod@gmx.de>.
74675
74676         2006-06-17  Bruno Haible  <bruno@clisp.org>
74677
74678                 * config.charset: Update for NetBSD 3.0.
74679
74680         2006-05-17  Bruno Haible  <bruno@clisp.org>
74681
74682                 Cygwin portability.
74683                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
74684
74685         2006-05-16  Bruno Haible  <bruno@clisp.org>
74686
74687                 * localcharset.c [CYGWIN]: Include <windows.h>.
74688                 (get_charset_aliases): For Cygwin, return the same CPxxx
74689                 aliases list as under WIN32.
74690                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
74691                 the environment variables. Fall back to GetACP().
74692
74693         2006-04-05  Bruno Haible  <bruno@clisp.org>
74694
74695                 * config.charset: Update Juan Manuel Guerrero's address.
74696
74697         2005-02-12  Bruno Haible  <bruno@clisp.org>
74698
74699                 * allocsa.h: Add extern "C" for C++.
74700
74701         2005-02-10  Bruno Haible  <bruno@clisp.org>
74702
74703                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
74704                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
74705
74706         2006-07-22  Bruno Haible  <bruno@clisp.org>
74707
74708                 * gettext.h: Update to GNU gettext-0.15.
74709
74710 2006-07-22  Bruno Haible  <bruno@clisp.org>
74711
74712         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
74713         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
74714         lib-prefix.m4, longdouble.m4, ssize_t.m4.
74715
74716 2006-07-21  Eric Blake  <ebb9@byu.net>
74717
74718         * modules/stdlib-safer: New file.
74719         * MODULES.html.sh (File stream based Input/Output): Add
74720         stdlib-safer.
74721
74722 2006-07-21  Eric Blake  <ebb9@byu.net>
74723
74724         * lib/stdlib-safer.h: New file from coreutils, required by
74725         stdlib--.h.
74726
74727 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
74728
74729         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
74730
74731 2006-07-20  Bruno Haible  <bruno@clisp.org>
74732
74733         * gnulib-tool: Recognize new option --assume-autoconf.
74734         (autoconf_minversion): New variable.
74735         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
74736
74737 2006-07-20  Bruno Haible  <bruno@clisp.org>
74738
74739         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
74740
74741 2006-07-19  Derek R. Price  <derek@ximbiot.com>
74742
74743         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
74744         Reindent and repaginate.
74745
74746 2006-07-19  Derek Price  <derek@ximbiot.com>
74747
74748         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
74749         Correct grammar.
74750
74751 2006-07-17  Bruno Haible  <bruno@clisp.org>
74752
74753         * modules/list: New file.
74754         * modules/array-list: New file.
74755         * modules/carray-list, modules/carray-list-tests: New files.
74756         * modules/linked-list, modules/linked-list-tests: New files.
74757         * modules/avltree-list, modules/avltree-list-tests: New files.
74758         * modules/rbtree-list, modules/rbtree-list-tests: New files.
74759         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
74760         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
74761         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
74762         * modules/oset: New file.
74763         * modules/array-oset: New file.
74764         * modules/avltree-oset, modules/avltree-oset-tests: New files.
74765         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
74766         * tests/test-carray_list.c: New file.
74767         * tests/test-linked_list.c: New file.
74768         * tests/test-avltree_list.c: New file.
74769         * tests/test-rbtree_list.c: New file.
74770         * tests/test-linkedhash_list.c: New file.
74771         * tests/test-avltreehash_list.c: New file.
74772         * tests/test-rbtreehash_list.c: New file.
74773         * tests/test-avltree_oset.c: New file.
74774         * tests/test-rbtree_oset.c: New file.
74775         * MODULES.html.sh (Container data structures): New section.
74776
74777 2006-07-17  Bruno Haible  <bruno@clisp.org>
74778
74779         * m4/gl_list.m4: New file.
74780
74781 2006-07-17  Bruno Haible  <bruno@clisp.org>
74782
74783         * lib/gl_list.h: New file.
74784         * lib/gl_list.c: New file.
74785         * lib/gl_array_list.h: New file.
74786         * lib/gl_array_list.c: New file.
74787         * lib/gl_carray_list.h: New file.
74788         * lib/gl_carray_list.c: New file.
74789         * lib/gl_linked_list.h: New file.
74790         * lib/gl_linked_list.c: New file.
74791         * lib/gl_anylinked_list1.h: New file.
74792         * lib/gl_anylinked_list2.h: New file.
74793         * lib/gl_avltree_list.h: New file.
74794         * lib/gl_avltree_list.c: New file.
74795         * lib/gl_anyavltree_list1.h: New file.
74796         * lib/gl_anyavltree_list2.h: New file.
74797         * lib/gl_rbtree_list.h: New file.
74798         * lib/gl_rbtree_list.c: New file.
74799         * lib/gl_anyrbtree_list1.h: New file.
74800         * lib/gl_anyrbtree_list2.h: New file.
74801         * lib/gl_anytree_list1.h: New file.
74802         * lib/gl_anytree_list2.h: New file.
74803         * lib/gl_linkedhash_list.h: New file.
74804         * lib/gl_linkedhash_list.c: New file.
74805         * lib/gl_anyhash_list1.h: New file.
74806         * lib/gl_anyhash_list2.h: New file.
74807         * lib/gl_avltreehash_list.h: New file.
74808         * lib/gl_avltreehash_list.c: New file.
74809         * lib/gl_rbtreehash_list.h: New file.
74810         * lib/gl_rbtreehash_list.c: New file.
74811         * lib/gl_anytreehash_list1.h: New file.
74812         * lib/gl_anytreehash_list2.h: New file.
74813
74814         * lib/gl_oset.h: New file.
74815         * lib/gl_oset.c: New file.
74816         * lib/gl_array_oset.h: New file.
74817         * lib/gl_array_oset.c: New file.
74818         * lib/gl_avltree_oset.h: New file.
74819         * lib/gl_avltree_oset.c: New file.
74820         * lib/gl_rbtree_oset.h: New file.
74821         * lib/gl_rbtree_oset.c: New file.
74822         * lib/gl_anytree_oset.h: New file.
74823
74824 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
74825
74826         * m4/mkancesdirs.m4: New file.
74827         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
74828         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
74829         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
74830         it.
74831
74832 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
74833
74834         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
74835         * lib/mkancesdirs.h: New files.
74836         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
74837         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
74838         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
74839         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
74840         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
74841         callers changed.  Revamp internals significantly, by not
74842         attempting to create directories that are temporarily more
74843         permissive than the final results.  Do not attempt to use
74844         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
74845         This removes some race conditions, fixes some bugs, and simplifies
74846         things.  Use new dirchownmod function to do owner and mode changes.
74847         * lib/mkdir-p.h: Likewise.
74848         * lib/modechange.c (octal_to_mode): New function.
74849         (struct mode_change): New member mentioned.
74850         (make_node_op_equals): New arg mentioned.  All callers changed.
74851         (mode_compile): Keep track of which mode bits the user has explicitly
74852         mentioned.
74853         (mode_adjust): New arg DIR, so that we implement the X op correctly.
74854         New arg PMODE_BITS, to keep track of which mode bits the user
74855         mentioned; it treats S_ISUID and S_ISGID speciall.
74856         All callers changed.
74857         * lib/modechange.h: Likewise.
74858
74859 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
74860
74861         * MODULES.html.sh: Add mkancestors.
74862         * modules/mkancesdirs: New module.
74863         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
74864         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
74865         The chdir-safer and afs files are now orphans; I'll remove them
74866         unless someone speaks up.
74867         Add lib/dirchownmod.c, lib/dirchownmod.h.
74868         (Depends-on): Remove alloca, chown, save-cwd, dirname.
74869         Add lchown, mkancesdirs.
74870         (Maintainer): Add self.
74871
74872 2006-07-15  Karl Berry  <karl@gnu.org>
74873
74874         * gnulib-tool: help message wording/arrangement.
74875
74876 2006-07-14  Simon Josefsson  <jas@extundo.com>
74877
74878         * doc/gnulib.texi (Libtool and Windows): New section.
74879
74880 2006-07-12  Simon Josefsson  <jas@extundo.com>
74881
74882         * modules/gendocs (License): Fix license, approved by Karl.
74883
74884 2006-07-12  Eric Blake  <ebb9@byu.net>
74885
74886         * MODULES.html.sh: Add gendocs.
74887
74888 2006-07-11  Eric Blake  <ebb9@byu.net>
74889
74890         * modules/fdl: New module, to install doc/fdl.texi.
74891         * MODULES.html.sh: Add new section for documentation modules.
74892         * gnulib-tool: Avoid space-tab.
74893         (--doc-base): New option, to manage files from doc.
74894
74895 2006-07-11  Eric Blake  <ebb9@byu.net>
74896
74897         * m4/absolute-header.m4: Fix comments to match recent change.
74898
74899 2006-07-11  Eric Blake  <ebb9@byu.net>
74900
74901         * gnulib-tool: List --doc-base before --tests-base.
74902
74903 2006-07-11  Derek R. Price  <derek@ximbiot.com>
74904
74905         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
74906
74907 2006-07-11  Bruno Haible  <bruno@clisp.org>
74908
74909         * README: Mention where to put documentation.
74910
74911 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74912
74913         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
74914
74915 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
74916
74917         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
74918         to stdint.m4.
74919
74920 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
74921
74922         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
74923         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
74924         "no/such/file/stdint.h" when there is no such file, so that
74925         the resulting C code can be parsed by dodgy compilers.
74926         Problems reported by Bob Proulx.
74927
74928 2006-07-10  Derek R. Price  <derek@ximbiot.com>
74929
74930         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
74931         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
74932         macros into the GNU _D_EXACT_NAMLEN.
74933         * lib/savedir.c:  Likewise.
74934         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
74935
74936 2006-07-10  Derek R. Price  <derek@ximbiot.com>
74937         and Paul Eggert  <eggert@cs.ucla.edu>
74938
74939         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
74940         * m4/savedir.m4:
74941         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
74942         macros into the GNU _D_EXACT_NAMLEN.
74943
74944 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74945
74946         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
74947         around the absolute name, to work around a problem with the HP-UX
74948         11.23 native C compiler, reported by Bob Proulx.
74949
74950 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74951
74952         * doc/maintain.texi, make-stds.texi: Sync from
74953         <http://savannah.gnu.org/projects/gnustandards>.
74954
74955 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74956
74957         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
74958
74959 2006-07-09  Jim Meyering  <jim@meyering.net>
74960
74961         * m4/glob.m4: Remove a doubled word in a comment.
74962
74963 2006-07-09  Jim Meyering  <jim@meyering.net>
74964
74965         * lib/argp-pv.c: Remove a doubled word in a comment.
74966         * lib/check-version.c (check_version): Likewise.
74967         * lib/javacomp.c (compile_java_class): Likewise.
74968
74969 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
74970
74971         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
74972         for the benefit of people using Autoconf 2.60.  If you want to
74973         support older Autoconf versions you can copy m4/onceonly_2_57.m4
74974         (or m4/onceonly.m4, if pre-2.57) manually.
74975
74976 2006-07-08  Jim Meyering  <jim@meyering.net>
74977
74978         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
74979         comment.
74980         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
74981         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
74982         comment.
74983
74984 2006-07-08  Jim Meyering  <jim@meyering.net>
74985
74986         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
74987
74988 2006-07-07  Simon Josefsson  <jas@extundo.com>
74989
74990         * tests/test-crc.c: Change expected crc value, the test vector
74991         were probably computed using the old broken crc.c?
74992
74993 2006-07-06  Simon Josefsson  <jas@extundo.com>
74994
74995         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
74996         now the canonical place for the M4 file).
74997
74998         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
74999         from the sys_socket dependency now.
75000
75001         * modules/inet_pton (Files): Ditto.
75002
75003         * modules/inet_ntop (Files): Ditto.
75004
75005 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75006
75007         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75008         not gl_PREREQ_GETUSERSHELL.
75009
75010 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75011
75012         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
75013         with only one argument, for Autoconf 2.60.
75014         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
75015         expand to nothing, so add a shell command to avoid syntax error.
75016         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75017
75018 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75019
75020         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
75021
75022 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75023
75024         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
75025         no longer needed.  Check for isblank decl.
75026         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
75027         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
75028         of existence.
75029
75030 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75031
75032         * lib/getloadavg.c: Use __VMS, not VMS.
75033         * lib/getopt.c: Likewise.
75034         * lib/getpagesize.h: Likewise.
75035         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
75036         and probably does not work.
75037
75038 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75039
75040         * lib/.cppi-disable: Add wcwidth.
75041         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
75042         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
75043         (ISGRAPH): Remove.  All uses changed to isgraph.
75044         (FOLD) [!defined _LIBC]: Remove special case.
75045         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
75046         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
75047         HAVE_ISBLANK.
75048         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
75049         case.
75050
75051 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75052
75053         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
75054         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
75055         brackets.  Other minor changes to suppress some compiler
75056         warnings.
75057
75058 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75059         and Paul Eggert  <eggert@cs.ucla.edu>
75060
75061         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
75062         of invoking obsolescent AC_HEADER_DIRENT macro.
75063         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
75064         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
75065         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
75066         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
75067         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
75068         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75069         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
75070         * m4/readdir.m4: Remove; no longer needed.
75071
75072 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75073         and Paul Eggert  <eggert@cs.ucla.edu>
75074
75075         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
75076         Don't worry about this obsolete case any more.
75077         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
75078         directories.
75079         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
75080         worry about this obsolete case any more.
75081         * lib/fts.c: Likewise.
75082         * lib/getcwd.c: Likewise.
75083         * lib/glob.h: Likewise.
75084         * lib/savedir.c: Likewise.
75085
75086 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75087
75088         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
75089         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
75090         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
75091         needed.
75092         All uses removed.
75093         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75094         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75095         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
75096         needed.
75097         * m4/getdate.m4 (gl_GETDATE): Likewise.
75098         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75099         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75100         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75101         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75102         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75103         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75104         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
75105         needed.
75106
75107 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75108
75109         * lib/memcasecmp.c: Include <limits.h>.
75110         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
75111         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
75112         Don't assume isdigit succeeds only on '0' through '9'.
75113
75114 2006-07-05  Eric Blake  <ebb9@byu.net>
75115
75116         * modules/getaddrinfo (Depends-on): Add snprintf.
75117
75118 2006-07-05  Eric Blake  <ebb9@byu.net>
75119
75120         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
75121         to avoid 'header present but could not be compiled' on cygwin.
75122
75123 2006-07-05  Eric Blake  <ebb9@byu.net>
75124
75125         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
75126         missing from netdb.h.
75127         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
75128
75129 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75130
75131         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
75132         no longer needed.
75133         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
75134         * m4/getdate.m4 (gl_GETDATE): Likewise.
75135         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75136         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75137         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75138         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75139         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75140
75141 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75142
75143         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
75144         All uses of is_space replaced by isspace.
75145         * lib/exit.h: Don't talk about STDC_HEADERS.
75146         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
75147         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
75148         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
75149         replaced by isprint etc.
75150         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
75151         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75152         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
75153         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
75154         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
75155         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75156
75157 2006-07-05  Bruno Haible  <bruno@clisp.org>
75158
75159         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
75160         the function exists, before testing against AIX.
75161         Reported by Martin Lambers <marlam@marlam.de>.
75162
75163 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75164
75165         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
75166         From Mark D. Baushke.
75167
75168 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75169
75170         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
75171         to the absolute name, not just one, to bypass Sun C 5.8's
75172         "warning: #include of /usr/include/... may be non-portable".
75173
75174 2006-07-04  Eric Blake  <ebb9@byu.net>
75175
75176         * modules/dirname-tests: New test module.
75177         * tests/test-dirname.c: New file, replacing dirname.c
75178         TEST_DIRNAME section that was recently deleted.
75179
75180 2006-07-04  Bruno Haible  <bruno@clisp.org>
75181
75182         Assume ANSI C header files and <ctype.h> functions.
75183         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
75184         (mbsnwidth): Use isprint, iscntrl instead.
75185
75186 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75187
75188         Merge from coreutils.
75189         * MODULES.html.sh: Add xstrtold.
75190         * modules/xstrtold: New file.
75191         * modules/cycle-check (Files): Add lib/same-inode.h.
75192         * modules/dirname (Files): Add m4/double-slash-root.m4.
75193         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
75194         * modules/mkdir-p (Files): Add lib/same-inode.h.
75195         * modules/same (Files): Add lib/same-inode.h.
75196
75197 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75198
75199         * m4/absolute-header.m4: Renamed from full-header-path.m4.
75200         This is to keep the terminology clean; POSIX talks about
75201         "absolute pathnames", not "full pathnames", but the GNU
75202         Coding Standards say to use "path" for something else;
75203         so use "absolute" to keep both sides happy.
75204         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
75205         Set gl_absolute_header, not gl_full_header_path.
75206         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
75207         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
75208         All uses changed.
75209
75210         Merge from coreutils.
75211
75212         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75213
75214         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
75215         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
75216         want to require the building of c-strtod.o.
75217         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
75218         needs -lm directly.
75219         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
75220
75221         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
75222
75223         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
75224         --as-needed option if available.  Problem reported by Albert Chin in
75225         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
75226         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
75227         cc merely issues a bunch of annoying warnings for --as-needed
75228         (this problem was reported by Bob Proulx).  Also, try linking with
75229         -lm to detect a bug in binutils 2.16 (this problem was reported
75230         by Ralf Wildenhues).
75231
75232         2006-06-18  Jim Meyering  <jim@meyering.net>
75233
75234         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
75235         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
75236         macro.
75237         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
75238         also check for glibc-2.4's abort-inducing bug.
75239
75240         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
75241         Low-probability clean-up should be to use rmdir to get rid of
75242         the just-created directory, not unlink.
75243
75244         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
75245         configure fail, and request a bug report to inform us about it.
75246         Add a comment that, barring reports to the contrary, in 2007 we'll
75247         assume ftruncate is universally available.
75248
75249         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75250
75251         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
75252
75253         2006-03-12  Jim Meyering  <jim@meyering.net>
75254
75255         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
75256         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
75257         * m4/same.m4 (gl_SAME): Likewise.
75258         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
75259
75260         2006-03-11  Eric Blake  <ebb9@byu.net>
75261
75262         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
75263         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
75264         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
75265         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
75266
75267 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75268
75269         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
75270         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
75271         reported by Mark D. Baushke, one in
75272         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
75273
75274         Merge from coreutils.
75275
75276         * lib/.cppi-disable: Add stdint_.h.
75277         * lib/.cvsignore: Add stdint.h.
75278
75279         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75280
75281         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
75282         both double and long double versions.
75283         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
75284         * lib/xstrtold.c: New file.
75285         * lib/xstrtod.h (xstrtold): New decl.
75286
75287         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75288
75289         * lib/filemode.c (setst): Remove.
75290         (strmode): Rewrite to avoid setst.  This makes the code shorter,
75291         (arguably) clearer, and the generated code is a bit smaller on my
75292         Debian GNU/Linux stable x86 host.
75293
75294         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75295
75296         * lib/filemode.c: Include "filemode.h" first, to test the interface.
75297         Assume that filemode.h includes sys/types.h and sys/stat.h.
75298         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
75299         (ftypelet): Reorder to put common cases first, for efficiency.
75300         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
75301         to do 'M'.
75302         (strmode): Renamed from mode_string, and now stores 12 bytes instead
75303         of 10, for compatibility with FreeBSD.  All callers changed.
75304         (filemodestring): Now stores 12 bytes instead of 10, and sets file
75305         types that can't be deduced solely from st_mode.  First arg is now a
75306         const pointer.
75307         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
75308         (strmode): Renamed from mode_string.
75309         (filemodestring): New decl.
75310         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
75311         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
75312         needed.
75313         (S_ISPORT, S_ISWHT): New macros, if not already defined.
75314
75315         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
75316
75317         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
75318         fsusage.h now does that.  Include fsusage.h first, to test interface.
75319         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
75320         at most one method (the old code could have generated decls that
75321         didn't conform to C89, not that this was ever exercised).
75322         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
75323
75324         2006-03-19  Jim Meyering  <jim@meyering.net>
75325
75326         Work even in a chroot where d_ino values for entries in "/"
75327         don't match the stat.st_ino values for the same names.
75328         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
75329         number, iterate through all entries again, using lstat instead.
75330         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
75331         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
75332
75333         * lib/getcwd.c (__getcwd): Clarify a comment.
75334         Use memcpy in place of a call to strcpy.
75335
75336         2006-03-12  Jim Meyering  <jim@meyering.net>
75337
75338         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
75339         matches that of the current directory (which we're about to chdir ".."
75340         out of), then save the dev-ino of the parent, instead.
75341
75342         * lib/same-inode.h (SAME_INODE): New file/macro.
75343         * lib/chdir-safer.c (SAME_INODE): Remove definition.
75344         Include "same-inode.h", instead.
75345         * lib/same.c: Likewise.
75346         * lib/cycle-check.h: Include "same-inode.h".
75347         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
75348         * lib/cycle-check.c (SAME_INODE): Remove definition.
75349         * lib/root-dev-ino.h: Include "same-inode.h".
75350
75351         2006-03-11  Eric Blake  <ebb9@byu.net>
75352
75353         * lib/same.c (same_name): s/base_name/last_component/
75354         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
75355         * lib/filenamecat.c (file_name_concat): Likewise.
75356
75357         2006-03-11  Eric Blake  <ebb9@byu.net>,
75358                     Paul Eggert  <eggert@cs.ucla.edu>
75359
75360         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
75361         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
75362         drive prefix.
75363         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
75364         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
75365         (last_component): New method.
75366         * lib/dirname.c (dir_len): Determine when drive letters need a
75367         subsequent slash.  Preserve // when it is special.
75368         (dir_name): Don't append dot when drive letter is absolute.
75369         [TEST_DIRNAME]: Move into a full-blown gnulib test.
75370         * lib/basename.c (base_name): New semantics - malloc the result.
75371         Preserve // when it is special.  Preserve relative files that look
75372         like drive letters.
75373         (base_len): Preserve // when it is special.
75374         (last_component): New method, similar to old base_name semantics.
75375         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
75376         base_name.  Strip redundant slashes from ///.
75377
75378 2006-07-03  Jim Meyering  <jim@meyering.net>
75379
75380         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
75381         macro is used before the first cycle_check call.
75382
75383 2006-07-03  Eric Blake  <ebb9@byu.net>
75384
75385         * modules/dirname (Depends-on): Add xstrndup.
75386
75387 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
75388
75389         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
75390         test cases, so that config.log is a bit easier to follow.
75391
75392 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
75393
75394         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
75395         both are 64 bits, since this seems to be the tradition, and this
75396         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
75397         we ever run into a host that prefers long long to long in this
75398         case, we'll need another configure-time test.  Problem reported by
75399         Jim Meyering.
75400
75401 2006-07-02  Eric Blake  <ebb9@byu.net>
75402
75403         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
75404
75405 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75406
75407         * modules/inttypes (Depends-on): No longer depends on stdint.
75408         * modules/stdint (Description): Say more about assumptions.
75409         Say that the fast types might differ.  Say macros are used.
75410         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
75411         (Makefile.am): Revise list of substituted symbols to match
75412         new stdint.m4.
75413         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
75414         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
75415         * tests/test-stdint.c (verify_same_types)
75416         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
75417         the code conforms to C99/C89.
75418         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
75419         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
75420
75421 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75422
75423         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
75424         but fix a bug, by requiring at least 64 bits.
75425         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
75426         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
75427         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
75428         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
75429
75430         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
75431         changes.  Make 2.59 a prerequisite.  Check and substitute for
75432         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
75433         inttypes.h.  Do not use special include files; just use the
75434         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
75435         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
75436         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
75437         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
75438         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
75439         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
75440         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
75441         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
75442         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
75443         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
75444         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
75445         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
75446         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
75447         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
75448         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
75449         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
75450         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
75451         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
75452         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
75453         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
75454         WINT_MAX.  Check for C99 conformance more strictly, by detecting
75455         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
75456         not check for things that C99 does not require, e.g., int8_t.  If
75457         a test isn't needed unless <stdint.h> isn't working, and is
75458         unlikely to be needed for any other reason, then don't do it
75459         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
75460         size_t, since we assume C89 freestanding at least.  Do not check
75461         for sig_atomic_t, wchar_t, or wint_t, since the code now does
75462         the right thing even if the types are not defined.  Instead use:
75463         (gl_STDINT_TYPE_PROPERTIES): New macro.
75464         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
75465         testing whether <sys/types.h> clashes, as Autoconf does this for
75466         us now.  All uses removed.
75467         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
75468         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
75469         (gl_CHECK_TYPE_SAME):
75470         Remove; no longer needed.
75471         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
75472         exists, since we'll return 0 anyway in that case.
75473         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
75474
75475 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75476
75477         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
75478         possible collision with system files.
75479         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
75480         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
75481         WCHAR_MIN and WCHAR_MAX in this case.
75482         (<stddef.h>): Do not include; no longer needed.
75483         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
75484         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
75485         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
75486         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
75487         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
75488         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
75489         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
75490         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
75491         !defined(__c99))]: Include in this case too, since it's harmless
75492         now.
75493         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
75494         dangerous to do so.
75495         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
75496         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
75497         (_STDINT_MIN, _STDINT_MAX): New macros.
75498         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
75499         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
75500         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
75501         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
75502         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
75503         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
75504         macros, not typedefs; this simplifies things quite a bit.
75505         Use long int for all types narrower than int64_t.
75506         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
75507         Define in terms of long long int or int64_t or long int,
75508         not int64_t or int32_t.  This saves some compile-time testing.
75509         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
75510         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
75511         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
75512         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
75513         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
75514         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
75515         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
75516         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
75517         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
75518         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
75519         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
75520         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
75521         undef any previous version and define our own version, for
75522         simplicity and consistency with the new macros for types.
75523         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
75524         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
75525         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
75526         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
75527         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
75528         @WINT_T_SUFFIX@ to keep things simple here.
75529         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
75530         Simplify by assuming typical 8/16/32/64 host, since we're
75531         already doing that elsewhere anyway.
75532         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
75533         and assume long long int is 64 bits if available.  This
75534         speeds up 'configure'.
75535
75536 2006-07-01  Eric Blake  <ebb9@byu.net>
75537
75538         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
75539         Reported by Andreas Buening.
75540
75541 2006-07-01  Eric Blake  <ebb9@byu.net>
75542
75543         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
75544
75545 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75546
75547         * lib/getaddrinfo.c: fixed typo
75548
75549 2006-06-29  Jim Meyering  <jim@meyering.net>
75550
75551         * modules/strftime (Maintainer): Add my name, since with the
75552         FPRINTFTIME changes strftime.c has forked from glibc.
75553
75554 2006-06-29  Eric Blake  <ebb9@byu.net>
75555
75556         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
75557
75558 2006-06-29  Eric Blake  <ebb9@byu.net>
75559
75560         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
75561
75562 2006-06-29  Eric Blake  <ebb9@byu.net>
75563
75564         * lib/stat_.h: New file.
75565
75566 2006-06-29  Eric Blake  <ebb9@byu.net>
75567
75568         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
75569         unused static function.
75570
75571 2006-06-29  Eric Blake  <ebb9@byu.net>
75572
75573         * doc/functions.texi (Function Portability): Document missing lstat
75574         on mingw.
75575
75576 2006-06-29  Eric Blake  <ebb9@byu.net>
75577
75578         * MODULES.html.sh: Add sys_stat.
75579         * modules/sys_stat: New module.
75580         * modules/mkstemp (Depends-on): Add sys_stat.
75581
75582 2006-06-29  Derek R. Price  <derek@ximbiot.com>
75583
75584         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
75585
75586 2006-06-29  Derek R. Price  <derek@ximbiot.com>
75587
75588         * m4/c-bs-a.m4: Removed.
75589
75590 2006-06-29  Derek R. Price  <derek@ximbiot.com>
75591
75592         * lib/strftime.c: Assume strftime() exists.
75593
75594 2006-06-29  Derek Price  <derek@ximbiot.com>
75595
75596         * modules/c-bs-a: Removed - \a is C89.
75597         * MODULES.html.sh: Remove c-bs-a.
75598
75599 2006-06-29  Bruno Haible  <bruno@clisp.org>
75600
75601         * modules/wcwidth (License): Change to LGPL.
75602
75603 2006-06-28  Simon Josefsson  <jas@extundo.com>
75604
75605         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
75606         on _WIN32.
75607
75608         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
75609         getnameinfo.
75610
75611 2006-06-28  Simon Josefsson  <jas@extundo.com>
75612
75613         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
75614
75615 2006-06-28  Simon Josefsson  <jas@extundo.com>
75616
75617         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
75618         functions there.  It will succeed on Windows XP, but on Windows
75619         2000 and (presumably) earlier, it will fail, and use the internal
75620         re-implementation.
75621         (use_win32_p): New function.
75622         (getaddrinfo): Use strtoul on servname, to support numeric ports.
75623         Support AI_NUMERICSERV to disable getservbyname.
75624         (getnameinfo): New function, only supports
75625         NI_NUMERICHOST|NI_NUMERICSERV for now.
75626
75627         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
75628         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
75629         getnameinfo.
75630
75631 2006-06-28  Eric Blake  <ebb9@byu.net>
75632
75633         * modules/wcwidth: New file.
75634         * modules/mbchar (Depends-on): Add wcwidth.
75635         * modules/mbswidth (Depends-on): Add wcwidth.
75636         * MODULES.html.sh: Add wcwidth.
75637
75638 2006-06-28  Eric Blake  <ebb9@byu.net>
75639
75640         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
75641         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
75642
75643 2006-06-28  Eric Blake  <ebb9@byu.net>
75644
75645         * lib/xvasprintf.h: Fix comments.
75646
75647 2006-06-28  Eric Blake  <ebb9@byu.net>
75648
75649         * lib/mbchar.h (wcwidth): Include wcwidth.h.
75650         * lib/mbswidth.c (wcwidth): Move from here...
75651         * lib/wcwidth.h: ...to this new file.
75652
75653 2006-06-28  Derek R. Price  <derek@ximbiot.com>
75654
75655         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
75656
75657         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
75658         it's obsolete.
75659         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
75660
75661 2006-06-28  Derek R. Price  <derek@ximbiot.com>
75662
75663         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
75664         Autoconf 2.60 says this stuff was obsolete.
75665
75666 2006-06-28  Bruno Haible  <bruno@clisp.org>
75667
75668         * modules/wcwidth (Files): Add m4/wchar_t.m4.
75669
75670 2006-06-28  Bruno Haible  <bruno@clisp.org>
75671
75672         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
75673         gt_TYPE_WCHAR_T.
75674
75675 2006-06-28  Bruno Haible  <bruno@clisp.org>
75676
75677         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
75678         declaration for wcwidth.
75679         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
75680
75681 2006-06-28  Bruno Haible  <bruno@clisp.org>
75682
75683         * lib/mkdtemp.c [MINGW]: Include <io.h>.
75684         (mkdir): Define using _mkdir.
75685
75686 2006-06-28  Bruno Haible  <bruno@clisp.org>
75687
75688         * lib/getaddrinfo.h: Fix POSIX URL.
75689         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
75690         _WIN32.
75691         (use_win32_p): Make static.
75692         (getaddrinfo): Reject service name if it is empty or does not consist
75693         solely of decimal digits, or if its value is > 65535.
75694         (getnameinfo): Remove useless casts.
75695
75696 2006-06-27  Simon Josefsson  <jas@extundo.com>
75697
75698         * modules/sys_select: New file, suggested by Bruno Haible, Paul
75699         Eggert and Martin Lambers.
75700
75701 2006-06-27  Simon Josefsson  <jas@extundo.com>
75702
75703         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
75704         Eggert and Martin Lambers.
75705
75706 2006-06-27  Bruno Haible  <bruno@clisp.org>
75707
75708         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
75709         result to 0, not to empty.
75710         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
75711
75712 2006-06-27  Bruno Haible  <bruno@clisp.org>
75713
75714         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
75715
75716 2006-06-26  Simon Josefsson  <jas@extundo.com>
75717
75718         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
75719         present.
75720
75721 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
75722
75723         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
75724         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
75725         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
75726
75727 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
75728
75729         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
75730
75731 2006-06-26  Bruno Haible  <bruno@clisp.org>
75732
75733         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
75734
75735 2006-06-26  Bruno Haible  <bruno@clisp.org>
75736
75737         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
75738
75739 2006-06-26  Bruno Haible  <bruno@clisp.org>
75740
75741         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
75742         SGI C compiler in pre-C99 mode.
75743         Suggested by Mark D. Baushke and Larry Jones.
75744
75745 2006-06-26  Bruno Haible  <bruno@clisp.org>
75746
75747         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
75748         WCHAR_MAX.
75749         Reported by Mark D. Baushke and Larry Jones.
75750
75751 2006-06-26  Bruno Haible  <bruno@clisp.org>
75752
75753         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
75754         in pre-C99 mode.
75755         Suggested by Mark D. Baushke and Larry Jones.
75756
75757 2006-06-23  Simon Josefsson  <jas@extundo.com>
75758             Bruno Haible  <bruno@clisp.org>
75759
75760         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
75761         Emit mostlyclean-local rule.
75762         (func_emit_tests_Makefile_am): Likewise.
75763         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
75764
75765 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
75766
75767         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
75768
75769 2006-06-23  Bruno Haible  <bruno@clisp.org>
75770
75771         * tests/test-stdint.c: Update to match ISO C 99 Technical
75772         Corrigendum 1.
75773
75774 2006-06-23  Bruno Haible  <bruno@clisp.org>
75775
75776         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
75777
75778 2006-06-23  Bruno Haible  <bruno@clisp.org>
75779
75780         * lib/stdint_.h: Treat IRIX like OpenBSD.
75781
75782 2006-06-23  Bruno Haible  <bruno@clisp.org>
75783
75784         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
75785         ISO C 99 Technical Corrigendum 1.
75786
75787 2006-06-22  Simon Josefsson  <jas@extundo.com>
75788
75789         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
75790         MinGW.
75791
75792 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75793
75794         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
75795         needed.  Some compiler complained about some of them.  Problem reported
75796         by Larry Jones in
75797         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
75798
75799 2006-06-21  Simon Josefsson  <jas@extundo.com>
75800
75801         * tests/test-getaddrinfo.c: New file.
75802
75803         * modules/getaddrinfo-tests: New file.
75804
75805         * MODULES.html.sh: Add inet_pton.
75806
75807         * modules/inet_pton: New file.
75808
75809 2006-06-21  Simon Josefsson  <jas@extundo.com>
75810
75811         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
75812         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
75813         of using the (limited) gnulib implementation on Windows XP.
75814
75815         * m4/inet_pton.m4: New file.
75816
75817 2006-06-21  Simon Josefsson  <jas@extundo.com>
75818
75819         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
75820         variable.
75821
75822         * lib/socket_.h: Don't define WINVER.
75823
75824         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
75825         slightly modified to work in gnulib.
75826
75827 2006-06-21  Simon Josefsson  <jas@extundo.com>
75828
75829         * doc/gnulib.texi (Windows sockets): Add.
75830
75831 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
75832
75833         * lib/read-file.c (fread_file): Start with buffer allocation of
75834         0 bytes rather than 1 byte; this simplifies the code.
75835         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
75836         code to free buffer and save/restore errno.
75837         (internal_read_file): Remove unused local.
75838
75839 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
75840
75841         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
75842         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
75843         Problem reported by Denis Excoffier in
75844         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
75845
75846 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75847
75848         * modules/sys_socket, modules/socklen: Include sys/types since
75849         FreeBSD 4.x's sys/socket.h needs it.
75850
75851 2006-06-19  Simon Josefsson  <jas@extundo.com>
75852
75853         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
75854
75855 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
75856
75857         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
75858
75859 2006-06-19  Bruno Haible  <bruno@clisp.org>
75860
75861         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
75862         and FULL_PATH_INTTYPES_H in angle brackets.
75863         Reported by Mark D. Baushke <mdb@gnu.org>.
75864
75865 2006-06-17  Eric Blake  <ebb9@byu.net>
75866
75867         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
75868         errno.
75869
75870 2006-06-17  Bruno Haible  <bruno@clisp.org>
75871
75872         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
75873         <sys/inttypes.h>.
75874
75875 2006-06-17  Bruno Haible  <bruno@clisp.org>
75876
75877         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
75878         whether errno is declared. Assume <errno.h> declares errno.
75879
75880 2006-06-17  Bruno Haible  <bruno@clisp.org>
75881
75882         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
75883
75884 2006-06-17  Bruno Haible  <bruno@clisp.org>
75885
75886         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
75887         problem on Solaris 2.5.1.
75888
75889 2006-06-16  Eric Blake  <ebb9@byu.net>
75890
75891         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
75892         * lib/unicodeio.c [!defined errno]: Likewise.
75893         * lib/strtol.c [!defined errno]: Likewise.
75894         * lib/strtod.c [!defined errno]: Likewise.
75895
75896 2006-06-15  Eric Blake  <ebb9@byu.net>
75897
75898         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
75899
75900 2006-06-15  Eric Blake  <ebb9@byu.net>
75901
75902         * config/srclist.txt (ssize_t.m4): Lose sync.
75903
75904 2006-06-15  Bruno Haible  <bruno@clisp.org>
75905
75906         * modules/stdint (Files): Include m4/full-header-path.m4,
75907         m4/size_max.m4, m4/wchar_t.m4.
75908         (Makefile.am): Many more substitutions.
75909         * modules/stdint-tests: New file.
75910         * tests/test-stdint.c: New file.
75911
75912 2006-06-15  Bruno Haible  <bruno@clisp.org>
75913
75914         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
75915         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
75916         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
75917         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
75918         gl_CHECK_TYPE_SAME): New macros.
75919
75920 2006-06-15  Bruno Haible  <bruno@clisp.org>
75921
75922         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
75923
75924 2006-06-15  Bruno Haible  <bruno@clisp.org>
75925
75926         * lib/stdint_.h: Rewritten to be fully auto-configured.
75927         Fixes bug on HP-UX/IA64.
75928
75929 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
75930
75931         * lib/getdate.y (__attribute__): Don't define if already defined.
75932         Problem reported by Larry Jones.
75933         * lib/utimens.c (__attribute__): Likewise.
75934
75935 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
75936
75937         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
75938         reported by Andreas Schwab.
75939
75940 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75941             Bruno Haible  <bruno@clisp.org>
75942
75943         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
75944         check for the declaration of strnlen and a run test that exposes the
75945         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
75946         rpl_strndup.
75947
75948 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75949             Bruno Haible  <bruno@clisp.org>
75950
75951         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
75952
75953 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75954
75955         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
75956         compile test, for Tru64 4.0D.
75957
75958 2006-05-28  Karl Berry  <karl@gnu.org>
75959
75960         * config/srclist.txt (printf-args.c): lose sync.
75961
75962 2006-05-26  Martin Lambers  <marlam@marlam.de>
75963
75964         * lib/getpass.c: Updates the test for the native W32 API, and adds
75965         missing includes, thus fixing compilation warnings.
75966
75967 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
75968
75969         * lib/exclude.c (exclude_fnmatch): New function.
75970         (excluded_file_name): Call exclude_fnmatch.
75971         * lib/exclude.h (excluded_file_name): New prototype
75972
75973 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
75974
75975         * lib/tempname.c (small_open, large_open): New macros.
75976         (__open, __open64) [!_LIBC]: Remove.
75977         (__gen_tempname): Use small_open and large_open instead of __open
75978         and __open64.  This fixes a portability bug on HP-UX 11.11i
75979         reported by Simon Wing-Tang in
75980         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
75981
75982 2006-05-24  Bruno Haible  <bruno@clisp.org>
75983
75984         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
75985         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
75986         Reported by Thorsten Maerz <torte@netztorte.de> via
75987         Aaron Stone <aaron@serendipity.cx>.
75988
75989 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
75990
75991         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
75992         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
75993         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
75994         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
75995         not really conditional on the cache.
75996         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
75997
75998 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
75999
76000         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76001         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76002         (my_usleep): Don't mishandle maximum value.
76003
76004 2006-05-19  Jim Meyering  <jim@meyering.net>
76005
76006         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76007
76008 2006-05-17  Bruno Haible  <bruno@clisp.org>
76009
76010         Cygwin portability.
76011         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
76012
76013 2006-05-17  Bruno Haible  <bruno@clisp.org>
76014
76015         * lib/stdint_.h: Fix recognition of Cygwin.
76016
76017 2006-05-15  Bruno Haible  <bruno@clisp.org>
76018
76019         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
76020         on libtool patch by Ralf Wildenhues.
76021
76022 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76023
76024         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
76025         test for C99 conformance; (bool) 0.5 is an integer constant
76026         expression, but (bool) -0.5 is not.  Problem reported by Fedor
76027         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
76028
76029 2006-05-11  Simon Josefsson  <jas@extundo.com>
76030
76031         * m4/xvasprintf.m4: Fix obvious typo.
76032
76033 2006-05-11  Jim Meyering  <jim@meyering.net>
76034
76035         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
76036         James Lemley.
76037
76038 2006-05-10  Simon Josefsson  <jas@extundo.com>
76039
76040         * lib/md4.c: Typo fix, update copyright years.
76041         (K1, K2): Don't use L because it turn computations into 64-bit on
76042         64-bit platforms.
76043
76044 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
76045
76046         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
76047         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
76048         unwanted sign propagation, e.g., on hosts with 64-bit int.
76049         There still are some problems with reeelly weird theoretical hosts
76050         (e.g., 33-bit int) but it's not worth worrying about now.
76051         * lib/sha1.c (rol): Likewise.
76052         (K1, K2, K3, K4): Remove unnecessary L suffix.
76053
76054 2006-05-10  Bruno Haible  <bruno@clisp.org>
76055
76056         * lib/des.c: Cast to avoid warnings.
76057
76058 2006-05-09  Bruno Haible  <bruno@clisp.org>
76059
76060         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
76061         (Depends-on): Depend also on xsize, stdarg.
76062         (configure.ac): Add gl_XVASPRINTF.
76063
76064 2006-05-09  Bruno Haible  <bruno@clisp.org>
76065
76066         * m4/xvasprintf.m4: New file.
76067
76068 2006-05-09  Bruno Haible  <bruno@clisp.org>
76069
76070         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
76071         (EOVERFLOW): Define fallback value.
76072         (xstrcat): New function.
76073         (xvasprintf): Recognize the special case of a string concatenation.
76074
76075 2006-05-08  Eric Blake  <ebb9@byu.net>
76076
76077         * gnulib-tool (func_version): Base copyright year on CVS date.
76078         (func_emit_copyright_notice): New function.
76079         (func_emit_lib_Makefile_am): Use it.
76080         (func_emit_tests_Makefile_am): Likewise.
76081         (func_import): Likewise.
76082
76083 2006-05-08  Bruno Haible  <bruno@clisp.org>
76084
76085         * modules/stdarg: New file.
76086         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
76087
76088 2006-05-08  Bruno Haible  <bruno@clisp.org>
76089
76090         * m4/stdarg.m4: New file, from GNU gettext.
76091
76092 2006-05-08  Bruno Haible  <bruno@clisp.org>
76093
76094         * config/srclist.txt (build-aux/config.rpath): different from latest
76095         release.
76096
76097 2006-05-08  Bruno Haible  <bruno@clisp.org>
76098
76099         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
76100
76101 2006-05-05  Jim Meyering  <jim@meyering.net>
76102
76103         * m4/warning.m4: New file, derived from bison's file by the same name.
76104
76105 2006-05-03  Bruno Haible  <bruno@clisp.org>
76106
76107         * lib/stdint_.h: Shorter URL.
76108         * lib/inttypes.h: Likewise.
76109
76110 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76111
76112         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
76113
76114 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76115
76116         * lib/verify.h: Document the internals better.  Most of this change
76117         was written by Bruno Haible.
76118
76119 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76120
76121         * doc/verify.texi: New file, partly based on a proposal by
76122         Bruno Haible.
76123
76124 2006-05-02  Bruno Haible  <bruno@clisp.org>
76125
76126         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
76127         test from here...
76128         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
76129
76130 2006-04-29  Bruno Haible  <bruno@clisp.org>
76131
76132         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
76133         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
76134
76135 2006-04-29  Bruno Haible  <bruno@clisp.org>
76136
76137         * gnulib-tool: Make --update option actually work.
76138
76139 2006-04-29  Bruno Haible  <bruno@clisp.org>
76140
76141         * doc/gcd.texi: New file.
76142         * doc/gnulib.texi: Include it.
76143
76144 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
76145
76146         * lib/getdate.y (get_date): When adding relative date, start with the
76147         initial time, not with the result of the first mktime call.
76148
76149 2006-04-25  Bruno Haible  <bruno@clisp.org>
76150
76151         * gnulib-tool (func_import): Output the include directives in three
76152         blocks, sorted separately.
76153         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76154
76155 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76156
76157         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
76158         to define main with arguments, for C++.  Reported by Eric Blake.
76159         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
76160         Prefer 'int main ()' to 'int main (void)', for C++.
76161         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
76162         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
76163         for 'main', for C99 and C++.
76164
76165 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76166
76167         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
76168         Don't assume that exit status -1 is valid.
76169         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76170         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
76171         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
76172         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
76173         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
76174         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
76175         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
76176         functions can be used without declaring them, or that you can
76177         exit with status -1.
76178         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
76179
76180 2006-04-24  Karl Berry  <karl@gnu.org>
76181
76182         * config/srclist.txt (longdouble.m4): sync lost.
76183
76184 2006-04-24  Eric Blake  <ebb9@byu.net>
76185
76186         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
76187
76188 2006-04-24  Bruno Haible  <bruno@clisp.org>
76189
76190         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
76191         poll() implementation in AIX.
76192         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76193
76194 2006-04-24  Bruno Haible  <bruno@clisp.org>
76195
76196         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
76197         assigned exactly once.
76198
76199 2006-04-23  Claudio Fontana  <claudio@gnu.org>
76200             Bruno Haible  <bruno@clisp.org>
76201
76202         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
76203         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
76204         for AM_CPPFLAGS.
76205
76206 2006-04-23  Bruno Haible  <bruno@clisp.org>
76207
76208         * modules/copy-file: Depend on unistd.
76209         * modules/execute: Likewise.
76210         * modules/fatal-signal: Likewise.
76211         * modules/findprog: Likewise.
76212         * modules/mkdtemp : Likewise.
76213         * modules/pipe: Likewise.
76214         * modules/wait-process: Likewise.
76215
76216 2006-04-23  Bruno Haible  <bruno@clisp.org>
76217
76218         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
76219         condition was already detected.
76220         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76221
76222 2006-04-23  Bruno Haible  <bruno@clisp.org>
76223
76224         * lib/copy-file.c: Include <unistd.h> unconditionally.
76225         * lib/execute.c: Likewise.
76226         * lib/fatal-signal.c: Likewise.
76227         * lib/findprog.c: Likewise.
76228         * lib/mkdtemp.c: Likewise.
76229         * lib/pipe.h: Likewise.
76230         * lib/pipe.c: Likewise.
76231         * lib/wait-process.h: Likewise.
76232
76233 2006-04-23  Bruno Haible  <bruno@clisp.org>
76234
76235         * gnulib-tool (func_usage): Fix --import description. Document
76236         --update.
76237         (func_import): Create temporary file in a temporary directory, if
76238         --dry-run is specified. Silence errors from 'grep' when there are no
76239         m4 files in $m4dir.
76240         (func_create_testdir): Silence errors from 'grep' when there are no
76241         m4 files in $m4dir.
76242         Reported by Karl Berry <karl@freefriends.org>.
76243
76244 2006-04-20  Bruno Haible  <bruno@clisp.org>
76245
76246         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
76247         one argument, so that the code will be portable to Autoconf 2.60.
76248         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
76249         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76250         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
76251
76252 2006-04-19  Derek Price  <derek@ximbiot.com>
76253             Eric Blake  <ebb9@byu.net>
76254
76255         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
76256         rather than "/full/path.h".  Update comment to match.  Shorten &
76257         generalize m4_translit call via AS_TR_CPP.
76258
76259 2006-04-19  Derek Price  <derek@ximbiot.com>
76260             Eric Blake  <ebb9@byu.net>
76261
76262         * lib/inttypes.h: Correct grammar in comment.
76263
76264 2006-04-18  Derek Price  <derek@ximbiot.com>
76265             Paul Eggert  <eggert@cs.ucla.edu>
76266
76267         * modules/inttypes: New file.
76268         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
76269
76270 2006-04-18  Derek Price  <derek@ximbiot.com>
76271             Paul Eggert  <eggert@cs.ucla.edu>
76272
76273         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
76274         New files.
76275
76276 2006-04-18  Derek Price  <derek@ximbiot.com>
76277             Paul Eggert  <eggert@cs.ucla.edu>
76278
76279         * lib/inttypes.h: New file.
76280         * lib/strtoimax.c: Assume <inttypes.h>.
76281
76282 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
76283
76284         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
76285         isn't mounted.  Problem reported by Kir Kolyshkin.
76286
76287 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76288
76289         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
76290         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
76291         Derek R. Price.
76292         * lib/regex.h (RE_DUP_MAX): Update comment to match current
76293         implementation.
76294
76295 2006-04-12  Eric Blake  <ebb9@byu.net>
76296
76297         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
76298         is now done automatically by the corresponding Autoconf macro.
76299
76300 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
76301
76302         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
76303         time_r.h.
76304
76305 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76306
76307         Merge regex changes from libc, removing some of our
76308         POSIX-conformance changes that were rejected and redoing them in a
76309         less-intrusive way.
76310
76311         * lib/regcomp.c (re_compile_internal, init_dfa):
76312         Length arg is now size_t, not Idx.  All uses changed.
76313         (peek_token): Forward decl now says internal_function.
76314         (__re_error_msgid, __re_error_msgid_idx):
76315         Now static rather than extern with attribute_hidden.
76316         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
76317         For some reason libc prefers K&R style defns for external functions.
76318         (regerror) [!defined _LIBC]: Likewise.
76319         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
76320         (seek_collating_symbol_entry, lookup_collation_sequence_value):
76321         (build_range_exp, build_collating_symbol):
76322         Use K&R-style defn.
76323         (re_compile_fastmap): Use '\0' to memset, not 0.
76324         (utf8_sb_map): Make the calculations more obvious.
76325         (init_dfa, parse_bracket_exp, build_charclass_op):
76326         Call calloc and cast result, as glibc does.
76327         (init_word_char, fetch_token, peek_token, peek_token_bracket):
76328         (build_range_exp, build_collating_symbol):
76329         Now internal functions.
76330
76331         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
76332
76333         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
76334         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
76335         Don't depend on VMS; depend on __VMS instead, for POSIX
76336         namespace cleanness.
76337         (regoff_t): Define to ssize_t, not long int.
76338
76339         Remove the REG_ macros named below.  Instead, make the old names
76340         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
76341         __USE_GNU_REGEX.
76342         (REG_BACKSLASH_ESCAPE_IN_LISTS):
76343         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
76344         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
76345         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
76346         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
76347         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
76348         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
76349         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
76350         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
76351         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
76352         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
76353         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
76354         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
76355         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
76356         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
76357         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
76358         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
76359         (REG_NREGS):
76360         Remove.  All uses replaced by the old RE_* names.
76361         (RE_BACKSLASH_ESCAPE_IN_LISTS):
76362         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
76363         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
76364         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
76365         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
76366         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
76367         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
76368         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
76369         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
76370         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
76371         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
76372         Don't bother having these macros be independent of each others'
76373         values, since they no longer exist in the POSIX name space.
76374
76375         Rename the following member names back to their old names,
76376         unless !__USE_GNU_REGEX.  All uses changed back.
76377         (buffer): Renamed from re_buffer.
76378         (allocated): Renamed from re_allocated.
76379         (used): Renamed from re_used.
76380         (syntax): Renamed from re_syntax.
76381         (fastmap): Renamed from re_fastmap.
76382         (translate): Renamed from re_translate.
76383         (can_be_null): Renamed from re_can_be_null.
76384         (regs_allocated): Renamed from re_regs_allocated.
76385         (fastmap_accurate): Renamed from re_fastmap_accurate.
76386         (no_sub): Renamed from re_no_sub.
76387         (not_bol): Renamed from re_not_bol.
76388         (not_eol): Renamed from re_not_eol.
76389         (newline_anchor): Renamed from re_newline_anchor.
76390         (num_regs): Renamed from rm_num_regs.
76391         (start): Renamed from rm_start.
76392         (end): Renamed from rm_end.
76393
76394         (free_state): Move up a bit.
76395
76396         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
76397         #define to be empty.
76398         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
76399         when that is what is intended.
76400         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
76401         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
76402         (MAX): New macro.
76403         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
76404         All uses changed back to re_malloc, etc.  It's now the caller's
76405         responsibility to check for overflow; all callers changed.
76406         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
76407         (re_x2nrealloc): Remove.
76408         (free_state): Remove decl.
76409
76410         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
76411         (re_set_registers, re_exec):
76412         Use K&R-style defn.
76413
76414         2006-01-31  Roland McGrath  <roland@redhat.com>
76415
76416         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
76417         Reported by Mike Frysinger <vapier@gentoo.org>.
76418
76419         2006-01-15  Andreas Jaeger  <aj@suse.de>
76420
76421         [BZ #1950]
76422         * lib/regex_internal.c (re_string_reconstruct): Adjust for
76423         build_wcs_upper_buffer change.
76424         (build_wcs_upper_buffer): Change return type.
76425
76426         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
76427
76428         * lib/regex_internal.h: Include <stdint.h> if available.
76429
76430         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
76431
76432         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
76433
76434         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
76435
76436         * lib/regcomp.c: Adjust for changed secondary hash function.
76437
76438         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
76439
76440         * lib/regex.h: Pretty printing.
76441         Clean up namespace a bit.
76442
76443         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
76444
76445         * lib/regexec.c (update_cur_sifted_state, check_arrival,
76446         check_arrival_add_next_nodes): Avoid using uninitialized variable.
76447
76448         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76449                     Ulrich Drepper  <drepper@redhat.com>
76450
76451         [BZ #1302]
76452         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
76453         changed.
76454         (bitset_word_t): Renamed from bitset_word.  All uses changed.
76455
76456         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
76457
76458         [BZ #281]
76459         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
76460         * lib/regcomp.c: Remove unnecessary uses of
76461         unsigned RE_TRANSLATE_TYPE.
76462         * lib/regex_internal.h: Likewise.
76463         * lib/regex_internal.c: Likewise.
76464         * lib/regexec.c: Likewise.
76465         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
76466
76467         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
76468
76469         * lib/regexec.c (find_recover_state): Remove unnecessary
76470         initialization.
76471         (transit_state_bkref): Make DFA a const pointer.
76472         (get_subexp): Likewise.
76473         (check_arrival): Likewise.
76474         (update_cur_sifted_state): Likewise.
76475         (re_search_internal): Likewise.
76476         (prune_impossible_nodes): Likewise.
76477         (acquire_init_state_context): Likewise.
76478         (proceed_next_node): Likewise.
76479         (set_regs): Likewise.
76480         (free_fail_stack_return): Likewise.
76481         (check_arrival_expand_ecl): Mark DFA parameter as const.
76482         (check_arrival_expand_ecl_sub): Likewise.
76483         (check_subexp_limits): Likewise.
76484         (sub_epsilon_src_nodes):  Likewise.
76485         (add_epsilon_src_nodes):  Likewise.
76486         (merge_state_array): Likewise.
76487         (update_regs): Likewise.
76488         (build_trtable): Likewise.
76489         (sift_states_backward): Mark MCTX parameter as const.
76490         (build_sifted_states): Likewise.
76491         (update_cur_sifted_state): Likewise.
76492         (sift_states_mkref): Likewise.
76493         (check_arrival_expand_ecl): Mark eclosure as const.
76494         (check_dst_limits_calc_pos_1): Likewise.
76495         * lib/regex_internal.h (re_match_context_t): Make dfa a const
76496         pointer.
76497
76498         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
76499
76500         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
76501         (transit_state_sb): Likewise.
76502         (transit_state_mb): Likewise.
76503         (sift_states_iter_mb): Likewise.
76504         (check_arrival_add_next_nodes): Likewise.
76505         (check_node_accept_bytes): Change first parameter to pointer-to-const.
76506         [_LIBC] (re_search_2_stub): Use mempcpy.
76507
76508         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
76509         mbrtowc for very simple UTF-8 case.
76510
76511         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
76512         a pointer-to-const.
76513         (re_acquire_state_context): Likewise.
76514         * lib/regex_internal.h: Adjust prototypes.
76515
76516         * lib/regex.c: Prevent using C++ compilers.
76517
76518         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
76519         (re_acquire_state_context): Likewise.
76520
76521 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76522
76523         * modules/regex (Depends-on): Add ssize_t.
76524
76525 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76526
76527         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
76528         translation table.
76529
76530 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76531
76532         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
76533
76534 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
76535             Bruno Haible  <bruno@clisp.org>
76536
76537         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
76538         <sys/types.h> and <inttypes.h>.
76539
76540 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76541
76542         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
76543         `__error_t_defined', so argp.h will not typedef the former.
76544
76545 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
76546
76547         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
76548         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
76549         glibc names.  Even if glibc is changed to conform to POSIX, the
76550         traditional names will be available anyway, since regex depends on
76551         the extensions module.  Also, fix a longstanding typo in the
76552         implementation of Spencer ERE test #75 from grep 2.3.  Problems
76553         reported by Emanuele Giaquinta.  Also, change sense of cached
76554         variable, so that the message makes sense.
76555
76556 2006-03-24  Simon Josefsson  <jas@extundo.com>
76557
76558         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
76559         including some doc fixes.
76560         (base64_encode_alloc): Fix +1 bug on allocation failures.
76561
76562 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76563
76564         * lib/base64.c (base64_encode): Do not read past end of array with
76565         unsanitized input on systems with CHAR_BIT > 8.
76566
76567 2006-03-24  Eric Blake  <ebb9@byu.net>
76568
76569         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
76570
76571 2006-03-22  Karl Berry  <karl@gnu.org>
76572
76573         * config/srclist.txt (*setenv.[ch]): get from coreutils.
76574         * config/srclistvars.sh (COREUTILS): new var.
76575
76576 2006-03-17  Jim Meyering  <jim@meyering.net>
76577
76578         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
76579         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
76580
76581 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
76582
76583         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
76584         no longer needs it.  Instead, check that regoff_t is as least
76585         as wide as ptrdiff_t.
76586
76587         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
76588         so that our regex.h stays compatible with the installed regex.
76589         This is helpful for installers who configure --without-included-regex.
76590         Problem reported by Emanuele Giaquinta.
76591
76592 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
76593
76594         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
76595         Typedef to long int, not to off_, as POSIX will likely change
76596         in that direction.
76597
76598 2006-03-15  Eric Blake  <ebb9@byu.net>
76599
76600         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
76601
76602 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
76603
76604         * lib/argp-help.c (validate_uparams): Fix typo
76605         * lib/argp-parse.c (argp_default_options): Consistently begin help
76606         messages with a lowercase letter.
76607
76608 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
76609
76610         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
76611         overrun buffers and shouldn't be used (much as gets shouldn't be
76612         used).
76613         * lib/time_r.c (asctime_r, ctime_r): Likewise.
76614
76615 2006-03-08  Simon Josefsson  <jas@extundo.com>
76616
76617         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
76618         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76619
76620 2006-03-08  Simon Josefsson  <jas@extundo.com>
76621
76622         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
76623         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76624
76625 2006-03-08  Simon Josefsson  <jas@extundo.com>
76626
76627         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
76628         signal that configure disabled the device.
76629
76630 2006-03-08  Simon Josefsson  <jas@extundo.com>
76631
76632         * build-aux/maint.mk: Fix refresh-po, to handle no translated
76633         languages.
76634
76635 2006-03-07  Simon Josefsson  <jas@extundo.com>
76636
76637         * modules/getopt (Depends-on): Add unistd.
76638
76639         * modules/unistd: New file.
76640
76641 2006-03-07  Simon Josefsson  <jas@extundo.com>
76642
76643         * modules/gc-random: New file.
76644
76645 2006-03-07  Simon Josefsson  <jas@extundo.com>
76646
76647         * m4/unistd_h.m4: New file.
76648
76649 2006-03-07  Simon Josefsson  <jas@extundo.com>
76650
76651         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
76652         test to be side-effect free by storing the result in the cache
76653         variable gl_cv_lib_readline, and moving the assignment of
76654         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
76655         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76656
76657 2006-03-07  Simon Josefsson  <jas@extundo.com>
76658
76659         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
76660         error on missing devices (the functions will return an error).
76661
76662         * m4/gc.m4: Move random stuff to gc-random.m4
76663
76664 2006-03-07  Simon Josefsson  <jas@extundo.com>
76665
76666         * lib/unistd_.h: New file.
76667
76668 2006-03-07  Simon Josefsson  <jas@extundo.com>
76669
76670         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
76671
76672 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
76673
76674         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
76675         Problem reported by Juan Manuel Guerrero.
76676
76677 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
76678
76679         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
76680         the unistd module.
76681         * lib/getlogin_r.c: Likewise.
76682         * lib/getlogin_r.h: Likewise.
76683         * lib/glob.c: Likewise.
76684         * lib/pagealign_alloc.c: Likewise.
76685         * lib/unistd_.h: Remove; no longer needed.
76686
76687 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
76688
76689         * MODULES.html.sh (Support for systems lacking POSIX:2001):
76690         Add unistd.
76691         * modules/c-stack (Depends-on): Add unistd.
76692         * modules/getlogin_r: Likewise.
76693         * modules/glob: Likewise.
76694         * modules/pagealign_alloc: Likewise.
76695         * modules/unistd (Files): Remove lib/unistd_.h.
76696         (EXTRA_DIST): Remove.
76697         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
76698         need unistd_.h.
76699         (MOSTLYCLEANFILES): Remove unistd.h-t.
76700
76701 2006-03-03  Simon Josefsson  <jas@extundo.com>
76702
76703         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
76704
76705 2006-03-03  Simon Josefsson  <jas@extundo.com>
76706
76707         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
76708         libidn and bison.
76709
76710 2006-03-03  Simon Josefsson  <jas@extundo.com>
76711
76712         * build-aux/maint.mk: Add indent target.
76713
76714 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
76715
76716         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
76717         our replacement poll.h in any case, to avoid a differing
76718         declaration from a system header.  Seen on AIX.
76719
76720 2006-03-01  Simon Josefsson  <jas@extundo.com>
76721
76722         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
76723         <kasal@ucw.cz>.
76724
76725 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76726
76727         * modules/gettime (Depends-on): Add extensions module.
76728         * modules/nanosleep (Depends-on): Likewise.
76729         * modules/settime (Depends-on): Likewise.
76730
76731 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76732
76733         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
76734         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
76735         pedantically.
76736         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76737         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
76738
76739         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
76740         not "==".  Reported by Ralf Wildenhues.
76741
76742 2006-03-01  Karl Berry  <karl@gnu.org>
76743
76744         * doc/Copyright/request-*: new files, synced from gnuorg.
76745
76746 2006-03-01  Karl Berry  <karl@gnu.org>
76747
76748         * config/srclist.txt (Copyright/*): new entries.
76749
76750 2006-02-28  Simon Josefsson  <jas@extundo.com>
76751
76752         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
76753
76754 2006-02-27  Simon Josefsson  <jas@extundo.com>
76755
76756         * lib/base64.h: Indent #define's.  From Jim Meyering
76757         <jim@meyering.net>.
76758
76759 2006-02-27  Jim Meyering  <jim@meyering.net>
76760
76761         Revert the change of 2006-02-24, so these files can continue
76762         to be sync'd from gettext.
76763         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
76764         of `config.h'.
76765
76766 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76767
76768         * modules/intprops: New file.
76769         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76770         Add intprops.
76771         * modules/getloadavg (Files): Remove lib/intprops.h.
76772         (Depends-on): Add intprops.
76773         * modules/human: Likewise.
76774         * modules/inttostr: Likewise.
76775         * modules/openat: Likewise.
76776         * modules/sig2str: Likewise.
76777         * modules/userspec: Likewise.
76778         * modules/utimecmp: Likewise.
76779         * modules/xnanosleep: Likewise.
76780         * modules/xstrtol: Likewise.
76781
76782 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
76783
76784         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
76785         * modules/lock-tests (TESTS): Use $(EXEEXT).
76786         * modules/tls-tests: Likewise.
76787         * modules/argp-tests: Likewise.
76788         (check_PROGRAMS): New var, replacing...
76789         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
76790
76791 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76792
76793         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
76794         `config.h'.
76795
76796 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
76797
76798         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
76799
76800 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76801
76802         Sync from coreutils.
76803         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
76804         gl_CHDIR_SAFER.
76805
76806 2006-02-22  Jim Meyering  <jim@meyering.net>
76807
76808         Sync from coreutils.
76809         * m4/chdir-safer.m4: New file.
76810
76811 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
76812
76813         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
76814         AT_FDCWD exceeds INT_MAX.
76815         * lib/openat.h (AT_FDCWD): Likewise.
76816
76817 2006-02-17  Eric Blake  <address@hidden>
76818
76819         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
76820
76821 2006-02-16  Simon Josefsson  <jas@extundo.com>
76822
76823         * modules/getaddrinfo (Depends-on): Add sys_socket.
76824
76825 2006-02-15  Simon Josefsson  <jas@extundo.com>
76826
76827         * build-aux/maint.mk: Add dsyntax-check rule.
76828
76829 2006-02-15  Eric Blake  <ebb9@byu.net>
76830
76831         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
76832         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
76833         'present but cannot compile' warnings on cygwin.
76834         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
76835         use ws2tcpip.h if sys/socket.h works.
76836         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
76837         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
76838
76839 2006-02-14  Simon Josefsson  <jas@extundo.com>
76840
76841         * modules/maintainer-makefile (Files): Rename.
76842
76843         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
76844         and (the local) Makefile.cfg to maint-cfg.mk.
76845
76846         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
76847         to the latter.
76848
76849         * modules/maintainer-makefile: New module.
76850
76851         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
76852         severaly stripped to make it possible to build it up from scratch
76853         with reliable tests.
76854
76855         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
76856         fixes to permit overriding the default actions when configure and
76857         makefile are not available.
76858
76859 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
76860
76861         Sync from coreutils.
76862         * modules/lstat (Depends-on): Don't depend on xalloc.
76863         (License): Change from GPL to LGPL, since this is now simply a
76864         replacement for a libc function.
76865
76866 2006-02-14  Jim Meyering  <jim@meyering.net>
76867
76868         Sync from coreutils.
76869
76870         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
76871         failure on deficient systems, and simplify gnulib lgpl dependencies.
76872         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
76873         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
76874
76875         * lib/xalloc-die.c: Remove unused definition of N_.
76876
76877 2006-02-14  Jim Meyering  <jim@meyering.net>
76878
76879         Sync from coreutils.
76880         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
76881         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
76882         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
76883         double-quote uses of that variable, to accommodate the rare case in
76884         which getmntent is available in none of the libraries checked.  This
76885         happens at least on FreeBSD 5.0.
76886
76887 2006-02-13  Simon Josefsson  <jas@extundo.com>
76888
76889         * gnulib-tool (Usage): Fix --import, from
76890         karl@freefriends.org (Karl Berry).
76891
76892 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
76893
76894         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
76895
76896 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
76897
76898         * lib/argp-namefrob.h: Restore changes accidentally lost during the
76899         "autoupdate" on 2005-12-12.
76900
76901 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
76902
76903         * modules/closeout (Depends-on): Remove atexit.
76904
76905 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
76906
76907         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
76908         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
76909
76910 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
76911
76912         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
76913         __EXTENSIONS__ if this causes compilation to fail.  Problem
76914         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
76915         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
76916
76917 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
76918
76919         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
76920         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
76921         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
76922         All uses changed.
76923
76924 2006-01-26  Simon Josefsson  <jas@extundo.com>
76925
76926         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
76927         prototype is visible on mingw32.
76928
76929         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
76930         for mingw32.
76931
76932         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
76933         mingw32).
76934
76935 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
76936
76937         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
76938         attempt to open for write; this always fails, at least on POSIX
76939         hosts.  This reinstates the 2006-01-09 change, which was
76940         inadvertently removed.
76941
76942 2006-01-26  Bruno Haible  <bruno@clisp.org>
76943
76944         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
76945         Reported by Paul Eggert.
76946
76947 2006-01-26  Bruno Haible  <bruno@clisp.org>
76948             Paul Eggert  <eggert@cs.ucla.edu>
76949
76950         * lib/stdbool_.h (_Bool)
76951         [(! (defined __cplusplus || defined __BEOS__)
76952           && !defined __GNUC__
76953           && !(defined __HP_cc || defined __xlc__
76954                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
76955                || defined __sgi))]:
76956         #define to signed char in these cases too; this simplifies
76957         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
76958         etc., separately) and makes it more conservative.
76959
76960 2006-01-25  Simon Josefsson  <jas@extundo.com>
76961
76962         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
76963         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
76964         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
76965
76966 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76967
76968         * lib/argp-namefrob.h: Bugfix. Remove stray #
76969
76970 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
76971
76972         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
76973         so that we test the test.
76974         Check for yet another HP-UX cc bug involving *bool |= bool.
76975
76976 2006-01-25  Karl Berry  <karl@gnu.org>
76977
76978         * config/srclist.txt (vasnprintf.c): sync lost.
76979
76980 2006-01-25  Jim Meyering  <jim@meyering.net>
76981
76982         Sync from the stable (b5) branch of coreutils:
76983
76984         * lib/fts.c (fts_children): Don't let close() clobber errno from
76985         failed fchdir().
76986
76987         * lib/fts.c (fts_stat): When following a symlink-to-directory,
76988         don't necessarily interpret stat-fails+lstat-succeeds as indicating
76989         a dangling symlink.  That can also happen at least for ELOOP.
76990         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
76991         FYI, this bug predates the inclusion of fts.c in coreutils.
76992
76993         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
76994         in their own block, so pre-c99 compilers don't object.
76995
76996         Avoid the double-free (first in fts_read, second in fts_close) that
76997         would occur when an `active' directory is made inaccessible (e.g.,
76998         via chmod a-x) during a traversal.
76999         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77000         before returning.  Reproduce this failure by
77001         mkdir -p a/b; cd a; chmod a-x . b
77002         Reported by Stavros Passas.
77003
77004 2006-01-25  Jim Meyering  <jim@meyering.net>
77005
77006         * lib/fileblocks.c: Remove more useless parentheses.
77007         * lib/readutmp.h: Likewise.
77008
77009 2006-01-25  Bruno Haible  <bruno@clisp.org>
77010
77011         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
77012         warnings.
77013         Reported by Paul Eggert.
77014
77015 2006-01-25  Bruno Haible  <bruno@clisp.org>
77016
77017         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
77018         rid of a trap command. For Solaris sh.
77019         Reported by Mark D. Baushke <mdb@gnu.org>.
77020
77021 2006-01-24  Simon Josefsson  <jas@extundo.com>
77022
77023         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
77024         Bruno.
77025
77026 2006-01-24  Karl Berry  <karl@gnu.org>
77027
77028         * config/srclist.txt (argp-namefrob.h): sync lost.
77029
77030 2006-01-24  Jim Meyering  <jim@meyering.net>
77031
77032         * modules/openat (Files): Add lib/intprops.h.
77033         From Mark D. Baushke.
77034
77035 2006-01-24  Jim Meyering  <jim@meyering.net>
77036
77037         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
77038         Reported by Mark D. Baushke.
77039
77040 2006-01-24  Jim Meyering  <jim@meyering.net>
77041
77042         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
77043
77044 2006-01-24  Bruno Haible  <bruno@clisp.org>
77045
77046         * modules/strnlen (Maintainer): Change from glibc to all.
77047
77048 2006-01-24  Bruno Haible  <bruno@clisp.org>
77049
77050         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
77051         Patch by Paul Eggert.
77052
77053 2006-01-24  Bruno Haible  <bruno@clisp.org>
77054
77055         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
77056         already has it.
77057         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
77058         2005-11-26.
77059
77060         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
77061         'signed char' to avoid problems with the built-in _Bool type.
77062         Reported by Paul Eggert on 2005-11-26.
77063
77064 2006-01-24  Bruno Haible  <bruno@clisp.org>
77065
77066         * gnulib-tool (func_import): Avoid constructing complicated sed
77067         expressions inside backquote.
77068         Report and solution by Mark D. Baushke <mdb@gnu.org>.
77069
77070 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
77071
77072         These changes imported from libc.
77073         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
77074         test and two separate function calls.
77075         * lib/strndup.c (__strndup): Add libc_hidden_def.
77076
77077 2006-01-23  Simon Josefsson  <jas@extundo.com>
77078
77079         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
77080         Remove the test_*_SOURCES variable: automake infers it by default.
77081         * modules/tls-tests: Likewise.
77082
77083 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77084
77085         Work around porting bugs reported by Dieter in
77086         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
77087         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
77088         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
77089         Include "getopt.h" first, to check interface.
77090         (getenv): Declare only if defined HAVE_DECL_GETENV &&
77091         !HAVE_DECL_GETENV.
77092         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
77093         (__strndup): Revert to K&R-style function dfns, the glibc style.
77094         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
77095         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
77096         Include strnlen.h first, to get prototype properly.
77097         (strnlen): Renamed from __strnlen.
77098         Remove weak alias.
77099
77100 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77101
77102         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
77103
77104 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77105
77106         * config/srclist.txt: Adjust to reflect glibc reorganization.
77107         This affects only comments.
77108
77109 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77110
77111          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
77112          Reported by Bruce Korb <bkorb@gnu.org>.
77113
77114 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
77115
77116         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
77117         to pacify gcc -Wswitch-default.
77118
77119 2006-01-22  Bruno Haible  <bruno@clisp.org>
77120
77121         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
77122         temporary buffer for sprintf, take into account the precision also
77123         for 'd', 'i', 'u', 'o', 'x', 'X'.
77124
77125 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77126
77127         * modules/argp-tests: New module
77128         * tests/test-argp.c: New file
77129         * tests/test-argp-2.sh: New file
77130
77131 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77132
77133         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
77134         (__argp_base_name): Removed
77135         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
77136         typo.
77137         (__argp_base_name): Provide macro definition or extern declaration
77138         depending on the configuration
77139
77140 2006-01-20  Simon Josefsson  <jas@extundo.com>
77141
77142         * modules/inet_ntop (Depends-on): Depend on sys_socket.
77143
77144 2006-01-20  Simon Josefsson  <jas@extundo.com>
77145
77146         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
77147
77148 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77149
77150         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
77151         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
77152         Suggested by Bruno Haible.
77153
77154 2006-01-20  Karl Berry  <karl@gnu.org>
77155
77156         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
77157         until changes propagate, I guess.
77158
77159 2006-01-19  Simon Josefsson  <jas@extundo.com>
77160
77161         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
77162
77163 2006-01-19  Simon Josefsson  <jas@extundo.com>
77164
77165         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
77166
77167 2006-01-19  Simon Josefsson  <jas@extundo.com>
77168
77169         * gnulib-tool: Set check_PROGRAMS.
77170
77171         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77172         modules/des-tests, modules/gc-arcfour-tests,
77173         modules/gc-arctwo-tests, modules/gc-des-tests,
77174         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77175         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77176         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77177         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77178         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77179         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
77180         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
77181         test_*_SOURCES.
77182
77183 2006-01-18  Simon Josefsson  <jas@extundo.com>
77184
77185         * modules/socklen (Depends-on): Depend on sys_socket.
77186
77187 2006-01-18  Simon Josefsson  <jas@extundo.com>
77188
77189         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77190         modules/des-tests, modules/gc-arcfour-tests,
77191         modules/gc-arctwo-tests, modules/gc-des-tests,
77192         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77193         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77194         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77195         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77196         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77197         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
77198         $(EXEEXT) to automake TESTS variable, for mingw32.
77199
77200 2006-01-17  Simon Josefsson  <jas@extundo.com>
77201
77202         * modules/socklen (Include): Need sys/socket.h.
77203
77204 2006-01-17  Bruno Haible  <bruno@clisp.org>
77205
77206         * modules/ssize_t (Include): Add <sys/types.h>.
77207
77208 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
77209
77210         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
77211         it's not portable and it doesn't work with cross-compiles.
77212         Problem reported by Bruno Haible.  Fix missing-$ typo in
77213         'test "gl_cv_ignore_unused_libraries" ...' that prevented
77214         -zignore from being used with Sun's C compiler.
77215
77216 2006-01-12  Simon Josefsson  <jas@extundo.com>
77217
77218         * lib/base64.c: Fix warning, reported by Bruno Haible
77219         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
77220
77221 2006-01-12  Bruno Haible  <bruno@clisp.org>
77222
77223         * modules/ldd: New file.
77224         * build-aux/ldd.sh.in: New file.
77225         * MODULES.html.sh (Support for building libraries and executables): Add
77226         ldd.
77227
77228 2006-01-12  Bruno Haible  <bruno@clisp.org>
77229
77230         * m4/ldd.m4: New file.
77231
77232 2006-01-12  Bruno Haible  <bruno@clisp.org>
77233
77234         * gnulib-tool (func_import, func_create_testdir): Don't go into an
77235         endless loop while replacing $auxdir with build-aux.
77236
77237 2006-01-11  Simon Josefsson  <jas@extundo.com>
77238
77239         * lib/stdint_.h (SIZE_MAX): Add missing (.
77240
77241 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
77242
77243         Sync from coreutils.
77244         * lib/md5.c: Fix commentary typos.
77245         (alignof, UNALIGNED_P): No need for a GCC-specific version.
77246         * lib/md5.h (__attribute__): Remove; unused.
77247         * lib/sha1.c: Fix commentary to match md5 better.
77248         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
77249         so that we don't need to worry about alignment.  All uses changed.
77250         This merges the 2005-10-28 md5 change into sha1.
77251
77252 2006-01-11  Jim Meyering  <jim@meyering.net>
77253
77254         Sync from coreutils.
77255         * lib/md5.c (OP): Fix spacing.
77256
77257 2006-01-11  Bruno Haible  <bruno@clisp.org>
77258
77259         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77260         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
77261         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
77262
77263 2006-01-11  Bruno Haible  <bruno@clisp.org>
77264
77265         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77266         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
77267         the "early" section as well.
77268
77269 2006-01-11  Bruno Haible  <bruno@clisp.org>
77270
77271         Avoid "ar: no archive members specified" error on MacOS X.
77272         * gnulib-tool (func_modules_add_dummy): New function.
77273         (func_import, func_create_testdir): Invoke it.
77274
77275 2006-01-11  Bruno Haible  <bruno@clisp.org>
77276
77277         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
77278         with $auxdir in AC_CONFIG_FILES statements.
77279
77280 2006-01-11  Bruno Haible  <bruno@clisp.org>
77281
77282         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77283         Initialize also noinst_HEADERS to empty.
77284
77285 2006-01-11  Bruno Haible  <bruno@clisp.org>
77286
77287         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
77288         variables.
77289         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
77290         autoreconf.
77291
77292 2006-01-11  Bruno Haible  <bruno@clisp.org>
77293
77294         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
77295         overridable by the user.
77296         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77297
77298 2006-01-10  Simon Josefsson  <jas@extundo.com>
77299
77300         * modules/sys_socket: New file.
77301
77302 2006-01-10  Simon Josefsson  <jas@extundo.com>
77303
77304         * m4/sys_socket_h.m4: New file.
77305
77306 2006-01-10  Simon Josefsson  <jas@extundo.com>
77307
77308         * lib/socket_.h: New file.
77309
77310 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77311
77312         * modules/readutmp (Maintainer): Add myself.
77313
77314 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77315
77316         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
77317         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
77318         People who are still concerned with buggy memcmp implementations
77319         can invoke gl_FUNC_MEMCMP themselves.
77320
77321 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77322
77323         * lib/regex_internal.h (BITSET_WORD_BITS):
77324         Work around a bug in 64-bit PGC (before version 6.1-2), where the
77325         preprocessor mishandles large unsigned values as if they were signed.
77326         Problem reported by Claudio Fontana in
77327         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
77328
77329 2006-01-10  Jim Meyering  <jim@meyering.net>
77330
77331         Avoid the double-free (first in fts_read, second in fts_close) that
77332         would occur when an `active' directory is made inaccessible (e.g.,
77333         via chmod a-x) during a traversal.
77334         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77335         before returning.  Reproduce this failure by
77336         mkdir -p a/b; cd a; chmod a-x . b
77337         Reported by Stavros Passas.
77338
77339         Sync from coreutils.
77340         * lib/sha1.c: Tweak grammar in a comment.
77341
77342 2006-01-10  Jim Meyering  <jim@meyering.net>
77343
77344         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
77345         Patch by Joerg Sonnenberger.
77346
77347 2006-01-10  Bruno Haible  <bruno@clisp.org>
77348
77349         * modules/readutmp: Depend on module free.
77350         * modules/strtok_r: Depend on module restrict.
77351
77352 2006-01-10  Bruno Haible  <bruno@clisp.org>
77353
77354         * modules/gettext (configure.ac): Add an invocation of
77355         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
77356
77357 2006-01-10  Bruno Haible  <bruno@clisp.org>
77358
77359         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
77360         Reported by Werner Lemberg <wl@gnu.org>.
77361
77362 2006-01-10  Bruno Haible  <bruno@clisp.org>
77363
77364         * lib/localcharset.c: Update from GNU gettext.
77365
77366 2006-01-10  Bruno Haible  <bruno@clisp.org>
77367
77368         * lib/argp.h (__const): Remove macro. Use const instead.
77369         * lib/argp-fmtstream.h (__const): Likewise.
77370         * lib/glob_.h (__const): Remove macro.
77371         * lib/glob-libc.h: Use const instead of __const.
77372
77373 2006-01-10  Bruno Haible  <bruno@clisp.org>
77374
77375         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
77376         variable.
77377         Needed to avoid an automake error regarding the 'gettext' module.
77378
77379 2006-01-09  Simon Josefsson  <jas@extundo.com>
77380
77381         * modules/inet_ntop (Depends-on): Add restrict.
77382
77383 2006-01-09  Simon Josefsson  <jas@extundo.com>
77384
77385         * modules/gc-rijndael-tests (License): Put under LGPL.
77386
77387         * modules/gc-des-tests (License): Likewise.
77388
77389         * modules/gc-arcfour-tests (License): Likewise.
77390
77391         * modules/gc-arctwo-tests (License): Likewise.
77392
77393         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
77394
77395         * modules/gc-hmac-sha1-tests (Files): Likewise.
77396
77397         * modules/gc-hmac-md5-tests (License): Likewise.
77398
77399         * modules/gc-sha1-tests (License): Likewise.
77400
77401         * modules/gc-md5-tests (License): Likewise.
77402
77403         * modules/gc-md4-tests (License): Likewise.
77404
77405         * modules/gc-md2-tests (License): Likewise.
77406
77407         * modules/gc-tests (License): Likewise.
77408
77409         * modules/des-tests (License): Likewise.
77410
77411         * modules/md4-tests (License): Likewise.
77412
77413         * modules/md2-tests (License): Likewise.
77414
77415 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77416
77417         Sync from coreutils:
77418
77419         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
77420         * modules/lib-ignore: New file.
77421         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
77422         chdir-safer.m4, lchmod.m4.
77423         * modules/openat: Add mkdirat.c, openat-priv.h.
77424
77425 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77426
77427         Sync from coreutils.
77428         * m4/lib-ignore.m4: New file.
77429         * m4/lchmod.m4: New file.
77430
77431 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77432
77433         Sync from coreutils.
77434         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
77435         for write access: POSIX says that must fail.
77436         * lib/fts.c (diropen): Likewise.
77437         * lib/save-cwd.c (save_cwd): Likewise.
77438         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
77439         well, for minor improvements on hosts that lack O_DIRECTORY.
77440         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
77441         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
77442         Fall back on chown if open failed with EACCES.
77443
77444         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
77445         Report an error at compile-time if only a 1-second nominal clock
77446         resolution is found.
77447
77448         * lib/lchmod.h: New file.
77449         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
77450         (make_dir_parents): Use lchown rather than chown, and
77451         lchmod rather than chmod.
77452
77453         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
77454         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
77455         "proc" reported by n0dalus.
77456
77457         * lib/mountlist.c: Include <limits.h>.
77458         (dev_from_mount_options)
77459         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
77460         New function.  It no longer assumes "dev=" has the System V meaning
77461         on Linux (since it doesn't).  It also parses "dev=" more carefully.
77462         (read_file_system_list)
77463         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
77464         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
77465         dev= in that case.
77466
77467         * lib/posixtm.h (PDS_PRE_2000): New macro.
77468         * lib/posixtm.c (year): Arg is now syntax_bits rather than
77469         allow_century.  All usages changed.  Reject dates outside the range
77470         1969-1999 if PDS_PRE_2000 is used.
77471
77472 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77473
77474         Sync from coreutils.
77475         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
77476         (Time of day items): Mention the possibility of leap seconds.
77477         Problem reported by Dr. David Alan Gilbert.
77478
77479 2006-01-09  Jim Meyering  <jim@meyering.net>
77480
77481         Sync from coreutils.
77482
77483         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
77484
77485         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
77486
77487         * lib/modechange.c (mode_compile): Reject an invalid mode string
77488         that starts with an octal digit.  From Andreas Gruenbacher.
77489
77490         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
77491         and dup to open_safer and dup_safer, respectively.
77492         (openat_permissive): Fix typo in comment.
77493
77494         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
77495         "gettext.h"; either no longer needed or are guaranteed by openat.h.
77496         (_): Remove; no longer needed.
77497         (openat): Renamed from rpl_openat; no need for rpl_openat
77498         since openat.h renames openat for us.
77499         Replace most of the body with a call to openat_permissive,
77500         to avoid duplicate code.
77501         Port to (probably hypothetical) environments were mode_t is
77502         wider than int.
77503         (openat_permissive): Require mode arg, so that we can check
77504         types better.  Put it just after flags.  Change cwd failure
77505         indicator from pointer-to-bool to pointer-to-errno-value.
77506         All callers changed.
77507         Invoke openat_save_fail and/or openat_restore_fail if
77508         cwd_errno is null, so that openat can call us.
77509         (openat_permissive, fdopendir, fstatat, unlinkat):
77510         Simplify errno handling to avoid some duplicate code,
77511         as it's OK to set errno on success.
77512         * lib/openat.h: Revamp code so that function macros depend on
77513         __OPENAT_PREFIX only, not also on AT_FDCWD.
77514         (openat_ro): Remove.  Caller changed to use openat_permissive.
77515         (openat_permissive): Now a macro, if not a function.
77516         (openat_restore_fail, openat_save_fail): Now always functions,
77517         since mkdirat needs them even if __OPENAT_PREFIX is defined.
77518
77519         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
77520         and openat.c.
77521         * lib/mkdirat.c: Include openat-priv.h.
77522         Remove definitions of macros defined therein.
77523         * lib/openat.c: Likewise.
77524
77525         * lib/mkdirat.c (mkdirat): New file and function.
77526         * lib/openat.h (mkdirat): Declare.
77527
77528         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
77529
77530         * lib/openat.h (openat_permissive): Declare.
77531         (openat_ro): Define.
77532
77533         * lib/openat.c (EXPECTED_ERRNO): New macro.
77534         (openat_permissive): New function -- used in remove.c rewrite.
77535         (all functions): Set errno just before returning, only if there
77536         was an actual failure.
77537         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
77538
77539         Emulate openat-family functions using Linux's procfs, if possible.
77540         Idea and some code based on Ulrich Drepper's glibc changes.
77541
77542         * lib/openat.c: (BUILD_PROC_NAME): New macro.
77543         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
77544         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
77545         before falling back on save_cwd and restore_cwd.
77546         (fdopendir, fstatat, unlinkat): Likewise.
77547
77548         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
77549         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
77550
77551         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
77552         as second argument to va_arg.  Otherwise, some versions of gcc
77553         warn that `if this code is reached, the program will abort'.
77554
77555 2006-01-09  Jim Meyering  <jim@meyering.net>
77556
77557         Sync from coreutils.
77558         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
77559         Require openat-priv.h.
77560
77561 2006-01-09  Bruno Haible  <bruno@clisp.org>
77562
77563         * modules/strnlen (Include): Use strnlen.h.
77564
77565 2006-01-09  Bruno Haible  <bruno@clisp.org>
77566
77567         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
77568
77569 2006-01-09  Bruno Haible  <bruno@clisp.org>
77570
77571         * lib/sysexit_.h (EX_OK): New macro.
77572         Suggested by Martin Lambers <marlam@marlam.de>.
77573
77574 2006-01-09  Bruno Haible  <bruno@clisp.org>
77575
77576         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
77577         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
77578
77579 2006-01-09  Bruno Haible  <bruno@clisp.org>
77580
77581         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
77582         numbers.
77583
77584 2006-01-09  Bruno Haible  <bruno@clisp.org>
77585
77586         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
77587         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
77588         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
77589         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
77590
77591 2006-01-09  Bruno Haible  <bruno@clisp.org>
77592
77593         * build-aux/javacomp.sh.in: New file, moved from lib/.
77594         * modules/javacomp-script (Files): Update.
77595         (configure.ac): Add AC_CONFIG_FILES invocation.
77596         (EXTRA_DIST): Remove variable.
77597
77598         * build-aux/javaexec.sh.in: New file, moved from lib/.
77599         * modules/javaexec (Files): Update.
77600         (configure.ac): Add AC_CONFIG_FILES invocation.
77601         (EXTRA_DIST): Remove javaexec.sh.in.
77602
77603         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
77604         * modules/csharpcomp-script (Files): Update.
77605         (configure.ac): Add AC_CONFIG_FILES invocation.
77606         (EXTRA_DIST): Remove variable.
77607
77608         * build-aux/csharpexec.sh.in: New file, moved from lib/.
77609         * modules/csharpexec (Files): Update.
77610         (configure.ac): Add AC_CONFIG_FILES invocation.
77611         (EXTRA_DIST): Remove csharpexec.sh.in.
77612
77613 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
77614
77615         Sync from coreutils.
77616
77617         Add POSIX ACL support
77618         * lib/acl.h (copy_acl, set_acl): Add declarations.
77619         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
77620         systems other than Linux.
77621         (chmod_or_fchmod): New function: use fchmod when possible,
77622         and chmod otherwise.
77623         (file_has_acl): Add a POSIX ACL implementation, with a
77624         Linux-specific subcase.
77625         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
77626         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
77627         acls are unsupported.
77628         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
77629         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
77630         are unsupported.
77631
77632 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
77633
77634         Sync from coreutils.
77635         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
77636
77637 2006-01-07  Bruno Haible  <bruno@clisp.org>
77638
77639         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
77640         gl_EARLY.
77641
77642 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77643
77644         * lib/strftime.c (tzname): Don't declare if it is already #defined.
77645         Problem reported for Mingw by Mark Junker.
77646
77647 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77648
77649         * README: Gnulib normally doesn't generate a tarball.
77650
77651 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
77652
77653         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
77654         long int, not int, for nanosecond counts, so that people who are
77655         used to POSIX struct timespec won't be surprised.  Reported by Jim
77656         Meyering.
77657
77658 2005-12-28  Bruno Haible  <bruno@clisp.org>
77659
77660         * build-aux/config.rpath: Update from GNU gettext.
77661
77662 2005-12-16  Jim Meyering  <jim@meyering.net>
77663
77664         * modules/fprintftime: New module.
77665         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
77666
77667 2005-12-16  Jim Meyering  <jim@meyering.net>
77668
77669         * m4/fprintftime.m4: New file.
77670
77671 2005-12-16  Jim Meyering  <jim@meyering.net>
77672
77673         * lib/fprintftime.c, lib/fprintftime.h: New files.
77674
77675 2005-12-15  Simon Josefsson  <jas@extundo.com>
77676
77677         * modules/socklen (configure.ac): Fix M4 macro name, to align with
77678         new m4/socklen.m4.
77679
77680 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77681
77682         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
77683         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
77684
77685 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77686
77687         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
77688         * lib/argp-help.c (fill_in_uparams): Check if the constructed
77689         struct uparams is valid. Fall back to the default values if it is
77690         not.
77691
77692 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77693
77694         * modules/argp (Files): Add argp-pin.c
77695         (Depends-on): dirname
77696         (lib_SOURCES): Add argp-pin.c
77697
77698 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77699
77700         * m4/argp.m4:  Check if program_invocation_name and
77701         program_invocation_short_name are declared and define appropriate
77702         macros if they are not.
77703
77704 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77705
77706         * lib/argp-help.c (__argp_base_name): New function
77707         (__argp_short_program_name): Rewrite using __argp_base_name
77708         * lib/argp-namefrob.h: Define program_invocation_name and
77709         program_invocation_short_name if requested
77710         (__argp_base_name): Add prototype
77711         * lib/argp-parse.c (argp_def): Use gettext wrappers
77712         (argp_default_parser): Use __argp_base_name
77713         * lib/argp-pin.c: New file. Defines program_invocation_name and
77714         program_invocation_short_name on systems that lack them.
77715
77716 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77717
77718         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
77719         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
77720         porting problem reported by Georg Schwarz in
77721         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
77722
77723 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77724
77725         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
77726         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
77727         porting problem reported by Georg Schwarz in
77728         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
77729
77730 2005-12-05  Bruno Haible  <bruno@clisp.org>
77731
77732         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
77733         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
77734         Reported by Mark Junker <mjscod@gmx.de>.
77735
77736 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
77737
77738         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
77739         Use implementation from Albert Chin, with some
77740         comments/corrections by Stepan Kasal and myself.
77741
77742 2005-12-02  Bruno Haible  <bruno@clisp.org>
77743
77744         * gnulib-tool (func_import): Accept GPLed build tool modules when
77745         --lgpl is given.
77746         * modules/csharpcomp-script: New file.
77747         * modules/csharpcomp: Depend on it.
77748         * modules/javacomp-script: New file.
77749         * modules/javacomp: Depend on it.
77750         Suggested by Simon Josefsson.
77751
77752 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
77753
77754         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
77755         statement, to work around an HP-UX 10.20 compiler bug reported by
77756         Peter O'Gorman.
77757
77758 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
77759
77760         * modules/savedir (Depends-on): Add openat.
77761
77762 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
77763
77764         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
77765         (uintmax_t) [defined uintmax_t]: Do not declare.
77766         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
77767         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
77768         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
77769         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
77770         sake of portability to weird hosts that C allows (though we don't
77771         know of any practical examples).
77772
77773         * lib/savedir.h (fdsavedir): New decl.
77774         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
77775         contains most of the former guts of savedir.
77776         (savedir): Use savedirstream.
77777         Include "openat.h".
77778
77779 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77780
77781         * modules/obstack (Files): Add m4/ulonglong.m4.
77782         Problem reported by Davide Angelocola.
77783
77784 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
77785
77786         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
77787         coreutils no longer futzes with rounding modes.
77788
77789 2005-11-14  Jim Meyering  <jim@meyering.net>
77790
77791         * lib/mkstemp-safer.c: Include <config.h>, required for possible
77792         replacement of mkstemp.
77793
77794 2005-11-10  Simon Josefsson  <jas@extundo.com>
77795
77796         * lib/readline.c: Remove EOL.
77797
77798 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77799
77800         * modules/gethrxtime (Depends-on): Add gettime.
77801
77802 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77803
77804         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
77805         or gettimeofday; no longer needed.
77806
77807 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77808
77809         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
77810         time business.
77811         (gethrxtime) [! (HAVE_NANOUPTIME
77812         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
77813         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
77814         our own approximation.
77815
77816 2005-11-08  Eric Blake  <ebb9@byu.net>
77817
77818         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
77819
77820 2005-11-08  Eric Blake  <ebb9@byu.net>
77821
77822         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
77823
77824 2005-11-04  Bruno Haible  <bruno@clisp.org>
77825
77826         * gnulib-tool: Implement --update mode.
77827
77828 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77829
77830         Fix porting problem reported by Theodoros V. Kalamatianos.
77831         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
77832         Don't assume that futimes failing means we must fail.
77833
77834 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77835
77836         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
77837         variables to suggest the intended function of the PATH_MAX check.
77838
77839 2005-10-30  Kean Johnston  <jkj@sco.com>
77840
77841         Trivial changes to support SCO systems.
77842         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
77843         as PATH_MAX.
77844         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
77845         where __ptr is null when no I/O is pending.
77846
77847 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77848
77849         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
77850         leave errno alone.  Problem reported by Dmitry V. Levin.
77851
77852 2005-10-28  Simon Josefsson  <jas@extundo.com>
77853
77854         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
77855         Test more.
77856
77857         * tests/test-gc-md2.c, tests/test-md2.c: New files.
77858
77859         * modules/md2, modules/md2-tests: New files.
77860
77861 2005-10-28  Simon Josefsson  <jas@extundo.com>
77862
77863         * m4/inet_ntop.m4: More tests.
77864
77865         * m4/gc-md2.m4, md2.m4: New file.
77866
77867 2005-10-28  Simon Josefsson  <jas@extundo.com>
77868
77869         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
77870         "restrict" keywords, as per POSIX.  Protect the function
77871         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
77872         Don't use K&R prototypes.  Check the sprintf return values.
77873         Re-define EAFNOSUPPORT if not present.  Indent.
77874
77875         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
77876         suggested by Bruno Haible <bruno@clisp.org>.
77877
77878         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
77879
77880         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
77881
77882         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
77883         libgcrypt).
77884
77885         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
77886
77887         * lib/md2.h, lib/md2.c: New files.
77888
77889 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
77890
77891         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
77892         errno alone.  Problem reported by Frederic Jolliton.
77893
77894 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77895
77896         * modules/verify (License): Change from GPL to LGPL.  This is a
77897         tiny module and there are apparently near-equivalents that are
77898         under the BSD license.
77899
77900 2005-10-24  Simon Josefsson  <jas@extundo.com>
77901
77902         * modules/sha1: Relicense to LGPL.
77903
77904 2005-10-24  Simon Josefsson  <jas@extundo.com>
77905
77906         * lib/md4.h: Shrink buffer size, now that we changed the type.
77907
77908 2005-10-23  Simon Josefsson  <jas@extundo.com>
77909
77910         * gnulib-tool (func_import): Fix --tests-base.
77911
77912 2005-10-22  Simon Josefsson  <jas@extundo.com>
77913
77914         * modules/arcfour (Depends-on): Need stdint.
77915
77916 2005-10-22  Simon Josefsson  <jas@extundo.com>
77917
77918         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
77919         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
77920
77921 2005-10-22  Simon Josefsson  <jas@extundo.com>
77922
77923         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
77924         suggested by Bruno Haible <bruno@clisp.org>.
77925
77926 2005-10-22  Simon Josefsson  <jas@extundo.com>
77927
77928         * lib/crc.h: Include stddef.h, for size_t.
77929
77930 2005-10-22  Simon Josefsson  <jas@extundo.com>
77931
77932         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
77933         arcfour_context struct (simplify test vector testing in GNU
77934         Shishi).
77935
77936 2005-10-21  Simon Josefsson  <jas@extundo.com>
77937
77938         * modules/des, modules/des-tests: New files.
77939
77940         * modules/gc-des, modules/gc-des-tests: New files.
77941
77942         * tests/test-des.c, tests/test-gc-des.c: New file.
77943
77944 2005-10-21  Simon Josefsson  <jas@extundo.com>
77945
77946         * modules/arctwo, modules/arctwo-tests: New files.
77947
77948         * tests/test-arctwo.c: New file.
77949
77950         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
77951
77952         * tests/test-gc-arctwo.c: New file.
77953
77954 2005-10-21  Simon Josefsson  <jas@extundo.com>
77955
77956         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
77957         Bruno Haible <bruno@clisp.org>.
77958
77959         * m4/gc-des.m4: New file.
77960
77961 2005-10-21  Simon Josefsson  <jas@extundo.com>
77962
77963         * m4/arctwo.m4: New file.
77964
77965         * m4/gc-arctwo.m4: New file.
77966
77967 2005-10-21  Simon Josefsson  <jas@extundo.com>
77968
77969         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
77970         block.
77971
77972 2005-10-21  Simon Josefsson  <jas@extundo.com>
77973
77974         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
77975         <bruno@clisp.org>.
77976
77977         * lib/hmac-sha1.c (hmac_sha1): Likewise.
77978
77979         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
77980         Bruno Haible <bruno@clisp.org>.
77981
77982         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
77983         <bruno@clisp.org>.
77984
77985 2005-10-21  Simon Josefsson  <jas@extundo.com>
77986
77987         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
77988
77989 2005-10-21  Simon Josefsson  <jas@extundo.com>
77990
77991         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
77992
77993 2005-10-21  Simon Josefsson  <jas@extundo.com>
77994
77995         * lib/des.h, lib/des.c: New files.
77996
77997         * lib/gc-gnulib.c: Support DES.c
77998
77999 2005-10-21  Simon Josefsson  <jas@extundo.com>
78000
78001         * lib/arctwo.h, lib/arctwo.c: New files.
78002
78003         * lib/gc-gnulib.c: Support ARCTWO.
78004
78005 2005-10-21  Simon Josefsson  <jas@extundo.com>
78006
78007         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78008         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78009
78010 2005-10-21  Simon Josefsson  <jas@extundo.com>
78011
78012         * gnulib-tool (func_import, func_create_testdir): Define automake
78013         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
78014         Makefile.am snippet),
78015         suggested by Bruno Haible <bruno@clisp.org>.
78016
78017         * modules/gc (Makefile.am): Use it.
78018
78019 2005-10-21  Bruno Haible  <bruno@clisp.org>
78020
78021         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
78022         patch.
78023
78024 2005-10-19  Simon Josefsson  <jas@extundo.com>
78025
78026         * tests/test-gc-rijndael.c: New file.
78027
78028         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
78029
78030 2005-10-19  Simon Josefsson  <jas@extundo.com>
78031
78032         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
78033         interface too.
78034
78035 2005-10-19  Simon Josefsson  <jas@extundo.com>
78036
78037         * tests/test-gc-arcfour.c: New file.
78038
78039         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
78040
78041 2005-10-19  Simon Josefsson  <jas@extundo.com>
78042
78043         * modules/gc-md4, modules/gc-md4-tests: New file.
78044
78045         * tests/test-gc-md4.c: New file.
78046
78047 2005-10-19  Simon Josefsson  <jas@extundo.com>
78048
78049         * m4/gc-md4.m4: New file.
78050
78051 2005-10-19  Simon Josefsson  <jas@extundo.com>
78052
78053         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
78054         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
78055         <kasal@ucw.cz>.
78056
78057 2005-10-19  Simon Josefsson  <jas@extundo.com>
78058
78059         * m4/gc-arcfour.m4: New file.
78060
78061         * m4/gc-rijndael.m4: New file.
78062
78063 2005-10-19  Simon Josefsson  <jas@extundo.com>
78064
78065         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
78066
78067 2005-10-19  Simon Josefsson  <jas@extundo.com>
78068
78069         * lib/gc-gnulib.c: Support ARCFOUR.
78070
78071 2005-10-19  Simon Josefsson  <jas@extundo.com>
78072
78073         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
78074         support.
78075
78076         * lib/gc.h: Add ECB enum type.
78077
78078         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
78079
78080 2005-10-18  Simon Josefsson  <jas@extundo.com>
78081
78082         * tests/test-md5.c: New file.
78083
78084         * modules/md5-tests: New file.
78085
78086 2005-10-18  Simon Josefsson  <jas@extundo.com>
78087
78088         * tests/test-md4.c: New file.
78089
78090         * modules/md4, modules/md4-tests: New files.
78091
78092 2005-10-18  Simon Josefsson  <jas@extundo.com>
78093
78094         * m4/md4.m4: New file.
78095
78096 2005-10-18  Simon Josefsson  <jas@extundo.com>
78097
78098         * lib/md4.h, lib/md4.c: New files, based on md5.?.
78099
78100 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
78101
78102         * gnulib-tool (func_create_testdir): Omit the second check whether
78103         BUILT_SOURCES in nonempty.
78104
78105 2005-10-17  Simon Josefsson  <jas@extundo.com>
78106
78107         * tests/test-rijndael.c: New file.
78108
78109 2005-10-17  Simon Josefsson  <jas@extundo.com>
78110
78111         * modules/sha1: Depend on stdint instead of md5.
78112
78113         * modules/md5: Depend on stdint, remove uint32_t.
78114
78115 2005-10-17  Simon Josefsson  <jas@extundo.com>
78116
78117         * modules/gc-sha1-tests: New file.
78118
78119         * tests/test-gc-sha1.c: New file.
78120
78121 2005-10-17  Simon Josefsson  <jas@extundo.com>
78122
78123         * m4/md5.m4: Remove call to uint32_t.m4.
78124
78125 2005-10-17  Simon Josefsson  <jas@extundo.com>
78126
78127         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
78128
78129         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
78130         md5.h.
78131
78132         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
78133
78134         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
78135
78136 2005-10-17  Simon Josefsson  <jas@extundo.com>
78137
78138         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
78139
78140 2005-10-17  Simon Josefsson  <jas@extundo.com>
78141
78142         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
78143
78144 2005-10-17  Simon Josefsson  <jas@extundo.com>
78145
78146         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
78147
78148         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
78149
78150 2005-10-17  Bruno Haible  <bruno@clisp.org>
78151
78152         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
78153         that it can also be used in a test.
78154
78155 2005-10-16  Bruno Haible  <bruno@clisp.org>
78156
78157         * gnulib-tool (func_emit_tests_Makefile_am): Also define
78158         TESTS_ENVIRONMENT, so that individual tests can augment it.
78159
78160         * gnulib-tool (func_create_testdir): Use an intermediate target for
78161         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
78162         macros, like $(ALLOCA_H), which cannot be passed through the command
78163         line.
78164
78165 2005-10-15  Simon Josefsson  <jas@extundo.com>
78166
78167         * modules/rijndael-tests: New file.
78168
78169         * modules/rijndael: New file.
78170
78171 2005-10-15  Simon Josefsson  <jas@extundo.com>
78172
78173         * m4/rijndael.m4: New file.
78174
78175 2005-10-15  Simon Josefsson  <jas@extundo.com>
78176
78177         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
78178
78179         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
78180
78181 2005-10-14  Simon Josefsson  <jas@extundo.com>
78182
78183         * tests/test-arcfour.c: New file.
78184
78185         * modules/arcfour, modules/arcfour-tests: New files.
78186
78187 2005-10-14  Simon Josefsson  <jas@extundo.com>
78188
78189         * m4/arcfour.m4: New file.
78190
78191 2005-10-14  Simon Josefsson  <jas@extundo.com>
78192
78193         * lib/arcfour.h, lib/arcfour.c: New files.
78194
78195 2005-10-14  Roland McGrath  <roland@redhat.com>
78196
78197         Import from libc.  [BZ #1331]
78198         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
78199         macro argument.
78200         Reported by Matej Vela <vela@debian.org>.
78201
78202 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78203
78204         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
78205         include <wchar.h>; no longer needed.
78206
78207 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78208
78209         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
78210
78211 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
78212         and  Ulrich Drepper  <drepper@redhat.com>
78213
78214         Import from libc.
78215         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
78216         instead of inline stream orientation test and two separate
78217         function calls.  Pay no attention to USE_IN_LIBIO.
78218
78219 2005-10-13  Simon Josefsson  <jas@extundo.com>
78220
78221         * modules/gc-hmac-md5-tests: New file.
78222
78223         * tests/test-gc-hmac-sha1.c: New file.
78224
78225         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
78226
78227         * modules/gc-hmac-md5-tests: New file.
78228
78229         * tests/test-gc-md5.c: New file.
78230
78231         * modules/gc-md5-tests: New file.
78232
78233 2005-10-13  Simon Josefsson  <jas@extundo.com>
78234
78235         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
78236         Move memory allocation outside of loop.
78237
78238 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
78239
78240         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
78241         intermediate directory is in a read-only file system.  Problem
78242         reported by Eric Blake.
78243
78244 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
78245
78246         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
78247
78248 2005-10-12  Simon Josefsson  <jas@extundo.com>
78249
78250         * tests/test-hmac-sha1.c: New file.
78251
78252         * modules/hmac-sha1-tests: New file.
78253
78254         * modules/hmac-sha1: New file.
78255
78256 2005-10-12  Simon Josefsson  <jas@extundo.com>
78257
78258         * modules/gc-sha1: New file.
78259
78260 2005-10-12  Simon Josefsson  <jas@extundo.com>
78261
78262         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
78263
78264         * tests/test-gc-pbkdf2-sha1.c: New file.
78265
78266 2005-10-12  Simon Josefsson  <jas@extundo.com>
78267
78268         * modules/gc-md5, modules/gc-hmac-md5: New files.
78269
78270         * modules/gc (Files): Remove md5, memxor and hmac files.
78271
78272 2005-10-12  Simon Josefsson  <jas@extundo.com>
78273
78274         * m4/gc-pbkdf2-sha1.m4: New file.
78275
78276         * m4/gc-hmac-sha1.m4: New file.
78277
78278         * m4/gc-sha1: New file.
78279
78280         * m4/hmac-sha1.m4: New file.
78281
78282 2005-10-12  Simon Josefsson  <jas@extundo.com>
78283
78284         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
78285
78286         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
78287
78288 2005-10-12  Simon Josefsson  <jas@extundo.com>
78289
78290         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
78291         suggested by Bruno Haible <bruno@clisp.org>.
78292
78293 2005-10-12  Simon Josefsson  <jas@extundo.com>
78294
78295         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
78296
78297 2005-10-12  Simon Josefsson  <jas@extundo.com>
78298
78299         * lib/gc-pbkdf2-sha1.c: New file.
78300
78301         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
78302
78303 2005-10-12  Simon Josefsson  <jas@extundo.com>
78304
78305         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
78306
78307         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
78308
78309 2005-10-12  Simon Josefsson  <jas@extundo.com>
78310
78311         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
78312         GC_USE_HMAC_MD5, respectively.
78313
78314         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
78315         (gc_md5): Fix typo.
78316
78317         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
78318
78319         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
78320
78321         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
78322
78323 2005-10-12  Bruno Haible  <bruno@clisp.org>
78324
78325         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
78326         Reported by Stepan Kasal <kasal@ucw.cz>.
78327
78328 2005-10-11  Simon Josefsson  <jas@extundo.com>
78329
78330         * tests/test-crc.c: New file.
78331
78332         * modules/crc, modules/crc-tests: New files.
78333
78334 2005-10-11  Simon Josefsson  <jas@extundo.com>
78335
78336         * m4/crc.m4: New file.
78337
78338 2005-10-11  Simon Josefsson  <jas@extundo.com>
78339
78340         * lib/gc.h: Add gc_hash and gc_hash_buffer.
78341
78342         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
78343
78344         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
78345
78346 2005-10-11  Simon Josefsson  <jas@extundo.com>
78347
78348         * lib/crc.h, lib/crc.c: New files.
78349
78350         * lib/gc.h (gc_hash_buffer): Add doc.
78351
78352 2005-10-11  Bruno Haible  <bruno@clisp.org>
78353
78354         * modules/c-strcasestr: New file.
78355         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
78356
78357 2005-10-11  Bruno Haible  <bruno@clisp.org>
78358
78359         * modules/c-strcase: New file.
78360         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
78361
78362 2005-10-11  Bruno Haible  <bruno@clisp.org>
78363
78364         * lib/strcasecmp.c: Include limits.h.
78365         (strcasecmp): Avoid integer overflow on exotic platforms.
78366         * lib/strncasecmp.c: Include limits.h.
78367         (strncasecmp): Avoid integer overflow on exotic platforms.
78368         Reported by Paul Eggert.
78369
78370 2005-10-11  Bruno Haible  <bruno@clisp.org>
78371
78372         * lib/c-strcasestr.h: New file, from GNU gettext.
78373         * lib/c-strcasestr.c: New file, from GNU gettext.
78374
78375 2005-10-11  Bruno Haible  <bruno@clisp.org>
78376
78377         * lib/c-strcase.h: New file, from GNU gettext.
78378         * lib/c-strcasecmp.c: New file, from GNU gettext.
78379         * lib/c-strncasecmp.c: New file, from GNU gettext.
78380
78381 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78382
78383         * modules/mempcpy (License): GPL -> LGPL.
78384         * modules/strchrnul (License): Likewise.
78385         * modules/sysexits (License): Likewise.
78386
78387 2005-10-08  Simon Josefsson  <jas@extundo.com>
78388
78389         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
78390
78391 2005-10-07  Simon Josefsson  <jas@extundo.com>
78392
78393         * m4/memxor.m4: Remove gl_C_RESTRICT call.
78394
78395 2005-10-06  Simon Josefsson  <jas@extundo.com>
78396
78397         * tests/test-hmac-md5.c: New file.
78398
78399         * modules/hmac-md5-tests: New file.
78400
78401         * modules/hmac-md5: New file.
78402
78403 2005-10-06  Simon Josefsson  <jas@extundo.com>
78404
78405         * m4/hmac-md5.m4: New file.
78406
78407         * m4/memxor.m4: Require gl_C_RESTRICT.
78408
78409 2005-10-06  Simon Josefsson  <jas@extundo.com>
78410
78411         * lib/memxor.c (memxor): Avoid casts and warnings.
78412
78413 2005-10-06  Simon Josefsson  <jas@extundo.com>
78414
78415         * lib/hmac-md5.c: New file.
78416
78417         * lib/hmac.h: New file.
78418
78419 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78420
78421         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
78422         promotes to int, not unsigned int, to catch the AIX 5.3
78423         compiler bug.
78424
78425 2005-10-05  Simon Josefsson  <jas@extundo.com>
78426
78427         * modules/memxor: New file.
78428
78429         * modules/iconv (Files): Move config.rpath to havelib, it is used
78430         there.
78431
78432         * modules/havelib (Files): Add config.rpath.
78433
78434 2005-10-05  Simon Josefsson  <jas@extundo.com>
78435
78436         * m4/memxor.m4: New file.
78437
78438 2005-10-05  Simon Josefsson  <jas@extundo.com>
78439
78440         * lib/memxor.c (memxor): Fix compiler error.
78441
78442         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
78443         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
78444
78445         * lib/memxor.h, lib/memxor.c: New files.
78446
78447         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
78448         we assume all systems have it, suggested by Jim Meyering
78449         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
78450         any systems lack sys/socket.h; mingw32 is known to lack it, but we
78451         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
78452         same reasons.
78453
78454 2005-10-05  Simon Josefsson  <jas@extundo.com>
78455
78456         * config/srclist.txt: Add glibc bug 1423 for md5.h.
78457
78458 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78459
78460         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
78461         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
78462         needed, since the source code now assumes these .h files.
78463
78464 2005-10-05  Derek Price  <derek@ximbiot.com>
78465
78466         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
78467
78468 2005-10-05  Bruno Haible  <bruno@clisp.org>
78469
78470         * modules/stdint (License): Change to LGPL.
78471
78472 2005-10-04  Simon Josefsson  <jas@extundo.com>
78473
78474         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
78475         D. Baushke" <mdb@gnu.org>.
78476
78477 2005-10-04  Bruno Haible  <bruno@clisp.org>
78478
78479         * lib/verify.h (verify_true): Provide alternative definition for C++.
78480
78481 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
78482
78483         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
78484         (SSIZE_MAX): New macro, if not already defined.
78485         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
78486         than 2 GiB.
78487
78488 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78489
78490         Sync from coreutils.
78491         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
78492         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
78493         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
78494         ULLONG_MAX doesn't work with 2.7.2.1.
78495
78496 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78497
78498         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
78499         From Ben Pfaff.
78500
78501         * modules/exclude (Depends-on): Depend on verify.
78502         * modules/strtoimax (Depends-on): Likewise.
78503         * modules/utimecmp (Depends-on): Likewise.
78504
78505 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78506
78507         * lib/exclude.c: Include verify.h.
78508         (verify): Remove.  All callers changed to use verify.h's version.
78509         * lib/strtoimax.c: Likewise.
78510         * lib/utimecmp.c: Likewis.e
78511
78512         Sync from coreutils.
78513         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
78514         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
78515         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
78516         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
78517         bother returning ENOSYS if settimeofday or stime fails; just let
78518         them return whatever errno they want to return.
78519         * lib/utimens.c: Include unistd.h, for dup2.
78520         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
78521         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
78522
78523 2005-10-02  Jim Meyering  <jim@meyering.net>
78524
78525         Sync from coreutils.
78526         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
78527         from glibc-2.2.5 that fails for read-only files.
78528
78529 2005-10-02  Jim Meyering  <jim@meyering.net>
78530
78531         Sync from coreutils.
78532         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
78533         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
78534         `#if HAVE_CONFIG_H'.
78535         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
78536         Remove AT_FDCWD test.
78537         Do not consume the fd unless successful.
78538         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
78539         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
78540         block, so that we don't even try to compile it if settimeofday is
78541         available.  This works around a compilation failure on OSF1 V5.1,
78542         due to stime requiring a `long int*' while tv_sec is `int'.
78543
78544 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
78545
78546         Sync from coreutils.
78547         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
78548         against `yes', rather than just testing for nonempty.
78549
78550 2005-10-01  Simon Josefsson  <jas@extundo.com>
78551
78552         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
78553         and Darwin.
78554
78555         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
78556         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
78557         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
78558         freeaddrinfo and gai_strerror are declared by the POSIX headers.
78559         Check if struct addrinfo is declared.
78560
78561 2005-10-01  Simon Josefsson  <jas@extundo.com>
78562
78563         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
78564         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
78565         AI_* and EAI_* definitions.  Protect function declarations.
78566
78567 2005-10-01  Jim Meyering  <jim@meyering.net>
78568
78569         Sync from coreutils.
78570
78571         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
78572         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
78573         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
78574         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
78575         in the inet and nsl libraries.  Required on Solaris 5.7.
78576
78577 2005-10-01  Jim Meyering  <jim@meyering.net>
78578
78579         Sync from coreutils.
78580         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
78581         in the inet and nsl libraries.  Required on Solaris 5.7.
78582
78583 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
78584
78585         * lib/getdelim.c (getdelim): Remove unused variables.
78586
78587 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78588
78589         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
78590         so that the code works even with ancient cpp.  Portability problem
78591         with GCC 2.7.2.1 reported by Thomas M.Ott.
78592
78593 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78594
78595         * modules/regex (Depends-on): Add strcase.
78596
78597         * modules/gethostname (Licence): Change from GPL to LGPL, since
78598         gethostname.c is a trivial implementation of a standard library
78599         function.
78600         * modules/poll (License): Change from GPL to LGPL, since it's
78601         derived from LGPL code.
78602
78603 2005-09-27  Jim Meyering  <jim@meyering.net>
78604
78605         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
78606         HAVE_CONFIG_H.
78607
78608         * lib/intprops.h (signed_type_or_expr__): Define.
78609         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
78610         for unsigned types.
78611
78612 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78613
78614         * lib/verify.h (verify_expr): Remove, replacing with:
78615         (verify_true): New macro that returns true instead of void.
78616         (verify_type__): Remove.
78617         (verify): Use verify_true rather than verify_type__.
78618
78619 2005-09-26  Bruno Haible  <bruno@clisp.org>
78620
78621         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
78622         is necessary.
78623         (lib_SOURCES): Remove mbchar.c.
78624         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
78625         (Files): Add m4/mbrtowc.m4.
78626         * modules/mbiter: Likewise.
78627         * modules/mbuiter: Likewise.
78628
78629 2005-09-26  Bruno Haible  <bruno@clisp.org>
78630
78631         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
78632         compile mbchar.c if they are not both present.
78633         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
78634         * m4/mbiter.m4 (gl_MBITER): Likewise.
78635         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
78636         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
78637         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
78638
78639 2005-09-25  Jim Meyering  <jim@meyering.net>
78640
78641         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
78642         also uses socklen_t.
78643
78644 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
78645
78646         * lib/utimens.c (ENOSYS): Define if not already defined.
78647         (futimens): Support having a null PATH if the file descriptor
78648         is nonnegative.
78649
78650         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
78651         Remove.
78652         (__attribute): Define to empty unless GCC 3.1 or later.
78653         This works around a core dump on OpenBSD 3.4, which has GCC
78654         2.95.3, which dumps core when given __attribute__(()).  It also
78655         simplifies other tests, since we really don't want to bother with
78656         worrying about which ancient version of GCC supported what.
78657         Original problem reported by Yoann Vandoorselaere, with part of
78658         the fix suggested by Derek Price.
78659
78660 2005-09-24  Jim Meyering  <jim@meyering.net>
78661
78662         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
78663         so we can once again use a positive bitfield width of 1 -- now we
78664         don't have to explain why we were using a bitfield width of 2.
78665
78666 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
78667
78668         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
78669         and similarly for the other external symbols.  Problem reported
78670         by James Gallager.
78671
78672         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
78673         bug reported by Jim Meyering.
78674
78675         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
78676         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
78677         not needed, since socklen is a prerequisite module.
78678
78679 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
78680
78681         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
78682         Problem reported by Eric Blake.
78683         (getaddrinfo): Initialize se so that it's not garbage.
78684         Redo internal storage allocation so that it doesn't make unportable
78685         assumptions about alignment.
78686         Fix a memory leak.
78687
78688         * lib/utimens.c (futimens): Use futimesat if available.
78689         Prefer it to futimes since it doesn't have the futimes bug.
78690
78691         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
78692         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
78693         Instead, declare a function that returns a pointer to an array,
78694         and use verify_type__ to declare the size of the array.
78695         Problem and germ of a solution reported by Bruno Haible.
78696         (verify_type__): Use 2, not 1, for bitfield size, to avoid
78697         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
78698
78699 2005-09-23  Jim Meyering  <jim@meyering.net>
78700
78701         Sync from coreutils.
78702         Correct build failure (socklen_t not defined) on at least
78703         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
78704         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
78705
78706 2005-09-23  Jim Meyering  <jim@meyering.net>
78707
78708         * modules/getaddrinfo (Depends-on): Add socklen.
78709
78710 2005-09-23  Bruno Haible  <bruno@clisp.org>
78711
78712         * tests/test-verify.c: New file.
78713
78714 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78715
78716         Sync from coreutils.
78717
78718         * modules/argmatch (Depends-on): Add verify.
78719         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
78720         unistd-safer.
78721         * modules/save-cwd (Depends-on): Likewise.
78722
78723         * modules/openat (Files): Add lib/openat-die.c.
78724         (Depends-on): Remove error, exitfail.
78725         Add dirname.
78726
78727         * modules/verify: New file.
78728         * MODULES.html.sh (Diagnostics <assert.h>): New section,
78729         with "verify" module.
78730
78731 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78732
78733         Sync from coreutils.
78734
78735         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
78736         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
78737         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
78738         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
78739         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
78740         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
78741         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
78742         Don't bother checking for string.h, stdlib.h, unistd.h.
78743         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
78744         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
78745         module's job.
78746         * m4/jm-macros.m4 (gl_MACROS): Likewise.
78747         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
78748
78749         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
78750         (gl_GETDATE): Use it.
78751
78752         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
78753
78754 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78755
78756         Sync from coreutils.
78757
78758         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
78759         stat-time.h.
78760         * lib/argmatch.h: Include verify.h
78761         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
78762         (ARGMATCH_ASSERT): Remove; unused.
78763         * lib/canonicalize.c: Assume STDC_HEADERS.
78764         * lib/exclude.c: Include "strcase.h".
78765         * lib/regex_internal.h [!defined _LIBC]: Likewise.
78766         * lib/getusershell.c: Include stdio--.h rather than stdio.h
78767         and stdio-safer.h.
78768         (getusershell): Call fopen, not fopen_safer.
78769         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
78770         Do not include unistd-safer.h.
78771         (save_cwd): Don't call fd_safer; no longer needed
78772         now that we include fcntl--.h.
78773
78774         * lib/getdate.y (relative_time): New type.
78775         (RELATIVE_TIME_0): New constant.
78776         (parser_control): Use relative_time instead of doing it ourselves.
78777         (%union): Add new relative_time rel member.
78778         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
78779         Now typeless.
78780         (relunit, relunit_snumber): Now of type rel.
78781         (zone, rel, relunit, get_date): Adjust to above changes.
78782
78783         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
78784         Do not include unistd-safer.h.
78785         (getloadavg): Don't call fd_safer; no longer needed
78786         now that we include fcntl--.h.
78787
78788         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
78789         (make_dir_parents): Treat ENOSYS like EEXIST.
78790
78791         Improve quality of diagnostics on restore_cwd failure.
78792         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
78793         (make_dir_parents): Last arg is now int * (for errno), not bool *.
78794         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
78795         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
78796         each time through the loop.  Do not diagnose restore_cwd failure;
78797         that is the caller's job (and perhaps the caller does not care).
78798
78799         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
78800         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
78801         If the file already exists but is not a directory, don't bother
78802         to try to make its parents.
78803         Close potential file descriptor leak if we can't chdir("/") (!).
78804         Don't always return true if chdir($PWD) fails; return true only
78805         if the requested action was done successfully (except for the
78806         chdir($PWD)).
78807         Don't log final directory unless we actually made it.
78808         Refactor to avoid duplicate code to fix up permissions.
78809         Don't attempt to fix up parent permissions if chdir($PWD) fails.
78810
78811         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
78812         to make it a bit faster and (I hope) clearer.
78813         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
78814         Fix bug in formats like %2N.
78815
78816         * lib/verify.h: New file.
78817
78818 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78819
78820         Sync from coreutils.
78821         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
78822
78823 2005-09-22  Jim Meyering  <jim@meyering.net>
78824
78825         Sync from coreutils.
78826
78827         * m4/lstat.m4 (gl_FUNC_LSTAT):
78828         Use AC_LIBSOURCES to require lstat.c and lstat.h.
78829         Remove obsolete comment.
78830         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
78831         * m4/xstrtod.m4: Likewise.
78832
78833         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
78834
78835 2005-09-22  Jim Meyering  <jim@meyering.net>
78836
78837         Sync from coreutils.
78838
78839         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
78840
78841         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
78842         the .tm_year member, since otherwise gcc-4.0 would now warn about
78843         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
78844
78845         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
78846         order to avoid an unsuppressible warning from gcc on 64-bit systems.
78847
78848         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
78849         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
78850         when run in a time zone for which daylight savings time is in effect
78851         for the starting date.
78852
78853         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
78854         stop us from restricting permissions of just-created absolute-named
78855         directories.
78856         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
78857         to restore initial working directory.
78858         * lib/mkdir-p.c (make_dir_parents): New parameter:
78859         different_working_dir, to tell caller if/when we change the working
78860         directory and are unable to return to the initial one.
78861         * lib/mkdir-p.h (make_dir_parents): Update prototype.
78862         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
78863         `return false'.  This fixes a bug introduced on 2004-07-30.
78864
78865         * lib/openat.c (fdopendir): Be sure to close the supplied
78866         file descriptor before returning.  This makes our replacement
78867         implementation a little closer to Solaris's, where fdopendir
78868         ties the file descriptor to the returned DIR* pointer.
78869         * lib/openat.c (unlinkat): New function.
78870         * lib/openat.h (unlinkat): Add prototype.
78871         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
78872         (openat_restore_fail): Rename from openat_restore_die.
78873         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
78874
78875         Provide an alternative to exiting immediately upon save_cwd or
78876         restore_cwd failure.  Now, an application can arrange e.g.,
78877         to perform a longjump in that case.
78878         * lib/openat.c: Include dirname.h.
78879         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
78880         (rpl_openat, fdopendir, fstatat): Call openat_save_die
78881         and openat_restore_die rather than calling error directly.
78882         Don't include "error.h" or "exitfail.h"; they're no longer needed.
78883
78884         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
78885         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
78886         define.
78887
78888         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
78889         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
78890                             int utc, int nanoseconds);
78891         Background:
78892         date should not have to allocate a megabyte of virtual memory to
78893         handle a format argument like +%1048575T.  When implemented with
78894         strftime, it must allocate such a buffer, use strftime to fill it
78895         in, print it, then free it.
78896         With fprintftime, it simply prints everything and exits.
78897         With no need for memory allocation, that's one fewer way to fail.
78898         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
78899         optional field width, not before, so we accept %9:z, not %:9z.
78900         (my_strftime): Be sure to use L_('x') for literals.
78901
78902         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
78903         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
78904         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
78905         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
78906         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
78907         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
78908         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
78909         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
78910         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
78911         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
78912         * lib/xgethostname.c, lib/xreadlink.c:
78913         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
78914
78915         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
78916         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
78917         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
78918         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
78919         and don't include <sys/file.h>).
78920
78921 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
78922
78923         Sync from coreutils.
78924
78925         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
78926         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
78927         [!LDAV_DONE]: Avoid unused variable warning.
78928
78929 2005-09-21  Bruno Haible  <bruno@clisp.org>
78930
78931         * lib/unicodeio.h (unicode_to_mb): New declaration.
78932
78933 2005-09-20  Derek Price  <derek@ximbiot.com>
78934
78935         * lib/getaddrinfo.c: Don't include <netdb.h> included from
78936         getaddrinfo.h.
78937
78938 2005-09-20  Bruno Haible  <bruno@clisp.org>
78939
78940         * gnulib-tool: Remove trailing slashes from the values specified for
78941         --source-base, --m4-base, --tests-base, --aux-dir.
78942         Suggested by Simon Josefsson <jas@extundo.com>.
78943
78944 2005-09-20  Bruno Haible  <bruno@clisp.org>
78945
78946         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
78947         func_modules_to_filelist, func_import, func_create_testdir): Make all
78948         sorting results locale-independent, so that gnulib-cache.m4 doesn't
78949         change when gnulib-tool is invoked in a different locale.
78950
78951 2005-09-19  Simon Josefsson  <jas@extundo.com>
78952
78953         * m4/socklen.m4: Fix typo.
78954
78955 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78956
78957         Use a consistent style for including <config.h>.
78958         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
78959         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
78960         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
78961         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
78962         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
78963         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
78964         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
78965         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
78966         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
78967         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
78968         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
78969         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
78970         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
78971         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
78972         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
78973         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
78974         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
78975         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
78976         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
78977         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
78978         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
78979         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
78980         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
78981         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
78982         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
78983         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
78984         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
78985         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
78986         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
78987         lib/xstrtoumax.c, lib/yesno.c:
78988         Standardize inclusion of config.h.
78989         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
78990         lib/inttostr.h:  Removed inclusion of config.h from header files.
78991         * lib/inttostr.c:  Adjusted in-tree users.
78992         * lib/timespec.h: Remove superfluous warning to include config.h.
78993         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
78994         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
78995         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
78996         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
78997         config.h with HAVE_CONFIG_H.
78998
78999 2005-09-19  Jim Meyering  <jim@meyering.net>
79000
79001         * modules/pathmax (License): Change to LGPL.
79002
79003 2005-09-19  Derek Price  <derek@ximbiot.com>
79004
79005         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79006
79007 2005-09-19  Bruno Haible  <bruno@clisp.org>
79008
79009         * gnulib-tool (import): Provide default for --tests-base.
79010
79011 2005-09-19  Bruno Haible  <bruno@clisp.org>
79012
79013         * doc/quote.texi: New file, extracted from gnulib.texi.
79014         * doc/ctime.texi: New file, extracted from gnulib.texi.
79015         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
79016         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
79017         * doc/gnulib.texi: Include them.
79018
79019 2005-09-18  Bruno Haible  <bruno@clisp.org>
79020
79021         Portability fix.
79022         * gnulib-tool (func_readlink): New function.
79023         (func_ln_if_changed): Use it.
79024
79025 2005-09-18  Bruno Haible  <bruno@clisp.org>
79026
79027         * gnulib-tool: Support --with-tests also with --import.
79028         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
79029         (func_import): Use variables $testsbase and $inctests. Emit a
79030         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
79031         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
79032         SUBDIRS += $testsdir.
79033         (func_create_testdir): Update.
79034
79035 2005-09-18  Bruno Haible  <bruno@clisp.org>
79036
79037         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
79038         instead of $dry_run.
79039         (func_cp_if_changed, func_mv_if_changed): Remove functions.
79040         (func_ln_if_changed): Don't handle dry-run here.
79041         (func_import): In dry-run mode, detect more precisely which actions
79042         would be performed, and don't use "...ing" verbs.
79043
79044 2005-09-18  Bruno Haible  <bruno@clisp.org>
79045
79046         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
79047         (func_import): Use join on two temporary files instead of three nested
79048         loops, in order to determine which files are new or old.
79049
79050 2005-09-18  Bruno Haible  <bruno@clisp.org>
79051
79052         * gnulib-tool (func_import): Comment out code that spits out the
79053         new files with --dry-run.
79054
79055 2005-09-18  Bruno Haible  <bruno@clisp.org>
79056
79057         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
79058
79059 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79060
79061         * lib/stat-time.h: New file.
79062         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
79063         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
79064         in a different way.
79065         (timespec_cmp): New function.
79066         * lib/utimecmp.c: Include stat-time.h.
79067         (SYSCALL_RESOLUTION): Depend on whether various struct stat
79068         members exist, not on the obsolescent ST_MTIM_NSEC.
79069         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
79070
79071 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79072
79073         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
79074
79075 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79076
79077         * MODULES.html.sh (File system functions): Add stat-time.
79078         * modules/stat-time: New file.
79079         * modules/timespec (Files): Remove m4/st_mtim.m4; this
79080         is now done in a different way, by the stat-time module.
79081         * modules/utimecmp (Depends-on): Add stat-time.
79082
79083 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79084
79085         * m4/st_mtim.m4: Remove.  Superseded by...
79086         * m4/stat-time.m4: New file.
79087         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
79088         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
79089
79090 2005-09-15  Derek Price  <derek@ximbiot.com>
79091
79092         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
79093
79094 2005-09-15  Derek Price  <derek@ximbiot.com>
79095
79096         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
79097         * lib/regex_internal.c: Ditto, using this...
79098         (__GNUC_PREREQ): ...new macro.
79099         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
79100         using...
79101         (__GNUC_PREREQ): ...this new macro.
79102
79103         * lib/strstr.h: Include string.h. Define strstr as a macro here.
79104
79105 2005-09-15  Derek Price  <derek@ximbiot.com>
79106             Paul Eggert  <eggert@cs.ucla.edu>
79107
79108         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
79109         changes, consolidating in...
79110         * lib/regex_internal.h: ...this file.
79111
79112 2005-09-13  Jim Meyering  <jim@meyering.net>
79113
79114         * lib/canon-host.c: Filter through gnu indent and reword comments
79115         slightly.
79116         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
79117
79118 2005-09-13  Derek Price  <derek@ximbiot.com>
79119
79120         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
79121         failure.
79122         Reported by Jim Meyering  <jim@meyering.net>.
79123
79124 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79125
79126         * lib/base64.c: Typo.
79127         (base64_encode): Put b64str in initialized data section.
79128
79129 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
79130
79131         Merge glibc and coreutils changes into gnulib, plus a few
79132         extra fixes.
79133         * lib/md5.c: Use #error rather than a string.
79134         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
79135         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
79136         (__attribute__): Define to empty for non recent-GCC.
79137         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
79138         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
79139         Renamed from their non-__ counterparts, with new macros replacing
79140         them if not _LIBC.  Add __THROW attribute.
79141         (rol): Remove.
79142         (struct md5_ctx): Align buffer if using GCC.
79143         * lib/sha1.h (struct sha1_ctx): Likewise.
79144         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
79145         The old name was backwards.
79146         (NOTSWAP): Remove; not used.
79147         (rol): New macro, moved here from md5.h.
79148         (sha1_process_block): Remove a FIXME that doesn't make sense.
79149
79150 2005-09-12  Derek Price  <derek@ximbiot.com>
79151
79152         Return usable errors from canon-host.
79153         * lib/canon-host.h: New file.
79154         * lib/canon-host.c (canon_host): Wrap...
79155         (canon_host_r): ...this new function, which now relies exclusively on
79156         getaddrinfo.
79157         (ch_strerror): New function.
79158         (last_cherror): New global.
79159         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
79160         interface.
79161         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
79162         void *.
79163         (freeaddrinfo): Free ai->ai_canonname when set.
79164
79165 2005-09-12  Derek Price  <derek@ximbiot.com>
79166
79167         Make canon-host require getaddrinfo.
79168         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
79169         AC_LIBSOURCE canon-host.h.  Call...
79170         (gl_PREREQ_CANON_HOST): ...this new function, which requires
79171         gl_GETADDRINFO.
79172         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
79173
79174 2005-09-12  Derek Price  <derek@ximbiot.com>
79175
79176         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
79177         LGPL.
79178         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
79179
79180 2005-09-12  Derek Price  <derek@ximbiot.com>
79181
79182         * lib/gai_strerror.c: Include config.h when available.  Include
79183         getaddrinfo.h before other headers to test interface.
79184         Reported by Larry Jones <lawrence.jones@ugs.com>.
79185
79186 2005-09-12  Derek Price  <derek@ximbiot.com>
79187             Paul Eggert  <eggert@cs.ucla.edu>
79188
79189         * modules/glob (Files): Add glob-libc.h.
79190
79191 2005-09-12  Derek Price  <derek@ximbiot.com>
79192             Paul Eggert  <eggert@cs.ucla.edu>
79193
79194         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
79195         glob_.h, glob-libc.h.
79196         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
79197
79198 2005-09-12  Derek Price  <derek@ximbiot.com>
79199             Paul Eggert  <eggert@cs.ucla.edu>
79200
79201         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
79202         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
79203         protecting things that should be done only in gnulib contexts.
79204         * lib/glob_.h: New file, containing only the glob things needed for
79205         gnulib.
79206         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
79207         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
79208         (glob, globfree, glob_pattern_p): Now defined simply in terms of
79209         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
79210         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
79211         and to respect the namespace rules better.
79212
79213 2005-09-08  Simon Josefsson  <jas@extundo.com>
79214
79215         * modules/socklen: New file.
79216
79217 2005-09-08  Simon Josefsson  <jas@extundo.com>
79218
79219         * m4/socklen.m4: New file.
79220
79221 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79222
79223         * modules/utimens (Files): Add m4/utimbuf.m4, since
79224         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
79225         Reported by Sergey Poznyakoff.
79226
79227 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79228
79229         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
79230         definitions, since that's the preferred style in glibc.
79231         Fix a minor spacing issue, and update copyright notice to match
79232         glibc's.
79233
79234 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79235
79236         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
79237
79238 2005-09-06  Simon Josefsson  <jas@extundo.com>
79239
79240         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
79241         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
79242
79243 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79244
79245         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
79246         warning.
79247
79248 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79249
79250         * config/srclist.txt: Add glibc bug 1302.
79251
79252 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
79253
79254         Change bitset word type from unsigned int to unsigned long int,
79255         as this has better performance on typical 64-bit hosts.
79256         Port bitset code to hosts with unusual word sizes.
79257         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
79258         (build_collating_symbol):
79259         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
79260         argument is a bitset.  This is merely a style issue, but it makes
79261         it clearer that an entire array is expected.
79262         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
79263         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
79264         Port to the case where bitset_word is not the same as unsigned int.
79265         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
79266         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
79267         Likewise.
79268         * lib/regexec.c (check_dst_limits_calc_pos_1,
79269         check_subexp_matching_top):
79270         (build_trtable, group_nodes_into_DFAstates):
79271         Likewise.
79272         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
79273         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
79274         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
79275         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
79276         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
79277         * lib/regcomp.c (optimize_subexps, lower_subexp):
79278         Work even if bitset_word has holes in its bitwise representation.
79279         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
79280         * lib/regexec.c (check_dst_limits_calc_pos_1,
79281         check_subexp_matching_top):
79282         Likewise.
79283         * lib/regex_internal.c (re_string_reconstruct):
79284         Don't assume UCHAR_MAX == 255.
79285         * lib/regex_internal.h (bitset_set_all): Likewise.
79286         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
79287         All uses changed.
79288         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
79289         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
79290         All uses changed.
79291         (BITSET_WORD_MAX): New macro.
79292         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
79293         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
79294         (bitset_empty, bitset_copy):
79295         Prefer sizeof (bitset) to multiplying it out ourselves.
79296         (bitset_not_merge): Remove; unused.
79297         (bitset_contain): Return bool, not unsigned int with one bit on.
79298         All callers changed.
79299         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
79300         alignment than re_node_set; do this by defining a new internal
79301         type struct dests_alloc and using it to allocate memory.
79302
79303 2005-09-05  Bruno Haible  <bruno@clisp.org>
79304
79305         * gnulib-tool (func_import): Fix comparison in handling of symbolic
79306         links.
79307
79308 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
79309
79310         * modules/size_max (Makefile.am): Add size_max.h
79311
79312 2005-09-04  Derek Price  <derek@ximbiot.com>
79313
79314         * gnulib-tool (func_import): Fix reversed $symbolic logic.
79315
79316 2005-09-03  Simon Josefsson  <jas@extundo.com>
79317
79318         * gnulib-tool: Fix typo.
79319
79320 2005-09-03  Simon Josefsson  <jas@extundo.com>
79321
79322         * config/srclist.txt: Add glibc bug 1293.
79323
79324 2005-09-03  Derek Price  <derek@ximbiot.com>
79325
79326         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
79327         From Larry Jones <lawrence.jones@ugs.com>.
79328
79329 2005-09-02  Simon Josefsson  <jas@extundo.com>
79330
79331         * modules/socklen: New file.
79332
79333 2005-09-02  Simon Josefsson  <jas@extundo.com>
79334
79335         * modules/havelib: New module.
79336
79337         * modules/gettext, modules/iconv, modules/lock, modules/readline:
79338         Use havelib.
79339
79340 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
79341
79342         Check for arithmetic overflow when calculating sizes, to prevent
79343         some buffer-overflow issues.  These patches are conservative, in the
79344         sense that when I couldn't determine whether an overflow was possible,
79345         I inserted a run-time check.
79346         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
79347         macros.
79348         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
79349         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
79350         (re_xnrealloc, re_x2nrealloc): New inline functions.
79351         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
79352         parse_bracket_exp):
79353         (build_equiv_class, build_charclass): Check for arithmetic overflow
79354         in size expression calculations.
79355         * lib/regex_internal.c (re_string_realloc_buffers):
79356         (build_wcs_upper_buffer, re_node_set_add_intersect):
79357         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
79358         (re_dfa_add_node, register_state): Likewise.
79359         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
79360         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
79361         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
79362         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
79363
79364 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
79365
79366         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79367         m4/ulonglong.m4.  Problem reported by Martin Lambers.
79368
79369 2005-09-02  Bruno Haible  <bruno@clisp.org>
79370
79371         Support for lib vs. lib64 distinction on biarch platforms.
79372         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
79373         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
79374         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
79375
79376 2005-09-02  Bruno Haible  <bruno@clisp.org>
79377
79378         * gnulib-tool (import): In the other first-use case, provide defaults
79379         as well.
79380
79381 2005-09-02  Bruno Haible  <bruno@clisp.org>
79382
79383         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
79384         patches not yet found in the latest gettext release.
79385
79386 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79387
79388         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
79389         to avoid a collision with bits/local_lim.h in glibc.
79390         All uses changed.  Problem reported by Dmitry V. Levin in
79391         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
79392
79393         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
79394         bugs in int versus size_t comparisons.
79395         (re_string_context_at): Fix bug where the code assumed that
79396         Idx is signed.
79397
79398         Use bool where appropriate.
79399         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
79400         All callers changed.
79401         (calc_eclosure_iter): Likewise, for ROOT arg.
79402         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
79403         (build_charclass_op): Likewise, for NON_MATCH arg.
79404         * lib/regex_internal.c (re_string_allocate, re_string_construct):
79405         (re_string_construct_common): Likewise, for ICASE arg.
79406         * lib/regexec.c (re_search_2_stub, re_search_stub):
79407         Likewise, for RET_LEN arg.
79408         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
79409         (set_regs): Likewise, for FL_BACKTRACK arg.
79410         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
79411         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
79412         (calc_eclosure_iter, parse_bracket_exp):
79413         Use bool for internal variables that are booleans.
79414         * lib/regexec.c (re_search_internal, check_matching,
79415         proceed_next_node):
79416         (set_regs, build_sifted_states, sift_states_bkref):
79417         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
79418         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
79419         (find_collation_sequence_value):
79420         Likewise.
79421         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
79422         (re_node_set_compare):
79423         Return bool, not int. All callers changed.
79424         * lib/regexec.c (check_halt_node_context, check_dst_limits):
79425         (build_trtable, check_node_accept): Likewise.
79426         * lib/regex_internal.h: Include stdbool.h.
79427
79428         Fix bugs uncovered when converting to bool.
79429         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
79430         failure instead of charging ahead blindly.
79431         * lib/regex_internal.c (register_state): Likewise.
79432         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
79433         for freeing internal storage.
79434         (group_nodes_into_DFA_states): Use unsigned int, not int, for
79435         bitset pieces used as boolean, to avoid undefined behavior
79436         on hosts that do int overflow checking.
79437
79438 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79439
79440         * config/srclist.txt: Add glibc bugs 1285-1287.
79441
79442 2005-09-01  Jim Meyering  <jim@meyering.net>
79443
79444         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
79445         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
79446         Require gl_STAT_MACROS, too.
79447
79448 2005-09-01  Bruno Haible  <bruno@clisp.org>
79449
79450         * gnulib-tool (import): In the first-use case, provide defaults.
79451
79452 2005-09-01  Bruno Haible  <bruno@clisp.org>
79453
79454         * gnulib-tool (func_import): Remove the .tmp files.
79455
79456 2005-09-01  Bruno Haible  <bruno@clisp.org>
79457
79458         * gnulib-tool (func_import): Fix handling of symbolic links.
79459
79460 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79461
79462         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
79463         old glibc regex code mishandles strings longer than 2**31 bytes.
79464         This patch fixes this when the regex code is used in gnulib
79465         (i.e., outside glibc).
79466
79467         This patch should not affect the use of the regex code inside
79468         glibc.  No doubt this problem also needs to be handled for glibc
79469         as well, but the result will be an incompatible change to the
79470         glibc ABI, and the old ABI will have to be supported too.  That
79471         can be the the subject for another patch.
79472
79473         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
79474         governing whether the rest of this patch is active.  By default,
79475         the macro is disabled and the patch has no effect.
79476         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
79477         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
79478         (struct re_pattern_buffer, re_search, re_search_2, re_match):
79479         (re_match_2, re_set_registers): Use the new types.
79480         * lib/regex_internal.h (Idx, re_hashval_t): New types.
79481         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
79482         New macros.
79483         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
79484         (re_string_context_at, bin_tree_t, re_dfastate_t):
79485         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
79486         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
79487         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
79488         (re_string_char_size_at, re_string_wchar_at):
79489         (re_string_elem_size_at):
79490         Use the new types and macros to port to 64-bit hosts.
79491         Use unsigned types for internal values, so that the code
79492         mostly works even for arrays larger than SSIZE_MAX.
79493         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
79494         (search_duplicated_node, calc_eclosure_iter, fetch_number):
79495         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
79496         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
79497         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
79498         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
79499         (calc_inveclosure, parse_dup_op, build_range_exp):
79500         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
79501         (fetch_number, create_token_tree, mark_opt_subexp):
79502         Likewise.
79503         * lib/regex_internal.c (re_string_construct_common,
79504         create_ci_newstate):
79505         (create_cd_newstate, re_string_allocate, re_string_construct):
79506         (re_string_realloc_buffers, build_wcs_upper_buffer):
79507         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
79508         (re_string_reconstruct, re_string_peek_byte_case):
79509         (re_string_fetch_byte_case, re_string_context_at):
79510         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
79511         (re_node_set_init_copy, re_node_set_add_intersect):
79512         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
79513         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
79514         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
79515         (re_acquire_state, re_acquire_state_context, register_state):
79516         Likewise.
79517         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
79518         search_cur_bkref_entry):
79519         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
79520         (re_search_internal, re_search_2_stub, re_search_stub)
79521         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
79522         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
79523         (update_cur_sifted_state, check_dst_limits):
79524         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
79525         (check_subexp_limits, sift_states_bkref, merge_state_array):
79526         (check_subexp_matching_top, get_subexp, get_subexp_sub):
79527         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
79528         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
79529         (expand_bkref_cache, check_node_accept_bytes):
79530         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
79531         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
79532         (acquire_init_state_context, check_halt_node_context):
79533         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
79534         (sift_states_backward, clean_state_log_if_needed):
79535         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
79536         (find_recover_state, transit_state_sb, transit_state_mb):
79537         (transit_state_bkref, build_trtable, match_ctx_clean):
79538         Likewise.
79539         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
79540         to work around an assumption that REG_MISSING is negative.
79541
79542         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
79543         (seek_collating_symbol_entry) [defined _LIBC]:
79544         (lookup_collation_sequence_value) [defined _LIBC]:
79545         (build_range_exp, build_collating_symbol) [defined _LIBC]:
79546         Use prototypes rather than old-style function definitions.
79547         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
79548         (transit_state_sb) [0]:
79549         (find_collation_sequence_value) [defined _LIBC]: Likewise.
79550
79551         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
79552         rm_eo.
79553
79554         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
79555         (optimize_subexps, lower_subexp):
79556         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
79557         since the signed shift might overflow.  Use 1u<<31 instead.
79558         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
79559         Likewise.
79560         * lib/regexec.c (check_dst_limits_calc_pos_1,
79561         check_subexp_matching_top): Likewise.
79562
79563         * lib/regcomp.c (optimize_subexps, lower_subexp):
79564         Use CHAR_BIT rather than 8, for clarity.
79565         * lib/regexec.c (check_dst_limits_calc_pos_1):
79566         (check_subexp_matching_top): Likewise.
79567         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
79568         have to worry about portability issues when shifting it left.
79569         Remove no-longer-needed test for table_size > 0.
79570         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
79571         in a word, as the resulting behavior is undefined.
79572         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
79573         in one case, a <= should have been an <, and in another case the
79574         whole test was missing.
79575         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
79576         the standard name CHAR_BIT.
79577         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
79578         this is not true on one's complement and signed-magnitude hosts.
79579
79580         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
79581         next_last_offset.
79582         (struct re_dfa_t): Remove unused member states_alloc.
79583         * lib/regcomp.c (init_dfa): Don't initialize unused members.
79584
79585 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79586
79587         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
79588         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
79589         and large-file glibc and in 32-bit large-file Solaris.
79590
79591 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79592
79593         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
79594         lengths fit in regoff_t; this isn't true if regoff_t is the same
79595         width as size_t.
79596         * lib/regex.c (re_search_internal): 5th arg is LAST_START
79597         (= START + RANGE) instead of RANGE.  This avoids overflow
79598         problems when regoff_t is the same width as size_t.
79599         All callers changed.
79600         (re_search_2_stub): Check for overflow when adding the
79601         sizes of the two strings.
79602         (re_search_stub): Check for overflow when adding START
79603         to RANGE; if it occurs, substitute the extreme value.
79604
79605 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79606
79607         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
79608
79609 2005-08-31  Jim Meyering  <jim@meyering.net>
79610
79611         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
79612         a pointer-to-const.
79613         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
79614         (register_state): Likewise.
79615         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
79616         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
79617         (group_nodes_into_DFAstates): Likewise.
79618
79619 2005-08-31  Jim Meyering  <jim@meyering.net>
79620
79621         * check-module: Add a FIXME comment.
79622
79623 2005-08-31  Eric Blake  <ebb9@byu.net>
79624
79625         * modules/unistd-safer (Files): Add unistd--.h.
79626         * modules/stdio-safer (Files): Add stdio--.h.
79627
79628 2005-08-31  Derek Price  <derek@ximbiot.com>
79629
79630         * lib/getdelim.c (getdelim): Return EOF on EOF.
79631         Reported by Larry Jones <lawrence.jones@ugs.com>.
79632
79633 2005-08-31  Bruno Haible  <bruno@clisp.org>
79634
79635         Avoid unnecessary diffs in the generated lib/Makefile.am.
79636         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
79637         the generated files.
79638         (func_import): Don't set cmd.
79639
79640 2005-08-31  Bruno Haible  <bruno@clisp.org>
79641
79642         * lib/strstr.c: Include <stddef.h>, for NULL.
79643         * lib/strcasestr.c: Likewise.
79644         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79645
79646 2005-08-31  Bruno Haible  <bruno@clisp.org>
79647
79648         * gnulib-tool: New option --macro-prefix.
79649         (func_import): Use macro_prefix.
79650         (import): Handle option --macro-prefix.
79651
79652 2005-08-31  Bruno Haible  <bruno@clisp.org>
79653
79654         * gnulib-tool (import): Rename most ac_* variables to cached_*.
79655         Also use new variables cached_lgpl, cached_libtool.
79656
79657 2005-08-31  Bruno Haible  <bruno@clisp.org>
79658
79659         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
79660         always instantiating them.
79661
79662 2005-08-31  Bruno Haible  <bruno@clisp.org>
79663
79664         * gnulib-tool (func_import): Read the previous cached settings
79665         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
79666         earlier added by gnulib but are now dropped. Warn when a gnulib file
79667         overwrites a non-gnulib file.
79668
79669 2005-08-31  Bruno Haible  <bruno@clisp.org>
79670
79671         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
79672         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
79673         projects that don't keep autogenerated files in CVS. Put into
79674         actioncmd only the specified modules, not the transitive closure.
79675
79676 2005-08-31  Bruno Haible  <bruno@clisp.org>
79677
79678         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
79679         Create directories that shall be filled.
79680         (import): Don't look for gl_* macros in configure.ac. Recurse across
79681         all directories containing a gnulib-cache.m4 files, if meaningful.
79682
79683 2005-08-31  Bruno Haible  <bruno@clisp.org>
79684
79685         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
79686         (import): Set seen_libtool when we see gl_LIBTOOL.
79687
79688 2005-08-31  Bruno Haible  <bruno@clisp.org>
79689
79690         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
79691         declaration macro definitions from generated gnulib.m4.
79692
79693 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
79694
79695         * lib/iconvme.h: Add prototype for iconv_alloc.
79696
79697 2005-08-29  Simon Josefsson  <jas@extundo.com>
79698
79699         * lib/iconvme.c: Fix errno.
79700
79701 2005-08-29  Bruno Haible  <bruno@clisp.org>
79702
79703         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
79704         that it works when the directory contains spaces.
79705
79706 2005-08-29  Bruno Haible  <bruno@clisp.org>
79707
79708         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
79709
79710 2005-08-29  Bruno Haible  <bruno@clisp.org>
79711
79712         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
79713         Emit more advice.
79714
79715 2005-08-29  Bruno Haible  <bruno@clisp.org>
79716         and Stepan Kasal  <kasal@ucw.cz>
79717
79718         * check-module: If more parameters are given, check each of them
79719         separately; add more exceptions, as noted by Jim Meyering.
79720         (check_module): New procedure.
79721         (%exempt_header): Now contains all exceptions.
79722
79723 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
79724
79725         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
79726
79727 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79728
79729         * lib/iconvme.c: Split iconv_string into iconv_alloc.
79730
79731 2005-08-28  Bruno Haible  <bruno@clisp.org>
79732
79733         * m4/gnulib-tool.m4: New file.
79734
79735 2005-08-27  Jim Meyering  <jim@meyering.net>
79736
79737         * modules/unistd-safer (Files): Add pipe-safer.c.
79738         * modules/fcntl-safer (Files): Add creat-safer.c.
79739
79740 2005-08-27  Jim Meyering  <jim@meyering.net>
79741
79742         * m4/stdlib-safer.m4: New file.  From coreutils.
79743         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
79744         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
79745         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
79746         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
79747         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
79748
79749 2005-08-27  Jim Meyering  <jim@meyering.net>
79750
79751         * lib/fopen-safer.c: Merge minor changes from coreutils.
79752         * lib/dup-safer.c: Likewise.
79753         * lib/fd-safer.c: Likewise.
79754
79755         Merge from coreutils.
79756         * lib/stdio--.h: New file.
79757         * lib/stdlib--.h: New file.
79758         * lib/mkstemp-safer.c: New file.
79759
79760         GNU tar needs these.
79761         * lib/pipe-safer.c: New file.
79762         * lib/creat-safer.c: New file.
79763         * lib/fcntl--.h (creat): Define to creat_safer.
79764         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
79765         * lib/unistd--.h (pipe): Define to pipe_safer.
79766         * lib/unistd-safer.h: Declare pipe_safer.
79767
79768 2005-08-26  Simon Josefsson  <jas@extundo.com>
79769
79770         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
79771         Haible <bruno@clisp.org>.
79772
79773 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
79774
79775         * lib/regex_internal.h: Remove all references to
79776         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
79777         or better.
79778         (bitset_not, bitset_merge, bitset_not_merge):
79779         (bitset_mask, re_string_allocate, re_string_construct):
79780         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
79781         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
79782         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
79783         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
79784         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
79785         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
79786         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
79787         (re_acquire_state_context):
79788         Remove unnecessary forward decls.
79789         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
79790         Put __attribute at function definition,
79791         now that the function decl has been removed.
79792         * lib/regex_internal.c (re_string_peek_byte_case):
79793         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
79794         Likewise.
79795
79796 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
79797
79798         * m4/regex.m4: Add AC_PREREQ(2.50).
79799         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
79800
79801 2005-08-25  Simon Josefsson  <jas@extundo.com>
79802
79803         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
79804         __fsetlocking.
79805
79806 2005-08-25  Simon Josefsson  <jas@extundo.com>
79807
79808         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
79809         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
79810         GLIBC specific code.
79811
79812 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79813
79814         Make regex safe for g++.  This fixes one real bug (an "err"
79815         that should have been "*err").  g++ problem reported by
79816         Sam Steingold.
79817         * lib/regex_internal.h (re_calloc): New macro, consistent with
79818         re_malloc etc.  All callers of calloc changed to use re_calloc.
79819         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
79820         not int.  All callers changed.
79821         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
79822         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
79823         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
79824         (find_recover_state): Change "err" to "*err"; this fixes what
79825         appears to be a real bug.
79826         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
79827         versus int.
79828
79829 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79830
79831         * modules/regex (Depends-on): Add malloc, since the code
79832         assumes that !malloc(0) means failure.
79833
79834 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79835
79836         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
79837
79838         alloca modernization/simplification for regex.
79839         * lib/regex.c: Remove portability cruft for alloca.  This no longer
79840         needs to be at the start of the file, and can be moved into
79841         regex_internal.h and simplified.
79842         * lib/regex_internal.h: Include <alloca.h>.
79843         (__libc_use_alloca) [!defined _LIBC]: New macro.
79844         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
79845         now works outside glibc.
79846
79847 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79848
79849         * config/srclist.txt: Add glibc bugs 1241, 1245.
79850
79851 2005-08-25  Jim Meyering  <jim@meyering.net>
79852
79853         * lib/open-safer.c: Include <config.h>.
79854         Otherwise, we'd lose LARGEFILE support in any file using
79855         e.g. "fcntl--.h"
79856
79857 2005-08-25  Bruno Haible  <bruno@clisp.org>
79858
79859         * m4/minmax.m4: Require autoconf 2.52.
79860         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
79861         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
79862         alternatives of translit over the alphabet.
79863         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
79864
79865 2005-08-24  Simon Josefsson  <jas@extundo.com>
79866
79867         * tests/test-getpass.c: New file.
79868
79869 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79870
79871         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
79872         for GNU regex features.
79873
79874 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79875
79876         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
79877         * lib/regex.h (regerror): Likewise.
79878
79879         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
79880         requires this.  (The code never needed it.)
79881
79882         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
79883         All uses of recently-renamed identifiers changed to use the new,
79884         POSIX-compliant names.  The code will build and run just fine
79885         without these changes, but it's better to eat our own dog food
79886         and use the standard-conforming names.
79887
79888         * lib/regex.h: Fix a multitude of POSIX name space violations.
79889         These changes have an effect only for programs that define
79890         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
79891         do not change anything for programs compiled in the normal way.
79892         Also, there is no effect on the ABI.
79893
79894         (_REGEX_SOURCE): New macro.
79895         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
79896         defined and _GNU_SOURCE is not; this fixes a name space violation.
79897
79898         Rename the following macros to obey POSIX requirements.
79899         The old names are still visible as macros if _REGEX_SOURCE is defined.
79900         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
79901         RE_BACKSLASH_ESCAPE_IN_LISTS.
79902         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
79903         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
79904         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
79905         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
79906         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
79907         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
79908         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
79909         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
79910         (REG_INTERVALS): renamed from RE_INTERVALS.
79911         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
79912         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
79913         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
79914         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
79915         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
79916         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
79917         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
79918         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
79919         RE_UNMATCHED_RIGHT_PAREN_ORD.
79920         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
79921         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
79922         (REG_DEBUG): renamed from RE_DEBUG.
79923         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
79924         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
79925         unusual, since we can't clash with the POSIX REG_ICASE.
79926         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
79927         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
79928         (REG_NO_SUB): renamed from RE_NO_SUB.
79929         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
79930         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
79931         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
79932         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
79933         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
79934         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
79935         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
79936         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
79937         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
79938         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
79939         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
79940         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
79941         RE_SYNTAX_POSIX_MINIMAL_BASIC.
79942         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
79943         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
79944         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
79945         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
79946         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
79947         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
79948         (REG_FIXED): Renamed from REGS_FIXED.
79949         (REG_NREGS): Renamed from RE_NREGS.
79950
79951         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
79952         of other REG_* macros, since POSIX says the user is allowed to
79953         #undef these macros selectively.
79954
79955         (reg_errcode_t): Update comment stating what other tables need
79956         to be consistent.
79957
79958         Rename the following enum values to obey POSIX requirements.
79959         The old names are still visible as macros.
79960         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
79961         is not defined, since GNU is supposed to be a superset of POSIX as
79962         much as possible, and since we want reg_errcode_t to be a signed
79963         type for implementation consistency.
79964         (_REG_NOERROR): Renamed from REG_NOERROR.
79965         (_REG_NOMATCH): Renamed from REG_NOMATCH.
79966         (_REG_BADPAT): Renamed from REG_BADPAT.
79967         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
79968         (_REG_ECTYPE): Renamed from REG_ECTYPE.
79969         (_REG_EESCAPE): Renamed from REG_EESCAPE.
79970         (_REG_ESUBREG): Renamed from REG_ESUBREG.
79971         (_REG_EBRACK): Renamed from REG_EBRACK.
79972         (_REG_EPAREN): Renamed from REG_EPAREN.
79973         (_REG_EBRACE): Renamed from REG_EBRACE.
79974         (_REG_BADBR): Renamed from REG_BADBR.
79975         (_REG_ERANGE): Renamed from REG_ERANGE.
79976         (_REG_ESPACE): Renamed from REG_ESPACE.
79977         (_REG_BADRPT): Renamed from REG_BADRPT.
79978         (_REG_EEND): Renamed from REG_EEND.
79979         (_REG_ESIZE): Renamed from REG_ESIZE.
79980         (_REG_ERPAREN): Renamed from REG_ERPAREN.
79981         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
79982         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
79983         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
79984         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
79985
79986         (_REG_RE_NAME, _REG_RM_NAME): New macros.
79987         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
79988         changed.  But support the old name if the new one is not defined
79989         and if _REGEX_SOURCE.
79990
79991         Change the following member names in struct re_pattern_buffer.
79992         The old names are still supported if !_REGEX_SOURCE.
79993         The new names are always supported, regardless of _REGEX_SOURCE.
79994         (re_buffer): Renamed from buffer.
79995         (re_allocated): Renamed from allocated.
79996         (re_used): Renamed from used.
79997         (re_syntax): Renamed from syntax.
79998         (re_fastmap): Renamed from fastmap.
79999         (re_translate): Renamed from translate.
80000         (re_can_be_null): Renamed from can_be_null.
80001         (re_regs_allocated): Renamed from regs_allocated.
80002         (re_fastmap_accurate): Renamed from fastmap_accurate.
80003         (re_no_sub): Renamed from no_sub.
80004         (re_not_bol): Renamed from not_bol.
80005         (re_not_eol): Renamed from not_eol.
80006         (re_newline_anchor): Renamed from newline_anchor.
80007
80008         Change the following member names in struct re_registers.
80009         The old names are still supported if !_REGEX_SOURCE.
80010         The new names are always supported, regardless of _REGEX_SOURCE.
80011         (rm_num_regs): Renamed from num_regs.
80012         (rm_start): Renamed from start.
80013         (rm_end): Renamed from end.
80014
80015         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
80016         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
80017         Prepend __ to parameter names.
80018
80019         Undo yesterday's changes.
80020
80021 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80022
80023         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
80024         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
80025         lib/regex.c.
80026
80027 2005-08-24  Jim Meyering  <jim@meyering.net>
80028
80029         Sync from coreutils.
80030         * m4/fcntl-safer.m4: New file.
80031
80032         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
80033         and object files for this module.
80034
80035 2005-08-24  Jim Meyering  <jim@meyering.net>
80036
80037         Sync from coreutils.
80038         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
80039
80040 2005-08-24  Jim Meyering  <jim@meyering.net>
80041
80042         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
80043         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
80044
80045 2005-08-24  Jim Meyering  <jim@meyering.net>
80046
80047         * modules/fcntl-safer: New module.
80048         * modules/fts (Depends-on): Add fcntl-safer.
80049         * MODULES.html.sh (File descriptor based Input/Output):
80050         Add fcntl-safer.
80051
80052 2005-08-24  Bruno Haible  <bruno@clisp.org>
80053
80054         Support for unit test modules.
80055         * modules/README: Mention tests modules.
80056         * modules/TEMPLATE-TESTS: New file.
80057         * gnulib-tool: New options --extract-tests-module, --with-tests and
80058         --tests-base (unused for the moment).
80059         (testsbase, inctests): New variables.
80060         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
80061         (func_verify_module): Exclude TEMPLATE-TESTS.
80062         (func_verify_nontests_module, func_verify_tests_module): New functions.
80063         (func_get_dependencies): Add implicit dependency for tests modules.
80064         (func_get_tests_module): New function.
80065         (func_modules_transitive_closure): When --with-tests was specified,
80066         include the unit tests as well, unless explicitly avoided.
80067         (func_emit_lib_Makefile_am): Ignore the tests modules here.
80068         (func_emit_tests_Makefile_am): New function.
80069         (func_create_testdir): When --with-tests was specified, emit a
80070         tests/ directory.
80071         * MODULES.html.sh (Future developments): Update.
80072
80073 2005-08-24  Bruno Haible  <bruno@clisp.org>
80074
80075         * modules/tls-tests: New file.
80076         * tests/test-tls.c: New file, from GNU gettext.
80077
80078 2005-08-24  Bruno Haible  <bruno@clisp.org>
80079
80080         * modules/lock-tests: New file.
80081         * tests/test-lock.c: New file, from GNU gettext.
80082
80083 2005-08-24  Bruno Haible  <bruno@clisp.org>
80084
80085         * lib/lock.h: Add multiple inclusion guard.
80086         * lib/tls.h: Add multiple inclusion guard.
80087
80088 2005-08-24  Bruno Haible  <bruno@clisp.org>
80089
80090         * gnulib-tool: Add support for the --aux-dir option to
80091         --create-testdir, --create-megatestdir, --test, --megatest.
80092         (func_create_testdir, func_create_megatestdir): Optionally emit a
80093         AC_CONFIG_AUX_DIR directive.
80094         (create-testdir, create-megatestdir, test, megatest): Provide a
80095         default value for $auxdir.
80096
80097 2005-08-24  Bruno Haible  <bruno@clisp.org>
80098
80099         * gnulib-tool (import): Use compound statement instead of subshell
80100         where possible.
80101
80102 2005-08-24  Bruno Haible  <bruno@clisp.org>
80103
80104         * gnulib-tool (import): Change --aux-dir default to "build-aux".
80105
80106 2005-08-24  Bruno Haible  <bruno@clisp.org>
80107
80108         * gnulib-tool (func_version): Update.
80109
80110 2005-08-24  Bruno Haible  <bruno@clisp.org>
80111
80112         * gnulib-tool (func_import, func_create_testdir,
80113         func_create_megatestdir): Quote all autoconf macro arguments.
80114
80115 2005-08-24  Bruno Haible  <bruno@clisp.org>
80116
80117         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
80118         option --force, because --force causes the aclocal.m4 of each
80119         subdirectory to be newer than the corresponding config.h.in.
80120
80121 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80122
80123         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
80124         All contents moved to gl_REGEX.
80125         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
80126         assume that it does.
80127
80128 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80129
80130         * lib/regex.h (REG_NOSYS)
80131         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
80132         Define, since POSIX requires it as of 2001.
80133         (_REG_ENOSYS)
80134         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
80135         New private symbol, used to keep the enum signed in all cases.
80136         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
80137         Youngman in
80138         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
80139
80140         * lib/regex_internal.c (re_string_skip_chars, register_state):
80141         (calc_state_hash):
80142         Remove forward decls; no longer needed now that we use prototypes.
80143         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
80144         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
80145         (clean_state_log_if_needed): Likewise.
80146
80147 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80148
80149         * config/srclist.txt: Add glibc bugs 1231-1233.
80150
80151 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80152
80153         Fix problems reported by Sam Steingold in
80154         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
80155         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
80156         assumed that reg_errcode_t is a signed type, which is not
80157         necessarily true if _XOPEN_SOURCE is not defined.
80158         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
80159         since some compilers warn about it otherwise.
80160
80161 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80162
80163         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
80164         (init_word_char, create_initial_state, duplicate_node_closure):
80165         (fetch_token, peek_token_bracket, build_range_exp):
80166         (build_collating_symbol): Remove forward decls; no longer needed
80167         now that we use prototypes.
80168
80169         * lib/regcomp.c:
80170         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
80171         (re_compile_fastmap_iter, regcomp, regerror, regfree):
80172         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
80173         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
80174         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
80175         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
80176         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
80177         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
80178         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
80179         (build_range_exp, build_collating_symbol, parse_bracket_exp):
80180         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
80181         (build_charclass, build_charclass_op, fetch_number, create_tree):
80182         (create_token_tree, mark_opt_subexp, duplicate_tree):
80183         Use prototypes rather than old-style definitions.
80184
80185         * lib/regex_internal.c:
80186         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
80187         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
80188         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80189         (re_string_reconstruct, re_string_peek_byte_case):
80190         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
80191         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80192         (re_node_set_init_copy, re_node_set_add_intersect):
80193         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80194         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80195         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80196         (re_acquire_state, re_acquire_state_context, register_state):
80197         (create_ci_newstate, create_cd_newstate, free_state):
80198         Likewise.
80199         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
80200         re_search_2):
80201         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
80202         (re_search_internal, prune_impossible_nodes):
80203         (acquire_init_state_context, check_matching, static):
80204         (check_halt_node_context, check_halt_state_context, proceed_next_node):
80205         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
80206         (update_regs, sift_states_backward, build_sifted_states):
80207         (clean_state_log_if_needed, merge_state_array):
80208         (update_cur_sifted_state, add_epsilon_src_nodes):
80209         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
80210         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
80211         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
80212         (find_recover_state, check_subexp_matching_top, transit_state_mb):
80213         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
80214         (check_arrival, check_arrival_add_next_nodes):
80215         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80216         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80217         (check_node_accept_bytes, check_node_accept, extend_buffers):
80218         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
80219         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
80220         (sift_ctx_init):
80221         Likewise.
80222
80223         * lib/regex_internal.h:
80224         (re_string_allocate, re_string_construct, re_string_reconstruct):
80225         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
80226         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
80227         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
80228         (re_string_context_at, re_string_peek_byte_case):
80229         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
80230         is defined, since we now use prototypes always.
80231
80232         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
80233         C89 or better.  All uses removed.
80234
80235 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80236
80237         * config/srclist.txt: Add glibc bugs 1220-1227.
80238
80239 2005-08-20  Jim Meyering  <jim@meyering.net>
80240
80241         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
80242         of unused local, dfa.
80243
80244 2005-08-20  Bruno Haible  <bruno@clisp.org>
80245
80246         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
80247
80248 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80249
80250         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
80251         (re_node_set_insert_last, re_dfa_add_node):
80252         Rename local variables to avoid GCC shadowing warnings.
80253
80254 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80255
80256         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
80257         [defined lint]: Suppress bogus uninitialized-variable warnings.
80258
80259         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
80260         and let the caller return REG_ESPACE if out of space.  This
80261         removes an uninitialied-variable warning with GCC 4.0.1, and also
80262         avoids taking the address of a local variable.  All callers
80263         changed.
80264
80265 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80266
80267         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
80268         $LIBCSRC/posix/regexec.c.
80269         Add glibc bug 1217 for regcomp.c.
80270
80271 2005-08-19  Jim Meyering  <jim@meyering.net>
80272
80273         * lib/regexec.c (proceed_next_node): Redo local variables to
80274         avoid GCC shadowing warnings.
80275
80276 2005-08-18  Bruno Haible  <bruno@clisp.org>
80277
80278         * lib/strstr.c (strstr): Fix return value in multibyte case.
80279         * lib/strcasestr.c (strcasestr): Likewise.
80280
80281 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80282
80283         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
80284
80285 2005-08-17  Jim Meyering  <jim@meyering.net>
80286
80287         Make the %s format (seconds since the epoch) work for a negative
80288         number and when used with a zero-padded field width, e.g. %015s.
80289
80290         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
80291         label so that it precedes the code to set `digits'.  Otherwise,
80292         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
80293         print `00-22'.  Now, it prints `-0022', as it should.
80294
80295 2005-08-17  Bruno Haible  <bruno@clisp.org>
80296
80297         * modules/strstr (Files): Add m4/mbrtowc.m4.
80298         (Depends-on): Add mbuiter.
80299
80300 2005-08-17  Bruno Haible  <bruno@clisp.org>
80301
80302         * modules/strcasestr: New file.
80303         * MODULES.html.sh (String handling, based on ANSI C 89): Add
80304         strcasestr.
80305
80306 2005-08-17  Bruno Haible  <bruno@clisp.org>
80307
80308         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
80309
80310 2005-08-17  Bruno Haible  <bruno@clisp.org>
80311
80312         * modules/mbuiter: New file.
80313         * MODULES.html.sh (Extended multibyte and wide character utilities):
80314         Add mbuiter.
80315
80316 2005-08-17  Bruno Haible  <bruno@clisp.org>
80317
80318         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
80319         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
80320
80321 2005-08-17  Bruno Haible  <bruno@clisp.org>
80322
80323         * m4/strcasestr.m4: New file.
80324
80325 2005-08-17  Bruno Haible  <bruno@clisp.org>
80326
80327         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
80328         * lib/strstr.c: Completely rewritten, with multibyte locale support.
80329
80330 2005-08-17  Bruno Haible  <bruno@clisp.org>
80331
80332         * lib/strcasestr.h: New file.
80333         * lib/strcasestr.c: New file.
80334
80335 2005-08-17  Bruno Haible  <bruno@clisp.org>
80336
80337         * lib/strcasecmp.c: Use mbuiter.h.
80338
80339 2005-08-17  Bruno Haible  <bruno@clisp.org>
80340
80341         * lib/mbuiter.h: New file.
80342
80343 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80344
80345         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
80346         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
80347         and gl_GETOPT are both invoked via different paths (as happens
80348         with GNU tar CVS because it uses both argp and getopt), the former
80349         wins.
80350
80351 2005-08-16  Bruno Haible  <bruno@clisp.org>
80352
80353         * modules/tls: New file.
80354         * MODULES.html.sh (Multithreading): Add tls.
80355
80356 2005-08-16  Bruno Haible  <bruno@clisp.org>
80357
80358         * modules/strnlen1: New file.
80359         * MODULES.html.sh (String handling): Add strnlen1.
80360
80361 2005-08-16  Bruno Haible  <bruno@clisp.org>
80362
80363         * modules/strcase (Files): Add m4/mbrtowc.m4.
80364         (Depends-on): Add strnlen1, mbchar.
80365
80366 2005-08-16  Bruno Haible  <bruno@clisp.org>
80367
80368         * modules/mbiter: New file.
80369         * MODULES.html.sh (Extended multibyte and wide character utilities):
80370         Add mbiter.
80371
80372 2005-08-16  Bruno Haible  <bruno@clisp.org>
80373
80374         * modules/mbfile: New file.
80375         * MODULES.html.sh (Extended multibyte and wide character utilities):
80376         Add mbfile.
80377
80378 2005-08-16  Bruno Haible  <bruno@clisp.org>
80379
80380         * modules/mbchar: New file.
80381         * MODULES.html.sh (Extended multibyte and wide character utilities):
80382         New section.
80383
80384 2005-08-16  Bruno Haible  <bruno@clisp.org>
80385
80386         * m4/tls.m4: New file, from GNU gettext.
80387
80388 2005-08-16  Bruno Haible  <bruno@clisp.org>
80389
80390         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
80391         always.
80392         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
80393
80394 2005-08-16  Bruno Haible  <bruno@clisp.org>
80395
80396         * m4/mbiter.m4: New file.
80397
80398 2005-08-16  Bruno Haible  <bruno@clisp.org>
80399
80400         * m4/mbfile.m4: New file.
80401
80402 2005-08-16  Bruno Haible  <bruno@clisp.org>
80403
80404         * m4/mbchar.m4: New file.
80405
80406 2005-08-16  Bruno Haible  <bruno@clisp.org>
80407
80408         * lib/tls.h: New file, from GNU gettext.
80409         * lib/tls.c: New file, from GNU gettext.
80410
80411 2005-08-16  Bruno Haible  <bruno@clisp.org>
80412
80413         * lib/strnlen1.h: New file.
80414         * lib/strnlen1.c: New file.
80415
80416 2005-08-16  Bruno Haible  <bruno@clisp.org>
80417
80418         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
80419         (mbi_init): Update.
80420         (mbi_avail, mbi_advance): Let the iteration end before the terminating
80421         NUL byte, not after it.
80422
80423 2005-08-16  Bruno Haible  <bruno@clisp.org>
80424
80425         * lib/strcase.h (strcasecmp): Add note in comments.
80426         * lib/strncasecmp.c: Use code from strcasecmp.c.
80427         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
80428         (strcasecmp): Work correctly in multibyte locales.
80429
80430 2005-08-16  Bruno Haible  <bruno@clisp.org>
80431
80432         * lib/mbiter.h: New file.
80433
80434 2005-08-16  Bruno Haible  <bruno@clisp.org>
80435
80436         * lib/mbfile.h: New file.
80437
80438 2005-08-16  Bruno Haible  <bruno@clisp.org>
80439
80440         * lib/mbchar.h: New file.
80441         * lib/mbchar.c: New file.
80442
80443 2005-08-16  Bruno Haible  <bruno@clisp.org>
80444
80445         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
80446         the valid ones. Makes the comparison operations transitive:
80447         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
80448         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
80449
80450 2005-08-15  Simon Josefsson  <jas@extundo.com>
80451
80452         * modules/ssize_t (License): Change to 'unlimited'.
80453
80454         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
80455
80456 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80457
80458         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
80459         Add comments for each pending glibc patch.
80460
80461 2005-08-15  Bruno Haible  <bruno@clisp.org>
80462
80463         * lib/regex.h (__restrict_arr): Don't define to __restrict if
80464         __cplusplus is defined.
80465
80466 2005-08-14  Jim Meyering  <jim@meyering.net>
80467
80468         Sync from coreutils.
80469
80470         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
80471         Use the hash-table-based cycle-detection code not just when
80472         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
80473         Reported by James Youngman in
80474         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
80475         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
80476         FTS_TIGHT_CYCLE_CHECK.
80477         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
80478         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
80479         once again.
80480         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
80481         * lib/fts.c (fd_safer): Remove decl.
80482         Include fcntl--.h rather than unistd-safer.h
80483         (fts_safe_changedir): Don't call fd_safer; no longer needed
80484         now that we include fcntl--.h.
80485
80486 2005-08-12  Simon Josefsson  <jas@extundo.com>
80487
80488         * modules/getndelim2: Use ssize_t module.
80489         * modules/getnline: Likewise.
80490         * modules/safe-read: Likewise.
80491         * modules/xreadlink: Likewise.
80492
80493         * modules/ssize_t: New file.
80494
80495 2005-08-12  Simon Josefsson  <jas@extundo.com>
80496
80497         * m4/readline.m4: Look for termcap, curses or ncurses if required.
80498
80499 2005-08-12  Simon Josefsson  <jas@extundo.com>
80500
80501         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80502         ssize_t.
80503
80504 2005-08-12  Simon Josefsson  <jas@extundo.com>
80505
80506         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
80507         readline, getdelim and check_version.
80508         (Support for systems lacking ISO C 99: Sizes of integer types):
80509         Add size_max.
80510
80511 2005-08-12  Bruno Haible  <bruno@clisp.org>
80512
80513         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
80514
80515 2005-08-11  Simon Josefsson  <jas@extundo.com>
80516
80517         * modules/readline: New file.
80518
80519         * modules/strnlen (Files): Add strnlen.h.
80520
80521 2005-08-11  Simon Josefsson  <jas@extundo.com>
80522
80523         * m4/readline.m4: New file.
80524
80525 2005-08-11  Simon Josefsson  <jas@extundo.com>
80526
80527         * lib/readline.h, readline.c: New file.
80528
80529 2005-08-11  Simon Josefsson  <jas@extundo.com>
80530
80531         * doc/gnulib.texi (Initial import, Finishing touches): Mention
80532         gl_AVOID.
80533
80534 2005-08-11  Bruno Haible  <bruno@clisp.org>
80535
80536         * lib/strnlen.h (strnlen): Change parameter name to match comment.
80537
80538 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
80539
80540         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
80541
80542 2005-08-10  Simon Josefsson  <jas@extundo.com>
80543
80544         * tests/test-iconvme.c: New file.
80545
80546 2005-08-10  Simon Josefsson  <jas@extundo.com>
80547
80548         * m4/strnlen.m4: New file.
80549
80550         * m4/strndup.m4: Don't check for strnlen declaration, done in
80551         strnlen.m4.
80552
80553 2005-08-10  Simon Josefsson  <jas@extundo.com>
80554
80555         * lib/strndup.c: Use strnlen.h.
80556
80557         * lib/strnlen.h: New file.
80558
80559 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80560
80561         * README: Typos.
80562
80563 2005-08-02  Simon Josefsson  <jas@extundo.com>
80564
80565         * modules/readline: New file.
80566
80567 2005-08-02  Simon Josefsson  <jas@extundo.com>
80568
80569         * modules/getdelim: New file.
80570
80571         * modules/getline: Rewrite, don't use getndelim2.
80572
80573 2005-08-02  Simon Josefsson  <jas@extundo.com>
80574
80575         * m4/getline.m4: Separate out getdelim stuff into separate module.
80576
80577         * m4/getdelim.m4: New file.
80578
80579 2005-08-02  Simon Josefsson  <jas@extundo.com>
80580
80581         * lib/getline.h, getline.c: Rewrite.
80582
80583         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
80584
80585 2005-07-31  Bruno Haible  <bruno@clisp.org>
80586
80587         * lib/lock.h (gl_lock_initializer): New macro.
80588         (gl_lock_define_initialized): Use it.
80589         (gl_rwlock_initializer): New macro.
80590         (gl_rwlock_define_initialized): Use it.
80591         (gl_recursive_lock_initializer): New macro.
80592         (gl_recursive_lock_define_initialized): Use it.
80593
80594 2005-07-30  Karl Berry  <karl@gnu.org>
80595
80596         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
80597         Report from Ben Pfaff, regarding getopt.
80598
80599 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
80600
80601         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
80602         normal way.
80603         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
80604         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
80605         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
80606         (gl_GETOPT): Use the new macros.  Most of the implementation
80607         is moved to the new macros.  This is for programs like Emacs
80608         that don't want all the functionality of gl_GETOPT.
80609
80610 2005-07-26  Bruno Haible  <bruno@clisp.org>
80611
80612         * m4/lock.m4: Update from GNU gettext.
80613
80614 2005-07-26  Bruno Haible  <bruno@clisp.org>
80615
80616         * lib/lock.h: Update from GNU gettext.
80617         * lib/lock.c: Update from GNU gettext.
80618
80619 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
80620
80621         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
80622         obsolescent AC_TRY_RUN.  Include the default includes files, for
80623         'exit'.
80624
80625 2005-07-24  Bruno Haible  <bruno@clisp.org>
80626
80627         * modules/visibility: New file.
80628         * MODULES.html.sh (Misc): Add visibility.
80629
80630 2005-07-24  Bruno Haible  <bruno@clisp.org>
80631
80632         * m4/visibility.m4: New file.
80633
80634 2005-07-24  Bruno Haible  <bruno@clisp.org>
80635
80636         * doc/visibility.texi: New file.
80637
80638 2005-07-22  Bruno Haible  <bruno@clisp.org>
80639
80640         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
80641         $(ALLOCA_H), redundant through BUILT_SOURCES.
80642         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
80643         redundant through BUILT_SOURCES.
80644         * modules/byteswap (Makefile.am): Remove explicit dependency on
80645         $(BYTESWAP_H), redundant through BUILT_SOURCES.
80646         * modules/fnmatch (Makefile.am): Remove explicit dependency on
80647         $(FNMATCH_H), redundant through BUILT_SOURCES.
80648         * modules/getopt (Makefile.am): Remove explicit dependency on
80649         $(GETOPT_H), redundant through BUILT_SOURCES.
80650         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
80651         redundant through BUILT_SOURCES.
80652         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
80653         redundant through BUILT_SOURCES.
80654         * modules/stdbool (Makefile.am): Remove explicit dependency on
80655         $(STDBOOL_H), redundant through BUILT_SOURCES.
80656         * modules/stdint (Makefile.am): Remove explicit dependency on
80657         $(STDINT_H), redundant through BUILT_SOURCES.
80658         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
80659         Remove explicit dependency on $(SYSEXITS_H).
80660         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
80661
80662 2005-07-18  Simon Josefsson  <jas@extundo.com>
80663
80664         * lib/check-version.c (check_version): Accept identical versions too.
80665
80666 2005-07-18  Bruno Haible  <bruno@clisp.org>
80667
80668         * modules/lock: New file.
80669         * MODULES.html.sh (Multithreading): New section.
80670
80671 2005-07-18  Bruno Haible  <bruno@clisp.org>
80672
80673         * m4/lock.m4: New file, from GNU gettext.
80674
80675 2005-07-18  Bruno Haible  <bruno@clisp.org>
80676
80677         * lib/lock.h: New file, from GNU gettext.
80678         * lib/lock.c: New file, from GNU gettext.
80679
80680 2005-07-18  Bruno Haible  <bruno@clisp.org>
80681
80682         * lib/lock.h (gl_once_t): New type.
80683         (gl_once_define, gl_once): New macros.
80684         * lib/lock.c (fresh_once): New variable.
80685         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
80686         functions.
80687
80688 2005-07-16  Simon Josefsson  <jas@extundo.com>
80689
80690         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
80691         workaround, suggested by Bruno.
80692
80693 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
80694
80695         * modules/xalloc (Depends-on): Add xalloc-die.
80696         * modules/xvasprintf (Depends-on): Add xalloc-die.
80697
80698 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
80699
80700         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
80701         with a minor change.
80702
80703 2005-07-15  Bruno Haible  <bruno@clisp.org>
80704
80705         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
80706         When using lib/poll.c, define poll as rpl_poll.
80707
80708 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
80709
80710         * modules/argp (Depends-on): Remove unlocked-io.
80711
80712 2005-07-14  Derek Price  <derek@ximbiot.com>
80713
80714         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
80715         for glob symlink bug.
80716
80717 2005-07-14  Bruno Haible  <bruno@clisp.org>
80718
80719         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
80720         Instead, test for *_unlocked function declarations directly.
80721
80722 2005-07-11  Simon Josefsson  <jas@extundo.com>
80723
80724         * modules/size_max: New file.
80725
80726         * modules/xsize: Depend on size_max module for size_max.m4.
80727
80728 2005-07-11  Simon Josefsson  <jas@extundo.com>
80729
80730         * lib/size_max.h: New file.
80731
80732 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
80733
80734         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
80735         copyright symbol and the year.
80736         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
80737         (version_etc_va): Use parameterized copyright notice.
80738         Reword to conform to the current GNU coding standards.
80739
80740 2005-07-11  Karl Berry  <karl@gnu.org>
80741
80742         * doc/gnulib.texi (Quoting): new node.
80743         (Initial import): more info, from Patrice.
80744
80745 2005-07-11  Bruno Haible  <bruno@clisp.org>
80746
80747         * gnulib-tool (func_usage): Document option --avoid.
80748         (Command line options): Handle --avoid.
80749         (func_acceptable): New function.
80750         (func_modules_transitive_closure): Use it.
80751
80752 2005-07-11  Bruno Haible  <bruno@clisp.org>
80753
80754         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
80755         Reported by Jim Meyering.
80756
80757 2005-07-10  Bruno Haible  <bruno@clisp.org>
80758
80759         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
80760         Needed when size_t is smaller than 'unsigned int'.
80761         Reported by Paul Eggert.
80762
80763 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80764
80765         * modules/argp (Depends-on): Add unlocked-io
80766
80767 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80768
80769         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
80770         block of defines.
80771
80772 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80773
80774         * config/srclist.txt: Comment out regcomp.c, since we have a porting
80775         fix now.
80776
80777 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
80778         and Paul Eggert  <eggert@cs.ucla.edu>
80779
80780         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
80781         in wint_t, not wchar_t.  Remove now-unnecessary cast.
80782
80783 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80784
80785         * modules/regex (Files): Add lib/regex_internal.c,
80786         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
80787         (Depends-on): Add extensions.
80788         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
80789
80790 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80791
80792         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
80793         pathconf.
80794         * m4/same.m4 (gl_SAME): Likewise.
80795         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
80796
80797         * m4/regex.m4: Adjust to new libc regex implementation.
80798         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
80799         all the .c and .h parts of (the new) regex.
80800         Quote the m4 stuff better.
80801         Check for RE_ICASE bug of old gnulib.
80802         Check for REG_STARTEND of recent libc.
80803         Rename local variables from jm_* to gl_*.
80804         Quote operand of "test -f".
80805         Say "recent enough" version of libc, not "version 2".
80806         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
80807         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
80808         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
80809         Remove check for btowc, isascii.
80810         Require AM_LANGINFO_CODESET.
80811
80812 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80813
80814         * lib/regex.c, regex.h: Sync from libc.
80815         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
80816         * lib/regexec.c:
80817         New files, synced from libc, except that regex_internal.h
80818         currently has a small porting fix.
80819
80820 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80821
80822         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
80823         regex_internal.c, regexec.c.
80824         Add regex_internal.h too, but as a comment, since the libc version
80825         is currently broken in gnulib mode.
80826
80827 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80828
80829         Support programs like Emacs that use gnulib but not gettext.
80830         * MODULES.html.sh (Internationalization functions): Add gettext-h.
80831         * modules/gettext-h: New file.
80832         * modules/gettext (Files): Remove lib/gettext.h.
80833         (Depends-on): Add gettext-h.
80834         (Makefile.am): Remove lib_SOURCES.
80835         * modules/argmatch, modules/c-stack, modules/closeout:
80836         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
80837         * modules/execute, modules/file-type, modules/getaddrinfo:
80838         * modules/getopt, modules/human, modules/javacomp:
80839         * modules/javaexec, modules/mkdir-p, modules/obstack:
80840         * modules/openat, modules/pagealign_alloc, modules/pipe:
80841         * modules/quotearg, modules/regex, modules/rpmatch:
80842         * modules/unicodeio, modules/userspec, modules/version-etc:
80843         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
80844         * modules/xsetenv:
80845         Depend on gettext-h, not gettext.
80846
80847 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80848
80849         * gnulib-tool (func_import): Add support for 'public domain' license.
80850         * modules/alloca, modules/atexit, modules/memmove:
80851         Now public domain, not GPL.
80852         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
80853         * modules/realloc, modules/strerror, modules/strtod:
80854         Now LGPL, not GPL.
80855
80856 2005-07-05  Bruno Haible  <bruno@clisp.org>
80857
80858         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
80859         autoconf CVS. Needed for mingw.
80860
80861 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80862
80863         Remove the dependency of the strftime module on the tzset module.
80864         * modules/strftime (Depends-on): Remove dependency on tzset.
80865
80866 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80867
80868         Remove the dependency of the strftime module on the tzset module.
80869         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
80870         gl_FUNC_TZSET_CLOBBER.
80871
80872 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80873
80874         Remove the dependency of the strftime module on the tzset module.
80875         * lib/strftime.c (my_strftime)
80876         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
80877         Copy the input structure, to work around some of the bug with
80878         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
80879         Solaris releases, you should also use the tzset module, but we won't
80880         require it as a dependency any more since we don't want LGPLed code
80881         to depend on GPLed code.
80882
80883 2005-07-02  Jim Meyering  <jim@meyering.net>
80884
80885         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
80886         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
80887         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
80888         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
80889
80890 2005-07-02  Jim Meyering  <jim@meyering.net>
80891
80892         * lib/backupfile.c (backup_args): Change a `0' to NULL.
80893
80894 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80895
80896         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
80897         declares only 'struct timespec;' (!).
80898
80899 2005-07-01  Jim Meyering  <jim@meyering.net>
80900
80901         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
80902         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
80903         * lib/save-cwd.c, tempname.c:
80904         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80905         and don't include <sys/file.h>).
80906
80907 2005-06-29  Jim Meyering  <jim@meyering.net>
80908
80909         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
80910         type name.  Use the variable name instead.
80911         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
80912         Likewise.
80913
80914 2005-06-28  Simon Josefsson  <jas@extundo.com>
80915
80916         * modules/check-version (Files): Add check-version.m4.
80917
80918 2005-06-28  Simon Josefsson  <jas@extundo.com>
80919
80920         * m4/check-version.m4: New file, suggested by Jim Meyering
80921         <jim@meyering.net>.
80922
80923 2005-06-28  Simon Josefsson  <jas@extundo.com>
80924
80925         * lib/check-version.h, lib/check-version.c: New files.
80926
80927 2005-06-28  Simon Josefsson  <jas@extundo.com>
80928
80929         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
80930         collision with global variable.  Better indentation.  Don't
80931         increment buffer pointer beyond buffer end.  Based on comments
80932         from Paul Eggert <eggert@cs.ucla.edu>.
80933
80934         * lib/base64.h: Indent.
80935
80936 2005-06-28  Simon Josefsson  <jas@extundo.com>
80937
80938         * doc/gnulib.texi (Library version handling): New section.
80939
80940 2005-06-28  Jim Meyering  <jim@meyering.net>
80941
80942         * check-module (find_included_lib_files): Hard-code another
80943         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
80944         but modules/fts-lgpl (correctly) does not list those files.
80945
80946         * modules/canonicalize (Files): Add lib/pathmax.h.
80947
80948 2005-06-25  Simon Josefsson  <jas@extundo.com>
80949
80950         * modules/check-version: New file.
80951
80952 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
80953
80954         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
80955         initializer of struct addrinfo, as an indication that we don't
80956         care how many members the structure has.
80957
80958 2005-06-24  Derek Price  <derek@ximbiot.com>
80959         and Bruno Haible  <bruno@clisp.org>
80960
80961         Remove stat module & update lstat.
80962         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
80963         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80964         * m4/stat.m4: Remove this file.
80965
80966 2005-06-24  Derek Price  <derek@ximbiot.com>
80967         and Bruno Haible  <bruno@clisp.org>
80968
80969         Remove stat module & update lstat.
80970         * lib/stat.c: Remove this file...
80971         (slash_aware_lstat): ...moving this content and its support...
80972         * lib/lstat.c (rpl_lstat): ...into here.
80973         * lib/lstat.h: New file.
80974
80975 2005-06-24  Derek Price  <derek@ximbiot.com>
80976         and Bruno Haible  <bruno@clisp.org>
80977
80978         Remove stat module & update lstat.
80979         * config/srclist.txt (libc sources): Remove stat.
80980
80981 2005-06-24  Derek Price  <derek@ximbiot.com>
80982         and Bruno Haible  <bruno@clisp.org>
80983
80984         Remove stat module & update lstat.
80985         * MODULES.html.sh (stat): Remove.
80986         * MODULES.html: Regenerated.
80987         * modules/lstat (Description): Correct function name.
80988         (Files): Add "lstat.h".
80989         (Depends-on): Remove stat, add xalloc, stat-macros.
80990         * modules/stat: Remove this file.
80991         (Include): Add "lstat.h", remove <sys/stat.h>.
80992
80993 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
80994
80995         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
80996         (ranged_convert): Don't save conversion in a temporary struct.
80997         This causes a warning with GCC 4.0.0, and anyway in the typical
80998         case it's not worth the extra 100 bytes or so of code.
80999         (ranged_convert, __mktime_internal): When calling a function via a
81000         pointer P, use P () rather than (*P) (), as we now assume C89 or
81001         better.
81002
81003 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81004
81005         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81006         "who -r" failed to give output.  Problem reported by Tim Waugh.
81007
81008         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81009         (xcalloc): Use it to avoid needless tests.
81010         Problem reported by Jim Meyering.
81011
81012 2005-06-20  Derek Price  <derek@ximbiot.com>
81013
81014         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
81015         unnecessary for Autoconfs > 2.59c.
81016
81017 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81018
81019         * lib/argp.h (__option_is_short): Check upper limit of
81020         __key. Isprint() requires its argument to have the value
81021         of an unsigned char or EOF.
81022
81023 2005-06-16  Jim Meyering  <jim@meyering.net>
81024
81025         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
81026         when either N or S is zero.
81027
81028 2005-06-16  Derek Price  <derek@ximbiot.com>
81029
81030         * m4/bison.m4: Declare YACC & YFLAGS precious.
81031
81032 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
81033
81034         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
81035         multibyte string or pattern, fall back on unibyte matching.
81036         Problem reported by James Youngman.
81037
81038 2005-06-08  Bruno Haible  <bruno@clisp.org>
81039
81040         * modules/csharpcomp: New file.
81041         * MODULES.html.sh (C#): Add csharpcomp.
81042
81043 2005-06-08  Bruno Haible  <bruno@clisp.org>
81044
81045         * m4/csharpcomp.m4: New file, from GNU gettext.
81046
81047 2005-06-08  Bruno Haible  <bruno@clisp.org>
81048
81049         * lib/csharpcomp.h: New file, from GNU gettext.
81050         * lib/csharpcomp.c: New file, from GNU gettext.
81051         * lib/csharpcomp.sh.in: New file, from GNU gettext.
81052
81053 2005-06-08  Bruno Haible  <bruno@clisp.org>
81054
81055         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
81056         warning on mingw.
81057
81058 2005-06-07  Derek Price  <derek@ximbiot.com>
81059
81060         Sync from CVS.
81061         * lib/glob_.h: Indent nested #ifdef.
81062
81063 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81064
81065         Sync from coreutils.
81066         Use "file name" when talking about file names, instead of "filename"
81067         or "path", as per the GNU coding standards.
81068         * lib/mkdir-p.c: Renamed from makepath.c.
81069         (make_dir_parents): Renamed from make_path.  All callers changed.
81070         * lib/mkdir-p.h: Likewise.  All includers changed.
81071         * lib/filenamecat.c: Renamed from path-concat.c.
81072         (file_name_concat): Renamed from path_concat.  All callers changed.
81073         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
81074         * lib/filenamecat.h: Likewise.  All includers changed.
81075         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
81076         in comments or local variable names.
81077         * lib/basename.c: Likewise.
81078         * lib/canonicalize.c, canonicalize.h: Likewise.
81079         * lib/dirname.c, dirname.h: Likewise.
81080         * lib/euidaccess.c: Likewise.
81081         * lib/exclude.c: Likewise
81082         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
81083         * lib/fsusage.c, fsuage.h: Likewise.
81084         * lib/fts.c, fts_.h: Likewise.
81085         * lib/getcwd.c: Likewise.
81086         * lib/getloadavg.c: Likewise.
81087         * lib/mkstemp.c: Likewise.
81088         * lib/mountlist.c, mountlist.h: Likewise.
81089         * lib/openat.c, openat.h: Likewise.
81090         * lib/readlink-stub.c: Likewise.
81091         * lib/readutmp.c, readutmp.h: Likewise.
81092         * lib/rename.c: Likewise.
81093         * lib/rmdir.c: Likewise.
81094         * lib/same.c: Likewise.
81095         * lib/savedir.c: Likewise.
81096         * lib/stripslash.c: Likewise.
81097         * lib/tempname.c: Likewise.
81098         * lib/xreadlink.c: Likewise.
81099         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
81100         All uses changed.
81101         * lib/exclude.h: Likewise.
81102
81103         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
81104         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81105         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
81106         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81107         * lib/pathmax.h: Include <limits.h> unconditionally, since other
81108         files have been getting away with it for years (MORE/BSD 4.3
81109         is extinct now).
81110         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
81111         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81112
81113         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
81114         Define to 256, not 255, as per modern POSIX.
81115
81116 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81117
81118         Sync from coreutils.
81119         Use "file name" when talking about file names, instead of "filename"
81120         or "path", as per the GNU coding standards.
81121         * MODULES.html.sh: mkdir-p renamed from makepath.
81122         filenamecat renamed from path-concat.
81123         * modules/filenamecat: Renamed from modules/path-concat.
81124         (Files): filenamecat.h and filenamecat.c renamed from
81125         path-concat.h and path-concat.c.
81126         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
81127         (Include): filenamecat.h, not path-concat.h.
81128         * modules/mkdir-p: Renamed from modules/makepath.
81129         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
81130         makepath.c.
81131         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
81132         (Include): mkdir-p.h, not makepath.h.
81133
81134 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81135
81136         Sync from coreutils.
81137         * m4/mkdir-p.m4: Renamed from makepath.m4.
81138         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
81139         Rename files from makepath.c to mkdir-p.c, and from
81140         makepath.h to mkdir-p.h.
81141         * m4/filenamecat.m4: Renamed from path-concat.m4.
81142         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
81143         Rename files from path-concat.c to filenamecat.c,
81144         and from path-concat.h to filenamecat.h.
81145         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
81146         "file name" in local variables or comments.
81147         * m4/rename.m4: Likewise.
81148
81149 2005-06-01  Bruno Haible  <bruno@clisp.org>
81150
81151         * modules/csharpexec: New file.
81152         * MODULES.html.sh (C#): New section.
81153
81154 2005-06-01  Bruno Haible  <bruno@clisp.org>
81155
81156         * m4/csharp.m4: New file, from GNU gettext.
81157         * m4/csharpexec.m4: New file, from GNU gettext.
81158
81159 2005-06-01  Bruno Haible  <bruno@clisp.org>
81160
81161         * lib/csharpexec.h: New file, from GNU gettext.
81162         * lib/csharpexec.c: New file, from GNU gettext.
81163         * lib/csharpexec.sh.in: New file, from GNU gettext.
81164
81165 2005-05-31  Derek Price  <derek@ximbiot.com>
81166             Paul Eggert  <eggert@cs.ucla.edu>
81167
81168         Sync from cvs.
81169         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81170
81171 2005-05-31  Derek Price  <derek@ximbiot.com>
81172             Paul Eggert  <eggert@cs.ucla.edu>
81173
81174         Sync from cvs.
81175         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81176
81177 2005-05-29  Derek Price  <derek@ximbiot.com>
81178
81179         * config/srclist.txt (glob_.h, glob.c): Add these files.
81180
81181 2005-05-29  Derek Price  <derek@ximbiot.com>
81182
81183         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
81184         * modules/glob: New file.
81185         * modules/getlogin_r: Add link to POSIX spec in description.
81186
81187 2005-05-29  Derek Price  <derek@ximbiot.com>
81188             Paul Eggert  <eggert@cs.ucla.edu>
81189
81190         * m4/glob.m4: New file.
81191
81192 2005-05-29  Derek Price  <derek@ximbiot.com>
81193             Paul Eggert  <eggert@cs.ucla.edu>
81194
81195         * lib/glob_.h, lib/glob.c: New files.
81196
81197 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81198
81199         * modules/fts (Files): Remove m4/inttypes-pri.m4.
81200         * modules/fts-lgpl (Depends-on): Remove gettext.
81201
81202 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81203
81204         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
81205         and don't require gt_INTTYPES_PRI.
81206
81207 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81208
81209         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
81210
81211         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
81212         the configuration hassle isn't worth it.
81213         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
81214         (LONGEST_MODIFIER, PRIuMAX): Remove.
81215
81216 2005-05-27  Bruno Haible  <bruno@clisp.org>
81217
81218         * lib/getlogin_r.h: Remove second include of <stddef.h>.
81219
81220 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
81221
81222         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
81223         _POSIX_PTHREAD_SEMANTICS for Solaris.
81224
81225 2005-05-25  Derek Price  <derek@ximbiot.com>
81226
81227         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
81228
81229 2005-05-25  Derek Price  <derek@ximbiot.com>
81230             Paul Eggert  <eggert@cs.ucla.edu>
81231
81232         * modules/getlogin_r, m4/getlogin_r.m4: New files.
81233         * lib/getlogin_r.c, getlogin_r.h: New files.
81234
81235 2005-05-25  Bruno Haible  <bruno@clisp.org>
81236             Derek Price  <derek@ximbiot.com>
81237
81238         * lib/getlogin_r.h: Simplify API documentation.
81239
81240 2005-05-23  Derek Price  <derek@ximbiot.com>
81241
81242         * modules/minmax (Files): Add m4/minmax.m4.
81243         (configure.ac): Add gl_MINMAX.
81244
81245 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81246
81247         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
81248         so that unistd-safer.h (GPL'ed code) need not be included.
81249
81250 2005-05-22  Bruno Haible  <bruno@clisp.org>
81251
81252         * m4/minmax.m4: New file.
81253         Based on a patch by Derek Price <derek@ximbiot.com>.
81254
81255 2005-05-22  Bruno Haible  <bruno@clisp.org>
81256
81257         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
81258         (INT64_MIN): Fix definition.
81259         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
81260
81261         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
81262         NEED_SIGNED_INT_TYPES.
81263
81264         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
81265         HAVE_SYSTEM_INTTYPES.
81266
81267 2005-05-22  Bruno Haible  <bruno@clisp.org>
81268
81269         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
81270         Also include <sys/param.h> if it defines MIN, MAX.
81271         Based on a patch by Derek Price <derek@ximbiot.com>.
81272
81273 2005-05-21  Jim Meyering  <jim@meyering.net>
81274
81275         * modules/fts (Files): Add m4/inttypes-pri.m4.
81276         (Depends-on): Add lstat and remove gettext.  Alphabetize.
81277
81278 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81279
81280         New fts module.
81281         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
81282         (setup_dir, free_dir): New functions.
81283         (enter_dir, leave_dir): Define trivial
81284         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
81285         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
81286         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
81287         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
81288         Move to fts-cycle.c.
81289         (fts_open): Use setup_dir.
81290         (fts_close): Use free_dir.
81291         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
81292         This adds a label and some gotos, but the alternatives were messier.
81293         Check for memory allocation failure when entering a dir.
81294         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
81295         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
81296         (FTS): New member fts_cycle, that is a union that contains the
81297         old active_dir_ht and cycle_state.  All uses changed to mention
81298         fts_cycle.ht and fts_cycle.state.
81299         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
81300         fts.c, with the following changes:
81301         (setup_dir, free_dir): New functions.
81302         (enter_dir): Now returns bool.  Return true if successful, false
81303         if memory exhausted.  All callers changed.
81304         Do not bother partly cleaning up on
81305         memory allocation failure; that is free_dir's job.
81306         However, free ad if hash_insert fails, to avoid memory leak.
81307         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
81308         fts->fts_options to see which union member to use.
81309
81310 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81311
81312         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
81313         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
81314
81315 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81316
81317         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
81318
81319 2005-05-20  Jim Meyering  <jim@meyering.net>
81320
81321         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
81322         Now a macro, to pacify GCC.
81323
81324 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81325
81326         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
81327         of -1.
81328
81329 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81330
81331         * lib/chown.c (rpl_chown): Return -1 on failure.
81332
81333 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81334
81335         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
81336         Don't check for stddef.h.
81337         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
81338         don't use its results.
81339         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
81340         since we include them unconditionally.  Don't require
81341         AM_STDBOOL_H, since stdbool is a prerequisite.
81342         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
81343         since we assume C89 or better.
81344         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
81345         as we don't use their results.
81346         Don't check for fchdir, memmove, memset, strrchr, as we use
81347         them unconditionally.
81348         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
81349         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
81350
81351 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81352
81353         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
81354         Include <stddef.h> unconditionally, since we assume C89 now.
81355         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
81356         * lib/fts.c: Include fts_.h first, to check interface.
81357         Do not include intprops.h; no longer needed.
81358         Include cycle-check.h and hash.h, since fts_.h no longer does.
81359         Remove unnecessary casts of closedir to void.
81360         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
81361         decide whether to decrement nlinks.
81362         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
81363         (FTS): Use struct hash_table * instead of Hash_table, so that
81364         we no longer need to include hash.h here.
81365
81366 2005-05-18  Jim Meyering  <jim@meyering.net>
81367
81368         * modules/dirfd (License): Change to LGPL.  Most of the code
81369         is already in the public domain.
81370
81371 2005-05-18  Jim Meyering  <jim@meyering.net>
81372
81373         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
81374         Reported by Yoann Vandoorselaere.
81375
81376 2005-05-17  Jim Meyering  <jim@meyering.net>
81377
81378         * m4/fts.m4: New file, from coreutils.
81379
81380 2005-05-17  Jim Meyering  <jim@meyering.net>
81381
81382         * lib/fts.c, lib/fts_.h: New files, from coreutils.
81383
81384 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81385
81386         Sync from coreutils.
81387         * m4/unlinkdir.m4: New file.
81388
81389 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81390
81391         Sync from coreutils.
81392         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
81393         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
81394         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
81395         White space changes only.
81396         * lib/makepath.c (make_path): Port to hosts where leading "//" is
81397         special.
81398         * lib/yesno.c: Include getline.h, not ctype.h.
81399         (yesno): Don't remove leading white space; POSIX doesn't allow it.
81400         Use getline to remove arbitrary restriction on response length.
81401
81402 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81403
81404         * config/srclist-update: Spell out "Street" in FSF postal
81405         mail address; this is the style the FSF seems to prefer.
81406
81407         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
81408         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
81409         this updates FSF postal mail address.
81410
81411         Sync from coreutils.
81412         * modules/unlinkdir: New file.
81413         * modules/yesno (Depends-on): Add getline.
81414         * MODULES.html.sh (File system functions): Add unlinkdir.
81415
81416 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81417
81418         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
81419         lib/strsep.h:
81420         Change the initial comment to refer to GPL, not LGPL.
81421         gnulib-tool will change it to LGPL as needed.
81422
81423         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
81424         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
81425         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
81426         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
81427         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
81428         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
81429         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
81430         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
81431         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
81432         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
81433         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
81434         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
81435         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
81436         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
81437         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
81438         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
81439         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
81440         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
81441         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
81442         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
81443         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
81444         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
81445         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
81446         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
81447         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
81448         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
81449         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
81450         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
81451         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
81452         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
81453         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
81454         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
81455         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
81456         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
81457         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
81458         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
81459         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
81460         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
81461         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
81462         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
81463         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
81464         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
81465         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
81466         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
81467         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
81468         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
81469         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
81470         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
81471         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
81472         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
81473         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81474         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
81475         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
81476         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
81477         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
81478         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
81479         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
81480         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
81481         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
81482         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
81483         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
81484         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
81485         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
81486         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
81487         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
81488         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
81489         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
81490         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
81491         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
81492         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
81493         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
81494         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
81495         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
81496         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
81497         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
81498         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
81499         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
81500         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
81501         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
81502         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
81503         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
81504         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
81505         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
81506         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
81507         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
81508         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
81509         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
81510         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
81511         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
81512         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
81513         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
81514         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
81515         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
81516         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
81517         lib/yesno.c, lib/yesno.h:
81518         Update FSF postal mail address.
81519
81520 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81521
81522         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
81523         tests/test-memmem.c, tests/test-stpncpy.c:
81524         Update FSF postal mail address.
81525
81526 2005-05-13  Bruno Haible  <bruno@clisp.org>
81527
81528         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
81529         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
81530         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
81531         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
81532         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
81533         Add support for 64-bit integers in the MSVC compiler.
81534
81535 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81536
81537         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
81538
81539 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
81540
81541         * gnulib-tool (func_import): Sort and uniquify recommended includes.
81542
81543 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
81544
81545         * doc/getdate.texi (General date syntax): Don't say that date
81546         date --iso-8601=ns generates acceptable dates; it doesn't yet.
81547         Problem reported by Nic Ferrier.
81548
81549 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81550
81551         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
81552         specified in ai_socktype. Fix invalid ai_protocol
81553         check. ai_protocol is usually set to 0 or depending on
81554         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
81555         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
81556         ai_socktype / ai_protocol in the returned addrinfo structure.
81557
81558 2005-05-10  Simon Josefsson  <jas@extundo.com>
81559
81560         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
81561         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81562
81563 2005-05-10  Karl Berry  <karl@gnu.org>
81564
81565         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
81566         (from http://www.gnu.org/licenses).
81567         * doc/COPYING.LIB: also rename to COPYING.LESSER.
81568         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
81569         fdl.texi suffices.
81570
81571 2005-05-10  Karl Berry  <karl@gnu.org>
81572
81573         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
81574         (COPYING.DOC): remove.
81575
81576         * config/srclist-update: new FSF address.
81577
81578 2005-05-10  Derek Price  <derek@ximbiot.com>
81579
81580         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
81581         possible.
81582
81583 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81584             Bruno Haible  <bruno@clisp.org>
81585
81586         * modules/inet_ntop: New file.
81587         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81588         inet_ntop.
81589
81590 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81591             Bruno Haible  <bruno@clisp.org>
81592
81593         * m4/inet_ntop.m4: New file.
81594
81595 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81596             Bruno Haible  <bruno@clisp.org>
81597
81598         * lib/inet_ntop.h: New file.
81599         * lib/inet_ntop.c: New file, from glibc with modifications.
81600
81601 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
81602
81603         * modules/time_r (License): Change to LGPL.
81604         * modules/extensions (License): Change to LGPL.  Actually,
81605         the license is more permissive than that, but currently gnulib-tool
81606         doesn't know how to handle more-permissive licenses.
81607
81608         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
81609         Problem reported by Dave Love.
81610
81611 2005-05-08  Jim Meyering  <jim@meyering.net>
81612
81613         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
81614         blank.
81615
81616 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81617
81618         * modules/argmatch (Depends-on): Add stdbool.
81619         * modules/backupfile (Depends-on): Likewise.
81620         * modules/chdir-long (Depends-on): Likewise.
81621         * modules/closeout (Depends-on): Likewise.
81622         * modules/cycle-check (Depends-on): Likewise.
81623         * modules/dirname (Depends-on): Likewise.
81624         * modules/fnmatch (Depends-on): Likewise.
81625         * modules/fsusage (Depends-on): Likewise.
81626         * modules/fwriteerror (Depends-on): Likewise.
81627         * modules/getcwd (Depends-on): Likewise.
81628         * modules/getloadavg (Depends-on): Likewise.
81629         * modules/hard-locale (Depends-on): Likewise.
81630         * modules/makepath (Depends-on): Likewise.
81631         * modules/mountlist (Depends-on): Likewise.
81632         * modules/nanosleep (Depends-on): Likewise.
81633         * modules/posixtm (Depends-on): Likewise.
81634         * modules/quotearg (Depends-on): Likewise.
81635         * modules/readtokens (Depends-on): Likewise.
81636         * modules/readtokens0 (Depends-on): Likewise.
81637         * modules/readutmp (Depends-on): Likewise.
81638         * modules/save-cwd (Depends-on): Likewise.
81639         * modules/strftime (Depends-on): Likewise.
81640         * modules/userspec (Depends-on): Likewise.
81641         * modules/utimecmp (Depends-on): Likewise.
81642         * modules/xgetcwd (Depends-on): Likewise.
81643         * modules/xnanosleep (Depends-on): Likewise.
81644         * modules/xstrtod (Depends-on): Likewise.
81645         * modules/yesno (Depends-on): Likewise.
81646
81647 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
81648
81649         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
81650         needless checks.
81651
81652 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81653
81654         Merge from coreutils.  Among other things,
81655         add bulletproofing for cases where stdin, stdout, or stderr are closed.
81656         * lib/fd-safer.c: New file.
81657         * lib/fcntl-safer.h, open-safer.c: Remove.
81658         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
81659         * lib/dup-safer.c: Include unistd-safer.h first.
81660         Don't include errno.h.
81661         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
81662         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
81663         * lib/file-type.c: Rely on file-type.h change.
81664         * lib/getloadavg.c: Include unistd-safer.h.
81665         (getloadavg): Use safer open.
81666         * lib/getusershell.c: Include "stdio-safer.h".
81667         (getusershell): Use safer fopen.
81668         * lib/long-options.c (long_options): Use NULL rather than 0.
81669         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
81670         'free'.
81671         * lib/modechange.c: Likewise.
81672         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
81673         (MODE_DONE): New constant.
81674         (struct mode_change): Remove 'next' member.
81675         (make_node_op_equals): New function; like the old one of the
81676         same name, except it allocates an array.
81677         (mode_compile, mode_create_from_ref): Use it.
81678         (mode_compile): Allocate result as an array, not a linked list.
81679         Parse octal string ourself, so that we catch mistakes like "+0".
81680         (mode_adjust): Arg is an array, not a linked list.
81681         * lib/modechange.c: Include stat-macros.h, xalloc.h.
81682         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
81683         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
81684         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
81685         Remove.  This is now stat-macros.h's job.
81686         (talloc): Remove.  All callers replaced by xalloc, so that
81687         our invokers don't have to worry about reporting memory failures.
81688         (make_node_op_equals): Remove.
81689         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
81690         New constants.
81691         (struct mode_change): Moved here from modechange.h.
81692         (mode_append_entry): Remove.
81693         (mode_compile): Remove MASKED_OPS arg, since it encouraged
81694         apps to have incorrect behavior.  Use simpler algorithm for head
81695         and tail.  Don't futz with umask; that's now the job of mode_adjust.
81696         Detect more invalid usages rather than having somewhat-random behavior.
81697         Don't insert an "a=" action, as that leads to incorrect behavior.
81698         (mode_compile, mode_create_from_ref): Return NULL on error instead
81699         of an enum, since now there's only one way to have an error.  All
81700         callers changed.
81701         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
81702         at the correct time.  Simplify calculation of "+u" and its ilk.
81703         Don't mishandle "+X".
81704         (mode_free): Remove "register" and localize decls.
81705         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
81706         (struct mode_change): Move to modechange.c; callers don't
81707         need to see this stuff.
81708         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
81709         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
81710         (mode_change, mode_adjust): Reflect the new signatures noted above.
81711         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
81712         that might redefine system include files.
81713         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
81714         (my_usleep): Use NULL rather than (void *) 0.
81715         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
81716         Use siginterrupt to specify that system calls should be interrupted.
81717         (rpl_nanosleep): Move initialization of suspended closer to call of
81718         my_usleep.
81719         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
81720         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
81721         (desirable_utmp_entry): New function.
81722         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
81723         using x2nrealloc, to simplify logic.
81724         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
81725         size calculation.  Do not assume utmp file is a regular file.
81726         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
81727         (READ_UTMP_CHECK_PIDS): New constant.
81728         * lib/save-cwd.c: Include unistd-safer.h.
81729         (save_cwd): Use fd_safer.
81730         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
81731         [!_LIBC] Include "stat-macros.h" instead.
81732         * lib/unistd-safer.h (fd_safer): New decl.
81733
81734 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81735
81736         * modules/getloadavg (Depends-on): Add unistd-safer.
81737         * modules/getusershell (Depends-on): Add stdio-safer.
81738         * modules/lstat (Depends-on): Remove xalloc.
81739         * modules/mkstemp (Depends-on): Add stat-macros.
81740         * modules/modechange (Depends-on): Remove xstrtol.
81741         Add stat-macros, xalloc.
81742         * modules/save-cwd (Depends-on): Add unistd-safer.
81743         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
81744         * modules/unistd-safer (Files): Add lib/fd-safer.c
81745         (Makefile.am): Remove lib_SOURCES.
81746
81747         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
81748         Remove fcntl-safer; unistd-safer supersedes it.
81749
81750 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81751
81752         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
81753         AC_HEADER_STAT.
81754         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
81755         (gl_PREREQ_CHOWN): Remove.
81756         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
81757         it.  Don't require AC_HEADER_STAT.
81758         (gl_PREREQ_LSTAT): Remove.
81759         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
81760         Don't require AC_HEADER_STAT.
81761         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
81762         (gl_PREREQ_RMDIR): Remove.
81763         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
81764         mention stat-macros.h or AC_HEADER_STAT, since we'll make
81765         the stat-macros module a prerequisite.
81766         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
81767         * m4/filemode.m4 (gl_FILEMODE): Likewise.
81768         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
81769         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
81770         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
81771         variable names.
81772         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
81773         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
81774         variable prefixes.
81775         * m4/fcntl-safer.m4: Remove.
81776         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
81777         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
81778         Invoke gl_PREREQ_FD_SAFER.
81779         (gl_PREREQ_FD_SAFER): New macro.
81780         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
81781         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
81782         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
81783         Remove duplicate call to AC_LIBOBJ(readutmp).
81784         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
81785
81786         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
81787         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
81788
81789 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81790
81791         * MODULES.html.sh (Misc): Add byteswap.
81792
81793 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81794
81795         * modules/getcwd (Depends-on): Add extensions.
81796         * modules/openat (Depends-on): Likewise.
81797
81798 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81799
81800         * modules/byteswap: New file.
81801
81802 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81803
81804         * m4/byteswap.m4: New file.
81805
81806 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81807
81808         * lib/byteswap_.h: New file.
81809
81810 2005-04-25  Karl Berry  <karl@gnu.org>
81811
81812         * m4/gettext.m4: Update from GNU gettext 0.14.4.
81813
81814 2005-04-25  Albert Chin  <china@thewrittenword.com>
81815
81816         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
81817         Toolkit C bug.
81818
81819 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
81820
81821         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
81822         (func_ln_if_changed): Remove forcibly for no error message
81823         in case file does not exist.
81824
81825 2005-04-19  Simon Josefsson  <jas@extundo.com>
81826
81827         * gnulib-tool (Options): Make --symlink mean --symbolic.
81828
81829 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
81830
81831         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
81832
81833 2005-04-16  Simon Josefsson  <jas@extundo.com>
81834
81835         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
81836
81837 2005-04-15  Simon Josefsson  <jas@extundo.com>
81838
81839         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
81840
81841 2005-04-15  Simon Josefsson  <jas@extundo.com>
81842
81843         * gnulib-tool: Rename --symlink to --symbolic.
81844
81845 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
81846
81847         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
81848         symbolic links to files instead of copying/moving.  Add --aux-dir,
81849         specifying directory relative --dir where auxiliary build tools
81850         are placed.
81851
81852 2005-04-14  Bruno Haible  <bruno@clisp.org>
81853
81854         * modules/allocsa (License): Change to LGPL.
81855         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
81856
81857 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81858
81859         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
81860         that "UTC +1 second" continues to work.  Problem reported
81861         by Dmitry V. Levin.
81862         (relunit_snumber): New rule.
81863         (relunit): Use it.
81864
81865 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
81866
81867         * lib/getdate.y (universal_time_zone_table): New constant.
81868         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
81869         universal_time_zone_table.
81870         (lookup_zone): Prefer universal_time_zone_table to
81871         local_time_zone_table, so that "GMT" time stamps are allowed in
81872         London during the summer.  Problem reported by Ian Abbott.
81873
81874 2005-04-12  Jim Meyering  <jim@meyering.net>
81875
81876         * lib/human.c (humblock): Set *options even when returning due to
81877         xstrtoumax conversion failure.  Thanks to a used-uninitialized
81878         warning from gcc-4.
81879
81880 2005-04-09  Jim Meyering  <jim@meyering.net>
81881
81882         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
81883         -Wuninitialized: initialize tm0.tm_year.
81884
81885 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
81886
81887         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
81888         count, since there's no maximum.  All uses changed.
81889         Add member dsts_seen.
81890         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
81891         not being INT_MAX.
81892         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
81893         Use pc_rels_seen to decide whther a date is absolute.
81894
81895         * lib/getdate.y (number): Don't overwrite year.
81896         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
81897         check.
81898
81899 2005-04-02  Simon Josefsson  <jas@extundo.com>
81900
81901         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
81902         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
81903
81904 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
81905
81906         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
81907         where no absolute path name can be longer than PATH_MAX.
81908
81909 2005-03-27  Jim Meyering  <jim@meyering.net>
81910
81911         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
81912
81913 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
81914
81915         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
81916         "one's complement" -> "ones' complement" in comment, as per Knuth.
81917         "value of type" -> "type or expression" in comment.
81918         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
81919
81920 2005-03-26  Jim Meyering  <jim@meyering.net>
81921
81922         Comment nits.
81923         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
81924         Correct typos: s/or/of/.
81925
81926 2005-03-26  Jim Meyering  <jim@meyering.net>
81927
81928         * modules/check-include-files: Move to ../ and rename to...
81929         * check-module: ...this.
81930
81931 2005-03-25  Jim Meyering  <jim@meyering.net>
81932
81933         * modules/xvasprintf (Files): Add xalloc.h.
81934
81935 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
81936
81937         * modules/gettext (Files): config/config.rpath ->
81938         build-aux/config.rpath
81939         * modules/iconv (Files): Likewise.
81940         Problem reported by Oskar Liljeblad.
81941
81942 2005-03-23  Jim Meyering  <jim@meyering.net>
81943
81944         * modules/check-include-files: New script to check for
81945         missing dependencies, multiple includes, etc.
81946
81947         * modules/c-strtold (Depends-on): Add xalloc.
81948         * modules/c-strtod (Depends-on): Add xalloc.
81949         * modules/hash (Depends-on): Add xalloc.
81950         (Files): Remove lib/xalloc.h.
81951
81952         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
81953         * modules/userspec (Files): Add lib/inttostr.h.
81954
81955 2005-03-23  Jim Meyering  <jim@meyering.net>
81956
81957         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
81958
81959 2005-03-22  Jim Meyering  <jim@meyering.net>
81960
81961         * modules/stat-macros: New module.
81962         * modules/canonicalize, modules/euidaccess, modules/file-type,
81963         * modules/filemode, modules/lchown, modules/makepath,
81964         * modules/rmdir, modules/stat: Depend on new stat-macros module
81965         rather than listing lib/stat-macros.h manually.
81966         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
81967
81968 2005-03-22  Jim Meyering  <jim@meyering.net>
81969
81970         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
81971
81972 2005-03-22  Bruno Haible  <bruno@clisp.org>
81973
81974         * config/srclist.txt: Replace target directory 'config' with
81975         'build-aux'.
81976         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
81977         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
81978         ../build-aux/.
81979
81980 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
81981
81982         * modules/chdir-long (Depends-on): Add mempcpy.
81983
81984         * modules/acl, modules/backupfile, modules/c-strtod,
81985         modules/c-strtold, modules/canon-host, modules/canonicalize,
81986         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
81987         modules/exclude, modules/exitfail, modules/file-type,
81988         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
81989         modules/getdate, modules/getline, modules/getpagesize,
81990         modules/getpass, modules/getugroups, modules/group-member,
81991         modules/hard-locale, modules/hash, modules/human, modules/idcache,
81992         modules/inttostr, modules/long-options, modules/makepath,
81993         modules/md5, modules/memcasecmp, modules/memcoll,
81994         modules/modechange, modules/mountlist, modules/path-concat,
81995         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
81996         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
81997         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
81998         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
81999         modules/strftime, modules/strndup, modules/strverscmp,
82000         modules/timespec, modules/unlocked-io, modules/userspec,
82001         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82002         modules/yesno:
82003         Remove lib_SOURCES line from Makefile.am section, as this is now
82004         done automatically by the corresponding Autoconf macro.
82005
82006 2005-03-21  Jim Meyering  <jim@meyering.net>
82007
82008         Changes imported from coreutils.
82009
82010         * lib/cycle-check.c: Don't include xalloc.h.
82011
82012         * lib/path-concat.c: Don't include assert.h.
82013         (path_concat): Remove assertion that would have triggered
82014         for ABASE starting with more than one slash.
82015         Reported by Andreas Schwab.
82016
82017         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
82018         properly when ABASE is an absolute file name.
82019         Correct the description of this function.
82020         Include <assert.h>.
82021         Add an assertion and a test driver.
82022         This fixes a bug introduced on 2004-07-02.
82023         Andreas Schwab reported the resulting failure of cp --parents:
82024         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
82025
82026 2005-03-21  Jim Meyering  <jim@meyering.net>
82027
82028         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
82029         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
82030
82031 2005-03-21  Jim Meyering  <jim@meyering.net>
82032         and  Paul Eggert  <eggert@cs.ucla.edu>
82033
82034         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
82035         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
82036         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
82037         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
82038         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
82039         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
82040         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
82041         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
82042         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
82043         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
82044         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
82045         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
82046         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
82047         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
82048         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
82049         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
82050         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
82051         for these modules.
82052
82053 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
82054
82055         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
82056         (which shouldn't happen), generate nothing instead of returning 0
82057         immediately, so that nstrftime (NULL, ...) doesn't return 0.
82058
82059 2005-03-16  Bruno Haible  <bruno@clisp.org>
82060
82061         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
82062         HAVE_LONGLONG_64BIT.
82063
82064 2005-03-16  Bruno Haible  <bruno@clisp.org>
82065
82066         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
82067         HAVE_LONGLONG_64BIT.
82068
82069 2005-03-16  Bruno Haible  <bruno@clisp.org>
82070
82071         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
82072         HAVE_LONGLONG_64BIT.
82073
82074 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82075
82076         * lib/strftime.c (my_strftime): Prepend space to format so that we can
82077         reliably distinguish strftime failure from empty output on POSIX
82078         hosts.
82079
82080 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82081
82082         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
82083         (iconv_string): Don't guess a size-zero buffer, as that might cause
82084         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
82085         result would be 'too large', where 'too large' is (heuristically)
82086         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
82087         overflow concerns.  This will prevent some unwanted malloc failures
82088         when the inputs are very large.
82089
82090 2005-03-15  Karl Berry  <karl@gnu.org>
82091
82092         * config/srclist.txt (config.rpath): from gettext.
82093         * config/config.rpath: update.
82094
82095 2005-03-15  Bruno Haible  <bruno@clisp.org>
82096
82097         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
82098         to 'negate'.
82099
82100         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
82101         variable.
82102
82103         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
82104         results.
82105
82106 2005-03-14  Simon Josefsson  <jas@extundo.com>
82107
82108         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
82109         <fx@gnu.org>.
82110
82111 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
82112
82113         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
82114         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
82115         intprops.h.
82116         * lib/strtol.c: Likewise.
82117
82118 2005-03-14  Jim Meyering  <jim@meyering.net>
82119
82120         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
82121         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
82122         to be nonzero so that we (and caller) can detect the difference
82123         between a valid zero-length expansion and an error return, even
82124         when the underlying strftime fails before writing anything into
82125         that location.
82126
82127 2005-03-14  Bruno Haible  <bruno@clisp.org>
82128
82129         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
82130         Update from GNU gettext 0.14.3.
82131
82132 2005-03-10  Jim Meyering  <jim@meyering.net>
82133
82134         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
82135
82136 2005-03-10  Jim Meyering  <jim@meyering.net>
82137
82138         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
82139         so that this module works on systems without fchdir.
82140
82141 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
82142
82143         Factor int-properties macros into a single file, except for
82144         glibc-related files.
82145         * lib/intprops.h: New file.
82146         * lib/getloadavg.c: Include it instead of limits.h.
82147         (INT_STRLEN_BOUND): Remove.
82148         * lib/human.c: Include intprops.h.
82149         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
82150         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
82151         302/1000.
82152         * lib/inttostr.h: Include intprops.h instead of limits.h.
82153         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
82154         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
82155         for consistency with intprops.h.
82156         (time_t_is_integer, twos_complement_arithmetic): Use them.
82157         * lib/sig2str.h: Include <signal.h>, intprops.h.
82158         (INT_STRLEN_BOUND): Remove.
82159         * lib/strftime.c (TYPE_SIGNED): Remove.
82160         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
82161         * lib/strtol.c: Adjust comments to match intprops.h.
82162         * lib/userspec.c: Include intprops.h.
82163         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
82164         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
82165         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
82166         instead of rolling our own expressions.
82167         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
82168
82169         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
82170         instead of int.
82171         (my_strftime): Do not mishandle years close to INT_MAX, by doing
82172         the right thing even if adding 1900 would overflow.  Similarly
82173         for tm_mon + 1 and tm_yday + 1.
82174         Make %Y always equivalent to %C%y, and similarly for %G and %g.
82175         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
82176         (DO_SIGNED_NUMBER): New macro.
82177         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
82178
82179 2005-03-07  Bruno Haible  <bruno@clisp.org>
82180
82181         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
82182
82183 2005-03-07  Bruno Haible  <bruno@clisp.org>
82184
82185         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
82186
82187 2005-03-04  Derek R. Price  <derek@ximbiot.com>
82188
82189         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
82190         (func_import): Only replace files via --import when they have actually
82191         changed.
82192
82193 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82194
82195         * m4/mmap-anon.m4: New file.
82196         * m4/pagealign_alloc.m4: New file.
82197
82198 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82199             Bruno Haible  <bruno@clisp.org>
82200
82201         * modules/pagealign_alloc: New file.
82202         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
82203
82204 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82205             Bruno Haible  <bruno@clisp.org>
82206
82207         * lib/pagealign_alloc.h: New file.
82208         * lib/pagealign_alloc.c: New file.
82209
82210 2005-03-03  Bruno Haible  <bruno@clisp.org>
82211
82212         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
82213         Use an all-permissive copyright notice, recommended by RMS.
82214
82215 2005-03-02  Bruno Haible  <bruno@clisp.org>
82216
82217         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
82218         of AIX, the replacement has to be done only after <string.h> is
82219         included, therefore not in config.h. stpncpy.h does the replacement,
82220         and stpncpy.c uses it.
82221
82222 2005-03-02  Bruno Haible  <bruno@clisp.org>
82223
82224         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
82225         stpncpy.c uses it.
82226
82227 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82228
82229         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
82230         The workaround isn't strictly needed for POSIX conformance, and
82231         it's too much of a pain to configure and maintain.  We'll ask
82232         people to fix their kernels instead.
82233         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
82234         (NANOSLEEP_BUG_WORKAROUND): Remove.
82235         (xnanosleep): Remove the workaround.
82236
82237 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82238
82239         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
82240         Reported by Derek Price.
82241         (Include): Add "timespec.h".
82242
82243         * modules/xnanosleep (Depends-on): Remove gethrxtime.
82244
82245 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82246
82247         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
82248         to detect nanosleep bug.
82249
82250 2005-03-01  Bruno Haible  <bruno@clisp.org>
82251
82252         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
82253
82254 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82255
82256         * modules/gethrxtime: New file.
82257         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
82258         (Depends-on): Add gethrxtime.
82259         (configure.ac): Add gl_XNANOSLEEP.
82260         (Makefile.am): Remove lib_SOURCES line.
82261
82262 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82263
82264         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
82265         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
82266
82267 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82268
82269         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
82270         * lib/timespec.h (gettime): Return void, since it always
82271         succeeds now.  All uses changed.
82272         * lib/gettime.c (gettime): Likewise.
82273         [HAVE_NANOTIME]: Prefer nanotime.
82274         Assume gettimeofday succeeds, as POSIX requires.
82275         Assime time () succeeds, since other code already does.
82276         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
82277         (timespec_subtract): Remove.
82278         (NANOSLEEP_BUG_WORKAROUND): New constant.
82279         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
82280         things considerably.  Use it only on GNU/Linux hosts, since the
82281         workaround shouldn't be needed elsewhere.
82282
82283 2005-02-24  Bruno Haible  <bruno@clisp.org>
82284
82285         * modules/gettext (Files): Add m4/glibc2.m4.
82286
82287 2005-02-24  Bruno Haible  <bruno@clisp.org>
82288
82289         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
82290         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
82291         * m4/progtest.m4:
82292         Update from GNU gettext 0.14.2.
82293         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
82294
82295 2005-02-24  Bruno Haible  <bruno@clisp.org>
82296
82297         * lib/localcharset.c: Update from GNU gettext 0.14.2.
82298         * lib/config.charset: Update from GNU gettext 0.14.2.
82299
82300 2005-02-24  Bruno Haible  <bruno@clisp.org>
82301
82302         * lib/gettext.h: Update from GNU gettext 0.14.2.
82303
82304 2005-02-23  Simon Josefsson  <jas@extundo.com>
82305
82306         * m4/iconvme.m4: New file.
82307
82308 2005-02-23  Jim Meyering  <jim@meyering.net>
82309
82310         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
82311         change.
82312         Thanks to Bruno Haible for catching it.
82313
82314 2005-02-22  Simon Josefsson  <jas@extundo.com>
82315
82316         * modules/iconvme: New file.
82317
82318         * MODULES.html.sh: Add iconvme.
82319
82320 2005-02-22  Simon Josefsson  <jas@extundo.com>
82321
82322         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
82323
82324 2005-02-22  Simon Josefsson  <jas@extundo.com>
82325
82326         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
82327
82328 2005-02-22  Jim Meyering  <jim@meyering.net>
82329
82330         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
82331         s/ifndef/ifdef/.
82332
82333 2005-02-20  Neil Conway  <neilc@samurai.com>
82334
82335         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
82336         returned by OSX/Darwin if the specified buffer is not large
82337         enough for the hostname.
82338
82339 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82340
82341         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
82342         pass it to _help, otherwise the latter coredumps trying to
82343         dereference state.root_argp.
82344
82345 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82346
82347         * modules/chdir-long (Depends-on): Add memrchr.
82348         * modules/memrchr (Files): Add lib/memrchr.h.
82349         (Include): "memrchr.h".
82350
82351 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82352
82353         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
82354
82355 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82356
82357         * lib/memrchr.h: New file.
82358         * lib/chdir-long.c: Include it.
82359         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
82360         Don't bother including stddef.h.
82361
82362 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
82363
82364         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
82365         inclusion.
82366         Include <sys/types.h>, for dev_t.
82367         (ME_DUMMY, ME_REMOTE): Move from here....
82368         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
82369         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
82370         Dmitry V. Levin.
82371         Include mountlist.h first, to test the interface.
82372
82373 2005-01-29  Bruno Haible  <bruno@clisp.org>
82374
82375         * lib/progname.c (program_name): Initialize.
82376         Needed when linking statically on MacOS X.
82377
82378 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
82379
82380         Sync from coreutils.
82381         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
82382         (Depends-on): Add c-strtod.
82383         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
82384
82385 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
82386
82387         Sync from coreutils.
82388         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
82389
82390         Remove files that are specific to coreutils.
82391         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
82392
82393 2005-01-28  Bruno Haible  <bruno@clisp.org>
82394
82395         * modules/javacomp: New file.
82396         * MODULES.html.sh (Java): Add javacomp.
82397
82398 2005-01-28  Bruno Haible  <bruno@clisp.org>
82399
82400         * m4/javacomp.m4: New file, from GNU gettext.
82401
82402 2005-01-28  Bruno Haible  <bruno@clisp.org>
82403
82404         * lib/javacomp.sh.in: New file, from GNU gettext.
82405         * lib/javacomp.h: New file, from GNU gettext.
82406         * lib/javacomp.c: New file, from GNU gettext.
82407
82408 2005-01-26  Simon Josefsson  <jas@extundo.com>
82409
82410         * lib/gai_strerror.c: Use GPL in header.
82411
82412 2005-01-26  Bruno Haible  <bruno@clisp.org>
82413
82414         * modules/javaexec: New file.
82415         * MODULES.html.sh (Java): Add javaexec.
82416
82417 2005-01-26  Bruno Haible  <bruno@clisp.org>
82418
82419         * m4/javaexec.m4: New file, from GNU gettext.
82420
82421 2005-01-26  Bruno Haible  <bruno@clisp.org>
82422
82423         * lib/javaexec.sh.in: New file, from GNU gettext.
82424         * lib/javaexec.h: New file, from GNU gettext.
82425         * lib/javaexec.c: New file, from GNU gettext.
82426
82427 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82428
82429         * modules/lchown (Depends-on): Remove lchown.h
82430
82431 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82432
82433         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
82434         must be defined if the header file was not found, in order
82435         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
82436
82437 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82438
82439         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
82440         initializers for struct pentry_state.
82441         (__argp_error): Check return value of __asprintf
82442         (__argp_failure): Translate error message
82443
82444         * lib/argp-parse.c: Removed braces around the expansion of N_()
82445
82446 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82447
82448         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
82449         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
82450         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
82451         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
82452         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
82453         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
82454         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
82455         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
82456         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
82457         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
82458         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
82459         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
82460         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
82461         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
82462         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
82463         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
82464         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
82465         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
82466         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
82467         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
82468         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
82469         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
82470         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
82471         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
82472         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
82473         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
82474         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
82475         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
82476         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
82477         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
82478         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
82479         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
82480         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
82481         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
82482         xstrtol.m4, xstrtoumax.m4, yesno.m4:
82483         Use an all-permissive copyright notice, recommended by RMS.
82484
82485 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
82486
82487         * modules/chdir-long (Depends-on): Remove mempcpy.
82488
82489 2005-01-21  Jim Meyering  <jim@meyering.net>
82490
82491         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
82492         same value as for Solaris 9.
82493
82494         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
82495         component length.  This included changing the parameter to be
82496         of type `char *' rather than `char const *'.
82497         * lib/chdir-long.h (chdir_long): Update prototype.
82498
82499         * lib/openat.c (fdopendir, fstatat): New functions.
82500         * lib/openat.h: Include headers required for use of DIR and struct
82501         stat.
82502         [AT_SYMLINK_NOFOLLOW]: Define.
82503         (fdopendir, fstatat): Add prototypes.
82504
82505 2005-01-21  Bruno Haible  <bruno@clisp.org>
82506
82507         * modules/classpath: New file.
82508         * MODULES.html.sh (Java): Add classpath.
82509
82510 2005-01-21  Bruno Haible  <bruno@clisp.org>
82511
82512         * lib/classpath.h: New file, from GNU gettext.
82513         * lib/classpath.c: New file, from GNU gettext.
82514
82515 2005-01-20  Simon Josefsson  <jas@extundo.com>
82516
82517         * modules/version-etc-fsf: New file.
82518
82519 2005-01-20  Simon Josefsson  <jas@extundo.com>
82520
82521         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
82522         * lib/version-etc.c: Remove version_etc_copyright.
82523         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
82524         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
82525
82526 2005-01-20  Simon Josefsson  <jas@extundo.com>
82527
82528         * lib/base64.h (isbase64): Add.
82529
82530         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
82531         using a unsigned prototype, don't inline.
82532         (base64_decode): Use it.
82533
82534 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82535
82536         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
82537         it.
82538
82539 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82540
82541         * lib/save-cwd.c (save_cwd): Remove code to support the case
82542         where fchdir is missing or flaky.
82543
82544 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82545
82546         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
82547
82548 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
82549
82550         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
82551         AC_LIBSOURCES now does this.
82552         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
82553         with new ullong_max module.
82554
82555 2005-01-19  Bruno Haible  <bruno@clisp.org>
82556
82557         * modules/sh-quote: New file.
82558         * MODULES.html.sh (Executing programs): Add sh-quote.
82559
82560 2005-01-19  Bruno Haible  <bruno@clisp.org>
82561
82562         * lib/sh-quote.h: New file, from GNU gettext.
82563         * lib/sh-quote.c: New file, from GNU gettext.
82564
82565 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
82566
82567         Merge from coreutils.
82568         * m4/ullong_max.m4: New file.
82569         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
82570         (gl_MACROS): Assume localeconv exists.
82571
82572 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
82573
82574         Merge changes from coreutils, as described below in several
82575         changelogs dated today.
82576
82577         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
82578         (O_DIRECTORY): Remove; not needed here, since "." must be
82579         a directory.  All uses removed.
82580         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
82581         universal on Suns, and we also need to test for IRIX.
82582         Revamp code to use 'if' rather than '#if'.
82583         Avoid unnecessary comparison of cwd->desc to 0.
82584
82585         * lib/utimens.c (futimens): Robustify the previous patch, by checking
82586         for known valid error numbers rather than observed invalid ones.
82587
82588 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
82589
82590         * modules/ullong_max: New file.
82591
82592         * modules/chdir-long, modules/openat: New files.
82593         * modules/save-cwd (Depends-on): Depend on chdir-long.
82594         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
82595
82596 2005-01-18  Jim Meyering  <jim@meyering.net>
82597
82598         Merge from coreutils.
82599         * m4/chdir-long.m4, m4/openat.m4: New files.
82600         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
82601         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
82602         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
82603         is sane and DOES follow symlinks.  Besides, testing 20 different
82604         systems found no broken chown implementations.
82605         Prompted by a change in rsync's copy of this macro.
82606         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
82607
82608         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
82609
82610         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
82611         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
82612         NULL-means-set-to-current-time semantics.
82613         Remove temporary file immediately, rather than waiting
82614         for configure's at-exit trap code to do it.
82615
82616 2005-01-18  Jim Meyering  <jim@meyering.net>
82617
82618         * lib/version-etc.c (version_etc_copyright): Update copyright date.
82619
82620         * lib/utimens.c (futimens): Account for the fact that futimes
82621         can also fail with errno == ENOSYS or errno == ENOENT.
82622         Patch from Dmitry V. Levin.
82623
82624         Change the name of the robust chdir function from chdir to chdir_long.
82625         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
82626         (restore_cwd): Use chdir_long, not chdir.
82627         * lib/chdir-long.c: Renamed from chdir.c.
82628         * lib/chdir-long.h: Renamed from chdir.h.
82629         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
82630         Hurd.
82631
82632 2005-01-18  Bruno Haible  <bruno@clisp.org>
82633
82634         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
82635         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
82636         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
82637         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
82638         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
82639         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
82640         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
82641         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
82642         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
82643         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
82644         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
82645         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
82646         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
82647         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
82648         Use an all-permissive copyright notice, recommended by RMS.
82649
82650 2005-01-18  Bob Proulx  <bob@proulx.com>
82651
82652         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
82653         simplify offsetof() macro construct to avoid compile failure with
82654         native HP-UX 11.0 ANSI C compiler.
82655
82656 2005-01-17  Bruno Haible  <bruno@clisp.org>
82657
82658         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
82659         redundant because stpncpy.m4 takes care of it.
82660
82661 2005-01-17  Bruno Haible  <bruno@clisp.org>
82662
82663         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
82664
82665 2005-01-17  Bruno Haible  <bruno@clisp.org>
82666
82667         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
82668         used.
82669
82670 2005-01-17  Bruno Haible  <bruno@clisp.org>
82671
82672         * lib/fwriteerror.h (fwriteerror): Change specification to include
82673         fclose.
82674         * lib/fwriteerror.c: Include <stdbool.h>.
82675         (fwriteerror): At the end, close the file stream. Record whether
82676         stdout was already closed.
82677
82678 2005-01-17  Bruno Haible  <bruno@clisp.org>
82679
82680         * lib/execute.c (environ): Declare if needed.
82681         * lib/pipe.c (environ): Likewise.
82682         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
82683
82684 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82685
82686         * modules/argp: Depend on vsnprintf
82687
82688 2005-01-10  Jim Meyering  <jim@meyering.net>
82689
82690         * modules/closeout (Depends-on): Add atexit.
82691
82692 2005-01-06  Bruno Haible  <bruno@clisp.org>
82693
82694         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
82695
82696 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82697
82698         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
82699         definitions to be after all include files, to avoid collisions.
82700         Problem reported by Bob Proulx.
82701
82702 2005-01-04  Jim Meyering  <jim@meyering.net>
82703
82704         Changes imported from coreutils.
82705         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
82706         as the mkstemp template, use a temporary directory and an
82707         8.3-friendly template to avoid trouble on systems like DJGPP.
82708         Reported by Juan M. Guerrero via Stepan Kasal.
82709         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
82710         close. Remove the temporary directory right away, rather than waiting
82711         for configure's at-exit trap code to do it.
82712         Suggestion from Stepan Kasal.
82713
82714 2005-01-01  Simon Josefsson  <jas@extundo.com>
82715
82716         * gnulib-tool: Print #include directives when --import'ing.
82717
82718 2004-12-28  Simon Josefsson  <jas@extundo.com>
82719
82720         * tests/test-base64.c: Include required header files.  Remove
82721         unused variables.
82722
82723 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
82724
82725         * modules/error (Depends-on): Remove gettext.
82726
82727 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
82728
82729         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
82730         not needed.  This removes a dependency on the gettext module.
82731         [defined _LIBC]: Do not include <libintl.h>; not needed.
82732
82733 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
82734
82735         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
82736         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
82737
82738 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
82739
82740         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
82741         HAVE_DECL_STRTOLD.
82742
82743 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
82744
82745         * modules/getdate (Depends-on): Remove alloca-opt.
82746
82747 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
82748
82749         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
82750
82751 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
82752
82753         * lib/argp-parse.c: Include <stddef.h>.
82754         (alignof, alignto): New macros.
82755         (parser_init): Don't assume that void * is aligned sufficiently
82756         for struct option.
82757
82758         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
82759         need to extend the stack.
82760         (YYINITDEPTH): New macro, so that the initial stack isn't overly
82761         large.
82762
82763 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82764
82765         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
82766
82767 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
82768
82769         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
82770         (2004-10-24) change.  Apparently this was a false alarm.
82771
82772         * modules/getdate: Depend on alloca-opt, not alloca.
82773
82774 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
82775
82776         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
82777         Remove now-obsolete comment about AIX.
82778         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
82779         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
82780         (YYMAXDEPTH): New macro.
82781
82782 2004-12-18  Simon Josefsson  <jas@extundo.com>
82783
82784         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
82785
82786 2004-12-18  Bruno Haible  <bruno@clisp.org>
82787
82788         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
82789
82790 2004-12-18  Bruno Haible  <bruno@clisp.org>
82791
82792         * lib/fatal-signal.c (fatal_signals): Make non-const.
82793         (init_fatal_signals): New function.
82794         (uninstall_handlers, install_handlers): Ignore signals that were set to
82795         SIG_IGN.
82796         (at_fatal_signal): Call init_fatal_signals.
82797         (init_fatal_signal_set): Likewise. Ignore signals that were set to
82798         SIG_IGN.
82799         Reported by Paul Eggert.
82800
82801 2004-12-18  Bruno Haible  <bruno@clisp.org>
82802
82803         * doc/alloca.texi: New file.
82804         * doc/alloca-opt.texi: New file.
82805
82806 2004-12-17  Jim Meyering  <jim@meyering.net>
82807
82808         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
82809         Otherwise, install-sh could exit with improper exit status when
82810         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
82811
82812 2004-12-16  Simon Josefsson  <jas@extundo.com>
82813
82814         * tests/test-base64.c: Add license.
82815
82816 2004-12-15  Stepan Kasal  <address@hidden>
82817
82818         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
82819
82820 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
82821
82822         * modules/getcwd (Files): Add m4/d-ino.m4.
82823         Suggested by Mark D. Baushke.
82824
82825 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
82826
82827         * lib/getdate.y (textint): New member "negative".
82828         (time_zone_hhmm): New function.
82829         Expect 14 shift-reduce conflicts, not 13.
82830         (o_colon_minutes): New rule.
82831         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
82832         (yylex): Set the "negative" member of signed numbers.
82833
82834 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
82835
82836         * doc/getdate.texi (Time of day items, Time zone items):
82837         Describe new formats +00:00, UTC+00:00.
82838
82839 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82840
82841         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
82842         spurious "-l"s.  Problem reported by Stepan Kasal.
82843
82844 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
82845
82846         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
82847         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
82848
82849 2004-12-04  Simon Josefsson  <jas@extundo.com>
82850
82851         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
82852         Vandoorselaere <yoann@prelude-ids.org>.
82853
82854 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
82855
82856         Changes imported from coreutils.
82857         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
82858         exist.
82859         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
82860
82861 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
82862
82863         Changes imported from coreutils.
82864         * lib/hard-locale.c: Assume <locale.h> exists.
82865         Include "strdup.h".
82866         (GLIBC_VERSION): New macro.
82867         (hard_locale): Assume setlocale exists.
82868         Rewrite to avoid #ifdef.
82869         Use strdup rather than malloc + strcpy.
82870         * lib/human.c: Assume <locale.h> exists.
82871         (human_readable): Assume localeconv exists.
82872
82873 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
82874
82875         * modules/hard-locale (Depends-on): Add strdup.
82876
82877 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
82878
82879         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
82880         convert T2, not T.  (Imported from libc.)
82881
82882 2004-11-30  Simon Josefsson  <jas@extundo.com>
82883
82884         * modules/restrict (License): Change to LGPL.
82885
82886 2004-11-30  Simon Josefsson  <jas@extundo.com>
82887
82888         * m4/restrict.m4: Add copyright and copying conditions.
82889
82890 2004-11-30  Simon Josefsson  <jas@extundo.com>
82891
82892         * m4/base64.m4: New file.
82893
82894 2004-11-30  Simon Josefsson  <jas@extundo.com>
82895
82896         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
82897         base64.
82898
82899         * tests/test-base64.c: New file.
82900
82901         * modules/base64: New file.
82902
82903 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
82904
82905         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
82906         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
82907
82908         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
82909
82910 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
82911
82912         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
82913         (__getcwd.c): Don't restore errno; glibc doesn't.
82914         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
82915         first, falling back to our code only if its results look suspicious.
82916         Ensure that the resulting buffer is only as large as necessary.
82917
82918         * lib/readutmp.c: Include readutmp.h first.
82919         Include <errno.h>, since readutmp.h no longer does that.
82920         * lib/readutmp.h: Don't include <errno.h>,
82921         <sys/param.h>, <time.h>; not needed to establish interface.
82922         (errno): Remove decl.
82923         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
82924         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
82925         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
82926
82927 2004-11-28  Simon Josefsson  <jas@extundo.com>
82928
82929         * lib/base64.h, base64.c: New file.
82930
82931 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
82932
82933         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
82934
82935 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
82936
82937         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
82938         (Depends-on): Remove pathmax, same.  Add mempcpy.
82939         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
82940         (Makefile.am): Append getcwd.h to lib_SOURCES.
82941         (Include): Add getcwd.h.
82942         (Maintainer): Change from Jim Meyering to "all, glibc",
82943         since getdate now uses intended-for-glibc code.
82944         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
82945         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
82946
82947 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82948
82949         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
82950         HP's ANSI C compiler.
82951         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
82952         Declaring int functions causes warnings on some modern systems and
82953         shouldn't be needed to compile on ancient ones.
82954         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
82955         defined.
82956
82957         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
82958         with the following changes.
82959         (__set_errno): Parenthesize properly.
82960         Include <stdbool.h>.
82961         (MIN, MAX, MATCHING_INO): New macros.
82962         (__getcwd): Define with prototype, not K&R form.
82963         Use heuristics to allocate default buffer on stack if possible.
82964         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
82965         behavior, and to avoid the PATH_MAX limit when computing
82966         ../../../../...
82967         Use MATCHING_INO to compare inode number to file.
82968         Check for arithmetic overflow in size calculations.
82969         Fix bug in reallocation of dot array that caused getcwd to fail
82970         on directories nested deeper than 75.
82971         Be more careful about saving errno on error.
82972         Do not use realloc; use only free+malloc, as this is a bit
82973         more flexible and avoids a needless copy operation.
82974         Do not inspect st_dev and st_ino for symbolic links; POSIX
82975         doesn't specify the latter.
82976         Check for closedir errors.
82977         Avoid needless casts.
82978         Use "#ifdef weak_alias" around weak_alias, to be like other
82979         glibc code.
82980         The following changes to getcwd.c have effect only when used in
82981         gnulib; they have no effect inside glibc proper.
82982         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
82983         as alloca isn't used.
82984         (alloca, __alloca): Likewise.
82985         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
82986         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82987         unconditionally, as gnulib assumes C89 or better.
82988         Do not include <sys/param.h>.
82989         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
82990         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
82991         better.
82992         (NULL) [!defined NULL]: Remove; we assume C89 or better.
82993         Include <dirent.h> in a way that is compatible with modern Autoconf.
82994         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
82995         New macros, if not already defined.
82996         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
82997         Use "_LIBC", not "defined _LIBC", for consistency.
82998         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
82999         a mempcpy module.
83000         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83001         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83002         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83003         credit only to Jim Meyering and adjust the copyright dates.
83004         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83005         <stdlib.h>, <unistd.h>, "pathmax.h".
83006         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83007         (INITIAL_BUFFER_SIZE): Remove.
83008         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83009
83010 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83011
83012         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
83013         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
83014         Use the _ONCE methods, for efficiency.
83015         Check for fcntl.h.  In test program, include <errno.h>
83016         and <fcntl.h> if available.  Remove old K&R cruft from
83017         test program.  Check for common errors in GNU/Linux,
83018         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
83019         don't do AC_LIBOBJ, as that's getcwd.m4's job.
83020         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
83021         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
83022         name accordingly.
83023         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
83024         accommodate new getcwd.c.
83025         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
83026         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
83027         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
83028         that's all we need now.
83029
83030 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83031
83032         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
83033         argp-parse.c depends on getopt internals, that means we should
83034         always use our getopt, to be on the safe side.
83035         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
83036         order not to spoil the result of an eventual previous invocation
83037         of gl_GETOPT_SUBSTITUTE.
83038
83039 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83040
83041         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
83042         redefinition warnings. To avoid them, include the defines
83043         in `#if !defined __need_getopt ... #endif'. The only place
83044         where __getopt_argv_const is used is in definitions
83045         of getopt_long and getopt_long_only below, which are as well
83046         protected by `#ifndef __need_getopt'.
83047         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
83048         __need_getopt after including <stdio.h> and <unistd.h> These
83049         headers might have defined it.
83050
83051 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83052
83053         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
83054
83055 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83056
83057         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
83058         (futimens): New function, which uses futimes if available.
83059         (futimens, utimens): Support timespec==NULL, with same semantics
83060         as utime and utimens.
83061         * lib/utimens.h (futimens): New decl.
83062
83063 2004-11-23  Jim Meyering  <jim@meyering.net>
83064
83065         * lib/getopt_.h: Remove trailing blanks.
83066
83067 2004-11-23  Jim Meyering  <jim@meyering.net>
83068
83069         * lib/__fpending.c: Add comment.
83070
83071 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
83072
83073         * modules/canonicalize (Depends-on): Add xreadlink.
83074         Problem reported by James Youngman.
83075
83076 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
83077
83078         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
83079         New macros.
83080         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
83081         optopt): Use them instead of invoking ## directly; otherwise, the
83082         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
83083
83084 2004-11-19  Bruno Haible  <bruno@clisp.org>
83085
83086         * lib/strtok_r.c: Move comments from here...
83087         * lib/strtok_r.h: ... to here.
83088
83089 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83090
83091         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
83092         implementations that mishandle size_t overflow.
83093
83094 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83095
83096         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
83097         might fail.  Problem reported by Yoann Vandoorselaere.
83098         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
83099         implementations that mishandle size_t overflow.
83100
83101 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83102
83103         * modules/canon-host (Depends-on): Add strdup.
83104
83105 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83106
83107         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
83108
83109 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83110
83111         * lib/canon-host.c: Include "strdup.h".
83112         (canon_host): Use getaddrinfo if available, so that IPv6 works.
83113         Use strdup instead of malloc/strcpy to duplicate strings.
83114
83115         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
83116         (human_space_before_unit): New constant.
83117         * lib/human.c (human_readable): Support it.
83118
83119         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
83120         (xgetcwd): Set errno correctly when failing.
83121         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
83122         the failure is actually due to a PATH_MAX problem.
83123
83124         Further getopt changes to make it more likely that glibc will
83125         buy the changes back.
83126         * lib/getopt.c (POSIXLY_CORRECT): New constant.
83127         (getopt): Use it, so to preserve glibc semantic
83128         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
83129         when compiling for libc.
83130         * lib/getopt_.h (__getopt_argv_const): Bring it back.
83131         (getopt_long, getopt_long_only): Use it.
83132
83133         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83134         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
83135         (getopt): Argv is now char * const *, as per standard.
83136         (_getopt_internal_r, _getopt_internal): Argv is now char **,
83137         not char *__getopt_argv_const *.
83138         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83139         _getopt_long_only_r): Likewise.
83140         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
83141         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83142         _getopt_long_r, _getopt_long_only_r): Likewise.
83143         * lib/getopt_.h (__getopt_argv_const): Remove.
83144         (getopt): Argv is now char * const *, as per standard.
83145
83146         * lib/getdate.y (tORDINAL): New token.
83147         (day, relunit): Allow it for relative times.
83148         (relative_time_table): Use tORDINAL for ordinals.
83149
83150 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83151
83152         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
83153         Document that "second" isn't allowed as an ordinal number.
83154
83155 2004-11-16  Jim Meyering  <jim@meyering.net>
83156
83157         * modules/closeout (Depends-on): Add fpending.
83158
83159 2004-11-15  Jim Meyering  <jim@meyering.net>
83160
83161         * lib/closeout.c: Include "__fpending.h" once again.
83162         Include <stdbool.h>.
83163         (close_stdout): Don't fail just because stdout was closed initially,
83164         since some programs don't write to stdout in the normal course of
83165         operation (other than --version and --help), and we don't want this
83166         function to make e.g. `touch file >&-' fail.
83167         But do fail if it was closed and someone has tried to write to it.
83168         E.g., `printf foo >&-' must fail.
83169
83170 2004-11-13  Jim Meyering  <jim@meyering.net>
83171
83172         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
83173
83174 2004-11-12  Simon Josefsson  <jas@extundo.com>
83175
83176         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
83177         small doc fix is still pending.
83178
83179 2004-11-11  Simon Josefsson  <jas@extundo.com>
83180
83181         * modules/strtok_r: New file.
83182
83183         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83184         strtok_r.
83185
83186 2004-11-11  Simon Josefsson  <jas@extundo.com>
83187
83188         * m4/strtok_r.m4: New file.
83189
83190         * m4/getopt.m4: Replace opterr.
83191
83192 2004-11-11  Simon Josefsson  <jas@extundo.com>
83193
83194         * lib/strtok_r.h, strtok_r.c: New file.
83195
83196 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83197
83198         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
83199         of replacing opterr, getopt, etc.  This should handle the
83200         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
83201
83202 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83203
83204         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
83205         we can stop lying to compilers about the constness of argv when we
83206         are compiled outside glibc.
83207         (getopt, getopt_long, getopt_long_only): Use it.
83208         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83209         _getopt_internal, getopt): Likewise.
83210         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83211         _getopt_long_only_r): Likewise.
83212         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83213         _getopt_long_r, _getopt_long_only_r): Likewise.
83214
83215         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
83216         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
83217         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
83218         the other external symbols.
83219         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
83220         declaration, since the above renaming now works around collisions.
83221
83222 2004-11-11  Jim Meyering  <jim@meyering.net>
83223
83224         * lib/linebreak.c: Remove trailing blanks.
83225         * lib/alloca_.h: Likewise.
83226         * lib/acosl.c: Likewise.
83227         * lib/euidaccess.c: Likewise.
83228         * lib/allocsa.h: Likewise.
83229
83230 2004-11-10  Simon Josefsson  <jas@extundo.com>
83231
83232         * m4/getaddrinfo.m4: New file.
83233
83234 2004-11-10  Simon Josefsson  <jas@extundo.com>
83235
83236         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
83237
83238 2004-11-10  Simon Josefsson  <jas@extundo.com>
83239
83240         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83241         getaddrinfo.
83242
83243         * modules/getaddrinfo: New file.
83244
83245 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83246
83247         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
83248
83249 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83250
83251         * lib/mktime.c (SHR): New macro, which is a portable
83252         substitute for >> that should work even on Crays.
83253         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
83254         Problem reported by Mark D. Baushke in
83255         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
83256         * lib/getdate.y (SHR): Likewise.
83257         (tm_diff): Use it.
83258         * lib/strftime.c (SHR): Likewise.
83259         (tm_diff): Use it.
83260         * lib/quotearg.c (struct quoting_options): Use unsigned int for
83261         quote_these_too, so that right shifts are well defined.  All uses
83262         changed.
83263
83264 2004-11-10  Jim Meyering  <jim@meyering.net>
83265
83266         Ensure that no close failure goes unreported.
83267         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
83268         return early when it seems there's nothing to flush.
83269         Don't include __fpending.h.
83270
83271 2004-11-10  Jim Meyering  <jim@meyering.net>
83272
83273         * modules/closeout (Depends-on): Remove fpending.
83274
83275 2004-11-10  Jim Meyering  <jim@meyering.net>
83276
83277         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
83278
83279 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83280
83281         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
83282         gl_FUNC_STRFTIME.
83283         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
83284         and AC_REQUIRE when possible, to avoid duplicate checks.
83285         Check for <wchar.h>.
83286
83287 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83288
83289         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
83290
83291 2004-11-09  Bruno Haible  <bruno@clisp.org>
83292
83293         * m4/sockpfaf.m4: New file.
83294
83295 2004-11-05  Bruno Haible  <bruno@clisp.org>
83296
83297         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
83298         Reported by Mark D. Baushke <mdb@cvshome.org>.
83299
83300 2004-11-04  Bruno Haible  <bruno@clisp.org>
83301
83302         2004-09-11  Bruno Haible  <bruno@clisp.org>
83303                 * allocsa.valgrind: New file.
83304         2004-02-06  Bruno Haible  <bruno@clisp.org>
83305                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
83306                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
83307                 Reported by Christopher Seip <chris.seip@hp.com>.
83308
83309 2004-11-04  Bruno Haible  <bruno@clisp.org>
83310
83311         * modules/allocsa (Files): Add lib/allocsa.valgrind.
83312         (Makefile.am): Distribute it.
83313
83314 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
83315
83316         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
83317         with errno == ERANGE if the buffer is too small.
83318         Problem reported by Mark D. Baushke.
83319
83320 2004-11-03  Albert Chin  <china@thewrittenword.com>
83321             Paul Eggert  <eggert@cs.ucla.edu>
83322
83323         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
83324         equivalent, substitute $ac_type for equivalent type rather than
83325         blindly using uint32_t *always* which won't work if uint32_t is not
83326         available.  Define _UINT32_T to work around typedef of uint32_t if
83327         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
83328         2.5.1.
83329
83330 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83331
83332         * m4/jm-macros.m4: Sync from coreutils.
83333         (gl_MACROS): Check for mbrlen, for pathchk.
83334         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
83335
83336 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83337
83338         * lib/xreadlink.c (MAXSIZE): New macro.
83339         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
83340         size does not exceed MAXSIZE.  Avoid cast.
83341         As suggested by Mark D. Baushke in
83342         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
83343         if readlink fails with buffer size just under MAXSIZE, try again
83344         with MAXSIZE.
83345
83346 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83347
83348         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
83349
83350 2004-11-02  Derek R. Price  <derek@ximbiot.com>
83351         and  Paul Eggert  <eggert@cs.ucla.edu>
83352
83353         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
83354         (get_date): Overparenthesize to avoid GCC warning.
83355
83356 2004-11-02  Bruno Haible  <bruno@clisp.org>
83357
83358         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
83359         returns void.
83360
83361 2004-11-02  Bruno Haible  <bruno@clisp.org>
83362
83363         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
83364         function returns void.
83365
83366 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83367
83368         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
83369         fflush_unlocked, flockfile, funlockfile, funlockfile,
83370         fputs_unlocked, putc_unlocked.
83371
83372 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83373
83374         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
83375         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
83376         already declared.
83377
83378 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83379
83380         * modules/getdate (Files): Add doc/getdate.texi.
83381         (Depends-on): Add setenv, xalloc.
83382
83383 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83384
83385         * lib/getdate.y: Add support for TZ="foo" within a date string.
83386         Fix some bugs near time_t boundaries.  Reject dates with
83387         out-of-range components, e.g., "Sept 31".
83388         Include <stdlib.h>, "setenv.h", "xalloc.h".
83389         (ISDIGIT_LOCALE): Remove; unused.
83390         Note that the TZ and time functions used here are not reentrant.
83391         (mktime_ok, get_tz): New functions.
83392         (TZBUFSIZE): New constant.
83393         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
83394         This requires that we sometimes generate our own TZ="XXX..." setting.
83395
83396 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83397
83398         * doc/getdate.texi: New file, from coreutils with modifications for
83399         the new TZ parsing.
83400
83401 2004-10-27  Derek R. Price  <derek@ximbiot.com>
83402
83403         * lib/mktime.c (not_equal_tm): Remove redundant check.
83404
83405 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83406
83407         * modules/regex (lib_SOURCES): Add regex.c.
83408         Reported by James Youngman in
83409         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
83410
83411 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83412
83413         * lib/getdate.y: Use Bison 1.875 features, and some minor
83414         code cleanups.  This change does not affect semantics.
83415         Don't include <stdlib.h>; no longer needed.
83416         Don't include unlocked-io.h; only the "#if TEST" code uses
83417         stdio, and performance isn't crucial there.
83418         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
83419         Bison 1.875 features as described below.
83420         All uses of "PC." replaced by "pc->".
83421         (YYSTYPE): Add a forward declaration.
83422         (yylex, yyerror): Use full prototypes in forward decls.
83423         Use "%pure-parser" rather than obsolescent "%pure_parser".
83424         Use %parse-param and %lex-param instead of obsolescent
83425         YYPARSE_PARAM and YYLEX_PARAM.
83426         (meridian_table, month_and_day_table, time_units_table,
83427         relative_time_table, time_zone_table, military_table,
83428         lookup_zone, lookup_word, get_date):
83429         Use NULL instead of 0 where appropriate.
83430         (to_hour): Avoid abort (), to avoid a dependency on
83431         stdlib.h.
83432         (yyerror, yylex): Now accepts parser_control * arg.
83433         (main) [TEST]: Use '\0' rather than 0 for char.
83434
83435 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83436
83437         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
83438
83439 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83440
83441         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
83442         It's now the caller's responsibility to handle the case where
83443         !HAVE_GETPAGESIZE && !defined getpagesize.
83444
83445         * lib/mktime.c (leapyear): Arg is long int, not int.
83446
83447 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
83448
83449         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
83450
83451 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
83452
83453         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
83454         missing.  Problem reported by James Youngman.
83455
83456 2004-10-16  Simon Josefsson  <jas@extundo.com>
83457
83458         * gnulib-tool: Fix comments.  Fix parse problem.
83459         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
83460
83461 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
83462
83463         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
83464         implementation of getopt_long.  Problem reported by Alexander Taler in:
83465         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
83466
83467 2004-10-15  Bruno Haible  <bruno@clisp.org>
83468
83469         * gnulib-tool: Untabify. Initialize supplied_libname.
83470         (func_usage): More homogenous output.
83471         (func_modules_transitive_closure, func_modules_to_filelist,
83472         func_emit_lib_Makefile_am): New functions.
83473         (func_import): New function, extracted from big case statement. Use
83474         func_get_license, func_modules_transitive_closure,
83475         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
83476         opt_lgpl. Don't use test -a, as it's not portable.
83477         (func_create_testdir): Use func_modules_transitive_closure,
83478         func_modules_to_filelist, func_emit_lib_Makefile_am.
83479
83480 2004-10-15  Bruno Haible  <bruno@clisp.org>
83481
83482         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
83483
83484 2004-10-15  Bruno Haible  <bruno@clisp.org>
83485
83486         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
83487         the portions belonging to each module.
83488         Suggested by Derek Robert Price <derek@ximbiot.com>.
83489
83490 2004-10-12  Simon Josefsson  <jas@extundo.com>
83491
83492         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
83493         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
83494         to real functions.
83495
83496 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83497
83498         * modules/vsnprintf: New file.
83499
83500 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83501
83502         * m4/vsnprintf.m4: New file.
83503
83504 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83505
83506         * lib/vsnprintf.h: New file.
83507         * lib/vsnprintf.c: New file.
83508
83509 2004-10-11  Bruno Haible  <bruno@clisp.org>
83510
83511         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
83512         vsnprintf.
83513
83514 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83515
83516         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
83517
83518 2004-10-07  Bruno Haible  <bruno@clisp.org>
83519
83520         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
83521         fits into the provided buffer.
83522
83523 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83524
83525         * lib/diacrit.c, diacrit.h: Add GPL notice.
83526
83527         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
83528         notice.
83529         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
83530         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
83531         This avoids a potential constant-folding bug.
83532
83533 2004-10-05  Bruno Haible  <bruno@clisp.org>
83534
83535         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
83536         for the declaration of strsep.
83537
83538 2004-10-05  Bruno Haible  <bruno@clisp.org>
83539
83540         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
83541
83542 2004-10-04  Simon Josefsson  <jas@extundo.com>
83543
83544         * modules/memmem: New file.
83545         * tests/test-memmem.c: New file.
83546         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
83547
83548 2004-10-04  Simon Josefsson  <jas@extundo.com>
83549
83550         * m4/memmem.m4: New file.
83551
83552 2004-10-04  Simon Josefsson  <jas@extundo.com>
83553
83554         * lib/memmem.h: New file.
83555         * lib/memmem.c: New file, taken from glibc.
83556
83557 2004-10-04  Simon Josefsson  <jas@extundo.com>
83558
83559         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
83560         '#ifdef USE_UNLOCKED_IO'.
83561
83562 2004-10-04  Simon Josefsson  <jas@extundo.com>
83563
83564         * config/srclist.txt: Add memmem from glibc.
83565
83566 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83567
83568         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
83569
83570         * modules/argmatch, modules/argp, modules/closeout, modules/error,
83571         modules/exclude, modules/getdate, modules/getline,
83572         modules/getndelim2, modules/getpass, modules/getpass-gnu,
83573         modules/getusershell, modules/linebuffer, modules/md5,
83574         modules/mountlist, modules/posixtm, modules/readtokens,
83575         modules/readutmp, modules/regex, modules/sha1,
83576         modules/version-etc, modules/yesno:
83577         Remove dependency on unlocked-io.
83578
83579 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83580
83581         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
83582
83583         * m4/unlocked-io.m4: Add copyright notice.
83584         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
83585
83586 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83587
83588         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
83589         * lib/xmalloc.c (xmemdup): Likewise.
83590         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
83591         XFREE): Remove these long-obsolescent macros.
83592         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
83593         * lib/xstrdup.c: Remove.
83594
83595         * lib/regex.c (re_comp): Cast gettext return value to char *,
83596         Problem reported by Martin Neitzel via Mark D. Baushke.
83597
83598 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83599
83600         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
83601         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
83602         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
83603         regex.c, sha1.c, version-etc.c, yesno.c:
83604         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
83605         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
83606         the includer's responsibility.
83607
83608         Sync from coreutils.
83609
83610         * lib/modechange.c (mode_compile): Don't decrement a pointer that
83611         points to the start of a string, as the C Standard says the
83612         resulting behavior is undefined.
83613
83614         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
83615         simple -> simple_backups, numbered_existing ->
83616         numbered_existing_backups, numbered -> numbered_backups
83617         to avoid shadowing problems.  All uses changed.
83618         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
83619         * lib/backupfile.c (check_extension, numbered_backup):
83620         Rename locals to avoid shadowing 'basename'.
83621         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
83622         once.
83623
83624         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
83625         * lib/.cvsignore: Add getopt.h.
83626
83627 2004-10-04  Bruno Haible  <bruno@clisp.org>
83628
83629         * modules/README: New file.
83630         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
83631         not a module.
83632
83633 2004-10-02  Jim Meyering  <jim@meyering.net>
83634
83635         * lib/dirfd.h, getpagesize.h: Add copyright notice.
83636
83637 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83638
83639         * modules/strsep: New file.
83640
83641 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83642
83643         * m4/strsep.m4: New file.
83644
83645 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83646
83647         * lib/strsep.h: New file.
83648         * lib/strsep.c: New file.
83649
83650 2004-10-01  Simon Josefsson  <jas@extundo.com>
83651
83652         * lib/snprintf.c (snprintf): Handle size==0.
83653
83654 2004-10-01  Simon Josefsson  <jas@extundo.com>
83655             Bruno Haible  <bruno@clisp.org>
83656
83657         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
83658         (snprintf): Declare 'args'.
83659
83660 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
83661
83662         * lib/snprintf.c: Remove comments as to why each header is needed.
83663
83664 2004-10-01  Bruno Haible  <bruno@clisp.org>
83665
83666         * MODULES.html.sh: Add strsep.
83667
83668 2004-09-30  Simon Josefsson  <jas@extundo.com>
83669
83670         * modules/snprintf: New file.
83671
83672 2004-09-30  Simon Josefsson  <jas@extundo.com>
83673
83674         * m4/snprintf.m4: New file.
83675
83676 2004-09-30  Simon Josefsson  <jas@extundo.com>
83677
83678         * lib/snprintf.h, lib/snprintf.c: New files.
83679
83680 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83681
83682         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
83683         (hol_entry_help): Never translate an empty string.
83684         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
83685         * lib/argp.h (OPTION_NO_TRANS): New option.
83686
83687 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
83688
83689         * modules/argp (Maintainer): Replace Simon Josefsson
83690         by Sergey Poznyakoff.
83691
83692 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
83693
83694         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
83695         changes merged back into glibc.
83696
83697 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
83698
83699         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
83700
83701 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
83702
83703         * lib/xvasprintf.c: Include xalloc.h.
83704         (xvasprintf): Use xalloc_die, not xmalloc_die.
83705
83706 2004-09-29  Bruno Haible  <bruno@clisp.org>
83707
83708         * modules/alloca-opt: New file, derived from modules/alloca.
83709         * modules/allocsa: Depend on alloca-opt instead of alloca.
83710         * modules/setenv: Likewise.
83711         * modules/vasnprintf: Likewise.
83712         * MODULES.html.sh: Add alloca-opt.
83713
83714 2004-09-28  Simon Josefsson  <jas@extundo.com>
83715
83716         * gnulib-tool: New parameter --lgpl, to asseert that modules are
83717         LGPL, and to replace license template from GPL to LGPL.
83718
83719 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
83720
83721         * modules/dummy: Change license to LGPL.
83722
83723 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
83724
83725         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
83726
83727 2004-09-24  Simon Josefsson  <jas@extundo.com>
83728
83729         * modules/minmax (License): Change from GPL to LGPL.
83730
83731 2004-09-23  Simon Josefsson  <jas@extundo.com>
83732
83733         * gnulib-tool (--import): Typo.
83734
83735 2004-09-23  Simon Josefsson  <jas@extundo.com>
83736
83737         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
83738
83739 2004-09-22  Bruno Haible  <bruno@clisp.org>
83740
83741         * modules/*: Add 'License' field.
83742         * gnulib-tool: Accept --extract-license option.
83743         (func_get_license): New function.
83744
83745 2004-09-21  Bruno Haible  <bruno@clisp.org>
83746
83747         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
83748         Reported by Simon Josefsson.
83749
83750 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
83751
83752         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
83753         gl_AC_TYPE_LONG_LONG.
83754
83755 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
83756
83757         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
83758
83759 2004-09-18  Simon Josefsson  <jas@extundo.com>
83760         and  Paul Eggert  <eggert@cs.ucla.edu>
83761
83762         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
83763         calls with autoreconf.  Define GL_LIB.
83764
83765 2004-09-14  Karl Berry  <karl@gnu.org>
83766
83767         * config/srclist.txt: unsync setenv.c, sigh.
83768
83769 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
83770
83771         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
83772         Problem reported by Bruno Haible in:
83773         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
83774
83775 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
83776
83777         * config/srclist.txt: Comment out argp-pvh.c.
83778
83779 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
83780
83781         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
83782         in case some system header has #define'd it.  Problem reported by
83783         Soeren D. Schulze in
83784         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
83785
83786 2004-09-09  Karl Berry  <karl@gnu.org>
83787
83788         * regex.[ch]: delete from the root.  These were supposed to be
83789                 synced with emacs cvs, but this has not happened for about
83790                 a year, and anyway nothing else uses emacs regex.[ch].
83791                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
83792                 lib/regex[.ch] is untouched.
83793
83794 2004-09-09  Bruno Haible  <bruno@clisp.org>
83795
83796         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
83797
83798 2004-09-09  Bruno Haible  <bruno@clisp.org>
83799
83800         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
83801         modifications.
83802         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
83803
83804 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
83805
83806         * modules/xvasprintf: New file.
83807         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
83808
83809 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
83810
83811         * lib/xvasprintf.h: New file.
83812         * lib/xvasprintf.c: New file.
83813         * lib/xasprintf.c: New file.
83814
83815 2004-09-08  Bruno Haible  <bruno@clisp.org>
83816
83817         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
83818
83819 2004-09-08  Bruno Haible  <bruno@clisp.org>
83820
83821         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
83822         length is > INT_MAX.
83823         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
83824         more.
83825
83826 2004-09-08  Bruno Haible  <bruno@clisp.org>
83827
83828         * lib/stdint_.h: New file, taken from GNU clisp.
83829
83830 2004-09-08  Bruno Haible  <bruno@clisp.org>
83831             Oskar Liljeblad  <oskar@osk.mine.nu>
83832
83833         * modules/stdint: New file.
83834         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
83835
83836 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83837
83838         Import from coreutils.
83839         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
83840         strings on unbounded length.  alloca's performance benefits aren't
83841         that important here.
83842         (V_STRDUP): Remove.
83843         (parse_with_separator): New function, with most of the internals
83844         of the old parse_user_spec.  Allow user to omit both user and group,
83845         for compatibility with FreeBSD.
83846         Clone only the user name, not the entire spec.
83847         Do not set *uid, *gid unless entirely successful.
83848         Avoid memory leak in some failing cases.
83849         Fix regression for USER.GROUP reported by Dmitry V. Levin in
83850         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
83851         (parse_user_spec): Rewrite to use parse_with_separator.
83852
83853 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83854
83855         * modules/userspec: Don't depend on alloca.
83856
83857 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83858
83859         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
83860
83861 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
83862
83863         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
83864         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
83865         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
83866
83867 2004-08-16  Simon Josefsson  <jas@extundo.com>
83868
83869         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
83870         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
83871         Add --dry-run for --import.
83872         Let user provided command line parameters override configure.ac
83873         settings.
83874
83875 2004-08-12  Simon Josefsson  <jas@extundo.com>
83876
83877         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
83878         as discussed with Paul Eggert in threads rooted at
83879         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
83880         and
83881         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
83882         Before, the test was empty, and relied on ELIDE_CODE in source
83883         code.)
83884         (gl_PREREQ_GETOPT): New macro.
83885         (gl_GETOPT): Use them.
83886
83887 2004-08-12  Simon Josefsson  <jas@extundo.com>
83888
83889         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
83890         * lib/getopt_.h: Renamed from getopt.h.
83891
83892 2004-08-12  Simon Josefsson  <jas@extundo.com>
83893
83894         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
83895         Change default library name from libfoo to libgnu.
83896         Now, if you have a configure.ac that says:
83897                 gl_SOURCE_BASE(gl)
83898                 gl_M4_BASE(gl/m4)
83899                 gl_MODULES(error getopt etcetera)
83900                 gl_INIT
83901         you can import all you need by running:
83902                 ../gnulib/gnulib-tool --import
83903
83904         * modules/getopt (Files): Rename getopt.h to getopt_.h.
83905         (Makefile.am): Rewrite, use logic from argz.
83906         (Include): Use <getopt.h> instead of "getopt.h".
83907
83908 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83909
83910         * modules/argp (Files): Add m4/unlocked-io.m4.
83911         (Depends-on): Add extensions.
83912
83913 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83914
83915         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
83916         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
83917         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
83918         Check for program_invocation_name, program_invocation_short_name,
83919         flockfile, funlockfile, features.h, _getopt_long_only_r.
83920
83921 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83922
83923         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
83924         its complicated substitute.
83925         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
83926         and program_invocation_name.
83927         (__argp_basename) [!_LIBC]: Remove; the only use was
83928         replaced by its body.
83929         (__argp_short_program_name): Change condition from
83930         !defined __argp_short_program_name to
83931         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
83932         to match argp-namefrob.h.
83933         (__argp_failure): Don't assume strerror_r returns char *.
83934         * lib/argp-parse.c (N_): Define unconditionally.
83935         (argp_default_options): Fill out initializers with 0 to avoid
83936         gcc warnings.
83937
83938 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83939
83940         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
83941         getopt1.c.
83942
83943 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
83944
83945         Merge from coreutils.
83946
83947         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
83948
83949         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
83950         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
83951
83952 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
83953
83954         Merge from coreutils.
83955
83956         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
83957         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
83958         for Reliant Unix 5.43.
83959
83960         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
83961         (union fooround): Use uintmax_t, not long int.
83962         The rest is a merge from libc:
83963         [defined _LIBC]: Include <shlib-compat.h>.
83964         (_obstack) [defined _LIBC]: Remove after 2.3.4.
83965
83966         * lib/settime.c (settime): Recode to avoid warning with
83967         Sun Forte C 6U2.
83968
83969         * lib/strverscmp.c: Convert to UTF-8.
83970
83971 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
83972
83973         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83974         m4/uintmax_t.m4.
83975
83976 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
83977
83978         * modules/xalloc-die: New file.
83979         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
83980
83981         * modules/md5 (Files): Add m4/uint32_t.m4.
83982         * modules/sha1: Renamed from modules/sha.
83983         (Files):
83984         Rename lib/sha.h to lib/sha1.h.
83985         Rename lib/sha.c to lib/sha1.c.
83986         Rename m4/sha.m4 to m4/sha1.m4.
83987         (lib_SOURCES): Likewise.
83988         (configure.ac): Rename gl_SHA to gl_SHA1.
83989         (Include): sha.h -> sha1.h.
83990
83991 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
83992
83993         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
83994         * m4/sha1.m4: Renamed from sha.m4.
83995         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
83996
83997 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
83998
83999         * lib/obstack.h (obstack_empty_p):
84000         Don't assume that chunk->contents is suitably aligned.
84001         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84002         Likewise. Problem reported by Benno in
84003         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84004
84005         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84006         readable.  This could be improved further but it'd take some work.
84007
84008 2004-08-08  Simon Josefsson  <jas@extundo.com>
84009
84010         * modules/xgethostname (Depends-on): Remove exit and error (not
84011         used).
84012
84013         * modules/getpass-gnu: Add getpass.h.
84014         (Depends-on): Add stdbool.
84015         * modules/getpass: Add getpass.h.
84016
84017 2004-08-08  Simon Josefsson  <jas@extundo.com>
84018
84019         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
84020         Check getpass declaration.
84021
84022 2004-08-08  Simon Josefsson  <jas@extundo.com>
84023
84024         * lib/xgethostname.c: Don't include error.h (not used).
84025
84026         * lib/getpass.h: Add.
84027         * lib/getpass.c: Include getpass.h first.
84028
84029 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
84030
84031         * lib/xalloc-die.c: New file.
84032         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
84033         All uses removed.
84034         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
84035         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
84036         xalloc-die.c.
84037         (_, N_, xalloc_die): Move to xalloc-die.c.
84038         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
84039         so that we needn't mess with xalloc_msg_memory_exhausted.
84040
84041         * lib/sha1.h: Renamed from sha.h.
84042         (SHA1_H): Renamed from _SHA_H.
84043         (sha1_ctx): Renamed from sha_ctx.
84044         (sha1_init_ctx): Renamed from sha_init_ctx.
84045         (sha1_process_block): Renamed from sha_process_block.
84046         (sha1_process_bytes): Renamed from sha_process_bytes.
84047         (sha1_finish_ctx): Renamed from sha_finish_ctx.
84048         (sha1_read_ctx): Renamed from sha_read_ctx.
84049         (sha1_stream): Renamed from sha_stream.
84050         (sha1_buffer): Renamed from sha_buffer.
84051         * lib/sha1.c: Likewise; renamed from sha.c.
84052         Do not include <sys/types.h>.
84053         Include <stddef.h> rather than <stdlib.h>.
84054
84055 2004-08-08  Bruno Haible  <bruno@clisp.org>
84056
84057         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
84058         FILESYSTEM_PREFIX_LEN.
84059         * lib/progreloc.c: Likewise.
84060         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
84061
84062 2004-08-06  Simon Josefsson  <jas@extundo.com>
84063
84064         * modules/progname (Depends-on): Don't depend on stdbool.
84065
84066 2004-08-06  Simon Josefsson  <jas@extundo.com>
84067
84068         * modules/getsubopt: New file.
84069         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84070         getsubopt.
84071
84072 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84073
84074         More merge from coreutils.
84075
84076         * m4/utimens.m4, m4/utimecmp.m4: New files.
84077         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
84078         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
84079         prereq.m4, sha.m4: Import changes from coreutils.
84080
84081 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84082
84083         More merge from coreutils.
84084         * modules/raise, modules/readtokens0, modules/utimens:
84085         * modules/utimecmp, module/xnanosleep: New files.
84086         * modules/strftime: Add lib/strftime.h.
84087         Change include from <time.h> to "strftime.h".
84088         * modules/yesno: Add lib/yesno.h.
84089         * modules/backupfile: Remove lib/addext.c.
84090         * modules/euidaccess: Add stat-macros.h.
84091         * modules/canonicalize, modules/euidaccess,
84092         modules/filemode, modules/lchown, modules/makepath,
84093         modules/rmdir, modules/stat: Likewise.
84094
84095 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84096
84097         Merge from tar.
84098         * lib/argp-help.c (make_hol, hol_append): Don't assume that
84099         SIZE_MAX is a valid preprocessor constant.
84100         (__argp_basename): Change from "#ifndef _LIBC"
84101         to "#ifndef __argp_short_program_name", so that
84102         we don't compile these functions for tar.
84103
84104         More merges from coreutils.
84105         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
84106         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
84107         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
84108         * lib/addext.c: Remove; no longer needed.
84109         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
84110         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
84111         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
84112         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
84113         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
84114         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
84115         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
84116         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
84117         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
84118         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84119         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
84120         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
84121         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
84122         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
84123         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
84124         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
84125         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
84126         Import changes from coreutils.
84127
84128 2004-08-05  Simon Josefsson  <jas@extundo.com>
84129
84130         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
84131
84132 2004-08-05  Simon Josefsson  <jas@extundo.com>
84133
84134         * m4/getsubopt.m4: New file.
84135
84136 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84137
84138         Merge from coreutils.
84139
84140         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
84141         * m4/getcwd-path-max.m4: New files.
84142
84143         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
84144         FILESYSTEM_PREFIX_LEN ->
84145         FILE_SYSTEM_PREFIX_LEN.
84146         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
84147         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
84148         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
84149         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
84150
84151         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
84152         prerequisite modules now handle the DOS stuff.
84153         Don't check for unistd.h.
84154
84155 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84156
84157         Merge from coreutils.
84158
84159         * lib/.gdb-history: Remove; this doesn't belong here.
84160
84161         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
84162         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
84163         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
84164         * lib/getcwd.c: New files.
84165
84166         * lib/dirname.h: Include <stdbool.h>.
84167         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
84168         for consistency with POSIX terminology.  All uses changed.
84169         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
84170         (strip_trailing_slashes): Use bool for booleans.
84171         * lib/stripslash.c (strip_trailing_slashes): Likewise.
84172
84173         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
84174         sometimes returns a positive errno value even when it succeeds.
84175         (print_errno_message) [!LIBC]: Fall back on strerror if
84176         __strerror_r fails.
84177
84178         * lib/path-concat.c (mempcpy): Don't define if a system header defines
84179         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
84180         (longest_relative_suffix): New function.
84181         (path_concat): Use it.  Assume first argument is not NULL.
84182         Port to DOS.  Omit redundant separators.
84183         Report an error instead of returning NULL.
84184         Use mempcpy instead of memcpy.
84185         (xpath_concat): Remove: not declared or used.
84186
84187         * lib/same.h: Include <stdbool.h>
84188         (same_name): Return bool, not int.
84189         * lib/same.c (same_name): Likewise.
84190         (errno): Don't declare; we assume C89 or better now.
84191
84192         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
84193         if not already defined.
84194
84195         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
84196         * lib/dup-safer.c (errno): Likewise.
84197
84198 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84199
84200         Merge from coreutils.
84201         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
84202         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
84203         * modules/path-concat: Don't depend on strdup.
84204
84205 2004-08-03  Simon Josefsson  <jas@extundo.com>
84206
84207         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
84208         * lib/progname.h: Don't include stdbool.h.
84209
84210 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84211
84212         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
84213         * MODULES.html.sh (func_all_modules): Remove fatal.
84214
84215 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84216
84217         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
84218
84219 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84220
84221         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
84222         working.
84223
84224 2004-08-02  Simon Josefsson  <jas@extundo.com>
84225
84226         * lib/getsubopt.h: New file, with comments from Bruno Haible.
84227         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
84228         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
84229
84230 2004-08-01  Simon Josefsson  <jas@extundo.com>
84231
84232         * lib/xgetdomainname.c: Include stdlib.h, for free().
84233
84234 2004-07-19  Bruno Haible  <bruno@clisp.org>
84235
84236         * MODULES.html.sh (func_all_modules): Add dummy.
84237
84238 2004-07-16  Simon Josefsson  <jas@extundo.com>
84239
84240         * modules/dummy: New file.
84241
84242 2004-07-16  Simon Josefsson  <jas@extundo.com>
84243
84244         * lib/dummy.c: New file.
84245
84246 2004-07-16  Bruno Haible  <bruno@clisp.org>
84247
84248         * lib/backupfile.h: Add extern "C" for C++.
84249         * lib/closeout.h: Likewise.
84250         * lib/copy-file.h: Likewise.
84251         * lib/findprog.h: Likewise.
84252         * lib/full-write.h: Likewise.
84253         * lib/pathname.h: Likewise.
84254         * lib/progname.h: Likewise.
84255         * lib/stpcpy.h: Likewise.
84256         * lib/stpncpy.h: Likewise.
84257         * lib/strcase.h: Likewise.
84258         * lib/strstr.h: Likewise.
84259         * lib/xalloc.h: Likewise.
84260
84261         * lib/mbswidth.h: Add extern "C" for C++.
84262         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
84263
84264 2004-07-13  Robert Millan  <robertmh@gnu.org>
84265
84266         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
84267
84268 2004-07-09  Simon Josefsson  <jas@extundo.com>
84269
84270         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
84271         failed without this.)
84272
84273 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84274
84275         * modules/chown (Files): Add lib/fchown-stub.c, since
84276         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
84277
84278 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84279
84280         * lib/fchown-stub.c: New file.
84281
84282 2004-06-24  Jim Meyering  <jim@meyering.net>
84283
84284         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
84285
84286 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84287
84288         * modules/argz: Omit "#include".
84289
84290         * MODULES.html.sh (func_all_modules): Add calloc, to match
84291         2004-06-01 addition of calloc module.
84292
84293 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84294
84295         * m4/argz.m4: New file, which is autoupdated from libtool.
84296
84297 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84298
84299         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
84300         libtool.
84301
84302 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84303
84304         * config/srclist-update: Don't insist on "USA." before the
84305         close-comment, as libtool omits the period and puts the */ on a
84306         separate line.
84307         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
84308         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
84309
84310 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
84311
84312         * modules/argz: New file.
84313         * MODULES.html.sh (func_all_modules): Add argz.
84314
84315 2004-06-12  Jim Meyering  <jim@meyering.net>
84316         and  Paul Eggert  <eggert@cs.ucla.edu>
84317
84318         * modules/hash (Files): Add lib/xalloc.h.
84319         * modules/pipe (Depends-on): Add wait-process.
84320         * modules/stat (Depends-on): Add xalloc.
84321         * modules/userspec (Files): Add lib/userspec.h.
84322         * modules/xstrto
84323
84324         Upgrade from gettext-0.13.
84325         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
84326         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
84327         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
84328
84329 2004-06-10  Jim Meyering  <jim@meyering.net>
84330
84331         * lib/calloc.c: New file.
84332
84333 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
84334
84335         * lib/getdate.y (yylex): Allow space between sign and number.
84336         Problem reported by Dan Jacobson.
84337
84338 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
84339
84340         Merge from coreutils CVS.
84341
84342         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
84343         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
84344         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
84345         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
84346         xstrtol.m4: Fix copyright date and/or serial number.
84347
84348         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
84349         See if we need an fchown replacement.
84350         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
84351         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
84352         and use the replacement function if we detect either defect.
84353
84354         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
84355         gl_UTIMECMP.
84356
84357 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
84358         and  Jim Meyering  <jim@meyering.net>
84359
84360         Merge from coreutils CVS.
84361
84362         * lib/stat-macros.h: New file, with contents from file-type.h
84363         and coreutils' system.h.
84364         * lib/file-type.c: Include "stat-macros.h".
84365         * lib/file-type.h (file_type): Move all macro definitions to new file,
84366         stat-macros.h.
84367
84368         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
84369         Wrap old code with this conditional.
84370         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
84371         function that does not dereference symlinks.
84372         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
84373
84374         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
84375         dependency problems.
84376         (xreadlink): Accept new arg SIZE, for efficiency.
84377         All decls and uses changed.
84378         * lib/xreadlink.h: Include <stddef.h>, for size_t.
84379
84380         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
84381         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
84382
84383         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
84384         sysexits.h.
84385
84386 2004-06-01  Jim Meyering  <jim@meyering.net>
84387
84388         * m4/calloc.m4: New file.
84389
84390 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
84391
84392         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
84393         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
84394         Also, fix a typo in a diagnostic.
84395
84396 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
84397
84398         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
84399         or AC_FUNC_REALLOC.
84400
84401 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
84402
84403         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
84404         macros to be defined.
84405         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
84406         the allocator returns NULL because the requested size is zero.
84407
84408 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84409
84410         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
84411         var.  Add comment explaining why libc still defines it.  This
84412         merges the following patch from glibc:
84413         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
84414
84415 2004-05-20  Andreas Schwab  <schwab@suse.de>
84416
84417         * m4/free.m4: Replace free if it not known to work, not the other
84418         way round.
84419
84420 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
84421
84422         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
84423         present in glibc since revision 1.1 of this file.
84424         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
84425         obstack_alignment_mask, obstack_alloc, obstack_base,
84426         obstack_blank, obstack_blank_fast, obstack_chunk_size,
84427         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
84428         obstack_grow0, obstack_init, obstack_int_grow,
84429         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
84430         obstack_next_free, obstack_object_size, obstack_ptr_grow,
84431         obstack_ptr_grow_fast, obstack_room): Remove declarations of
84432         nonexistent functions.
84433
84434 2004-05-18  Karl Berry  <karl@gnu.org>
84435
84436         * config/srclist.txt: break link for vasnprintf.c.
84437
84438 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
84439
84440         Port obstack to the AS/400, where pointers are 16 bytes wide and
84441         you cannot cast an integer to a valid pointer.  This patch is
84442         currently waiting to be integrated into glibc; see
84443         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
84444
84445         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
84446         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
84447         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
84448         (struct obstack): temp member is now a union of a pointer and
84449         an integer, instead of an integer.  All integer uses changed.
84450         This does not affect the physical layout of struct obstack,
84451         except on hosts (like the AS/400) where the size or alignment of
84452         void * is greater than that of ptrdiff_t.
84453         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
84454         __STDC__)]: Store temporary in pointer member of union, not
84455         integer member.
84456         * lib/obstack.c: Include <stddef.h>, for offsetof.
84457         (struct fooalign): Remove; it doesn't need a name.
84458         (union fooround): Change double to long double, and add void *.
84459         (DEFAULT_ALIGNMENT): Use offsetof to compute.
84460         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
84461         not a macro.  Hence the values are always int; so remove all
84462         casts-to-int in uses.
84463
84464 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
84465
84466         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
84467         we can get this patch merged into glibc.
84468
84469 2004-05-17  Derek R. Price  <derek@ximbiot.com>
84470             Paul Eggert  <eggert@cs.ucla.edu>
84471
84472         * m4/argp: Depend on alloca.
84473
84474 2004-05-17  Derek R. Price  <derek@ximbiot.com>
84475             Paul Eggert  <eggert@cs.ucla.edu>
84476
84477         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
84478         freecoding.
84479
84480 2004-05-17  Bruno Haible  <bruno@clisp.org>
84481
84482         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
84483         precision that consists of a '.' followed by an empty digit string.
84484         Patch by Tor Lillqvist <tml@iki.fi>.
84485
84486 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
84487
84488         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
84489         for backward compatibility with older code.  We need our own
84490         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
84491         it under some other name, and our alloca.h will define it.
84492
84493 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
84494             Derek Price  <derek@ximbiot.com>
84495
84496         * lib/alloca.c: Include <alloca.h>, to get our interface.
84497         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
84498         include <alloca.h> first.  Use C89 prototype for alloca; this
84499         requires including <stddef.h> for size_t.  Use extern "C" if C++.
84500         Use #elif for simplicity, since we can assume C89 now.
84501         Don't try to source the system alloca.h since it will not be found
84502         and to prevent recursively including its replacement.
84503         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
84504         * lib/regex.c: Likewise.
84505
84506 2004-05-16  Derek Price  <derek@ximbiot.com>
84507             Paul Eggert  <eggert@cs.ucla.edu>
84508
84509         getline cleanup.  This changes the getndelim2 API: both order of
84510         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
84511         no delimiter).
84512
84513         * lib/getline.c: Don't include stddef.h or stdio.h, since our
84514         interface does that.
84515         (getline): Always use getdelim, so that we don't have two
84516         copies of this code.
84517         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
84518         if available.
84519         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
84520         (GETNDELIM2_MAXIMUM): New macro.
84521         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
84522         instead of the old practice of delim2==0.  All callers changed.
84523         Return -1 on overflow, instead of returning junk.
84524         Do not set *linesize unless allocation succeeds.
84525         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
84526         that we include sys/types.h.
84527         * lib/getnline.h: Likewise.
84528         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
84529         (getndelim2): Reorder arguments.
84530         * lib/getnline.c (getnline, getndelim):
84531         Don't discard the NMAX argument.
84532         (getnline): Invoke getndelim, to avoid code duplication.
84533         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
84534         of (size_t) -1 by callers of the getnline family.
84535
84536 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84537
84538         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
84539         Check for gettimeofday.
84540         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
84541         Check for settimeofday, stime.
84542
84543 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84544
84545         * lib/nanosleep.c (suspended): Change its type from int to
84546         sig_atomic_t volatile.
84547         (first_call): Make it private to rpl_nanosleep, and have it
84548         be zero initially as that's a bit faster.
84549         (my_usleep): Round up fractional times instead of truncating them,
84550         as this is the usual meaning for 'sleep'.
84551
84552         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
84553         doesn't work.
84554         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
84555         (ENOSYS): Define if not defined.
84556         (settime): Fall back on stime if it exists and settimeofday fails.
84557         But don't bother with fallbacks if a method fails with errno == EPERM.
84558
84559 2004-05-11  Jim Meyering  <jim@meyering.net>
84560
84561         Prior to this change, the save_cwd caller required read access to the
84562         current directory on most systems (ones with the fchdir function).
84563
84564         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
84565         fails, try write-only, and finally, resort to using xgetcwd.
84566
84567 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84568
84569         * lib/obstack.c, obstack.h: Import changes from libc.
84570
84571 2004-04-28  Bruno Haible  <bruno@clisp.org>
84572
84573         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
84574         also implicitly appends .exe to executables.
84575         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
84576         accepts Windows pathnames.
84577         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
84578         Treat Cygwin like Windows, since it now accepts Windows pathnames.
84579         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
84580         Treat Cygwin like Windows, since it now accepts Windows pathnames.
84581         Reported by Derek Robert Price <derek@ximbiot.com>.
84582
84583 2004-04-21  Karl Berry  <karl@gnu.org>
84584
84585         * config/srclist.txt (localcharset.c): break sync.
84586
84587 2004-04-20  Paul Eggert  <eggert@twinsun.com>
84588
84589         * m4/host-os.m4: Add a copyright notice.
84590
84591 2004-04-20  Jim Meyering  <jim@meyering.net>
84592
84593         Change UTILS_ to gl_ in AC_DEFINE'd names.
84594         Change utils_- and jm_-prefixed variables, too.
84595         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
84596         UTILS_FUNC_MKDIR_TRAILING_SLASH.
84597         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
84598
84599         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
84600         Don't emit trailing blanks.
84601         Also rename jm_-prefixed variables to have gl_ prefix.
84602
84603         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
84604         Also rename jm_-prefixed variables to have gl_ prefix.
84605
84606         * m4/jm-macros.m4: Reflect the renamings.
84607         * m4/prereq.m4: Likewise.
84608
84609 2004-04-20  Jim Meyering  <jim@meyering.net>
84610
84611         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
84612         memory.
84613
84614 2004-04-20  Jim Meyering  <jim@meyering.net>
84615             Bruno Haible  <bruno@clisp.org>
84616
84617         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
84618         memory when realloc fails.
84619
84620 2004-04-19  Jim Meyering  <jim@meyering.net>
84621
84622         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
84623         now that readutmp.c may call `free (0)'.
84624
84625 2004-04-19  Bruno Haible  <bruno@clisp.org>
84626
84627         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
84628         * m4/inttypes_h.m4: Likewise.
84629         * m4/stdint_h.m4: Likewise.
84630         * m4/intmax_t.m4: Likewise.
84631         * m4/uintmax_t.m4: Likewise.
84632
84633 2004-04-18  Jim Meyering  <jim@meyering.net>
84634
84635         * m4/prereq.m4: Don't forbid jm_ prefix.
84636
84637         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
84638         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
84639         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
84640         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
84641         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
84642         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
84643         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
84644         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
84645         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
84646         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
84647         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
84648         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
84649         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
84650         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
84651         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
84652         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
84653         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
84654         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
84655         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
84656
84657 2004-04-18  Jim Meyering  <jim@meyering.net>
84658
84659         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
84660         failure, don't leak memory and do call END_UTMP_ENT.
84661
84662 2004-04-16  Jim Meyering  <jim@meyering.net>
84663
84664         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
84665         coreutils' stat program.
84666         (gl_PREREQ): Don't require jm_PREREQ_STAT.
84667
84668 2004-04-11  Paul Eggert  <eggert@twinsun.com>
84669
84670         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
84671         C89.
84672         (CHAR_BIT): Remove, since we assume C89.
84673         Include <stdint.h> if available, as per current Autoconf CVS advice.
84674
84675 2004-03-31  Jim Meyering  <jim@meyering.net>
84676
84677         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
84678         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
84679         * m4/xalloc.m4: Likewise.
84680
84681 2004-03-30  Paul Eggert  <eggert@twinsun.com>
84682
84683         Merge from coreutils.
84684
84685         * m4/inttostr.m4: New file.
84686         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
84687         Require AM_STDBOOL_H and gl_TIMESPEC instead.
84688         Require gl_CLOCK_TIME.
84689         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
84690
84691 2004-03-30  Paul Eggert  <eggert@twinsun.com>
84692
84693         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
84694         not bool, to be more consistent with Unix conventions.
84695         Suggested by Bruno Haible.
84696
84697         Merge from coreutils.
84698
84699         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
84700         * lib/umaxtostr.c: New files.
84701
84702         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
84703         the usual <time.h> dance.
84704         (get_date): Change signature to support fractional time stamps.
84705         All callers changed.
84706         * lib/getdate.y: Include "getdate.h" first, as we can now
84707         assume C89 and don't need to worry about 'const'.
84708         Similarly, include "unlocked-io.h" near start, not in middle.
84709         Include <limits.h>.
84710         (textint.value): Use long int rather than int.
84711         (textint.digits): Use size_t rather than int.
84712         (BILLION, LOG10_BILLION): New constants.
84713         (parser_control): New member rel_ns.  Members day_ordinal,
84714         time_zone, month, day, hour, minutes, rel_year, rel_month,
84715         rel_day, rel_hour, rel_minutes, rel_seconds
84716         are now long int, not int.  Member seconds is now struct timespec,
84717         not int.  New member timespec_seen.  Members dates_seen, days_seen,
84718         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
84719         not int.
84720         (%union.intval): Now long int, not int.
84721         New member timespec.
84722         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
84723         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
84724         (spec): Now is a timespec or an item list.
84725         (timespec, items): New nonterminals.
84726         (time, rel, relunit, number, get_date):
84727         Add support for fractional seconds.
84728         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
84729         (gmtime, localtime, mktime): Remove decls; not needed with C89.
84730         (to_hour): First arg is now long int, not int.
84731         (to_year): Returns long int, not int.
84732         Don't treat year -70 like 70.
84733         (tm_diff): Returns long int, not int.
84734         (lookup_word): Use bool instead of int when appropriate.
84735         (yylex): Use size_t for count, not int.
84736         Detect overflow when parsing large integer constants.
84737         Add support for fractions.
84738         (get_date): Make pointers 'const' if possible.
84739         Use more-portable code to detect integer overflow.
84740         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
84741         Don't use ctime; it's not reliable if the year has >4 digits.
84742
84743         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
84744         This is for compatibility with BSD.
84745
84746         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
84747         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
84748         From coreutils' system.h.
84749
84750         * lib/userspec.c: Don't include "posixver.h".
84751         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
84752         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
84753         compatible extension.  Simplify code by removing a boolean int
84754         that was always nonzero if a string was nonnull.
84755
84756 2004-03-30  Jim Meyering  <jim@meyering.net>
84757
84758         Merge from coreutils.
84759
84760         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
84761         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
84762         on some systems one must include <grp.h> before it.
84763         Reported by Christian Krackowizer.
84764
84765 2004-03-30  Jim Meyering  <jim@meyering.net>
84766
84767         Merge from coreutils.
84768
84769         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
84770
84771         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
84772         an empty input stream.
84773
84774         * lib/readtokens.c: Include <stdbool.h>.
84775         (readtoken): Use `size_t' rather than int/long.
84776         All callers adjusted.
84777         Use `bool' rather than `int' where appropriate.
84778         Use memset rather than an explicit loop.
84779         Use x2nrealloc rather than xrealloc.
84780         Allow the use of `\0' as a delimiter.
84781         (readtokens): Likewise.
84782         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
84783
84784 2004-03-30  Jim Meyering  <jim@meyering.net>
84785
84786         * m4/realloc.m4: Remove file, since now it does no more than
84787         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
84788         the `configure.ac' section of module/realloc.
84789         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
84790
84791 2004-03-30  Bruno Haible  <bruno@clisp.org>
84792
84793         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
84794         nonnull.
84795
84796 2004-03-29  Paul Eggert  <eggert@twinsun.com>
84797
84798         Merge changes to getloadavg.c from coreutils and Emacs.
84799
84800         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
84801         Define to an expression, not to the empty string.
84802         Include cloexec.h and xalloc.h.
84803         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
84804         Use set_cloexec_flag rather than rolling our own.
84805         * lib/cloexec.c, lib/cloexec.h: New files.
84806
84807 2004-03-29  Paul Eggert  <eggert@twinsun.com>
84808
84809         * m4/cloexec.m4: New file.
84810
84811 2004-03-18  Paul Eggert  <eggert@twinsun.com>
84812
84813         * lib/getopt.h: Sync with libc CVS.
84814
84815 2004-03-18  Paul Eggert  <eggert@twinsun.com>
84816             Bruno Haible  <bruno@clisp.org>
84817
84818         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
84819         mbswidth.
84820
84821 2004-03-18  Paul Eggert  <eggert@twinsun.com>
84822             Bruno Haible  <bruno@clisp.org>
84823
84824         * lib/mbswidth.h: Include <wchar.h> only if
84825         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
84826         <wchar.h>.
84827         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
84828
84829 2004-03-09  Paul Eggert  <eggert@twinsun.com>
84830
84831         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
84832         Sync with libc CVS.
84833         * lib/getopt_int.h: New file, also synced from libc.
84834
84835 2004-03-09  Paul Eggert  <eggert@twinsun.com>
84836
84837         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
84838         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
84839         Bring back getopt.c, getopt.h, getopt1.c.
84840
84841 2004-03-07  Paul Eggert  <eggert@twinsun.com>
84842
84843         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
84844         All uses changed.  Check for sa_sigaction member; this fixes
84845         a bug first reported by Jason Andrade in
84846         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
84847
84848 2004-03-07  Paul Eggert  <eggert@twinsun.com>
84849
84850         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
84851         '#if' expressions.  Unlike the code it replaces, it does not
84852         depend on (defined _SC_PAGESIZE).  However, it does depend on
84853         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
84854         first reported by Jason Andrade in
84855         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
84856
84857 2004-02-25  Simon Josefsson  <jas@extundo.com>
84858
84859         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
84860
84861 2004-02-25  Simon Josefsson  <jas@extundo.com>
84862
84863         * lib/strdup.h: New file.
84864         * lib/strdup.c: Include it.
84865         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
84866         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
84867
84868 2004-02-23  Karl Berry  <karl@gnu.org>
84869
84870         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
84871         (from fencepost.gnu.org:/gd/gnuorg).
84872
84873 2004-02-23  Karl Berry  <karl@gnu.org>
84874
84875         * config/srclistvars.sh (GNUORG) [karl]: redefine.
84876         * config/srclist.txt: add maintain/standards documents.
84877
84878 2004-02-18  Bruno Haible  <bruno@clisp.org>
84879
84880         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
84881         Reported by Derek Robert Price <derek@ximbiot.com>.
84882
84883 2004-02-16  Karl Berry  <karl@gnu.org>
84884
84885         * config/mkinstalldirs, install-sh: update from automake.
84886
84887 2004-02-06  Karl Berry  <karl@gnu.org>
84888
84889         * m4/po.m4: update from gettext 0.14.1.
84890
84891 2004-02-06  Karl Berry  <karl@gnu.org>
84892
84893         * lib/config.charset: update from gettext 0.14.1.
84894
84895 2004-02-05  Paul Eggert  <eggert@twinsun.com>
84896
84897         Add comments and code, prompted by suggestions from Bruno Haible
84898         for sh-quote.
84899         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
84900         describing the enum quoting_style values.
84901         * lib/quotearg.c (quotearg_alloc): New function.
84902         (quotearg_buffer_restyled): Treat lone { and } as special.
84903         Treat = as special.  Work around bug with older shells
84904         that "see" a '\' that is really the 2nd byte of a multibyte char.
84905         Quote empty string with shell_quoting_style.
84906
84907 2004-02-03  Bruno Haible  <bruno@clisp.org>
84908
84909         * m4/pipe.m4: New file, from GNU gettext.
84910
84911 2004-02-03  Bruno Haible  <bruno@clisp.org>
84912
84913         * lib/pipe.h: New file, from GNU gettext.
84914         * lib/pipe.c: New file, from GNU gettext.
84915
84916 2004-01-27  Bruno Haible  <bruno@clisp.org>
84917
84918         * m4/execute.m4: New file, from GNU gettext.
84919
84920 2004-01-27  Bruno Haible  <bruno@clisp.org>
84921
84922         * lib/execute.h: New file, from GNU gettext.
84923         * lib/execute.c: New file, from GNU gettext.
84924         * lib/w32spawn.h: New file, from GNU gettext.
84925
84926 2004-01-24  Paul Eggert  <eggert@twinsun.com>
84927
84928         Merge from diffutils.
84929
84930         * lib/file-type.c (file_type): Add typed memory objects.
84931         * lib/file-type.h (S_TYPEISTMO): New macro.
84932
84933         * lib/c-stack.h (c_stack_action): Remove argv argument.
84934         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
84935         (die): Don't calculate message unless segv_action returns.
84936         (get_stack_location, min_address_from_argv, max_address_from_argv,
84937         volatile stack_base, volatile_stack_size): Remove.
84938         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
84939         that every segmentation violation is a stack overflow.  (Ouch!)
84940         See Debian bug 136249 (still outstanding) for more info about why
84941         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
84942
84943 2004-01-24  Paul Eggert  <eggert@twinsun.com>
84944
84945         Exit-status fix from coreutils.
84946
84947         Use exit_failure consistently in place of EXIT_FAILURE,
84948         so that program exit statuses are consistent on failure.
84949
84950         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
84951         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
84952         * lib/argmatch.h: Comment fix to match the above.
84953         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
84954         Now a macro referring to exit_failure, instead of a separate
84955         variable.  Include "exitfail.h" to get it.
84956         * lib/xstrtol.h: Include "exitfail.h".
84957         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
84958
84959         * lib/long-options.c (parse_long_options): Use prototype
84960         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
84961         for clarity.
84962
84963 2004-01-21  Jim Meyering  <jim@meyering.net>
84964
84965         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
84966         so as not to conflict with a different-sized __mktime_internal
84967         function in GNU libc.
84968         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
84969         Problem building statically-linked `ls' reported by Michael Brunnbauer.
84970
84971 2004-01-20  Karl Berry  <karl@gnu.org>
84972
84973         * config/config.guess: update from config.
84974
84975         * config/srclistvars.sh: GNUWWWLICENSES for karl.
84976
84977 2004-01-20  Bruno Haible  <bruno@clisp.org>
84978
84979         Safer stack allocation.
84980         * lib/setenv.c: Include allocsa.h.
84981         (alloca): Remove fallback definition.
84982         (freea): Remove macro.
84983         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
84984         instead of freea.
84985
84986 2004-01-20  Bruno Haible  <bruno@clisp.org>
84987
84988         * m4/eealloc.m4: New file, from GNU gettext.
84989
84990 2004-01-20  Bruno Haible  <bruno@clisp.org>
84991
84992         * m4/allocsa.m4: New file, from GNU gettext.
84993
84994 2004-01-20  Bruno Haible  <bruno@clisp.org>
84995
84996         * lib/xallocsa.h: New file, from GNU gettext.
84997         * lib/xallocsa.c: New file, from GNU gettext.
84998
84999 2004-01-20  Bruno Haible  <bruno@clisp.org>
85000
85001         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85002
85003 2004-01-20  Bruno Haible  <bruno@clisp.org>
85004
85005         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85006         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85007         specially.
85008
85009 2004-01-20  Bruno Haible  <bruno@clisp.org>
85010
85011         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
85012         patch.
85013
85014 2004-01-20  Bruno Haible  <bruno@clisp.org>
85015
85016         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
85017
85018 2004-01-20  Bruno Haible  <bruno@clisp.org>
85019
85020         * lib/eealloc.h: New file.
85021
85022 2004-01-20  Bruno Haible  <bruno@clisp.org>
85023
85024         * lib/binary-io.h: Avoid warnings on Cygwin.
85025
85026 2004-01-20  Bruno Haible  <bruno@clisp.org>
85027
85028         * lib/allocsa.h: New file, from GNU gettext.
85029         * lib/allocsa.c: New file, from GNU gettext.
85030
85031 2004-01-18  Karl Berry  <karl@gnu.org>
85032
85033         * doc/gpl.texi, doc/lgpl.texi: new files.
85034
85035 2004-01-18  Karl Berry  <karl@gnu.org>
85036
85037         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
85038         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
85039
85040 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85041
85042         Merge from coreutils.
85043
85044         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
85045         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
85046         (gl_DEFAULT_POSIX2_VERSION): Move
85047         the documentation from 'configure' into 'config.hin',
85048         so that 'configure --help' isn't burdened by it and
85049         we don't have to worry about its formatting there.
85050         Reword the documentation so that it's more succinct
85051         and can be run together into a single paragraph.
85052         * m4/same.m4 (gl_SAME): Check for pathconf.
85053
85054 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85055
85056         Merge from coreutils.
85057
85058         * lib/posixver.c: Include posixver.h.
85059
85060         * lib/same.c: Include <stdbool.h>, <limits.h>.
85061         (_POSIX_NAME_MAX): Define if not defined.
85062         (MIN): New macro.
85063         (same_name): If file names are silently truncated, report
85064         that the file names are the same if they are the same after
85065         the silent truncation.
85066
85067         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
85068         conversion function.
85069         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
85070         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
85071         longer needed.
85072
85073 2004-01-15  Jim Meyering  <jim@meyering.net>
85074
85075         Merge from coreutils.
85076
85077         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
85078         if no library is required.
85079         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
85080         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
85081         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
85082         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
85083         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
85084         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
85085         value, $ac_cv_search_crypt, if it's "none required".
85086         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
85087         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
85088         not gl_FUNC_GETLOADAVG.
85089         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
85090         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
85091
85092 2004-01-15  Jim Meyering  <jim@meyering.net>
85093
85094         Merge from coreutils.
85095
85096         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
85097         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
85098         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
85099
85100         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
85101         optional configure-time default.
85102
85103         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85104
85105         * lib/xreadlink.c (xreadlink): Correct outdated comment.
85106
85107 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
85108
85109         Merge from coreutils.
85110
85111         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
85112         value, $ac_cv_search_nanosleep, if it's "none required".
85113
85114 2004-01-14  Paul Eggert  <eggert@twinsun.com>
85115
85116         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
85117         with like-named macro in fnmatch.c.
85118         (EXT): Use an internal constant instead.
85119
85120         Merge fnmatch patches from glibc.
85121         * lib/fnmatch.c (mbsinit): Remove define.
85122         Add libc_hidden_ver (__fnmatch, fnmatch).
85123         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
85124         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
85125
85126 2004-01-14  Karl Berry  <karl@gnu.org>
85127
85128         * config/install-sh: update from automake.
85129
85130 2004-01-13  Karl Berry  <karl@gnu.org>
85131
85132         * config/install-sh: update from automake.
85133
85134 2004-01-09  Karl Berry  <karl@gnu.org>
85135
85136         * config/install-sh: update from automake.
85137
85138 2004-01-05  Karl Berry  <karl@gnu.org>
85139
85140         * config/config.{sub,guess}: update from config.
85141
85142 2003-12-31  Karl Berry  <karl@gnu.org>
85143
85144         * config/depcomp: update from automake.
85145
85146 2003-12-14  Karl Berry  <karl@gnu.org>
85147
85148         * lib/config.charset: update from gettext-runtime.
85149
85150 2003-12-03  Paul Eggert  <eggert@twinsun.com>
85151
85152         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
85153         Bug reported by Alfred M. Szmidt.
85154
85155 2003-12-03  Bruno Haible  <bruno@clisp.org>
85156
85157         * m4/gettext.m4: Upgrade from gettext-0.13.
85158         * m4/po.m4: Upgrade from gettext-0.13.
85159         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
85160         * m4/intmax.m4: New file, from gettext-0.13.
85161         * m4/printf-posix.m4: New file, from gettext-0.13.
85162
85163 2003-11-29  Karl Berry  <karl@gnu.org>
85164
85165         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
85166
85167 2003-11-25  Paul Eggert  <eggert@twinsun.com>
85168             Bruno Haible  <bruno@clisp.org>
85169
85170         * lib/printf-parse.h: Don't include sys/types.h.
85171         (ARG_NONE): New macro.
85172         (char_directive): Change type of *arg_index fields to size_t.
85173         * lib/printf-parse.c: Don't include sys/types.h.
85174         (SSIZE_MAX): Remove macro.
85175         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
85176         Remove unnecessary overflow check.
85177         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
85178         fields.
85179
85180 2003-11-25  Bruno Haible  <bruno@clisp.org>
85181
85182         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
85183
85184 2003-11-25  Bruno Haible  <bruno@clisp.org>
85185
85186         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
85187         gt_TYPE_SSIZE_T.
85188
85189 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85190
85191         * modules/alloca: Remove dependency on xalloc.
85192
85193 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85194
85195         * lib/alloca.c: Remove dependency on xalloc module.
85196         (xalloc_die): Remove.
85197         (memory_full) [!defined emacs]: New macro.
85198         [!defined emacs]: Don't include xalloc.h.
85199         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
85200         address arithmetic overflows.  Change datatypes a bit to avoid
85201         unnecessary casts.
85202
85203 2003-11-22  Jim Meyering  <jim@meyering.net>
85204
85205         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
85206         s/size/size_t/.
85207
85208 2003-11-21  Karl Berry  <karl@gnu.org>
85209
85210         * config/config.{sub,guess}: update from config.
85211
85212 2003-11-18  Karl Berry  <karl@gnu.org>
85213
85214         * config/config.{sub,guess}: update from config.
85215
85216         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
85217
85218 2003-11-17  Paul Eggert  <eggert@twinsun.com>
85219
85220         * README: Mention that S+T cannot overflow if S is the size of
85221         an existing object and T is sufficiently small.
85222
85223 2003-11-17  Jim Meyering  <jim@meyering.net>
85224
85225         On systems without utime and without a utimes function capable of
85226         dealing with a NULL struct utimbuf* argument, this utime replacement
85227         could -- in unusual circumstances -- leak a file descriptor.
85228         * lib/utime.c: Include <unistd.h> and <errno.h>.
85229         (utime_null): Be sure to close `fd' and to preserve errno.
85230         Reported by Geoff Collyer via Arnold Robbins.
85231
85232 2003-11-17  Bruno Haible  <bruno@clisp.org>
85233
85234         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
85235         (Depends-on): Add xsize.
85236
85237 2003-11-17  Bruno Haible  <bruno@clisp.org>
85238
85239         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
85240
85241 2003-11-17  Bruno Haible  <bruno@clisp.org>
85242
85243         * lib/vasnprintf.c (alloca): Remove fallback definition.
85244         (freea): Remove definition.
85245         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
85246         Reported by Paul Eggert.
85247
85248 2003-11-16  Paul Eggert  <eggert@twinsun.com>
85249             Bruno Haible  <bruno@clisp.org>
85250
85251         Protect against address arithmetic overflow.
85252         * lib/printf-args.h: Include stddef.h.
85253         (arguments): Change type of field 'count' to size_t.
85254         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
85255         'unsigned int' where appropriate.
85256         * lib/printf-parse.h: Include sys/types.h.
85257         (char_directive): Change type of *arg_index fields to ssize_t.
85258         (char_directives): Change type of fields 'count', max_*_length to
85259         size_t.
85260         * lib/printf-parse.c: Include sys/types.h and xsize.h.
85261         (SSIZE_MAX): Define fallback value.
85262         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
85263         instead of 'int' where appropriate. Check a_allocated, d_allocated
85264         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
85265         * lib/vasnprintf.c: Include xsize.h.
85266         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
85267         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
85268         overflow. Avoid wraparound when converting a width or precision from
85269         decimal to binary.
85270
85271 2003-11-16  Bruno Haible  <bruno@clisp.org>
85272
85273         Update from GNU gettext.
85274         * lib/printf-parse.c: Generalize to it can be compiled for wide
85275         strings.
85276         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
85277         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
85278         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
85279         SNPRINTF): New macros.
85280         Don't include <alloca.h> if the file is used inside libintl.
85281         (local_wcslen): New function, for Solaris 2.5.1.
85282         (VASNPRINTF): Use it instead of wcslen.
85283
85284 2003-11-16  Bruno Haible  <bruno@clisp.org>
85285
85286         * lib/xsize.h (xmax): New function.
85287         (xsum, xsum3, xsum4): Declare as "pure" functions.
85288
85289 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85290
85291         * modules/xalloc (Files): Undo latest change, since xalloc.h
85292         no longer needs SIZE_MAX or PTRDIFF_MAX.
85293
85294 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85295
85296         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
85297         gl_PTRDIFF_MAX.
85298
85299 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85300
85301         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
85302         "return", to pacify some unknown compiler.  Problem reported
85303         by Joerg Schilling.
85304
85305 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85306
85307         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
85308         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
85309         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
85310         heuristic is just as accurate as far as we know, and it removes a
85311         dependency on size_max.m4 and ptrdiff_max.m4.
85312
85313 2003-11-11  Bruno Haible  <bruno@clisp.org>
85314
85315         * modules/xsize (Files): Add m4/size_max.m4.
85316         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
85317
85318 2003-11-11  Bruno Haible  <bruno@clisp.org>
85319
85320         * m4/size_max.m4: New file.
85321         * m4/ptrdiff_max.m4: New file.
85322         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
85323         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
85324         (gl_XALLOC): Invoke it.
85325
85326 2003-11-11  Bruno Haible  <bruno@clisp.org>
85327
85328         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
85329         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
85330         defined.
85331
85332 2003-11-10  Paul Eggert  <eggert@twinsun.com>
85333
85334         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
85335         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
85336         rejected some allocations of exactly SIZE_MAX - 2 bytes.
85337         From Bruno Haible.
85338         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
85339         not (size_t) -1, since it's defined here.
85340
85341 2003-11-09  Karl Berry  <karl@gnu.org>
85342
85343         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
85344
85345 2003-11-06  Paul Eggert  <eggert@twinsun.com>
85346
85347         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
85348         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
85349         Reject sizes of exactly SIZE_MAX bytes.
85350         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
85351         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
85352
85353 2003-11-05  Bruno Haible  <bruno@clisp.org>
85354
85355         * lib/xsize.h: Include limits.h, to avoid a possible collision with
85356         SIZE_MAX defined in <limits.h> on Solaris.
85357
85358 2003-11-04  Jim Meyering  <jim@meyering.net>
85359
85360         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
85361         variable names, rather than @VAR@.
85362         * modules/poll: Likewise.
85363
85364 2003-11-04  Bruno Haible  <bruno@clisp.org>
85365
85366         * modules/xsize: New file.
85367         * modules/linebreak: Depend on xsize.
85368         * MODULES.html.sh (func_all_modules): Add xsize.
85369
85370 2003-11-04  Bruno Haible  <bruno@clisp.org>
85371
85372         * m4/xsize.m4: New file.
85373
85374 2003-11-04  Bruno Haible  <bruno@clisp.org>
85375
85376         * lib/xsize.h: New file.
85377         * lib/linebreak.c: Include xsize.h.
85378         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
85379         argument for overflow.
85380         Suggested by Paul Eggert.
85381
85382 2003-11-03  Karl Berry  <karl@gnu.org>
85383
85384         * config/config.{guess,sub}: update from config.
85385
85386 2003-11-03  Jim Meyering  <jim@meyering.net>
85387
85388         * modules/userspec (lib_SOURCES): Add userspec.h.
85389         (Include): Add "userspec.h".
85390         Improve description.
85391
85392 2003-11-03  Jim Meyering  <jim@meyering.net>
85393
85394         * lib/userspec.c: Include "userspec.h".
85395         * lib/userspec.h: New file.
85396
85397 2003-11-03  Bruno Haible  <bruno@clisp.org>
85398
85399         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
85400
85401 2003-11-03  Bruno Haible  <bruno@clisp.org>
85402
85403         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
85404         available, to avoid (extremely rare) race condition.
85405         Suggested by Paul Eggert.
85406
85407 2003-11-02  Karl Berry  <karl@gnu.org>
85408
85409         * config/srclist.txt (vasprintf.c): sync broken, sigh.
85410
85411 2003-10-31  Paul Eggert  <eggert@twinsun.com>
85412
85413         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
85414         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
85415         (read_filesystem_list): Set and use me_type_malloced.
85416         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
85417         whatever the type happens to be), for brevity and consistency.
85418         Check for size calculation overflow on Alphas running OSF/1.
85419
85420 2003-10-31  Jim Meyering  <jim@meyering.net>
85421
85422         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
85423
85424         * lib/linebuffer.c: Include <string.h> for declaration of memset.
85425
85426 2003-10-30  Paul Eggert  <eggert@twinsun.com>
85427             Bruno Haible  <bruno@clisp.org>
85428
85429         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
85430         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
85431
85432 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
85433
85434         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
85435         netbsd*-gnu*.  Suggested by Robert Millan.
85436
85437 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85438
85439         * modules/group-member: Depend on stdbool.
85440
85441 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85442
85443         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
85444
85445 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85446
85447         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
85448         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
85449         after the 'gnu' in these cases.  This fixes some bugs in the
85450         previous change, and is based on suggestions by Robert Millan.
85451
85452 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85453
85454         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
85455         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
85456         no longer needed.
85457         * lib/quotearg.c (quotearg_n_options): Use it.
85458         * lib/group-member.c: Include <stdbool.h>.
85459         (free_group_info): Arg is now const *; don't free arg.
85460         (get_group_info): Now returns bool and accepts struct group_info *,
85461         rather than returning a malloc'ed struct group_info *.
85462         All uses changed.  Check for overflow in internal size calculation.
85463
85464         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
85465         rather than xmalloc/xrealloc.
85466         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
85467         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
85468         conformance bug: the old code used a pointer after freeing the
85469         storage that it addressed.
85470         * lib/hash.c (hash_initialize): Simplify the code by using
85471         xalloc_oversized rather than doing it by hand.
85472         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
85473         the buffer preserved.  Use free and xmalloc instead.
85474         * lib/quotearg.c (quotearg_n_options): Likewise.
85475         Use a simpler test for size overflow.  Don't use xalloc_oversized
85476         because unsigned int might be wider than size_t (!); this suggests
85477         that we should switch from unsigned int to size_t for slot numbers.
85478
85479 2003-10-28  Paul Eggert  <eggert@twinsun.com>
85480
85481         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
85482         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
85483         NetBSD kernels.  Requested by Richard Stallman.
85484
85485 2003-10-27  Paul Eggert  <eggert@twinsun.com>
85486
85487         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
85488         to allocate the returned structure.  Do not allocate a subarray,
85489         as x2nrealloc will do that.
85490         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
85491         instead of xnrealloc.
85492         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
85493
85494 2003-10-27  Bruno Haible  <bruno@clisp.org>
85495
85496         * lib/stdbool_.h: Better support for BeOS.
85497
85498 2003-10-26  Paul Eggert  <eggert@twinsun.com>
85499
85500         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
85501         now uses inline.
85502
85503 2003-10-26  Paul Eggert  <eggert@twinsun.com>
85504
85505         * lib/xalloc.h (xalloc_oversized): New static inline function, for
85506         callers that want to do their own size-overflow checking.  Include
85507         <stdbool.h>, since xalloc_oversized returns bool.
85508         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
85509         to use xalloc_oversized.
85510
85511         Add two functions x2realloc, x2nrealloc, for programs that grow
85512         arrays dynamically by doubling their sizes.
85513         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
85514         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
85515         New functions.
85516
85517         Port to C99 semantics for 'inline' of external functions.
85518         Bug reported by Bruno Haible.
85519         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
85520         with the old contents of xnmalloc.
85521         (xnmalloc, xmalloc): Use it.
85522         (xnrealloc_inline): New static inline function,
85523         with the old contents of xnrealloc.
85524         (xnrealloc, xrealloc): Use it.
85525
85526         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
85527         that.
85528
85529 2003-10-26  Karl Berry  <karl@gnu.org>
85530
85531         * config/srclist.txt (COPYING.DOC): no longer available from
85532         /gd/gnuorg; don't know where the ultimate source is.
85533
85534 2003-10-25  Paul Eggert  <eggert@twinsun.com>
85535
85536         Fix several address-calculation bugs in the hash modules,
85537         plus some minor code cleanup.
85538
85539         * lib/hash.h: Include <stdbool.h>, for bool.
85540         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
85541         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
85542         hash_get_n_entries, hash_get_max_bucket_length,
85543         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
85544         hash_rehash): Use size_t rather than unsigned.
85545         * lib/hash.c (struct hash_table, hash_get_n_buckets,
85546         hash_get_n_buckets_used, hash_get_n_entries,
85547         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
85548         hash_get_entries, hash_do_for_each, hash_string, is_prime,
85549         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
85550         Likewise.
85551         (SIZE_MAX): Define if not defined.
85552         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
85553         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
85554         hash_print):
85555         Use const * when possible.
85556         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
85557         (check_tuning): Fix bug: if tuning parameters were very close to
85558         0 or 1, rounding errors could have caused subscript violations.
85559         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
85560         (hash_initialize): Add 'fail:' label
85561         to free table and return NULL, and use it to simplify code.
85562         Use calloc rather than clearing the storage ourself.
85563         (hash_initialize, hash_rehash): Check for arithmetic overflow in
85564         buffer size calculations.
85565         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
85566         Include <stddef.h>, for size_t.
85567         * lib/hash-pjw.c (hash_pjw): Likewise.
85568         Switch to method described by Bruno Haible.
85569         Include <limits.h>, for CHAR_BIT.
85570         (SIZE_BITS): New macro.
85571
85572 2003-10-23  Paul Eggert  <eggert@twinsun.com>
85573
85574         * m4/getline.m4 (AM_FUNC_GETLINE):
85575         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
85576         hosts.  Problem reported by Derek Robert Price in
85577         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
85578         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
85579         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
85580
85581 2003-10-21  Paul Eggert  <eggert@twinsun.com>
85582
85583         * lib/getndelim2.c (getndelim2): When size calculation overflows,
85584         ceiling the allocation at NMAX bytes rather than silently
85585         discarding input bytes before NMAX is reached.  This makes
85586         a difference only if NMAX exceeds SIZE_MAX / 2.
85587
85588         * lib/obstack.c: Merge from glibc.
85589         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
85590         Add libc_hidden_def (_obstack_newchunk).
85591         (_obstack_free) [! defined _LIBC]: Remove.
85592         [defined _LIBC]: Make a strong alias from obstack_free, rather than
85593         a clone of the function body.
85594         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
85595         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
85596
85597         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
85598         glibc.
85599         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
85600         arg to memcpy.
85601
85602         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
85603         (obstack_ptr_grow_fast, obstack_int_grow_fast):
85604         Don't use lvalue casts, as GCC plans to remove support for them
85605         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
85606         was also present in the non-GCC version, indicating that this
85607         code had always been buggy and had never been widely used.
85608         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
85609         Use the fast variant of each macro, rather than copying the
85610         definiens of the fast variant; that way, we'll be more likely to
85611         catch future bugs in the fast variants.
85612
85613 2003-10-20  Bruno Haible  <bruno@clisp.org>
85614
85615         * modules/wait-process: New file.
85616         * MODULES.html.sh (func_all_modules): Add wait-process.
85617
85618 2003-10-20  Bruno Haible  <bruno@clisp.org>
85619
85620         * m4/wait-process.m4: New file.
85621
85622 2003-10-20  Bruno Haible  <bruno@clisp.org>
85623
85624         * lib/wait-process.h: New file, from GNU gettext.
85625         * lib/wait-process.c: New file, from GNU gettext.
85626
85627 2003-10-19  Jim Meyering  <jim@meyering.net>
85628
85629         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
85630         HPUX 10.20.
85631
85632 2003-10-18  Karl Berry  <karl@gnu.org>
85633
85634         * config/config.guess: update from config.
85635
85636 2003-10-16  Paul Eggert  <eggert@twinsun.com>
85637
85638         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
85639         (getgroups): First arg is int, not size_t.
85640         Don't let 'free' mangle errno.
85641
85642 2003-10-16  Paul Eggert  <eggert@twinsun.com>
85643
85644         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
85645
85646 2003-10-16  Karl Berry  <karl@gnu.org>
85647
85648         * config/config.{guess,sub}: update from config.
85649
85650 2003-10-16  Jim Meyering  <jim@meyering.net>
85651
85652         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
85653         memcpy.
85654
85655 2003-10-15  Paul Eggert  <eggert@twinsun.com>
85656
85657         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
85658         (SIZE_MAX): Remove.
85659         (new_exclude, add_exclude_file): Initial size no longer needs to
85660         be a power of 2.
85661         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
85662         our own address arithmetic overflow checking.
85663
85664         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
85665         (fnmatch): Do not alloca more than 2000 wide characters;
85666         instead, use malloc for large buffers.
85667         Check for address arithmetic overflow, and return -1
85668         with errno set to ENOMEM in that case.
85669         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
85670         (NEW_PATTERN): Do not alloca more than 8000 bytes;
85671         instead, return -1.  Check for address arithmetic overflow.
85672
85673 2003-10-14  Paul Eggert  <eggert@twinsun.com>
85674
85675         Handle invalid suffixes and overflow independently, so that
85676         callers can treat them independently as needed.  Fix some bugs in
85677         suffix handling, e.g., "100k@" was not diagnosed as an invalid
85678         suffix for a human-readable blocksize.  The major caller-visible
85679         change is the addition of a new
85680         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
85681         that both overflow and suffix chars were found.
85682
85683         * lib/human.c (humblock): Don't check separately for invalid suffix
85684         char; that is xstrtoumax's job (now that its bug is fixed).
85685         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
85686         INTMAX_MAX]: New macros.
85687         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
85688         TYPE_MAXIMUM): New macros.
85689         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
85690         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
85691         if overflow occurs, as it's what __strtol does and it's more useful
85692         in practice.
85693         (__xstrtol): If __strtol reports some error other than ERANGE,
85694         reflect it to the caller as LONGINT_INVALID.  If it reports
85695         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
85696         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
85697         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
85698         value.
85699         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
85700         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
85701         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
85702         [defined UINTMAX_MAX]: New macros.
85703
85704 2003-10-14  Bruno Haible  <bruno@clisp.org>
85705
85706         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
85707
85708 2003-10-14  Bruno Haible  <bruno@clisp.org>
85709
85710         * m4/sig_atomic_t: New file, from GNU gettext.
85711         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
85712
85713 2003-10-14  Bruno Haible  <bruno@clisp.org>
85714
85715         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
85716         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
85717         Also use volatile where needed.
85718
85719 2003-10-12  Paul Eggert  <eggert@twinsun.com>
85720
85721         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
85722         Change maintainer from Bruno Haible to 'all'.
85723
85724 2003-10-12  Paul Eggert  <eggert@twinsun.com>
85725
85726         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
85727
85728 2003-10-12  Paul Eggert  <eggert@twinsun.com>
85729
85730         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
85731         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
85732         and define in terms of the other primitives.
85733         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
85734         (SIZE_MAX): Define if not already defined.
85735         (array_size_overflow): New function.
85736         (xalloc_die): Abort instead of exiting if 'error' returns.
85737         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
85738         (xmalloc, xrealloc): Use them.
85739         (xcalloc): Check for address arithmetic overflow.
85740         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
85741         a bit faster than strcpy.
85742
85743 2003-10-10  Simon Josefsson  <jas@extundo.com>
85744
85745         * modules/argp (Depends-on): Add restrict and strcase.
85746
85747 2003-10-10  Simon Josefsson  <jas@extundo.com>
85748
85749         * m4/argp.m4: Add AC_C_INLINE.
85750
85751 2003-10-08  Paul Eggert  <eggert@twinsun.com>
85752
85753         Merge getpass from libc, plus a few fixes.
85754
85755         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
85756         Include <stdbool.h>.
85757         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
85758         __fsetlocking to empty.
85759         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
85760         do include <bits/libc-lock.h>.
85761         Do not include <fcntl.h>; not needed.
85762         [_LIBC]: Include <wchar.h>.
85763         (NOTCANCEL_MODE): New macro.
85764         (flockfile, funlockfile) [_LIBC]: New macros.
85765         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
85766         [!_LIBC]: New macros.
85767         (call_fclose): New function.
85768         (getpass): Use it.  Save tty stream separately; this simplifies the
85769         code and makes it more reliable if stdin happens to equal stdout.
85770         Invoke __fsetlocking on tty.
85771         Handle thread cancellation if needed.
85772         Namespace cleanup (use __tcgetattr, __getline).
85773         Use bool for Booleans.
85774         [USE_IN_LIBIO]: Handle wide streams.
85775         [!_LIBC]: Unconditionally do the fseek, since we don't know what
85776         stream might go where.
85777
85778         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
85779         doesn't have to include <stdio.h> before us.
85780         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
85781         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
85782         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
85783         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
85784         if not declared, so that we can use getpass.c code from libc without
85785         rewriting it.
85786         (flockfile, ftrylockfile, funlockfile): New macros.
85787
85788 2003-10-08  Paul Eggert  <eggert@twinsun.com>
85789
85790         * modules/getpass: Depend on stdbool.
85791
85792 2003-10-08  Paul Eggert  <eggert@twinsun.com>
85793
85794         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
85795
85796 2003-10-07  Karl Berry  <karl@gnu.org>
85797
85798         * config/config.{guess,sub}: update from config.
85799
85800 2003-10-06  Jim Meyering  <jim@meyering.net>
85801             Bruno Haible  <bruno@clisp.org>
85802
85803         This lets translators provide better translations for the
85804         "Written by ..." part of --version output.
85805         * lib/version-etc.h: Include stdarg.h.
85806         (version_etc_copyright): Declare as readonly.
85807         (version_etc): Make this function variadic with a NULL-terminated list
85808         of author name strings.
85809         (version_etc_va): New declaration.
85810         * lib/version-etc.c: Include stdarg.h, stdlib.h.
85811         (version_etc_copyright): Declare as readonly.
85812         (version_etc_va): New function. Provide a different translatable string
85813         for each possible number of authors < 10. Abbreviate when there are 10
85814         authors or more.
85815         (version_etc): Make this function variadic. Call version_etc_va.
85816         Suggestion from Gary V. Vaughan.
85817
85818         * lib/long-options.h (parse_long_options): Change prototype: the
85819         authors string is moved to the end and becomes variadic.
85820         * lib/long-options.c: Include stdarg.h.
85821         (parse_long_options): Make this function variadic, too.
85822         Call version_etc_va, not version_etc.
85823
85824 2003-10-06  Bruno Haible  <bruno@clisp.org>
85825
85826         * modules/version-etc-2: Remove file.
85827         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
85828
85829 2003-10-06  Bruno Haible  <bruno@clisp.org>
85830
85831         * modules/fatal-signal: New file.
85832         * MODULES.html.sh (func_all_modules): Add fatal-signal.
85833
85834 2003-10-06  Bruno Haible  <bruno@clisp.org>
85835
85836         * m4/fatal-signal.m4: New file.
85837         * m4/signalblocking.m4: New file, from GNU gettext.
85838
85839 2003-10-06  Bruno Haible  <bruno@clisp.org>
85840
85841         * lib/version-etc-2.h: Remove file.
85842         * lib/version-etc-2.c: Remove file.
85843
85844 2003-10-06  Bruno Haible  <bruno@clisp.org>
85845
85846         * lib/fatal-signal.h: New file, from GNU gettext.
85847         * lib/fatal-signal.c: New file, from GNU gettext.
85848
85849 2003-10-05  Paul Eggert  <eggert@twinsun.com>
85850
85851         * README: Rework advice for preventing empty .o files.
85852         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
85853         not <sys/types.h>.
85854
85855 2003-10-04  Karl Berry  <karl@gnu.org>
85856
85857         * lib/argp*: update from libc.
85858
85859 2003-10-04  Karl Berry  <karl@gnu.org>
85860
85861         * config/config.{guess,sub}: update from config.
85862
85863 2003-10-02  Bruno Haible  <bruno@clisp.org>
85864
85865         * modules/lchown (Include): Add lchown.h.
85866         * modules/time_r (Include): Use "..." syntax.
85867         * modules/xgetdomainname (Include): Add xgetdomainname.h.
85868
85869 2003-10-01  Simon Josefsson  <jas@extundo.com>
85870
85871         * MODULES.html.sh (func_all_modules): Move gethostname from section
85872         'based on' to section 'lacking' POSIX:2001.
85873
85874 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
85875
85876         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
85877         to output mode on the same stream.
85878
85879 2003-09-29  Paul Eggert  <eggert@twinsun.com>
85880
85881         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
85882         Fix arg typo in previous patch.
85883
85884 2003-09-28  Jim Meyering  <jim@meyering.net>
85885
85886         * lib/error.c: Correct cpp indentation.
85887
85888 2003-09-27  Paul Eggert  <eggert@twinsun.com>
85889
85890         * modules/free: New file.
85891
85892 2003-09-27  Paul Eggert  <eggert@twinsun.com>
85893
85894         * m4/free.m4: New file.
85895
85896 2003-09-27  Paul Eggert  <eggert@twinsun.com>
85897
85898         * lib/minmax.h (MIN, MAX)
85899         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
85900         Omit the special code that used __typeof__, since we worry that
85901         it could be more trouble than it's worth.  See:
85902         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
85903         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
85904
85905         * lib/free.c: New file.
85906
85907 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
85908
85909         Trivial fixes to Makefile.am parts of module listings.
85910         * modules/strstr: Append strstr.h to lib_SOURCES.
85911         * modules/strcase: Likewise, for strcase.h.
85912
85913 2003-09-27  Karl Berry  <karl@gnu.org>
85914
85915         * config/mkinstalldirs: update from automake.
85916
85917 2003-09-26  Paul Eggert  <eggert@twinsun.com>
85918
85919         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
85920         (error_tail): Do not loop, reallocating temporary buffer, since
85921         the output cannot contain more wide characters than the input
85922         contains bytes, the size must be big enough already.  This avoids
85923         one potential size overflow calculation.  Check for size overflow
85924         when calculating temporary buffer size.  Free temporary buffer
85925         when done, if it was allocated with malloc; this plugs a memory
85926         leak.  Remove casts from void * to pointers, that are no longer
85927         needed now that we're assuming C89 or better.
85928
85929         Merge error changes from glibc.
85930
85931         * lib/error.c, error.h: Update copyright notice header to match glibc.
85932         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
85933         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
85934         Disable cancellation while printing error.
85935         * lib/error.h: Prepend __ to parameter names.
85936
85937 2003-09-26  Jim Meyering  <jim@meyering.net>
85938
85939         * lib/error.c (error_tail): Move some declarations
85940         into inner scope where the local variables are used.
85941
85942 2003-09-26  Bruno Haible  <bruno@clisp.org>
85943
85944         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
85945         stpncpy().
85946         Don't define stpncpy through config.h; it's now done through stpncpy.h.
85947
85948 2003-09-26  Bruno Haible  <bruno@clisp.org>
85949
85950         * lib/stpncpy.h (gnu_stpncpy): New declaration.
85951         (stpncpy): Define as alias for gnu_stpncpy.
85952         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
85953
85954 2003-09-25  Simon Josefsson  <jas@extundo.com>
85955
85956         * lib/xgetdomainname.h: New file.
85957         * lib/xgetdomainname.c: New file.
85958
85959 2003-09-25  Simon Josefsson  <jas@extundo.com>
85960             Bruno Haible  <bruno@clisp.org>
85961
85962         * modules/getdomainname: New file.
85963         * modules/xgetdomainname: New file.
85964         * MODULES.html.sh (func_all_modules): Add getdomainname,
85965         xgetdomainname.
85966
85967 2003-09-25  Simon Josefsson  <jas@extundo.com>
85968             Bruno Haible  <bruno@clisp.org>
85969
85970         * m4/getdomainname.m4: New file.
85971
85972 2003-09-25  Simon Josefsson  <jas@extundo.com>
85973             Bruno Haible  <bruno@clisp.org>
85974
85975         * lib/getdomainname.h: New file.
85976         * lib/getdomainname.c: New file.
85977
85978 2003-09-25  Karl Berry  <karl@gnu.org>
85979
85980         * lib/argp-fmtstream.c, argp-help.c: update from libc.
85981
85982 2003-09-25  Karl Berry  <karl@gnu.org>
85983
85984         * config/install-sh: update from automake.
85985
85986 2003-09-25  Bruno Haible  <bruno@clisp.org>
85987
85988         * modules/version-etc-2: New file, from modules/version-etc with
85989         modifications.
85990         * MODULES.html.sh (func_all_modules): Add version-etc-2.
85991
85992 2003-09-25  Bruno Haible  <bruno@clisp.org>
85993
85994         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
85995         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
85996
85997 2003-09-24  Simon Josefsson  <jas@extundo.com>
85998
85999         * modules/xgethostname: Add xgethostname.h.
86000
86001 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86002
86003         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86004         the buffer associated with the argument.  Bug reported by
86005         Simon Josefsson.
86006
86007 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86008
86009         * README: Document assumptions that 'int' is at least 32 bits
86010         wide, that integer arithmetic is 2's complement without overflow,
86011         that there are no holes in integer values, that adding sizes of
86012         two nonoverlapping objects can't overflow, and that all-bits-zero
86013         yields scalar zero.  Fix spelling and capitalization typos.
86014
86015 2003-09-19  Karl Berry  <karl@gnu.org>
86016
86017         * lib/argp.h: update from libc.
86018
86019 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86020
86021         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
86022         to avoid spurious warnings like "AC_RUN_IFELSE was called before
86023         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
86024
86025 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86026
86027         * gnulib-tool: Use "test -h", not "test -L", for portability
86028         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
86029         (tags_regexp): Remove, since \| doesn't conform to POSIX.
86030         (sed_extract_prog): Issue s commands one-by-one, rather than
86031         using \| in one s command.
86032
86033 2003-09-16  Paul Eggert  <eggert@twinsun.com>
86034
86035         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
86036         input error, instead of returning NULL the next time we are called
86037         (and therefore losing track of errno).
86038
86039 2003-09-16  Bruno Haible  <bruno@clisp.org>
86040
86041         * gnulib-tool (func_create_testdir): Warn about duplicated
86042         dependencies.
86043
86044 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86045
86046         * modules/argmatch, modules/fatal, modules/obstack,
86047         modules/xalloc, modules/xgethostname: Sort dependencies by
86048         importance, not alphabetically.
86049
86050 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86051
86052         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
86053         fails, so that the caller gets the proper errno.
86054
86055         * lib/readutmp.c (read_utmp): Likewise.
86056         Check for fstat error.  Close stream and free storage
86057         when failing.
86058
86059 2003-09-14  Karl Berry  <karl@gnu.org>
86060
86061         * config/srclist.txt (strdup.c): disable for c89 changes.
86062
86063 2003-09-14  Jim Meyering  <jim@meyering.net>
86064
86065         * lib/getloadavg.c: Correct cpp indentation.
86066         * lib/strdup.c: Likewise.
86067         * lib/vasnprintf.c: Likewise.
86068
86069 2003-09-14  Bruno Haible  <bruno@clisp.org>
86070
86071         * modules/fwriteerror: New file.
86072         * MODULES.html.sh (func_all_modules): Add fwriteerror.
86073
86074 2003-09-14  Bruno Haible  <bruno@clisp.org>
86075
86076         * lib/fwriteerror.h: New file.
86077         * lib/fwriteerror.c: New file.
86078
86079 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86080
86081         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
86082         modules/xgethostname, modules/xalloc: Depend on exit.
86083
86084 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86085
86086         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
86087
86088         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
86089         and AC_MINIX, too, so that their extensions are available.
86090
86091         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
86092         This macro has been superseded by gl_BACKUPFILE.
86093
86094         More patches to assume C89 or better.
86095
86096         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
86097
86098         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
86099         unconditionally.
86100         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
86101         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
86102         Include <string.h>, <stdlib.h> unconditionally.
86103         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
86104         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
86105         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
86106         headers or for string.h.
86107         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
86108         or strtoul.
86109
86110         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
86111         headers.
86112         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
86113         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86114         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
86115         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
86116         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86117         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
86118         memcpy, memset.
86119         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
86120         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
86121         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
86122         strtol.
86123         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
86124         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
86125         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
86126         strtoul.
86127
86128 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86129
86130         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
86131         * lib/obstack.c [!defined _LIBC]: Likewise.
86132         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
86133         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
86134         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
86135
86136         More changes to assume C89 or better.
86137
86138         * lib/error.c (error_tail): Assume vprintf.
86139
86140         * lib/argmatch.c (getenv): Remove decl.
86141         * lib/progreloc.c (get_full_program_name): Define via prototype.
86142         * lib/setenv.c (clearenv): Likewise.
86143         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
86144         needed.
86145         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
86146         (malloc, memcpy): Remove decls.
86147         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
86148         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
86149         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86150         (memcpy): Remove macro.
86151         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
86152         (__P): Remove.  All uses removed.
86153         (PTR): Remove.  All uses changed to void *.
86154         (CHAR_BIT, NULL): Remove.
86155         (spaces, zeros, memset_space, memset_zero)
86156         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
86157         Remove.
86158         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
86159         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
86160         Define with prototype.
86161         Remove now-unnecessary prototype decl.
86162         (extra_args_spec): Assume ANSI C.  All uses changed.
86163         (extra_args_spec_iso): Remove.
86164         (my_strftime, emacs_strftimeu): Define via prototype.
86165         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
86166         unconditionally.
86167         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
86168         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
86169         (strtoul, strtol): Remove decls.
86170         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
86171         LONG_MAX): Remove.
86172         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86173         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
86174         (LOCALE_PARAM_PROTO): New macro.
86175         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
86176         (INTERNAL (strtol), strtol): Define with a prototype.
86177         (PARAMS): Remove.  All uses removed.
86178         * lib/tempname.c: Include <string.h> unconditionally.
86179         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
86180         * lib/xgethostname.c (main): Define with a prototype.
86181         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
86182         Include <stdlib.h> unconditionally.
86183         (calloc, malloc, realloc, free): Remove decls.
86184         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
86185         Include <stdlib.h> unconditionally.  Sort include file names.
86186         (strtod): Remove.
86187         (xstrtod): Define with a prototype.
86188         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
86189         (strtol, strtoul): Remove decls.
86190
86191 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86192
86193         More patches to assume C89 or better.
86194         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
86195         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
86196         string.h, memchr, STDC_HEADERS.
86197
86198 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86199
86200         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
86201         Include <stdlib.h>, <string.h> unconditionally.
86202         Remove now-unnecessary cast to char *.
86203         * lib/strnlen.c: Include <string.h> unconditionally.
86204         * lib/yesno.c (yesno): Define with a prototype.
86205
86206 2003-09-11  Bruno Haible  <bruno@clisp.org>
86207
86208         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
86209
86210 2003-09-10  Jim Meyering  <jim@meyering.net>
86211
86212         * lib/error.c: Correct indentation of cpp directives.
86213
86214 2003-09-10  Bruno Haible  <bruno@clisp.org>
86215
86216         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
86217         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
86218         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
86219         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
86220         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
86221         <stdlib.h> and <string.h> checks.
86222         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
86223         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
86224
86225 2003-09-10  Bruno Haible  <bruno@clisp.org>
86226
86227         * lib/strcspn.c: Include <string.h> unconditionally.
86228         * lib/strpbrk.c: Include <string.h> unconditionally.
86229         * lib/strstr.c: Include <string.h> unconditionally.
86230         * lib/unicodeio.c: Include <string.h> unconditionally.
86231         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
86232         * lib/unsetenv.c: Likewise.
86233         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
86234         * lib/yesno.c: Include <stdlib.h> unconditionally.
86235         (rpmatch): Add prototype.
86236
86237 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86238
86239         More patches to assume C89 or better.
86240         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
86241         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
86242         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
86243         or for string.h.
86244         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
86245         stdlib.h.
86246         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
86247         C headers.
86248         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
86249         string.h.
86250         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
86251         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
86252         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
86253         or for string.h.
86254         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
86255         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
86256         C headers.
86257         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
86258         memcpy.
86259         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
86260         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
86261         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
86262         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
86263         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
86264         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
86265         string.h, free.
86266         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
86267         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
86268         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
86269         C headers, or for string.h.
86270         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
86271         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
86272         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
86273         headers, memory.h, stdlib.h, string.h, strings.h.
86274         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
86275         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
86276         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
86277         strchr.
86278         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
86279         headers, memory.h, string.h.
86280         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
86281         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
86282         free.
86283         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
86284         headers.
86285         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
86286         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
86287         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
86288         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
86289         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
86290
86291 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86292
86293         More K&R removal.
86294
86295         * lib/acosl.c (main): Use a prototype.
86296         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
86297         tanl.c: Likewise.
86298
86299         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
86300
86301         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
86302         (getopt, etopt_long, getopt_long_only, _getopt_internal)
86303         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
86304         with a prototype.
86305         * lib/getopt.c (const): Remove macro.
86306         Include <string.h> unconditionally.
86307         (my_index): Remove; all uses changed to strchr.
86308         (strlen): Remove decl.
86309         (exchange): Remove forward decl; no longer needed.
86310         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
86311         Define with prototype.
86312         * lib/getopt1.c (const): Remove macro.
86313         (getopt_long, getopt_long_only, main): Define with prototype.
86314
86315         * lib/getugroups.c: Include <string.h> unconditionally.
86316
86317         * lib/getusershell.c: Include <stdlib.h> unconditionally.
86318         (getusershell, setusershell, endusershell, readname, main):
86319         Define with prototypes.
86320
86321         * lib/group-member.c: Include group-member.h first.
86322         Include <stdlib.h> unconditionally.
86323
86324         * lib/hard-locale.c: Include hard-locale.h first.
86325         Include <stdlib.h>, <string.h> unconditionally.
86326
86327         * lib/hash.c (free, malloc): Remove decls.
86328         Include <stdlib.h> unconditionally.
86329
86330         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
86331         (getenv): Do not declare.
86332
86333         * lib/idcache.c: Include <string.h> unconditionally.
86334
86335         * lib/long-options.c: Include long-options.h first, to test interface.
86336         Include <stdlib.h> unconditionally.
86337
86338         * lib/makepath.c: Include makepath.h first, to test interface.
86339         Include <stdlib.h> and <string.h> unconditionally.
86340
86341         * lib/linebuffer.c: Include <stdlib.h>.
86342         (free): Remove decl.
86343
86344         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
86345         stddef.h. rpl_malloc returns void *, not char *.
86346         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
86347         prototype.
86348
86349         * lib/md5.h: Include <limits.h> unconditionally.
86350         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
86351         (__P): Remove; all uses removed.
86352         * lib/md5.c: Include "md5.h" first.
86353         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
86354         md5_buffer, md5_process_bytes, md5_process_block):
86355         Define with prototypes.
86356         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
86357         * lib/sha.c: Include "sha.h" first.
86358         Include <stdlib.h>, <string.h> unconditionally.
86359
86360         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
86361         * lib/memcmp.c (__ptr_t): Likewise.
86362         * lib/memrchr.c (__ptr_t): Likewise.
86363         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
86364         Include <string.h> unconditionally.
86365         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
86366         * lib/memchr.c: Include <stdlib.h> unconditionally.
86367         * lib/memchr.c (LONG_MAX): Remove.
86368         * lib/memrchr.c (LONG_MAX): Likewise.
86369         * lib/memchr.c (__memchr): Define via a prototype.
86370         * lib/memrchr.c (__memrchr): Likewise.
86371         * lib/memcmp.c (__P): Remove, and remove all uses.
86372         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
86373         Remove forward decls; no longer needed.
86374         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
86375         Use types required by C89 in prototype.
86376
86377         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
86378         * lib/savedir.c: Likewise.
86379         * lib/mkdir.c (free): Remove decl.
86380         * lib/rmdir.c (rmdir): Define with a prototype.
86381         * lib/savedir.c: Include savedir.h first, to test interface.
86382
86383         * lib/mktime.c (STDC_HEADERS): Remove.
86384         Include <stdlib.h>, <string.h> unconditionally.
86385
86386         * lib/modechange.c: Include <stdlib.h> unconditionally.
86387         (malloc): Remove decl.
86388
86389         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
86390         (free): Remove decl.
86391
86392         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
86393         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
86394         (This type really should be intptr_t, but that's a C99ism.)
86395         (_obstack_memcpy): Remove: all uses changed to memcpy.
86396         Include <string.h> unconditionally.
86397         (struct obstack): Assume __STDC__ for types of members
86398         chunkfun, freefun, extra_arg.
86399         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
86400         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
86401         obstack_begin, obstack_specify_allocation,
86402         obstack_specify_allocation_with_arg, obstack_chunkfun,
86403         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
86404         Remove unprototyped decls and the macros that use them.
86405         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
86406         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
86407         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
86408         (defined __STDC__ && __STDC__)]:
86409         Remove nonprototyped code.
86410         Include <stdlib.h> unconditionally.
86411         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
86412         _obstack_allocated_p, _obstack_free, obstack_free,
86413         _obstack_memory_used, print_and_abort):
86414         Define using prototypes.
86415         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
86416         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
86417         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
86418         obstack_next_free, obstack_object_size, obstack_room) [0]:
86419         Remove unused, unprototyped code.
86420
86421         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
86422
86423         * lib/physmem.c (physmem_total, physmem_available, main): Define
86424         with prototypes.
86425
86426         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
86427         (main): Define with a prototype.
86428
86429         * lib/posixver.c (getenv): Remove decl.
86430
86431         * lib/putenv.c (malloc): Returns void *, not char *.
86432         Include <string.h> unconditionally.
86433         (strchr, memcpy, NULL): Do not define.
86434
86435         * lib/readtokens.c: Include readtokens.h first, to test interface.
86436         Include <stdlib.h>, <string.h> unconditionally.
86437         (init_tokenbuffer): Define with a prototype.
86438
86439         * lib/regex.c (PARAMS): Remove.  All uses removed.
86440         All uses of _RE_ARGS removed, too.
86441         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
86442         unconditionally.
86443         (bzero): Assume memset exists.
86444         (memcmp, memcpy, NULL): Remove.
86445         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
86446         char, or assignments to local vars of type signed char.
86447         (init_syntax_once, PREFIX(extract_number_and_incr),
86448         PREFIX(print_partial_compiled_pattern),
86449         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
86450         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
86451         PREFIX(regex_grow_registers), PREFIX(regex_compile),
86452         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
86453         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
86454         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
86455         wcs_compile_range, byte_compile_range, truncate_wchar,
86456         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
86457         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
86458         count_mbs_length, wcs_re_match_2_internal,
86459         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
86460         PREFIX(alt_match_null_string_p),
86461         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
86462         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
86463         regfree, PREFIX(extract_number)): Define with prototype.  Remove
86464         now-unnecessary declaration, if any.
86465         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
86466         regcomp, regexec):
86467         Remove now-unnecessary casts among pointer types.
86468         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
86469
86470         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
86471         (free): Remove decl.
86472
86473         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
86474
86475         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
86476         (free): Remove decl.
86477
86478         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
86479         * lib/xgetcwd.c: Likewise.
86480
86481         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
86482         (free): Remove decl.
86483
86484         * lib/strchrnul.c (strchrnul): Define with a prototype.
86485         Fix bug: c_in was not converted to char before searching.
86486
86487         The following changes are not K&R related:
86488
86489         * lib/group-member.h: Include <sys/types.h>, so that this file is
86490         self-contained.
86491         * lib/makepath.h: Likewise.
86492
86493         * lib/getusershell.c (readname, default_index, line_size, readname):
86494         Use size_t, not int, for sizes.
86495         (readname): If the size overflows, report an error instead of
86496         looping forever.
86497
86498 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86499
86500         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
86501         libc.
86502
86503 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86504
86505         * README: New section: portability guidelines.
86506
86507 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
86508
86509         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
86510         C89 spec.
86511
86512 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
86513
86514         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
86515
86516 2003-09-08  Paul Eggert  <eggert@twinsun.com>
86517
86518         Assume C89 or better; remove K&R cruft.
86519         A few of these changes were first proposed by Derek Robert Price
86520         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
86521
86522         * lib/addext.c: Include <string.h> unconditionally.
86523         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
86524         Don't declare getenv or malloc.
86525
86526         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
86527         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
86528         (NULL): Remove.
86529         (find_stack_direction, alloca): Use prototypes.
86530
86531         * lib/atexit.c (atexit): Define using a prototype.
86532
86533         * lib/basename.c, dirname.c, stripslash.c:
86534         Include <string.h> unconditionally.
86535
86536         * lib/bcopy.c: Include <stddef.h>.
86537         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
86538
86539         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
86540
86541         * lib/error.h (error, error_at_line, error_print_progname)
86542         [! (defined (__STDC__) && __STDC__)]: Remove decls.
86543         * lib/error.c: Include error.h first, to check interface.
86544         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
86545         (VA_START): Remove; all uses changeed to va_start.
86546         (exit, strerror): Remove decls.
86547         (error_print_progname): Prototype uncondionally.
86548         Don't include <errno.h>; no longer needed.
86549         (private_strerror): Remove.
86550         (error_tail): Always define.
86551         (error, error_at_line): Assume C89 or better; always use prototypes.
86552         * lib/fatal.c: Include "fatal.h" first, to test interface.
86553         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
86554         (VA_START): Remove; all uses changed to va_start.
86555         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
86556         this case.
86557         (exit): Remove decl.
86558         (fatal): Prototype unconditionally.  Assume va_start works.
86559         Abort at end, to pacify gcc.
86560
86561         * lib/euidaccess.c (main): Define with a prototype.
86562
86563         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
86564
86565         * lib/exitfail.c: Include <stdlib.h> unconditionally.
86566
86567         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
86568         prototypes.
86569         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
86570         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
86571         (getenv): Remove decl.
86572         (fnmatch): Define using a prototype.
86573         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
86574         (FCT): Define using a prototype.
86575
86576         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
86577
86578         * lib/gethostname.c: Include <stddef.h>.
86579         (gethostname): Define with prototype.  Length is size_t, not int.
86580
86581 2003-09-08  Paul Eggert  <eggert@twinsun.com>
86582
86583         Assume C89 or better; remove K&R cruft.
86584         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
86585         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
86586         string.h, getenv, malloc.
86587         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
86588         headers.
86589         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
86590         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
86591         do not check for strerror.
86592         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
86593         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
86594         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
86595         do not check for doprnt or vprintf.
86596         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
86597         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
86598
86599 2003-09-08  Paul Eggert  <eggert@twinsun.com>
86600
86601         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
86602         getversion.c should have been removed then, but was accidentally
86603         preserved.
86604
86605         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
86606         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
86607
86608 2003-09-08  Karl Berry  <karl@gnu.org>
86609
86610         * config/config.sub, config.guess, srclistvars.sh: update from savannah
86611                 config, forget about prep.
86612
86613         * config/depcomp, missing: update from automake.
86614
86615 2003-09-07  Paul Eggert  <eggert@twinsun.com>
86616
86617         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
86618         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
86619
86620 2003-09-07  Paul Eggert  <eggert@twinsun.com>
86621
86622         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
86623         copy_tm_result.  Bug reported by Simon Josefsson in
86624         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
86625
86626 2003-09-06  Paul Eggert  <eggert@twinsun.com>
86627
86628         * m4/time_r.m4: New file.
86629         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
86630         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
86631         is. Check for timegm declaration.
86632         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
86633         Do not check for gmtime_r.
86634         Replace mktime if __mktime_internal does not exist and if mktime
86635         hasn't been replaced already.
86636
86637 2003-09-06  Paul Eggert  <eggert@twinsun.com>
86638
86639         * lib/time_r.c, lib/time_r.h: New files.
86640
86641         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
86642         __localtime_r.
86643         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
86644         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
86645
86646         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
86647         __gmtime_r.
86648         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
86649         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
86650         Include <time_r.h>.
86651
86652         * lib/timegm.c: Switch to glibc implementation, with the following
86653         changes:
86654         [defined HAVE_CONFIG_H]: Include <config.h>.
86655         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
86656         (__mktime_internal) [!defined _LIBC]: New decl.
86657         (__gmtime_r) [!defined _LIBC]: New macro and function.
86658         (timegm): Use a prototype, since gnulib assumes C89.
86659         Do not bother declaring tmp to be const, as it's not really usefu.
86660         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
86661         (timegm): Declare only if HAVE_DECL_TIMEGM.
86662
86663 2003-09-06  Paul Eggert  <eggert@twinsun.com>
86664
86665         * MODULES.html.sh (func_all_modules): Add time_r.
86666         * modules/time_r: New file.
86667         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
86668         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
86669
86670 2003-09-03  Paul Eggert  <eggert@twinsun.com>
86671
86672         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
86673         Bug reported by Lute Kamstra in
86674         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
86675
86676         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
86677         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
86678         course with correspondingly smaller numbers for tomorrow and
86679         yesterday.  From Tadayoshi Funaba.  Originally installed into
86680         sh-utils on 1999-08-07, but the patch got lost (I guess during the
86681         coreutils merge?).
86682
86683 2003-08-31  Simon Josefsson  <jas@extundo.com>
86684
86685         * modules/timegm: New file.
86686         * MODULES.html.sh (func_all_modules): Add timegm.
86687
86688 2003-08-31  Simon Josefsson  <jas@extundo.com>
86689
86690         * m4/timegm.m4: New file.
86691
86692 2003-08-31  Simon Josefsson  <jas@extundo.com>
86693
86694         * lib/timegm.h: New file.
86695         * lib/timegm.c: New file.  Based on
86696         wget-1.8.2/src/http.c:mktime_from_utc.
86697
86698 2003-08-31  Karl Berry  <karl@gnu.org>
86699
86700         * lib/argp.h: update from libc.
86701
86702 2003-08-28  Bruno Haible  <bruno@clisp.org>
86703
86704         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
86705         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
86706         followed by '#define fnmatch fnmatch_posix' gives an error.
86707
86708 2003-08-28  Bruno Haible  <bruno@clisp.org>
86709
86710         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
86711         warning on QNX, which defines O_BINARY to 000000.
86712
86713 2003-08-27  Jim Meyering  <jim@meyering.net>
86714
86715         * m4/mkstemp.m4: Require that the system mkstemp be able to create
86716         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
86717         would fail after 32.  Reported by Danny Levinson.  Details here:
86718         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
86719
86720 2003-08-24  Bruno Haible  <bruno@clisp.org>
86721
86722         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
86723         MSVC7 <stdio.h> is included later.
86724
86725 2003-08-22  Simon Josefsson  <jas@extundo.com>
86726
86727         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
86728
86729 2003-08-20  Karl Berry  <karl@gnu.org>
86730
86731         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
86732
86733 2003-08-20  Bruno Haible  <bruno@clisp.org>
86734
86735         * modules/progname: New file.
86736         * MODULES.html.sh (func_all_modules): Add progname.
86737
86738 2003-08-20  Bruno Haible  <bruno@clisp.org>
86739
86740         * lib/progname.h: New file, from GNU gettext.
86741         * lib/progname.c: New file, from GNU gettext.
86742         * lib/progreloc.c: New file, from GNU gettext.
86743
86744 2003-08-19  Jim Meyering  <jim@meyering.net>
86745
86746         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
86747         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
86748
86749 2003-08-19  Bruno Haible  <bruno@clisp.org>
86750
86751         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
86752         more.
86753
86754 2003-08-19  Bruno Haible  <bruno@clisp.org>
86755
86756         * lib/xstrdup.c: Assume <string.h> exists.
86757
86758 2003-08-18  Paul Eggert  <eggert@twinsun.com>
86759
86760         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
86761         in makefile rules.
86762
86763 2003-08-18  Jim Meyering  <jim@meyering.net>
86764
86765         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
86766         * m4/lib-ld.m4: Likewise.
86767
86768 2003-08-18  Jim Meyering  <jim@meyering.net>
86769
86770         * lib/setenv.h: Indent nested cpp directive.
86771         * lib/vasnprintf.c: Remove trailing blanks.
86772
86773 2003-08-17  Simon Josefsson  <jas@extundo.com>
86774
86775         * modules/xstrndup: New file.
86776         * MODULES.html.sh (func_all_modules): Add xstrndup.
86777
86778 2003-08-17  Simon Josefsson  <jas@extundo.com>
86779
86780         * modules/argp: Fix autoconf macro name. Add more dependencies.
86781
86782 2003-08-17  Simon Josefsson  <jas@extundo.com>
86783
86784         * m4/xstrndup.m4: New file.
86785
86786 2003-08-17  Simon Josefsson  <jas@extundo.com>
86787
86788         * m4/argp.m4: New file.
86789
86790 2003-08-17  Simon Josefsson  <jas@extundo.com>
86791             Bruno Haible  <bruno@clisp.org>
86792
86793         * lib/xstrndup.h: New file.
86794         * lib/xstrndup.c: New file.
86795
86796 2003-08-17  Bruno Haible  <bruno@clisp.org>
86797
86798         * modules/strndup (Files, Include): Add lib/strndup.h.
86799
86800 2003-08-17  Bruno Haible  <bruno@clisp.org>
86801
86802         * modules/euidaccess (Files): Add lib/euidaccess.h.
86803
86804 2003-08-17  Bruno Haible  <bruno@clisp.org>
86805
86806         * lib/strndup.h: New file.
86807
86808 2003-08-17  Bruno Haible  <bruno@clisp.org>
86809
86810         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
86811         like AC_GNU_SOURCE.
86812         * modules/extensions (configure.ac): Comment out the invocation of
86813         gl_USE_SYSTEM_EXTENSIONS.
86814
86815 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86816
86817         Merges from coreutils, etc.
86818         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
86819         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
86820         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
86821         fixing a typo.
86822         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
86823         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
86824
86825 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86826
86827         Document merge from coreutils.
86828         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
86829         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
86830         * modules/utime: Add m4/utimes-null.m4.
86831
86832 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86833
86834         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
86835         space, undoing this 2003-08-12 change:
86836         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
86837
86838 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86839
86840         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
86841         strtoul.c from libc, undoing this 2003-08-12 change:
86842         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
86843
86844 2003-08-16  Jim Meyering  <jim@meyering.net>
86845
86846         Merges from coreutils.
86847         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
86848         prefix.  Adjust cache variables similarly.  Create 500 rather than
86849         just 300 files, to exercise bug on Darwin6.5, too.
86850         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
86851         $missing_dir.
86852         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
86853         AM_SYS_POSIX_TERMIOS.
86854         Reported by mkc@mathdogs.com.
86855         Also change use of $am_cv_sys_posix_termios
86856         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
86857         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
86858         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
86859         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
86860         in /proc/mounts until it finds one with matching device number.  This
86861         is unnecessary when the FILE argument *is* a mount point.  No stat call
86862         is necessary in that case.  So, disable the statvfs-testing code on
86863         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
86864         as RedHat bug# 84846.
86865         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
86866         to 1MB, so as not to render systems with no stack size limit (e.g.,
86867         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
86868         Include <unistd.h>.  On some systems,
86869         it is required for the definition of _SC_PAGESIZE.
86870
86871 2003-08-16  Jim Meyering  <jim@meyering.net>
86872
86873         Merge from coreutils.
86874         * lib/xstrtoimax.c: #else #if -> #elif.
86875         * lib/xstrtoumax.c: Likewise.
86876
86877 2003-08-16  Jim Meyering  <jim@meyering.net>
86878
86879         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
86880         * m4/utimes.m4: Removed.
86881         * m4/utimes-null.m4: Renamed from utimes.m4.
86882
86883         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
86884         to 1MB, so as not to render systems with no stack size limit (e.g.,
86885         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
86886         Include <unistd.h>.  On some systems,
86887         it is required for the definition of _SC_PAGESIZE.
86888
86889 2003-08-16  Jim Meyering  <jim@meyering.net>
86890         and Paul Eggert  <eggert@cs.ucla.edu>
86891
86892         Merges from coreutils, etc.
86893
86894         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
86895         using the latest version from cvs.  This avoids problems with #line
86896         directives using a vendor (Sun) compiler.
86897         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
86898         Don't set GETGROUPS_LIB here; now it's
86899         done via getgroups.m4's wrapper function.
86900         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
86901         rather than just in sh-util/configure.in, so that the
86902         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
86903         same.
86904         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
86905         AC_FUNC_GETLOADAVG where to find getloadavg.c.
86906         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
86907         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
86908         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
86909         Remove code that is now done by the newly-required macros.
86910         Append $(EXEEXT) to DF_PROG.
86911         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
86912         Do not invoke or require the following here,
86913         since prereq.m4 or some gnulib .m4 now does this for us:
86914         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
86915         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
86916         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
86917         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
86918         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
86919         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
86920         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
86921         AC_FUNC_OBSTACK.
86922         Do not replace the following functions, as this is now the job
86923         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
86924         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
86925         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
86926         atexit getpass, strdup, getpagesize.
86927         Replace 'raise'.
86928         Do not check for the following functions, as this is now the job
86929         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
86930         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
86931         setregid.
86932         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
86933         Check for sys/sysctl.h.
86934         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
86935         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
86936         of checking for ssize_t ourselves.
86937
86938         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
86939         Require every macro that gnulib/modules/* suggests for us.
86940         (jm_PREREQ_ADDEXT): New macro.
86941         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
86942         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
86943
86944         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
86945         (gl_PHYSMEM): Use it.
86946         Also check for `table' function.
86947         Check for new headers and functions.
86948         Add check for sys/sysmp.h.
86949         With suggestions from Kaveh Ghazi.
86950         Ignore headers that are present but cannot be compiled.  This
86951         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
86952         C 5.4.
86953
86954 2003-08-15  Paul Eggert  <eggert@twinsun.com>
86955
86956         Document merge from coreutils.
86957         * modules/userspec: Depend on posixver.
86958         * modules/strftime: Depend on tzset.
86959
86960 2003-08-15  Paul Eggert  <eggert@twinsun.com>
86961
86962         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
86963         rather than tab, after '#' in shell-script copyright notices.
86964         Suggested by Bruno Haible.
86965
86966 2003-08-15  Paul Eggert  <eggert@twinsun.com>
86967
86968         * config/srclist-update: Use three spaces, rather than tab, after '#'
86969         in shell-script copyright notices.  Suggested by Bruno Haible.
86970         Remove unnecessary parenthesization in regular expression.
86971
86972 2003-08-15  Jim Meyering  <jim@meyering.net>
86973
86974         Merge from coreutils.
86975         * lib/xgethostname.c: Include <stdlib.h>.
86976         (xghostname): Don't exit for anything other than memory-related
86977         failure; just return NULL.
86978         * lib/userspec.c: Include "posixver.h".
86979         (parse_user_spec): Accept `.' as a separator only
86980         in pre-POSIX-200112 mode.
86981         * lib/strtoimax.c: Use #elif rather than #else #if.
86982         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
86983         Remove function, now that we can rely on a working tzset function.
86984         [!_LIBC]: Ensure that the required autoconf test has been run.
86985         [!defined _NL_CURRENT && HAVE_STRFTIME]:
86986         Use underlying_strftime for %r.
86987         * lib/sha.c: Merge in some clean-up and optimization changes from
86988         glibc.
86989         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
86990         Ensure that it is a multiple of 64.
86991         Rearrange loop exit tests so as to avoid performing an
86992         additional fread after encountering an error or EOF.
86993         * lib/realloc.c: Update copyright date.
86994
86995 2003-08-15  Jim Meyering  <jim@meyering.net>
86996         and Paul Eggert  <eggert@twinsun.com>
86997
86998         Merge from coreutils.
86999         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87000         member but strut utmpx does not.  Needed for AIX 4.3.3.
87001         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87002
87003 2003-08-15  Jim Meyering  <jim@meyering.net>
87004         and Paul Eggert  <eggert@cs.ucla.edu>
87005
87006         Merges from coreutils, etc.
87007         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87008         Require gl_FUNC_TZSET_CLOBBER.
87009         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87010         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
87011         members.
87012
87013 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87014
87015         Help the merge from coreutils.
87016         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
87017         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
87018         * m4/tzset.m4: Use it too.
87019
87020 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87021
87022         * modules/tzset: New file.
87023
87024 2003-08-14  Jim Meyering  <jim@meyering.net>
87025
87026         Merges from coreutils.
87027         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
87028         variable names, rather than @FNMATCH_H@.
87029         * modules/alloca: Likewise for $(ALLOCA_H).
87030
87031         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
87032         the three copies of the literal target, `fnmatch.h'.
87033         * modules/alloca (alloca.h): Likewise.
87034
87035 2003-08-14  Jim Meyering  <jim@meyering.net>
87036
87037         Merge from coreutils.
87038         * m4/tzset.m4: New file.
87039         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
87040         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
87041         otherwise, AIX 5.1 systems would end up using the latter.
87042         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
87043         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
87044         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
87045         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
87046
87047 2003-08-14  Jim Meyering  <jim@meyering.net>
87048
87049         Merge from coreutils.
87050         * lib/obstack.h: Whitespace changes.
87051         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
87052         and xcalloc return values.
87053         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
87054         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
87055         hang on OSF/1 5.1 for DIR on both local and remote file systems.
87056         Reported by (and fix confirmed by) Nelson H. F. Beebe.
87057         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87058         error from mntctl.
87059         Use mntctl's return value to drive the entry-processing loop, since
87060         we can't rely on the value of the vmt_length member in the last
87061         entry.  On some systems doing so could result in exhausting
87062         virtual memory.  Based in part on a patch from Mike Jetzer.
87063
87064 2003-08-14  Jim Meyering  <jim@meyering.net>
87065         and Paul Eggert  <eggert@twinsun.com>
87066
87067         Merges from coreutils, plus other fixes.
87068         * lib/physmem.c: Merge in portability changes from gcc/libiberty
87069         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
87070         for credits and details.  Thanks to Kaveh Ghazi for helping
87071         to keep these files in sync.
87072         (ARRAY_SIZE): Define it.
87073         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
87074         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
87075         (memcasecmp): Don't assume size_t fits in unsigned int.
87076         Remove casts and duplicate code.
87077         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
87078         (memcpy): Remove definition.
87079         Merge in some clean-up and optimization changes from glibc.
87080         [BLOCKSIZE]: Move definition to top of file.
87081         Ensure that it is a multiple of 64.
87082         Rearrange loop exit tests so as to avoid performing an
87083         additional fread after encountering an error or EOF.
87084         * lib/md5.h (md5_uintptr): Define.
87085         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
87086         return to the initial working directory.  Preserve errno
87087         for caller.
87088         * lib/idcache.c: Include "xalloc.h".
87089         (xmalloc, xrealloc): Remove decls.
87090         (getuser): Remove casts no longer required in C89.
87091         * lib/human.c: Include stdio.h, for sprintf.
87092         * lib/group-member.c: Include "xalloc.h".
87093         (xmalloc, xrealloc): Remove decls.
87094         (get_group_info): Remove casts no longer required in C89.
87095         * lib/getusershell.c (readname): Remove casts no longer required in
87096         C89.
87097         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
87098         * lib/getline.c: Whitespace fix, from coreutils.
87099
87100 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87101
87102         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
87103         Check for isascii.
87104
87105         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87106         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87107         Undo previous (whitespace-only) change.
87108
87109 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87110
87111         * lib/exclude.c: Include <ctype.h>
87112         (IN_CTYPE_DOMAIN): New macro.
87113         (is_space): New fn.
87114         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
87115         and empty lines.
87116
87117         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87118         Undo previous (whitespace-only) change.
87119
87120 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87121
87122         * config/srclist-update: Change update back to the old behavior,
87123         leaving whitespace alone.  Use one 'sed' command rather than a
87124         pipeline.
87125         (fixlicense): Now a variable, not a function.
87126         (remove_trailing_blanks): Remove.
87127         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
87128         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87129         Undo previous (whitespace-only) change.
87130
87131 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87132
87133         Merge from coreutils.
87134         * modules/euidaccess: Add lib_SOURCES, include for new
87135         file euidaccess.h
87136
87137 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87138
87139         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87140         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87141         Normalize leading white space and remove trailing white space.
87142
87143         Merge from coreutils
87144         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
87145
87146         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
87147         0.12.1.  These files are now being upgraded automatically by
87148         ../config/srclist-update.
87149
87150 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87151
87152         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87153         Normalize leading white space and remove trailing white space.
87154         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
87155         notice, as per ../config/srclist-update.
87156
87157         Merge from coreutils.
87158         * lib/euidaccess.h: New file.
87159         * lib/euidaccess.c: Include it.
87160         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
87161         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
87162         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
87163
87164 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87165
87166         * config/srclist-update: Add copyright notice.
87167         (remove_id_lines, remove_trailing_blanks): New constants.
87168         (fixfile): Use them to normalize spacing a bit in copied files.
87169         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87170         Normalize leading white space and remove trailing white space.
87171
87172         * config/texinfo.tex: Sync with texinfo.
87173
87174         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
87175         strtoul.c from libc, to merge coreutils whitespace changes.
87176
87177         * config/srclist.txt: Get the following m4 files from gettext:
87178         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
87179         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
87180         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
87181         wint_t.m4.
87182
87183 2003-08-12  Karl Berry  <karl@gnu.org>
87184
87185         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
87186         been made.
87187
87188 2003-08-11  Paul Eggert  <eggert@twinsun.com>
87189
87190         * modules/gnu-source, m4/gnu-source.m4:
87191         Remove; we're assuming Autoconf 2.54 or later now.
87192         Suggested by Bruno Haible.
87193         * MODULES.html.sh (func_all_modules): Remove gnu-source.
87194
87195 2003-08-11  Bruno Haible  <bruno@clisp.org>
87196
87197         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
87198
87199 2003-08-11  Bruno Haible  <bruno@clisp.org>
87200
87201         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
87202         (vasnprintf): Use it instead of wcslen.
87203
87204 2003-08-11  Bruno Haible  <bruno@clisp.org>
87205
87206         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
87207         value to ensure that _Bool promotes to int. Use #define for _Bool when
87208         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
87209
87210 2003-08-10  Karl Berry  <karl@gnu.org>
87211
87212         * lib/regex.h: update from libc (whitespace fix).
87213
87214 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87215
87216         Merge some files from coreutils.  These changes were
87217         originally made by Jim Meyering.
87218         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
87219         many older Unixes require this.
87220         * lib/alloca.c (alloca): Remove cast to argument of free;
87221         no longer needed in C89.
87222         * lib/alloca_.h, regex.h: Fix white space to match
87223         what GNU indent does.
87224
87225 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87226
87227         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
87228         apparently Emacs's Unicode mode got confused before my 2003-08-05
87229         checkin.
87230
87231 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87232
87233         * m4/extensions.m4: New file.
87234         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
87235         Require gl_USE_SYSTEM_EXTENSIONS.
87236         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
87237         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
87238
87239 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87240
87241         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
87242         * modules/extensions, modules/gnu-source: New files.
87243         * modules/timespec, modules/unlocked-io: Depend on extensions.
87244
87245 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87246
87247         * modules/restrict: New file.
87248         * MODULES.html.sh (func_all_modules): Add restrict.
87249         * modules/regex: Depend on restrict.
87250
87251 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87252
87253         * m4/restrict.m4: New file.
87254         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
87255
87256 2003-08-07  Bruno Haible  <bruno@clisp.org>
87257
87258         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
87259         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
87260
87261 2003-08-07  Bruno Haible  <bruno@clisp.org>
87262
87263         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
87264         makes the module 'getndelim2' compatible with the module 'getline'.
87265
87266 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87267
87268         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
87269         byte with "\201" to avoid glitches when editing that source file
87270         with multi-gnome-terminal.
87271
87272 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87273
87274         * lib/bumpalloc.h: Remove.
87275
87276 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87277
87278         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
87279         * modules/bumpalloc: Remove.
87280
87281 2003-08-04  Paul Eggert  <eggert@twinsun.com>
87282
87283         * lib/getloadavg.c: Change copyright notice and spacing to conform to
87284         GNU coding style.
87285
87286         Merge from coreutils.
87287         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
87288         1. From glibc.
87289         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
87290         from Karl Berry, implemented by Jim Meyering.
87291         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
87292         from Dmitry V. Levin.
87293         Remove anachronistic cast of xrealloc.
87294         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
87295         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
87296         type. Otherwise, it wouldn't compile with at least /bin/cc on
87297         ymp-cray-unicos9.0.2.X.
87298         Combine two mostly-identical uses of alloca into one.
87299         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
87300
87301 2003-08-04  Dave Love  <d.love@dl.ac.uk>
87302
87303         [From Emacs.]
87304
87305         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
87306         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
87307         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
87308         obsolete NLIST_NAME_UNION.
87309         [__GNU__]: Undef BSD and FSCALE.
87310         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
87311
87312 2003-08-03  Paul Eggert  <eggert@twinsun.com>
87313
87314         * lib/stdbool_.h (_Bool): Make it signed char, instead of
87315         an enum type, so that it's guaranteed to promote to int.  See:
87316         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
87317
87318 2003-08-03  Karl Berry  <karl@gnu.org>
87319
87320         * config/depcomp: update from automake.
87321
87322 2003-07-31  Paul Eggert  <eggert@twinsun.com>
87323
87324         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
87325         (strerror): Don't assume that a printable int fits in 14 bytes.
87326
87327 2003-07-31  Bruno Haible  <bruno@clisp.org>
87328
87329         * modules/getpass-gnu: New file.
87330         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
87331
87332 2003-07-31  Bruno Haible  <bruno@clisp.org>
87333
87334         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
87335
87336 2003-07-24  Karl Berry  <karl@gnu.org>
87337
87338         * config/missing: update from automake.
87339
87340 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
87341             Bruno Haible  <bruno@clisp.org>
87342
87343         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
87344         * lib/getline.c (getline, getdelim): Likewise.
87345         Remove _GNU_SOURCE define; now it's defined in config.h through
87346         m4/getline.m4.
87347
87348 2003-07-23  Karl Berry  <karl@gnu.org>
87349
87350         * config/config.sub: update from prep.
87351
87352 2003-07-22  Paul Eggert  <eggert@twinsun.com>
87353
87354         * modules/xalloc (Depends-on): Add exitfail.
87355         * modules/xmemcoll: Likewise.
87356
87357 2003-07-22  Paul Eggert  <eggert@twinsun.com>
87358
87359         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
87360         over-parenthesization in macros.
87361
87362         Sync with coreutils.
87363
87364         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
87365         required by C99.
87366
87367         Use `exit_failure' for xalloc and xmemcoll instead of their own
87368         private exit-failure variables.
87369         * lib/xalloc.h (xalloc_exit_failure): Remove.
87370         * lib/xmalloc.c: Likewise.  Include exitfail.h.
87371         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
87372         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
87373         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
87374         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
87375
87376 2003-07-20  Jim Meyering  <jim@meyering.net>
87377
87378         * modules/closeout (Depends-on): Add exitfail.
87379         Suggestion from Bruno Haible.
87380
87381 2003-07-19  Karl Berry  <karl@gnu.org>
87382
87383         * config/config.sub: update from prep.
87384
87385 2003-07-18  Paul Eggert  <eggert@twinsun.com>
87386
87387         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
87388         Remove.
87389         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
87390         to test that it can stand by itself.  Include "exitfail.h".
87391         Clients should set exit_failure instead.
87392         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
87393
87394 2003-07-18  Bruno Haible  <bruno@clisp.org>
87395
87396         * modules/getndelim2: New file.
87397         * modules/getline: Share files with module getndelim2.
87398         * modules/getnline: Depend on getndelim2 instead of sharing files with
87399         it. Add getnline.c to lib_SOURCES.
87400         * MODULES.html.sh (func_all_modules): Add getndelim2.
87401
87402 2003-07-18  Bruno Haible  <bruno@clisp.org>
87403
87404         * m4/getndelim2.m4: New file.
87405         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
87406         invoke gl_PREREQ_GETNDELIM2.
87407         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
87408         gl_PREREQ_GETNDELIM2.
87409         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
87410         gl_GETNDELIM2.
87411
87412 2003-07-18  Bruno Haible  <bruno@clisp.org>
87413
87414         * lib/getndelim2.h: New file.
87415         * lib/getndelim2.c: Make into a module of its own. Include config.h,
87416         getndelim2.h.
87417         (getndelim2): Make non-static. Change return type to ssize_t.
87418         * lib/getline.h: Change argument names.
87419         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
87420         * lib/getnline.c: Include getndelim2.h.
87421
87422 2003-07-18  Andreas Schwab  <schwab@suse.de>
87423
87424         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
87425
87426 2003-07-17  Karl Berry  <karl@gnu.org>
87427
87428         * config/config.sub: update from prep.
87429
87430 2003-07-17  Bruno Haible  <bruno@clisp.org>
87431
87432         * modules/getnline: New file.
87433         * modules/getline: Add lib/getndelim2.c to source file list.
87434         * MODULES.html.sh (func_all_modules): Add getnline.
87435
87436 2003-07-17  Bruno Haible  <bruno@clisp.org>
87437
87438         * m4/getnline.m4: New file.
87439
87440 2003-07-17  Bruno Haible  <bruno@clisp.org>
87441
87442         * m4/Makefile.am.in: Remove file.
87443         * m4/Makefile.am: Remove file.
87444         * m4/Makefile.in: Remove file.
87445
87446 2003-07-17  Bruno Haible  <bruno@clisp.org>
87447
87448         * lib/getnline.h: New file.
87449         * lib/getnline.c: New file.
87450         * lib/getndelim2.c: New file, extracted from getline.c.
87451         (getndelim2): Renamed from getdelim2, with added nmax argument.
87452         * lib/getline.c: Include getndelim2.c.
87453         (getdelim2): Moved out to getndelim2.c.
87454         (getline, getdelim): Update.
87455
87456 2003-07-17  Bruno Haible  <bruno@clisp.org>
87457
87458         * lib/Makefile.am: Remove file.
87459         * lib/Makefile.in: Remove file.
87460
87461 2003-07-17  Bruno Haible  <bruno@clisp.org>
87462
87463         * configure.in: Remove file.
87464         * Makefile.in: Remove file.
87465
87466 2003-07-17  Bruno Haible  <bruno@clisp.org>
87467
87468         * MODULES.html.sh: Put the </BODY> right before </HTML>.
87469
87470 2003-07-16  Karl Berry  <karl@gnu.org>
87471
87472         * config/srclist-update: was running fixlicense twice, which caused
87473                 texinfo.tex to be nullified for some reason.  Simplify,
87474                 $gplsrc is no longer needed as far as I can see?
87475
87476 2003-07-16  Jim Meyering  <jim@meyering.net>
87477
87478         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
87479
87480 2003-07-15  Paul Eggert  <eggert@twinsun.com>
87481
87482         * config/srclist.txt: Get the following files from gettext-runtime/intl
87483         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
87484         ref-del.sin.  From Bruno Haible.
87485         * config/srclist-update (fixfile): Change grep pattern again, since the
87486         previous fix didn't work (there was another trailing $).  Use
87487         '[$]' to escape the $s.
87488
87489 2003-07-15  Karl Berry  <karl@gnu.org>
87490
87491         * lib/vasnprintf.c: update from gettext.
87492
87493 2003-07-15  Karl Berry  <karl@gnu.org>
87494
87495         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
87496         gets expanded when surrounded by '$'.
87497
87498 2003-07-15  Jim Meyering  <jim@meyering.net>
87499
87500         * modules/save-cwd: Don't depend on error.  From Derek Price.
87501
87502 2003-07-15  Jim Meyering  <jim@meyering.net>
87503
87504         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
87505
87506 2003-07-14  Simon Josefsson  <jas@extundo.com>
87507
87508         * modules/mempcpy: New file.
87509         * MODULES.html.sh (func_all_modules): Add mempcpy.
87510
87511 2003-07-14  Simon Josefsson  <jas@extundo.com>
87512
87513         * m4/mempcpy.m4: New file.
87514
87515 2003-07-14  Simon Josefsson  <jas@extundo.com>
87516
87517         * lib/mempcpy.h: New file.
87518         * lib/mempcpy.c: New file.
87519
87520 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87521
87522         * modules/getdate, modules/posixtm: Depend on mktime.
87523
87524 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87525
87526         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
87527         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
87528         unicodeio.c, unicodeio.h, unlocked-io.h:
87529         Switch from LGPL to GPL.
87530
87531 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87532
87533         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
87534         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
87535         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
87536         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
87537         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
87538         updated automatically by ../config/srclist-update.  This changes
87539         their license from LPGL to GPL.
87540
87541 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87542
87543         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
87544         assumed to refer to the root of the most recent stable gettext version.
87545         * config/srclistvars.sh: Add defaults for eggert.
87546         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
87547         Match "This program" as well as "The program".  This is needed
87548         for gettext.
87549
87550 2003-07-14  Jim Meyering  <jim@meyering.net>
87551
87552         Don't emit diagnostics.  Let callers do that.
87553         * lib/save-cwd.c: Don't include "error.h".
87554         (save_cwd): Don't call error.  Ensure that errno is valid
87555         when returning nonzero.
87556
87557         * lib/save-cwd.h (restore_cwd): Update prototype.
87558         * lib/save-cwd.c (restore_cwd): Remove two parameters.
87559         Simplify.  Don't call error upon failure.  Let callers do that.
87560         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
87561         when auditing is enabled.  But don't bother updating the #if.
87562
87563 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
87564
87565         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
87566         it breaks C++ compilation.
87567         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
87568
87569 2003-07-10  Simon Josefsson  <jas@extundo.com>
87570
87571         * modules/strchrnul (Makefile.am): Add strchrnul.h.
87572
87573 2003-07-10  Jim Meyering  <jim@meyering.net>
87574
87575         * m4/clock_time.m4: Remove trailing blank.
87576         * m4/intmax_t.m4: Likewise.
87577
87578 2003-07-10  Jim Meyering  <jim@meyering.net>
87579
87580         * lib/vasnprintf.c: Remove trailing blanks.
87581         Make cpp indentation consistent.
87582
87583 2003-07-09  Paul Eggert  <eggert@twinsun.com>
87584
87585         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
87586         posixver.c, strftime.c, strnlen.c, strverscmp.c:
87587         Switch from LGPL to GPL.
87588
87589 2003-07-09  Paul Eggert  <eggert@twinsun.com>
87590
87591         * config/srclist.txt: Sort sublists.  Add
87592         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
87593         that differ from gnulib for one reason or another; we'd like this list
87594         to be smaller but for now let's document what we have.
87595
87596 2003-07-08  Paul Eggert  <eggert@twinsun.com>
87597
87598         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
87599         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
87600         and sweeter "eval x=$x".
87601         * config/srclist.txt: Get lib/argp* from glibc.
87602
87603 2003-07-07  Paul Eggert  <eggert@twinsun.com>
87604
87605         * lib/mktime.c: Fix some boundary cases and remove need for floating
87606         point.
87607
87608         Issue a compile-time diagnostic if time_t is floating point, or if
87609         two's complement arithmetic is not in effect, or if arithmetic
87610         right shift does not propagate the sign.  These assumptions were
87611         all in the original code but they weren't checked.
87612
87613         (TIME_T_MIDPOINT, verify): New macros.
87614         (__isleap): Remove; it has integer overflow problems.
87615         (leapyear): New function, without those problems.
87616         (ydhms_tm_diff): Remove; splitting into two parts.
87617         (ydhms_diff): New function, containing the arithmetic part of
87618         the old ydhms_tm_diff function.  Issue a compile-time
87619         diagnostic if we are not using C99 integer division.
87620         Avoid casts when possible.
87621         (guess_time_tm): New function, containing the checking part of
87622         the old ydhms_tm_diff function.  Return the new value, rather than
87623         the difference between it and the old.  Accept a new argument T
87624         so that *T specifies the old value.  Check for overflow in the result.
87625
87626         (__mktime_internal): Use a time_t offset, not a long int offset.
87627         This undoes the 2003-06-04 change, which is no longer needed now
87628         that we have better overflow checking.
87629         (localtime_offset): Likewise.
87630
87631         (__mktime_internal): Avoid harmful overflow on hosts where time_t
87632         and long are 64-bit but int is only 32-bit.
87633         (ydhms_diff): Use long int to store year1 and yday1.
87634         Issue a compile-time diagnostic if long int is not wide enough.
87635
87636         (__mktime_internal): Use long int to store adjusted year and yday.
87637         Use plain C rather than preprocessor commands, if that doesn't
87638         affect efficiency.
87639         Check for overflow (and try to repair) after each probe
87640         rather than checking only at the very end.  This avoids some bugs
87641         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
87642         does not equal GMT offset at maximum time).
87643         Use integer to check for overflow rather than floating point; this
87644         is more portable to non-IEEE hosts, and is a tad faster.
87645         When we detect that we are oscillating between two values,
87646         don't check whether tm_isdst has the requested value, since
87647         we already know the answer.  When tm_isdst has the wrong value,
87648         use a different heuristic to find the right one, based on the
87649         extreme values actually observed in practice in tz2003a,
87650         rather than the (overly optimistic) "previous 3 calendar quarters".
87651
87652         (not_equal_tm, print_tm, check_result): Use "const T" rather than
87653         "T const" to accommodate glibc style.
87654         (check_result): Use less-confusing report format.  "long" -> "long int.
87655         (main): Likewise.
87656         Don't loop if the iteration overflows time_t.
87657         Allow a negative step in the iteration.
87658
87659 2003-07-06  Karl Berry  <karl@gnu.org>
87660
87661         * config/depcomp: update from automake.
87662         * config/config.sub: update from prep.
87663
87664 2003-07-03  Karl Berry  <karl@gnu.org>
87665
87666         * config/config.guess: update from prep.
87667
87668 2003-07-01  Paul Eggert  <eggert@twinsun.com>
87669
87670         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
87671         xreadlink.c now includes it unconditionally.
87672
87673 2003-07-01  Paul Eggert  <eggert@twinsun.com>
87674
87675         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
87676         having it depend on HAVE_SYS_TYPES_H.
87677
87678 2003-07-01  Bruno Haible  <bruno@clisp.org>
87679
87680         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
87681         <sys/types.h> should be sufficient.
87682         Reported by Paul Eggert.
87683
87684 2003-06-26  Karl Berry  <karl@gnu.org>
87685
87686         * config/depcomp: update from automake.
87687
87688 2003-06-26  Bruno Haible  <bruno@clisp.org>
87689
87690         * modules/human: Depend on module stdbool.
87691
87692 2003-06-25  Bruno Haible  <bruno@clisp.org>
87693
87694         * modules/readlink: New file.
87695         * modules/xreadlink: Depend on it.
87696         * MODULES.html.sh (func_all_modules): Add readlink.
87697
87698 2003-06-25  Bruno Haible  <bruno@clisp.org>
87699
87700         * m4/readlink.m4: New file.
87701
87702 2003-06-25  Bruno Haible  <bruno@clisp.org>
87703
87704         * lib/readlink.c: New file.
87705
87706 2003-06-22  Karl Berry  <karl@gnu.org>
87707
87708         * config/srclist.txt: update mkinstalldirs from automake.
87709         * config/mkinstalldirs: update.
87710
87711 2003-06-22  Bruno Haible  <bruno@clisp.org>
87712
87713         Portability to mingw32.
87714         * m4/ssize_t.m4: New file, from GNU gettext.
87715         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
87716         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
87717
87718 2003-06-22  Bruno Haible  <bruno@clisp.org>
87719
87720         * modules/safe-read: Add m4/ssize_t.m4.
87721         * modules/xreadlink: Add m4/ssize_t.m4.
87722
87723 2003-06-20  Bruno Haible  <bruno@clisp.org>
87724
87725         Assume C89, so PARAMS isn't needed.
87726         * lib/unicodeio.h (PARAMS): Remove.
87727         * lib/unicodeio.c: Don't use PARAMS.
87728
87729 2003-06-18  Karl Berry  <karl@gnu.org>
87730
87731         * config/config.{guess,sub}: update from prep.
87732
87733 2003-06-18  Jim Meyering  <jim@meyering.net>
87734
87735         Merge changes from coreutils.
87736         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
87737         Remove explicit declarations of xmalloc and realloc.
87738         Include xalloc.h.
87739         (read_utmp): Remove anachronistic cast of xmalloc.
87740
87741 2003-06-17  Paul Eggert  <eggert@twinsun.com>
87742
87743         Assume C89, so PARAMS isn't needed.
87744         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
87745         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
87746         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
87747         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
87748         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
87749         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
87750         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
87751         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
87752         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
87753         lib/xstrtod.h, lib/xstrtol.h: Likewise.
87754         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
87755         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
87756         no longer needed. Anyway, config.h should always be included before any
87757         other file.
87758
87759 2003-06-11  Simon Josefsson  <jas@extundo.com>
87760
87761         * modules/sysexits: New file.
87762         * MODULES.html.sh (func_all_modules): Add sysexits.
87763
87764 2003-06-11  Simon Josefsson  <jas@extundo.com>
87765
87766         * lib/sysexit_.h: New file.
87767
87768 2003-06-11  Derek Price  <derek@ximbiot.com>
87769
87770         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
87771         necessary.
87772
87773 2003-06-11  Bruno Haible  <bruno@clisp.org>
87774
87775         * m4/sysexits.m4: New file.
87776
87777 2003-06-10  Simon Josefsson  <jas@extundo.com>
87778
87779         * lib/argp.h: New file, from glibc.
87780         * lib/argp-ba.c: New file, from glibc.
87781         * lib/argp-eexst.c: New file, from glibc.
87782         * lib/argp-fmtstream.c: New file, from glibc.
87783         * lib/argp-fmtstream.h: New file, from glibc.
87784         * lib/argp-fs-xinl.c: New file, from glibc.
87785         * lib/argp-help.c: New file, from glibc.
87786         * lib/argp-namefrob.h: New file, from glibc.
87787         * lib/argp-parse.c: New file, from glibc.
87788         * lib/argp-pv.c: New file, from glibc.
87789         * lib/argp-pvh.c: New file, from glibc.
87790         * lib/argp-xinl.c: New file, from glibc.
87791
87792 2003-06-10  Simon Josefsson  <jas@extundo.com>
87793
87794         * modules/strchrnul: New file.
87795
87796 2003-06-10  Simon Josefsson  <jas@extundo.com>
87797
87798         * modules/argp: New file.
87799
87800 2003-06-10  Simon Josefsson  <jas@extundo.com>
87801
87802         * m4/strchrnul.m4: New file.
87803
87804 2003-06-10  Simon Josefsson  <jas@extundo.com>
87805
87806         * lib/strchrnul.h: New file.
87807         * lib/strchrnul.c: New file.
87808
87809 2003-06-10  Bruno Haible  <bruno@clisp.org>
87810
87811         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
87812
87813 2003-06-07  Karl Berry  <karl@gnu.org>
87814
87815         * config/config.{guess,sub}: update from prep.
87816
87817 2003-06-07  Jim Meyering  <jim@meyering.net>
87818
87819         * modules/strtod: Use $(...) notation, not @...@ for
87820         AC_REPLACE'd variables.
87821         * modules/localcharset: Likewise.
87822
87823 2003-06-07  Jim Meyering  <jim@meyering.net>
87824
87825         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
87826         in place of my name in the copyright comment.
87827         Remove definition and uses of __P.
87828
87829         From coreutils.
87830         * lib/stat.c: Don't declare xmalloc explicitly.
87831         Instead, include "xalloc.h".
87832         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
87833         xrealloc, and xcalloc return values.
87834         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
87835         Improve comment.
87836         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
87837
87838 2003-06-07  Bruno Haible  <bruno@clisp.org>
87839
87840         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
87841         avoid AC_CONFIG_LINKS.
87842         * modules/fnmatch (Makefile.am): Use explicit creation rule for
87843         fnmatch.h, to avoid AC_CONFIG_LINKS.
87844         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
87845
87846 2003-06-07  Bruno Haible  <bruno@clisp.org>
87847
87848         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
87849         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
87850         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
87851         directory.
87852         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
87853         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
87854         directory.
87855
87856 2003-06-06  Jim Meyering  <jim@meyering.net>
87857
87858         Merge from coreutils.
87859         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
87860         Consolidate declarations and initializations of *_base* locals.
87861
87862         Merge from coreutils.
87863         This avoids a core dump on systems without GNU putenv,
87864         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
87865         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
87866         (unsetenv): New static function, from GNU libc.
87867         (rpl_putenv): Use it.
87868
87869         * lib/modechange.c: Remove trailing blanks.
87870
87871         Merge from coreutils.
87872         * lib/fsusage.c: Remove declaration of statfs.
87873         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
87874
87875         * lib/posixtm.c: Include <stdbool.h> unconditionally.
87876
87877 2003-06-06  Jim Meyering  <jim@meyering.net>
87878
87879         * lib/stdbool_.h: Renamed from stdbool.h.in.
87880
87881 2003-06-06  Jim Meyering  <jim@meyering.net>
87882             Bruno Haible  <bruno@clisp.org>
87883
87884         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
87885         Adjust Makefile.am snippet not to redirect directly to target.
87886         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
87887
87888 2003-06-05  Paul Eggert  <eggert@twinsun.com>
87889
87890         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
87891         mismatch, look in future quarters as well as past.  This fixes a
87892         bug when processing fall-backwards gaps immediately after a long
87893         period of daylight-saving time.
87894
87895         * lib/mktime.c: Assume freestanding C89 or better.
87896         (HAVE_LIMITS_H): Remove.  Assume it's 1.
87897         (__P): Remove; not used.
87898         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
87899         (mktime, not_equal_tm, print_tm, check_result,
87900         main): Use prototypes.  Use const * where appropriate.
87901         (main): Fix typo in testing code that uncovered by above changes.
87902         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
87903
87904 2003-06-04  Paul Eggert  <eggert@twinsun.com>
87905
87906         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
87907         locale.h, localeconv.  This merges changes from coreutils.
87908
87909         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
87910         It can be removed after the next Autoconf is released.
87911         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
87912         needed.
87913
87914 2003-06-04  Paul Eggert  <eggert@twinsun.com>
87915
87916         * lib/mktime.c: Fix Debian bug 177940
87917         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
87918         (localtime_offset): Now long int, not time_t, because we want it
87919         to be guaranteed to be signed.  All uses changed.
87920         (__mktime_internal): If overflow would occur when adding offset,
87921         don't add it.
87922
87923         Merge 'human' changes from coreutils.  Rewrite to support
87924         locale-specific notations like thousands separators.
87925         * lib/human.c: Simplify authorship notice.
87926         Include human.h immediately after config.h.
87927         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
87928         <limits.h>: Do not include, since human.h does.
87929         (SIZE_MAX, UINTMAX_MAX): New macros.
87930         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
87931         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
87932         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
87933         (power_letter): Renamed from suffixes.
87934         (generate_suffix_backwards): Remove.
87935         (adjust_value): Now takes int style (because of human.h changes)
87936         and long double value (for greater precision on some platforms).
87937         (group_number): New function.
87938         (human_readable): Use it.  Use integer options, not enum.
87939         Put the options before the sizes in the arg list.
87940         Support all the new options.
87941         The old human_readable function has been removed;
87942         use inttostr.h instead.
87943         (human_readable, default_block_size, humblock):
87944         Use uintmax_t, not int, for block sizes.
87945         (human_readable_inexact, block_size_types): Remove.
87946         (block_size_opts): New constant.
87947         (human_options): Renamed from human_block_size, with new signature
87948         that allows block sizes up to UINTMAX_MAX.  All callers changed.
87949         * lib/human.h: Add copyright and authorship notice.
87950         Include <limits.h> and <stdbool.h> unconditionally.
87951         (PARAMS): Remove.  All uses removed.
87952         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
87953         (enum human_inexact_style): Remove tag; now a nameless enum.
87954         (human_floor, human_ceiling, human_round_to_even): Now have
87955         values 2, 0, 1 rather than -1, 1, 0.
87956         (human_group_digits, human_suppress_point_zero, human_autoscale,
87957         human_base_1024, human_SI, human_B): New constants.
87958         (human_readable_inexact, human_block_size): Remove.
87959         (human_readable): Size args are now uintmax_t, not int.
87960         (human_options): New decl.
87961
87962         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
87963         unnecessary now that we assume C89 or better.  This change
87964         imported from coreutils.
87965
87966         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
87967         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
87968         in the 2003-05-30 sync from glibc.
87969
87970         .h files should stand alone, but we shouldn't include <sys/types.h>
87971         if we can get away with just <stddef.h>.
87972
87973         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
87974         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
87975         rather than <sys/types.h>, as we merely need size_t.
87976         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
87977         to get size_t.
87978         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
87979         Include <stdio.h>, to get FILE.
87980         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
87981         memcasecmp.h has included <stddef.h> and all we need is size_t.
87982         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
87983         our interface, instead of including <sys/types.h>
87984
87985 2003-06-04  Paul Eggert  <eggert@twinsun.com>
87986
87987         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
87988         now, as glibc mktime is buggy on non-glibc systems.
87989
87990 2003-06-03  Karl Berry  <karl@gnu.org>
87991
87992         * config/config.sub: update from prep.
87993
87994 2003-06-02  Paul Eggert  <eggert@twinsun.com>
87995
87996         [from coreutils]
87997         Fix some minor time-related bugs with POSIX time arguments.
87998         Some valid time stamps were being rejected (notably -1, and
87999         time stamps before 1900 on 64-bit hosts).  And some invalid
88000         time stamps were being accepted, e.g. September 31.
88001
88002         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88003         that we can return (time_t) -1 successfully.
88004         * lib/posixtm.c: Likewise.
88005         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88006         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88007         (t): Remove static var.
88008         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88009         of static var.  All uses changed.
88010         (year): Do not reject years before 1900; they can occur with
88011         64-bit time_t.
88012         (posix_time_parse): Do not check for out-of-range components;
88013         that is now the caller's responsibility, since our checks were
88014         only approximations.
88015         (posixtime): Use mktime to check for out-of-range components,
88016         since it knows them exactly.
88017         If mktime returns (time_t) -1, check whether an error actually occurred
88018         by invoking localtime on -1.
88019         (main) [TEST_POSIXTIME]: Check for input data errors, and report
88020         posixtime failures better.
88021         Improve the test data (in comments only).
88022
88023 2003-06-02  Karl Berry  <karl@gnu.org>
88024
88025         * config/mkinstalldirs (version): new variable.
88026         (--version): new option.
88027         (usage): improve message.
88028
88029 2003-05-30  Karl Berry  <karl@gnu.org>
88030
88031         * lib/mktime.c: update from libc.
88032
88033 2003-05-30  Bruno Haible  <bruno@clisp.org>
88034
88035         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
88036         * config/config.rpath: Upgrade to gettext-0.12.1.
88037
88038 2003-05-30  Bruno Haible  <bruno@clisp.org>
88039
88040         * m4/gettext.m4: Upgrade to gettext-0.12.1.
88041         * m4/nls.m4: New file, from gettext-0.12.1.
88042         * m4/po.m4: New file, from gettext-0.12.1.
88043         * m4/progtest.m4: Upgrade to gettext-0.12.1.
88044
88045 2003-05-30  Bruno Haible  <bruno@clisp.org>
88046
88047         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
88048         * lib/localcharset.h: Likewise.
88049         * lib/localcharset.c: Likewise.
88050
88051 2003-05-29  Karl Berry  <karl@gnu.org>
88052
88053         * config/config.rpath: update from gettext.
88054
88055 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88056
88057         Assume the headers required for C89 freestanding compilers.
88058         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
88059         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
88060         * m4/human.m4 (gl_HUMAN): Likewise.
88061         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
88062         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
88063         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88064         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
88065         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88066         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
88067
88068 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88069
88070         Assume the headers required for C89 freestanding compilers.
88071         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
88072         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
88073         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
88074         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
88075         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
88076         define, since <limits.h> is guaranteed to do that.
88077         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
88078         * lib/exclude.c: Include <stdbool.h> unconditionally.
88079         * lib/tempname.c: Include <stddef.h> unconditionally.
88080         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
88081         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
88082         <stddef.h> does that.
88083         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
88084         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
88085         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
88086         needed.
88087         * lib/xstrtol.c: Likewise.
88088         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
88089         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
88090
88091         * lib/addext.c (addext): Use assignment rather than cast, to avoid
88092         warnings on some platforms.
88093
88094         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88095         arbitrarily.
88096
88097 2003-05-26  Jim Meyering  <jim@meyering.net>
88098
88099         Merge in a change from coreutils:
88100         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
88101         that is guaranteed to be `no'.  Use `no_such_member' to indicate
88102         that condition, rather than `-1' which is slightly misleading.
88103         Change the name of the cache variable to have the gl_ prefix.
88104         Prompted by a patch from Richard Dawe for DJGPP.
88105
88106 2003-05-24  Karl Berry  <karl@gnu.org>
88107
88108         * config/config.guess: update from prep.
88109
88110 2003-05-22  Karl Berry  <karl@gnu.org>
88111
88112         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
88113
88114 2003-05-20  Karl Berry  <karl@gnu.org>
88115
88116         * config/config.guess: update from prep.
88117
88118 2003-05-18  Karl Berry  <karl@gnu.org>
88119
88120         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
88121         might actually be set by the user.
88122
88123         * config/depcomp, install-sh, mdate-sh: update from automake.
88124
88125 2003-05-17  Bruno Haible  <bruno@clisp.org>
88126
88127         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
88128         invalid expansion for AC_EGREP_CPP.
88129         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
88130         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
88131         Suggested by Akim Demaille <akim@epita.fr> in
88132         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
88133
88134 2003-05-12  Jim Meyering  <jim@meyering.net>
88135
88136         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
88137         the space-padded-by-default conversion specifiers, %e, %k, %l.
88138
88139 2003-05-12  Bruno Haible  <bruno@clisp.org>
88140
88141         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
88142         the string is longer than 4 KB.
88143
88144 2003-05-11  Karl Berry  <karl@gnu.org>
88145
88146         * config/config.{guess,sub}: update from prep.
88147
88148 2003-05-09  Bruno Haible  <bruno@clisp.org>
88149
88150         * modules/error: Add m4/strerror_r.m4 to file list.
88151
88152 2003-05-03  Bruno Haible  <bruno@clisp.org>
88153
88154         Upgrade to Unicode-4.0.
88155         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
88156         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
88157         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
88158         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
88159         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
88160         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
88161         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
88162         Change width of U+E0100..U+E01EF from 1 to 0.
88163
88164 2003-04-25  Jim Meyering  <jim@meyering.net>
88165
88166         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
88167         of type size_t, not int.
88168
88169 2003-04-25  Bruno Haible  <bruno@clisp.org>
88170
88171         * lib/copy-file.c: Include <stddef.h>, for size_t.
88172
88173 2003-04-21  Paul Eggert  <eggert@twinsun.com>
88174
88175         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
88176         code which expansion is under static control.  Patch imported from
88177         Akim Demaille's patch to Bison; see
88178         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
88179
88180 2003-04-14  Bruno Haible  <bruno@clisp.org>
88181
88182         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
88183
88184 2003-04-11  Jim Meyering  <jim@meyering.net>
88185
88186         Merge changes from Coreutils.
88187
88188         2003-03-22  Jim Meyering  <jim@meyering.net>
88189
88190         * lib/strftime.c (widen): Cast alloca return value to proper type.
88191
88192         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
88193
88194         From GNU libc.
88195         * lib/strftime.c (my_strftime): Handle very large width
88196         specifications for numeric values correctly.  Improve checks for
88197         overflow.
88198
88199         2003-01-19  Jim Meyering  <jim@meyering.net>
88200
88201         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
88202         definitions.
88203         (nl_get_alt_digit) [! defined my_strftime]: Define.
88204         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
88205         _nl_get_alt_digit and _nl_get_walt_digit.
88206
88207         * lib/strftime.c (my_strftime): Merge in locale-related changes from
88208         libc. These changes have no effect outside of _LIBC.
88209
88210 2003-04-10  Bruno Haible  <bruno@clisp.org>
88211
88212         * modules/findprog: New file.
88213         * MODULES.html.sh (func_all_modules): Add it.
88214
88215 2003-04-10  Bruno Haible  <bruno@clisp.org>
88216
88217         * m4/findprog.m4: New file.
88218         * m4/eaccess.m4: New file.
88219
88220 2003-04-10  Bruno Haible  <bruno@clisp.org>
88221
88222         * lib/findprog.h: New file, from GNU gettext.
88223         * lib/findprog.c: New file, from GNU gettext.
88224
88225 2003-04-05  Jim Meyering  <jim@meyering.net>
88226
88227         Merge changes from Coreutils.
88228
88229         * lib/exclude.h (PARAMS): Remove definition and uses.
88230         * lib/exclude.c: Remove uses of `PARAMS'.
88231
88232         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
88233         Add test-cases for DOS filenames. Declare program_name.
88234         (main): Set up program_name.  Patch by Rich Dawe.
88235
88236         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88237         error from mntctl.
88238         Use mntctl's return value to drive the entry-processing loop, since
88239         we can't rely on the value of the vmt_length member in the last
88240         entry.  On some systems doing so could result in exhausting
88241         virtual memory.  Based in part on a patch from Mike Jetzer.
88242
88243 2003-04-04  Bruno Haible  <bruno@clisp.org>
88244
88245         * modules/linebreak: New file.
88246         * MODULES.html.sh (func_all_modules): Add it.
88247
88248 2003-04-04  Bruno Haible  <bruno@clisp.org>
88249
88250         * m4/linebreak.m4: New file.
88251
88252 2003-04-04  Bruno Haible  <bruno@clisp.org>
88253
88254         * lib/linebreak.h: New file, from GNU gettext.
88255         * lib/linebreak.c: New file, from GNU gettext with slight
88256         modifications.
88257         * lib/lbrkprop.h: New file, from GNU gettext.
88258
88259 2003-04-03  Bruno Haible  <bruno@clisp.org>
88260
88261         * modules/utf8-ucs4: New file.
88262         * modules/utf16-ucs4: New file.
88263         * modules/ucs4-utf8: New file.
88264         * modules/ucs4-utf16: New file.
88265         * MODULES.html.sh (func_all_modules): Add them.
88266
88267 2003-04-03  Bruno Haible  <bruno@clisp.org>
88268
88269         * m4/utf-ucs4.m4: New file.
88270         * m4/ucs4-utf.m4: New file.
88271
88272 2003-04-03  Bruno Haible  <bruno@clisp.org>
88273
88274         * lib/utf8-ucs4.h: New file, from GNU gettext.
88275         * lib/utf16-ucs4.h: New file, from GNU gettext.
88276         * lib/ucs4-utf8.h: New file, from GNU gettext.
88277         * lib/ucs4-utf16.h: New file, from GNU gettext.
88278
88279 2003-04-02  Bruno Haible  <bruno@clisp.org>
88280
88281         * modules/binary-io: New file.
88282         * MODULES.html.sh (func_all_modules): Add it.
88283
88284 2003-04-02  Bruno Haible  <bruno@clisp.org>
88285
88286         * lib/binary-io.h: New file, from GNU gettext.
88287
88288 2003-04-01  Bruno Haible  <bruno@clisp.org>
88289
88290         * modules/pathname: New file.
88291         * MODULES.html.sh (func_all_modules): Add it.
88292
88293 2003-04-01  Bruno Haible  <bruno@clisp.org>
88294
88295         * lib/pathname.h: New file, from GNU gettext.
88296         * lib/concatpath.c: New file, from GNU gettext.
88297
88298 2003-03-30  Bruno Haible  <bruno@clisp.org>
88299
88300         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
88301
88302 2003-03-30  Bruno Haible  <bruno@clisp.org>
88303
88304         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
88305         function chown() doesn't exist.
88306
88307 2003-03-28  Bruno Haible  <bruno@clisp.org>
88308
88309         * modules/copy-file: New file.
88310         * MODULES.html.sh (func_all_modules): Add it.
88311
88312 2003-03-28  Bruno Haible  <bruno@clisp.org>
88313
88314         * m4/copy-file.m4: New file.
88315
88316 2003-03-28  Bruno Haible  <bruno@clisp.org>
88317
88318         * lib/copy-file.h: New file, from GNU gettext.
88319         * lib/copy-file.c: New file, from GNU gettext.
88320
88321 2003-03-18  Jim Meyering  <jim@meyering.net>
88322
88323         * lib/quote.c (quote_n): Fix typo in comment.
88324
88325 2003-03-18  Bruno Haible  <bruno@clisp.org>
88326
88327         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
88328         checking.
88329         * m4/onceonly_2_57.m4: Likewise.
88330
88331 2003-03-17  Bruno Haible  <bruno@clisp.org>
88332
88333         * m4/onceonly.m4: Require autoconf 2.54 or newer.
88334         (m4_quote): Remove macro.
88335         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
88336
88337 2003-03-14  Jim Meyering  <jim@meyering.net>
88338
88339         Merge changes from Coreutils.
88340         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
88341         to be const, in order to avoid warnings.
88342         (obstack_room): Likewise.
88343         (obstack_empty_p): Likewise.
88344
88345 2003-03-14  Bruno Haible  <bruno@clisp.org>
88346
88347         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
88348         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
88349
88350 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88351
88352         Merge changes from Bison.
88353         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
88354         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
88355         when compiling Bison 1.875's `bitset bset = obstack_alloc
88356         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
88357         * lib/hash.c: Include <stdbool.h> unconditionally.
88358
88359 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88360
88361         * m4/onceonly.m4 (m4_quote): New macro.
88362         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
88363         Quote AC_FOREACH variable-expansions properly.
88364
88365 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88366
88367         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
88368
88369 2003-03-09  Paul Eggert  <eggert@twinsun.com>
88370
88371         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
88372         Reported by Bruce Becker; see:
88373         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
88374
88375 2003-03-03  Paul Eggert  <eggert@twinsun.com>
88376             Bruno Haible  <bruno@clisp.org>
88377
88378         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
88379         Reported by John Hughes, see
88380         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
88381
88382 2003-02-20  Bruno Haible  <bruno@clisp.org>
88383
88384         * MODULES.html.sh (func_all_modules): Add poll.
88385
88386 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88387
88388         * modules/poll: New file.
88389
88390 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88391
88392         * lib/poll_.h: New file.
88393         * lib/poll.c: New file.
88394
88395 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88396
88397         * m4/poll.m4: New file.
88398
88399 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88400
88401         * modules/mathl: New file.
88402
88403 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88404
88405         * lib/mathl.h: New file.
88406         * lib/acosl.c: New file.
88407         * lib/asinl.c: New file.
88408         * lib/atanl.c: New file.
88409         * lib/ceill.c: New file.
88410         * lib/cosl.c: New file.
88411         * lib/expl.c: New file.
88412         * lib/floorl.c: New file.
88413         * lib/frexpl.c: New file.
88414         * lib/ldexpl.c: New file.
88415         * lib/logl.c: New file.
88416         * lib/sincosl.c: New file.
88417         * lib/sinl.c: New file.
88418         * lib/sqrtl.c: New file.
88419         * lib/tanl.c: New file.
88420         * lib/trigl.c: New file.
88421         * lib/trigl.h: New file.
88422
88423 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88424
88425         * m4/mathl.m4: New file.
88426
88427 2003-02-18  Bruno Haible  <bruno@clisp.org>
88428
88429         * MODULES.html.sh (func_all_modules): Add mathl.
88430
88431 2003-02-17  Bruno Haible  <bruno@clisp.org>
88432
88433         * modules/mkdtemp: New module.
88434         * MODULES.html.sh (func_all_modules): Add it.
88435
88436 2003-02-17  Bruno Haible  <bruno@clisp.org>
88437
88438         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
88439
88440 2003-02-17  Bruno Haible  <bruno@clisp.org>
88441
88442         * lib/mkdtemp.h: New file, from GNU gettext.
88443         * lib/mkdtemp.c: New file, from GNU gettext.
88444
88445 2003-02-02  Jim Meyering  <jim@meyering.net>
88446
88447         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
88448         e.g. glibc-2.2.93.
88449
88450 2003-01-31  Bruno Haible  <bruno@clisp.org>
88451
88452         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
88453         'rpl_rename'.
88454         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
88455         'rpl_strnlen'.
88456         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
88457         'rpl_strtod'.
88458         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
88459         'rpl_utime'.
88460
88461 2003-01-31  Bruno Haible  <bruno@clisp.org>
88462
88463         * lib/rename.c: #undef rename before defining rpl_rename.
88464         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
88465
88466 2003-01-30  Bruno Haible  <bruno@clisp.org>
88467
88468         * modules/vasnprintf, modules/vasprintf: New modules.
88469         * MODULES.html.sh (func_all_modules): Add them.
88470
88471 2003-01-30  Bruno Haible  <bruno@clisp.org>
88472
88473         * m4/signed.m4: New file, from GNU gettext.
88474         * m4/longdouble.m4: New file, from GNU gettext.
88475         * m4/wchar_t.m4: New file, from GNU gettext.
88476         * m4/wint_t.m4: New file, from GNU gettext.
88477         * m4/vasnprintf.m4: New file.
88478         * m4/vasprintf.m4: New file.
88479
88480 2003-01-30  Bruno Haible  <bruno@clisp.org>
88481
88482         * lib/printf-args.h: New file, from GNU gettext.
88483         * lib/printf-args.c: New file, from GNU gettext.
88484         * lib/printf-parse.h: New file, from GNU gettext.
88485         * lib/printf-parse.c: New file, from GNU gettext.
88486         * lib/vasnprintf.h: New file, from GNU gettext.
88487         * lib/vasnprintf.c: New file, from GNU gettext.
88488         * lib/asnprintf.c: New file, from GNU gettext.
88489         * lib/vasprintf.h: New file, from GNU gettext with modifications.
88490         * lib/vasprintf.c: New file, from GNU gettext.
88491         * lib/asprintf.c: New file, from GNU gettext.
88492
88493 2003-01-29  Bruno Haible  <bruno@clisp.org>
88494
88495         * modules/stpncpy: New module.
88496         * MODULES.html.sh (func_all_modules): Add it.
88497
88498 2003-01-29  Bruno Haible  <bruno@clisp.org>
88499
88500         * m4/stpncpy.m4: New file.
88501
88502 2003-01-29  Bruno Haible  <bruno@clisp.org>
88503
88504         * lib/stpncpy.h: New file, from GNU gettext with modifications.
88505         * lib/stpncpy.c: New file, from GNU gettext with modifications.
88506
88507 2003-01-28  Bruno Haible  <bruno@clisp.org>
88508
88509         * modules/c-ctype: New module.
88510         * MODULES.html.sh (func_all_modules): Add it.
88511
88512 2003-01-28  Bruno Haible  <bruno@clisp.org>
88513
88514         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
88515         Paul Eggert.
88516         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
88517         Paul Eggert.
88518
88519 2003-01-27  Bruno Haible  <bruno@clisp.org>
88520
88521         * modules/xsetenv: New module.
88522         * MODULES.html.sh (func_all_modules): Add it.
88523
88524 2003-01-27  Bruno Haible  <bruno@clisp.org>
88525
88526         * lib/xsetenv.h: New file, from GNU gettext.
88527         * lib/xsetenv.c: New file, from GNU gettext.
88528
88529 2003-01-23  Jim Meyering  <jim@meyering.net>
88530
88531         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
88532         from working on systems without dirfd (at least Irix and OSF1/Tru64).
88533
88534 2003-01-23  Bruno Haible  <bruno@clisp.org>
88535
88536         * modules/minmax: New module.
88537         * MODULES.html.sh (func_all_modules): Add it.
88538
88539 2003-01-23  Bruno Haible  <bruno@clisp.org>
88540
88541         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
88542         Eggert.
88543
88544 2003-01-22  Bruno Haible  <bruno@clisp.org>
88545
88546         * modules/exit: New module.
88547         * MODULES.html.sh (func_all_modules): Add it.
88548
88549 2003-01-22  Bruno Haible  <bruno@clisp.org>
88550
88551         * lib/exit.h: New file, from GNU gettext.
88552
88553 2003-01-19  Bruno Haible  <bruno@clisp.org>
88554
88555         * gnulib-tool: Recognize option --extract-maintainer.
88556         (func_get_maintainer): New function.
88557         * modules/*: Add Maintainer entry.
88558
88559 2003-01-16  Jim Meyering  <jim@meyering.net>
88560
88561         * m4/regex.m4: The `regex' struct is both input and output.
88562         Initialize it before each use.  Patch by Tim Waugh.
88563
88564 2003-01-16  Bruno Haible  <bruno@clisp.org>
88565
88566         * MODULES.html.sh: Add a table of contents. Add the module name as
88567         leftmost column. Add hyperlinks.
88568
88569 2003-01-15  Bruno Haible  <bruno@clisp.org>
88570
88571         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
88572
88573 2003-01-15  Bruno Haible  <bruno@clisp.org>
88574
88575         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
88576         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
88577         suffix.
88578
88579 2003-01-15  Bruno Haible  <bruno@clisp.org>
88580
88581         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
88582
88583 2003-01-15  Bruno Haible  <bruno@clisp.org>
88584
88585         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
88586         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
88587
88588 2003-01-14  Jim Meyering  <jim@meyering.net>
88589
88590         * lib/same.c (same_name): Tweak a comment.
88591
88592 2003-01-14  Bruno Haible  <bruno@clisp.org>
88593
88594         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
88595         when a string comparison is sufficient.
88596
88597 2003-01-14  Bruno Haible  <bruno@clisp.org>
88598
88599         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
88600         'unsigned int'.
88601
88602 2003-01-14  Bruno Haible  <bruno@clisp.org>
88603
88604         * lib/hash-pjw.c: Add comment about low quality of this function.
88605
88606 2003-01-13  Bruno Haible  <bruno@clisp.org>
88607
88608         * modules/stpcpy: Distribute lib/stpcpy.h.
88609         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
88610
88611 2003-01-13  Bruno Haible  <bruno@clisp.org>
88612
88613         * modules/*: Add a description.
88614         * modules/strpbrk: Fix Makefile.am snippet.
88615         * modules/strtoimax: Fix dependencies.
88616         * modules/strtoumax: Likewise.
88617
88618 2003-01-13  Bruno Haible  <bruno@clisp.org>
88619
88620         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
88621         * modules/alloca (Makefile.am): All object files depend on alloca.h.
88622         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
88623
88624 2003-01-13  Bruno Haible  <bruno@clisp.org>
88625
88626         * gnulib-tool (func_create_testdir): Store config/* files in the main
88627         directory.
88628         * config.rpath: Move to ...
88629         * config/config.rpath: ... here.
88630         * modules/gettext: Contains config/config.rpath, not config.rpath.
88631         * modules/iconv: Likewise.
88632
88633 2003-01-12  Paul Eggert  <eggert@twinsun.com>
88634
88635         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
88636         to avoid collisions with libcurses and libreadline.
88637
88638         * m4/getstr.m4: Remove.
88639         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
88640
88641 2003-01-12  Paul Eggert  <eggert@twinsun.com>
88642
88643         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
88644         to avoid collisions with libcurses and libreadline.
88645
88646         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
88647         * lib/getstr.h, getstr.c: Remove.
88648         * lib/getline.c: Include "getline.h", to check interface.
88649         Move body of old getstr.c here: this defines MIN_CHUNK and
88650         declares getdelim2, which is renamed from getstr.
88651         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
88652
88653         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
88654         All uses changed.
88655         * lib/linebuffer.h: Likewise.
88656         (readline): Remove backward-compatibility macro.
88657
88658 2003-01-12  Paul Eggert  <eggert@twinsun.com>
88659
88660         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
88661         to avoid collisions with libcurses and libreadline.
88662         * getstr: Remove.
88663         * MODULES.html.sh: Remove getstr.
88664         * modules/getline: Depend on unlocked-io, not getstr.
88665
88666 2003-01-12  Jim Meyering  <jim@meyering.net>
88667
88668         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
88669
88670 2003-01-10  Bruno Haible  <bruno@clisp.org>
88671
88672         * modules/alloca: Change Makefile.am requirements. Simplify Include
88673         requirements. Add lib/alloca_.h to file list.
88674
88675 2003-01-10  Bruno Haible  <bruno@clisp.org>
88676
88677         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
88678
88679 2003-01-10  Bruno Haible  <bruno@clisp.org>
88680
88681         * lib/alloca_.h: New file.
88682         * lib/getdate.y: Unconditionally include alloca.h.
88683         * lib/makepath.c: Likewise.
88684         * lib/setenv.c: Likewise.
88685         * lib/userspec.c: Likewise.
88686
88687 2003-01-09  Karl Berry  <karl@gnu.org>
88688
88689         * MODULES.html.sh: include `dirname $0` in PATH, to find
88690         gnulib-tool.
88691
88692 2003-01-09  Bruno Haible  <bruno@clisp.org>
88693
88694         * modules/stdbool: Change configure.ac, Makefile.am requirements.
88695         Simplify Include requirements. Add lib/stdbool.h.in to file list.
88696
88697 2003-01-09  Bruno Haible  <bruno@clisp.org>
88698
88699         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
88700
88701 2003-01-09  Bruno Haible  <bruno@clisp.org>
88702
88703         * lib/stdbool.h.in: New file.
88704
88705 2003-01-09  Bruno Haible  <bruno@clisp.org>
88706
88707         * gnulib-tool (func_all_modules): Ignore files ending in ~.
88708         * MODULES.html.sh: Likewise.
88709
88710 2003-01-08  Jim Meyering  <jim@meyering.net>
88711
88712         * lib/full-write.c: Undefine and define-away `const' after inclusion
88713         of errno.h, not before.  Suggestion from Bruno Haible.
88714
88715 2003-01-08  Bruno Haible  <bruno@clisp.org>
88716
88717         * modules/full-read: Depend on full-write.
88718
88719 2003-01-08  Bruno Haible  <bruno@clisp.org>
88720
88721         * lib/safe-read.c: Include specification header first, to ensure its
88722         selfcontainedness.
88723         * lib/full-write.c: Likewise.
88724
88725 2003-01-07  Jim Meyering  <jim@meyering.net>
88726
88727         * lib/full-write.c: Rework so that it may serve to define full_read,
88728         too.
88729         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
88730
88731 2003-01-07  Bruno Haible  <bruno@clisp.org>
88732
88733         * lib/strtoimax.c: Include <stdint.h> as an alternative to
88734         <inttypes.h>.
88735         * lib/xstrtol.h: Likewise.
88736         * lib/xstrtoimax.c: Likewise.
88737         * lib/xstrtoumax.c: Likewise.
88738         * lib/human.h: Likewise.
88739
88740         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
88741         on systems that have <inttypes.h> but not <stdint.h>.
88742
88743 2003-01-07  Bruno Haible  <bruno@clisp.org>
88744
88745         * MODULES.html.sh: Add copyright notice.
88746         (missed_files): Omit CVS directory entries.
88747         (func_module): Make it work with sed-3.02.
88748         * MODULES.txt: Remove file.
88749
88750 2003-01-06  Jim Meyering  <jim@meyering.net>
88751
88752         * lib/version-etc.c: Update year in translatable copyright string.
88753
88754 2003-01-03  Karl Berry  <karl@gnu.org>
88755
88756         * config/config.{guess,sub}: update from prep.
88757
88758 2003-01-02  Karl Berry  <karl@gnu.org>
88759
88760         * doc/COPYING.DOC: belatedly updated to 1.2.
88761
88762 2003-01-01  Karl Berry  <karl@gnu.org>
88763
88764         * gnulib-tool (func_verify_module): report module name $module in
88765         error message, not $1.
88766         * gnulib-tool (create-testdir): don't complain if destdir couldn't
88767         be created, only if it doesn't exist.
88768         * gnulib-tool (last_checkin_date): don't expand the $Date here.
88769
88770 2002-12-31  Paul Eggert  <eggert@twinsun.com>
88771
88772         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
88773
88774 2002-12-31  Paul Eggert  <eggert@twinsun.com>
88775
88776         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
88777         memcmp if strcoll doesn't work.
88778
88779 2002-12-31  Bruno Haible  <bruno@clisp.org>
88780
88781         * lib/utime.c (utime_null): No need to call ftruncate if the file was
88782         nonempty.
88783
88784 2002-12-31  Bruno Haible  <bruno@clisp.org>
88785
88786         * lib/memcoll.c (STRCOLL): New macro.
88787         (memcoll): Use it.
88788
88789 2002-12-31  Bruno Haible  <bruno@clisp.org>
88790
88791         * lib/localcharset.h: New file.
88792         * lib/localcharset.c: Include it.
88793         * lib/unicodeio.c: Likewise.
88794
88795 2002-12-31  Bruno Haible  <bruno@clisp.org>
88796
88797         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
88798         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
88799
88800 2002-12-31  Bruno Haible  <bruno@clisp.org>
88801
88802         * lib/getline.h: Include <stddef.h>, for size_t.
88803
88804         * lib/unicodeio.h: Include <stddef.h>, for size_t.
88805         * lib/unicodeio.c: Don't include <stddef.h>.
88806
88807 2002-12-31  Bruno Haible  <bruno@clisp.org>
88808
88809         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
88810         HAVE_TM_ZONE.
88811
88812 2002-12-24  Karl Berry  <karl@gnu.org>
88813
88814         * config/config.guess: update from prep.
88815
88816 2002-12-24  Bruno Haible  <bruno@clisp.org>
88817
88818         General infrasructure.
88819         * m4/README: Rewritten.
88820         * m4/onceonly.m4: New file.
88821         * m4/onceonly_2_57.m4: New file.
88822
88823         Module atexit.
88824         * m4/atexit.m4: New file.
88825
88826         Module strtod.
88827         * m4/strtod.m4: New file.
88828
88829         Module strtol.
88830         * m4/strtol.m4: New file.
88831
88832         Module strtoul.
88833         * m4/strtoul.m4: New file.
88834
88835         Module memchr.
88836         * m4/memchr.m4: New file.
88837
88838         Module memcmp.
88839         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
88840         (jm_FUNC_MEMCMP): Invoke it.
88841
88842         Module memcpy.
88843         * m4/memcpy.m4: New file.
88844
88845         Module memmove.
88846         * m4/memmove.m4: New file.
88847
88848         Module memset.
88849         * m4/memset.m4: New file.
88850
88851         Module strcspn.
88852         * m4/strcspn.m4: New file.
88853
88854         Module strpbrk.
88855         * m4/strpbrk.m4: New file.
88856
88857         Module strstr.
88858         * m4/strstr.m4: New file.
88859
88860         Module strerror.
88861         * m4/strerror.m4: New file.
88862
88863         Module mktime.
88864         * m4/mktime.m4: Renamed from jm-mktime.m4.
88865         (gl_PREREQ_MKTIME): New macro.
88866         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
88867
88868         Module malloc.
88869         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
88870         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
88871         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
88872
88873         Module realloc.
88874         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
88875         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
88876         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
88877
88878         Module strftime.
88879         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
88880         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
88881         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
88882         gl_TM_GMTOFF.
88883         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
88884
88885         Module xalloc.
88886         * m4/xalloc.m4: New file.
88887
88888         Module alloca.
88889         * m4/alloca.m4: New file.
88890
88891         Module putenv.
88892         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
88893         (jm_FUNC_PUTENV): Invoke it.
88894
88895         Module setenv.
88896         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
88897         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
88898         when invoked twice.
88899         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
88900         gt_FUNC_SETENV.
88901
88902         Module memrchr.
88903         * m4/memrchr.m4: New file.
88904
88905         Module stpcpy.
88906         * m4/stpcpy.m4: New file.
88907
88908         Module strcase.
88909         * m4/strcase.m4: New file.
88910
88911         Module strdup.
88912         * m4/strdup.m4: New file.
88913
88914         Module strnlen.
88915         * m4/strnlen.m4: New file.
88916
88917         Module strndup.
88918         * m4/strndup.m4: New file.
88919
88920         Module xstrtod.
88921         * m4/xstrtod.m4: New file.
88922
88923         Module xstrtol.
88924         * m4/xstrtol.m4: New file.
88925
88926         Module getdate.
88927         * m4/getdate.m4: New file.
88928
88929         Module unlocked-io.
88930         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
88931         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
88932         * m4/jm-glibc-io.m4n: Remove file.
88933
88934         Module long-options.
88935         * m4/long-options.m4: New file.
88936
88937         Module md5.
88938         * m4/md5.m4: New file.
88939
88940         Module sha.
88941         * m4/sha.m4: New file.
88942
88943         Module getstr.
88944         * m4/getstr.m4: New file.
88945
88946         Module getline.
88947         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
88948         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
88949         <sys/types.h>, for size_t. Use the function name gnu_getline, not
88950         simply getline. Infoke gl_PREREQ_GETLINE.
88951
88952         Module obstack.
88953         * m4/obstack.m4: New file.
88954
88955         Module hash.
88956         * m4/hash.m4: New file.
88957
88958         Module readtokens.
88959         * m4/readtokens.m4: New file.
88960
88961         Module strverscmp.
88962         * m4/strverscmp.m4: New file.
88963
88964         Module stdbool.
88965         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
88966         OSF/1.
88967
88968         Module strtoll.
88969         * m4/strtoll.m4: New file.
88970
88971         Module strtoull.
88972         * m4/strtoull.m4: New file.
88973
88974         Module strtoimax.
88975         * m4/strtoimax.m4: New file.
88976
88977         Module strtoumax.
88978         * m4/strtoumax.m4: New file.
88979
88980         Module xstrtoimax.
88981         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
88982         jm_AC_PREREQ_XSTRTOIMAX.
88983         Moved the strtol prerequisites to strtol.m4.
88984         Moved the strtoll prerequisites to strtoll.m4.
88985         Moved the strtoimax prerequisites to strtoimax.m4.
88986
88987         Module xstrtoumax.
88988         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
88989         jm_AC_PREREQ_XSTRTOUMAX.
88990         Moved the strtoul prerequisites to strtoul.m4.
88991         Moved the strtoull prerequisites to strtoull.m4.
88992         Moved the strtoumax prerequisites to strtoumax.m4.
88993
88994         Module chown.
88995         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
88996         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
88997
88998         Module dup2.
88999         * m4/dup2.m4: New file.
89000
89001         Module ftruncate.
89002         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89003         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89004
89005         Module getgroups.
89006         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89007         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89008
89009         Module gettimeofday.
89010         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
89011         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
89012         gl_PREREQ_GETTIMEOFDAY.
89013
89014         Module mkdir.
89015         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
89016         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
89017
89018         Module mkstemp.
89019         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
89020         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
89021         jm_AC_TYPE_UINTMAX_T.
89022         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
89023
89024         Module stat.
89025         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
89026         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
89027
89028         Module lstat.
89029         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
89030         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
89031
89032         Module timespec.
89033         * m4/timespec.m4 (gl_TIMESPEC): New macro.
89034         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
89035         * m4/st_mtim.m4: Indentation.
89036
89037         Module nanosleep.
89038         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
89039         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
89040         gl_PREREQ_NANOSLEEP.
89041
89042         Module regex.
89043         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
89044         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
89045         (gl_REGEX): New macro.
89046
89047         Module rename.
89048         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
89049         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
89050
89051         Module rmdir.
89052         * m4/rmdir.m4: New file.
89053
89054         Module utime.
89055         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
89056         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
89057         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
89058
89059         Module dirname.
89060         * m4/dirname.m4: New file.
89061
89062         Module getopt.
89063         * m4/getopt.m4: New file.
89064
89065         Module unistd-safer.
89066         * m4/unistd-safer.m4: New file.
89067
89068         Module fnmatch.
89069         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
89070         declaration.
89071         (gl_PREREQ_FNMATCH_EXTRA): New macro.
89072         (gl_FUNC_FNMATCH_POSIX): New macro.
89073         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
89074         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
89075         simply fnmatch.
89076
89077         Module exclude.
89078         * m4/exclude.m4: New file.
89079
89080         Module human.
89081         * m4/human.m4: New file.
89082
89083         Module acl.
89084         * m4/acl.m4: Nop.
89085
89086         Module backupfile.
89087         * m4/backupfile.m4: New file.
89088         * m4/d-ino.m4: Indentation.
89089
89090         Module fsusage.
89091         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
89092         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
89093         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
89094
89095         Module dirfd.
89096         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
89097         requirements.
89098
89099         Module euidaccess.
89100         * m4/euidaccess.m4: New file.
89101
89102         Module file-type.
89103         * m4/file-type.m4: New file.
89104
89105         Module fileblocks.
89106         * m4/fileblocks.m4: New file.
89107
89108         Module filemode.
89109         * m4/filemode.m4: New file.
89110
89111         Module isdir.
89112         * m4/isdir.m4: New file.
89113
89114         Module lchown.
89115         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
89116         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
89117
89118         Module makepath.
89119         * m4/makepath.m4: New file.
89120
89121         Module modechange.
89122         * m4/modechange.m4: New file.
89123
89124         Module mountlist.
89125         * m4/mountlist.m4: New file.
89126         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
89127         Indentation.
89128
89129         Module path-concat.
89130         * m4/path-concat.m4: New file.
89131
89132         Module pathmax.
89133         * m4/pathmax.m4: New file.
89134
89135         Module same.
89136         * m4/same.m4: New file.
89137
89138         Module save-cwd.
89139         * m4/save-cwd.m4: New file.
89140
89141         Module savedir.
89142         * m4/savedir.m4: New file.
89143
89144         Module xgetcwd.
89145         * m4/xgetcwd.m4: New file.
89146         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
89147
89148         Module xreadlink.
89149         * m4/xreadlink.m4: New file.
89150
89151         Module safe-read.
89152         * m4/safe-read.m4: New file.
89153
89154         Module safe-write.
89155         * m4/safe-write.m4: New file.
89156
89157         Module closeout.
89158         * m4/closeout.m4: New file.
89159
89160         Module stdio-safer.
89161         * m4/stdio-safer.m4: New file.
89162
89163         Module getpass.
89164         * m4/getpass.m4: New file.
89165
89166         Module getugroups.
89167         * m4/getugroups.m4: New file.
89168
89169         Module group-member.
89170         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
89171         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
89172
89173         Module idcache.
89174         * m4/idcache.m4: New file.
89175
89176         Module userspec.
89177         * m4/userspec.m4: New file.
89178
89179         Module gettime.
89180         * m4/clock_time.m4: New file.
89181         * m4/gettime.m4: New file.
89182
89183         Module settime.
89184         * m4/settime.m4: New file.
89185
89186         Module posixtm.
89187         * m4/posixtm.m4: New file.
89188
89189         Module gethostname.
89190         * m4/gethostname.m4: New file.
89191
89192         Module canon-host.
89193         * m4/canon-host.m4: New file.
89194
89195         Module gettext.
89196         * m4/codeset.m4: New file, from gettext-0.11.5.
89197         * m4/gettext.m4: New file, from gettext-0.11.5.
89198         * m4/glibc21.m4: New file, from gettext-0.11.5.
89199         * m4/iconv.m4: New file, from gettext-0.11.5.
89200         * m4/intdiv0.m4: New file, from gettext-0.11.5.
89201         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
89202         * m4/inttypes.m4: New file, from gettext-0.11.5.
89203         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
89204         * m4/isc-posix.m4: New file, from gettext-0.11.5.
89205         * m4/lcmessage.m4: New file, from gettext-0.11.5.
89206         * m4/lib-ld.m4: New file, from gettext-0.11.5.
89207         * m4/lib-link.m4: New file, from gettext-0.11.5.
89208         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
89209         * m4/progtest.m4: New file, from gettext-0.11.5.
89210         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
89211         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
89212         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
89213
89214         Module localcharset.
89215         * m4/localcharset.m4: New file.
89216
89217         Module hard-locale.
89218         * m4/hard-locale.m4: New file.
89219
89220         Module mbswidth.
89221         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
89222         onceonly macros.
89223         * m4/mbrtowc.m4: Add comment.
89224
89225         Module memcasecmp.
89226         * m4/memcasecmp.m4: New file.
89227
89228         Module memcoll.
89229         * m4/memcoll.m4: New file.
89230
89231         Module unicodeio.
89232         * m4/unicodeio.m4: New file.
89233
89234         Module rpmatch.
89235         * m4/rpmatch.m4: New file.
89236
89237         Module yesno.
89238         * m4/yesno.m4: New file.
89239
89240         Module exitfail.
89241         * m4/exitfail.m4: New file.
89242
89243         Module c-stack.
89244         * m4/c-stack.m4 (gl_C_STACK): New macro.
89245         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
89246
89247         Module error.
89248         * m4/error.m4 (gl_ERROR): New macro.
89249         (jm_PREREQ_ERROR): Use onceonly macros.
89250
89251         Module fatal.
89252         * m4/fatal.m4: New file.
89253
89254         Module getloadavg.
89255         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
89256         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
89257
89258         Module getpagesize.
89259         * m4/getpagesize.m4: New file.
89260
89261         Module getusershell.
89262         * m4/getusershell.m4: New file.
89263
89264         Module physmem.
89265         * m4/physmem.m4: New file.
89266
89267         Module posixver.
89268         * m4/posixver.m4: New file.
89269
89270         Module quotearg.
89271         * m4/quotearg.m4: New file.
89272
89273         Module quote.
89274         * m4/quote.m4: New file.
89275
89276         Module readutmp.
89277         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
89278
89279         Module sig2str.
89280         * m4/sig2str.m4: New file.
89281
89282         Other.
89283         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
89284         ulonglong.m4.
89285         * m4/intmax_t.m4: New file.
89286         * m4/d-type.m4: Indentation.
89287         * m4/jm-macros.m4: Update.
89288         * m4/prereq.m4 (jm_PREREQ): Update.
89289         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
89290         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
89291         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
89292         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
89293         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
89294         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
89295         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
89296         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
89297         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
89298         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
89299         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
89300         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
89301         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
89302         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
89303         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
89304         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
89305         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
89306         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
89307         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
89308
89309 2002-12-24  Bruno Haible  <bruno@clisp.org>
89310
89311         * MODULES.txt: Update according to m4/ changes.
89312
89313         Module gettext.
89314         * config.rpath: New file, from gettext-0.11.5.
89315
89316         * modules/*: New module descriptions.
89317         * gnulib-tool: New file.
89318         * MODULES.html.sh: New file.
89319
89320 2002-12-21  Karl Berry  <karl@gnu.org>
89321
89322         * doc/fdl.texi: update to version 1.2.
89323
89324 2002-12-19  Karl Berry  <karl@gnu.org>
89325
89326         * config/config.guess: update from prep.
89327
89328 2002-12-18  Bruno Haible  <bruno@clisp.org>
89329
89330         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
89331         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
89332
89333 2002-12-17  Bruno Haible  <bruno@clisp.org>
89334
89335         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
89336         stdlib.h, string.h.
89337
89338 2002-12-17  Bruno Haible  <bruno@clisp.org>
89339
89340         * lib/canon-host.c (strdup): Remove unused declaration.
89341
89342         * lib/fsusage.c: Include full_read.h.
89343         (get_fs_usage): Use full_read instead of safe_read.
89344
89345         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
89346
89347 2002-12-12  Karl Berry  <karl@gnu.org>
89348
89349         * config/config.guess: update from prep.
89350
89351 2002-12-11  Bruno Haible  <bruno@clisp.org>
89352
89353         * m4/setenv.m4: New file, from gettext-0.11.5.
89354
89355 2002-12-11  Bruno Haible  <bruno@clisp.org>
89356
89357         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
89358         not unsetenv().
89359         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
89360         modifications:
89361
89362         2002-12-11  Bruno Haible  <bruno@clisp.org>
89363
89364                 * setenv.c (alloca): Fall back to malloc.
89365                 (freea): New macro.
89366                 (setenv): Use freea() to free memory allocated with alloca().
89367
89368         2002-11-13  Bruno Haible  <bruno@clisp.org>
89369
89370                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
89371                 function declarations.
89372                 * unsetenv.c (unsetenv): Likewise.
89373
89374         2002-03-04  Bruno Haible  <bruno@clisp.org>
89375
89376                 Portability to AIX 4.3.3.
89377                 * unsetenv.c: New file, extracted from setenv.c.
89378                 * setenv.c: Move the unsetenv() function to unsetenv.c.
89379
89380         2001-12-20  Bruno Haible  <bruno@clisp.org>
89381
89382                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
89383                 use malloc instead. For SunOS 4.
89384
89385         2001-12-11  Bruno Haible  <bruno@clisp.org>
89386
89387                 * setenv.c: Declare alloca.
89388                 (compar_fn_t): New typedef.
89389                 (KNOWN_VALUE, STORE_VALUE): Use it.
89390
89391         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
89392         setenv.h.
89393
89394 2002-12-10  Paul Eggert  <eggert@twinsun.com>
89395
89396         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
89397         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
89398         Choose values that are less likely to collide with system fnmatch
89399         options.
89400         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
89401         defined (e.g., a pure POSIX system).
89402         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
89403         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
89404
89405 2002-12-06  Paul Eggert  <eggert@twinsun.com>
89406
89407         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
89408         a pain in practice to deal with generated m4 files.  This change
89409         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
89410
89411         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
89412         and jm-glibc-io.m4, as they are no longer a special case.
89413         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
89414         kludge and the auto-generation stuff.  Check only whether the
89415         functions are declared, not whether they exist, since older hosts
89416         that don't declare the functions can't use the optimization anyway.
89417
89418 2002-12-06  Jim Meyering  <jim@meyering.net>
89419
89420         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
89421
89422         Merge in changes from libc's misc/error.c, in preparation
89423         for the merge of gnulib's changes back into libc.
89424
89425         * lib/error.c (_): Define only if not already defined.
89426         Move definition to follow all #include directives.
89427         Include unlocked-io.h only if !_LIBC.
89428         [_LIBC]: Include <libio/libioP.h>.
89429         [USE_IN_LIBIO]: Include <libio/iolibio.h>
89430         (fflush): Tweak definition to use INTUSE.
89431         (putc): Define.
89432
89433 2002-12-05  Paul Eggert  <eggert@twinsun.com>
89434
89435         * lib/alloca.c [defined emacs]: Include "lisp.h".
89436         (xalloc_die) [defined emacs]: New macro.
89437         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
89438         [! defined emacs]: Include <xalloc.h>.
89439         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
89440         (pointer): Typedef to POINTER_TYPE *.
89441         (malloc): Remove decl; we now always use xmalloc.
89442         (alloca): Use old-style definition, since Emacs needs this.
89443         Check for arithmetic overflow when computing combined size.
89444
89445 2002-12-04  Paul Eggert  <eggert@twinsun.com>
89446
89447         Do not generate unlocked-io.h automatically, since it's easier to
89448         maintain it by hand.
89449
89450         * lib/unlocked-io.h: New file, from GNU diffutils,
89451         but with proper copyright notice and attribution.
89452         * lib/gen-uio: Remove.
89453         * lib/Makefile.am: Add copyright notice.
89454         (libfetish_a_SOURCES): Add unlocked-io.h.
89455         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
89456         (DISTCLEANFILES, io_functions): Remove macros.
89457         (EXTRA_DIST): Remove gen_uio.
89458         (unlocked-io.h): Remove rule.
89459
89460 2002-12-04  Jim Meyering  <jim@meyering.net>
89461
89462         Reflect the fact that stat.c and lstat.c are no longer generated.
89463         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
89464         (DISTCLEANFILES): Likewise.
89465         (EXTRA_DIST): Likewise.
89466         (all_local): Don't depend on stat.c or lstat.c.
89467         (stat.c, lstat.c): Remove rules.
89468         (EXTRA_DIST): Remove xstat.in.
89469
89470         * lib/xstat.in: Remove file.  Contents moved into stat.c.
89471         * lib/stat.c: New file.  Contents mostly from xstat.in.
89472         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
89473         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
89474
89475         * lib/safe-read.c: Rework so that it may serve to define safe_write,
89476         too.
89477         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
89478
89479 2002-12-03  Jim Meyering  <jim@meyering.net>
89480
89481         * lib/safe-read.c, safe-write.c: Change variable names and comments,
89482         but not semantics, to minimize the differences between these two files.
89483         (safe_read): Change comment to mention SAFE_READ_ERROR.
89484
89485         * lib/safe-read.c (IS_EINTR): Define.
89486         (safe_read): Use IS_EINTR in place of in-function cpp directives.
89487
89488 2002-12-02  Jim Meyering  <jim@meyering.net>
89489
89490         * lib/safe-read.c (EINTR): Define.
89491         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89492         (INT_MAX): Provide fallback.
89493         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
89494
89495         * lib/safe-read.h (SAFE_READ_ERROR): Define.
89496
89497 2002-12-02  Bruno Haible  <bruno@clisp.org>
89498
89499         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
89500         Define, taken from safe-read.c.
89501         (INT_MAX): Provide fallback.
89502         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
89503         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
89504
89505         * lib/safe-read.c (EINTR): Remove definition.
89506         (safe_read): Don't use EINTR if it is absent.
89507
89508 2002-12-01  Jim Meyering  <jim@meyering.net>
89509
89510         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
89511         zero.
89512         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
89513
89514 2002-11-27  Paul Eggert  <eggert@twinsun.com>
89515
89516         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
89517         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
89518         with `if (! (value < limit)) abort ();', for readability.
89519
89520 2002-11-26  Karl Berry  <karl@gnu.org>
89521
89522         * lib/strdup.c: copy from libc again, with jim's ok.
89523         * lib/.cppi-disable: re-add strdup.c
89524
89525 2002-11-25  Karl Berry  <karl@gnu.org>
89526
89527         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
89528         instead of "strtol.c".
89529
89530 2002-11-25  Karl Berry  <karl@gnu.org>
89531
89532         * config/install-sh: update from automake for variable quoting, $0 in
89533         error msgs, etc.
89534
89535         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
89536         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
89537         entry.
89538
89539 2002-11-25  Jim Meyering  <jim@meyering.net>
89540
89541         * lib/mktime.c: Sync from libc, now that it has the latest fix.
89542
89543 2002-11-24  Karl Berry  <karl@gnu.org>
89544
89545         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
89546         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
89547
89548 2002-11-24  Jim Meyering  <jim@meyering.net>
89549
89550         Update from coreutils:
89551
89552         * lib/mktime.c: Merge in changes from libc.
89553
89554         Avoid a link-time failure on some Linux systems.
89555         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
89556         (otherwise).
89557         (__mon_yday): Declare with the STATIC attribute.
89558         (__mktime_internal): Likewise.
89559         Based on a report from Greg Schafer.
89560
89561 2002-11-23  Jim Meyering  <jim@meyering.net>
89562
89563         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
89564         Use `unsigned', not `int', as type of index.
89565
89566         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
89567
89568         * lib/fsusage.c: Remove unneeded parentheses around operands of
89569         `defined'.
89570
89571 2002-11-22  Paul Eggert  <eggert@twinsun.com>
89572
89573         * lib/quotearg.h: Allow multiple inclusion by surrounding with
89574         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
89575         so that we can be included first.
89576         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
89577         * lib/quotearg.c: Include quotearg.h immediately after config.h.
89578         No need to include stddef.h or sys/types.h any more.
89579         Surround local include files with "", not "<>".
89580         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
89581         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
89582         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
89583         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
89584         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
89585         (ISPRINT): Remove; no longer needed now that we assume C89.
89586
89587         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
89588         Preserve errno.
89589
89590         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
89591         quotearg_char): Use SIZE_MAX rather than
89592         (size_t) -1 when we are talking about "infinity".
89593
89594         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
89595
89596 2002-11-22  Paul Eggert  <eggert@twinsun.com>
89597
89598         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
89599         hint that one should use `if (! x) abort ();' rather than `assert
89600         (x);', and anyway it's one less thing to worry about configuring.
89601         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
89602         hash_rehash, hash_insert): Use abort rather than assert.
89603
89604 2002-11-22  Bruno Haible  <bruno@clisp.org>
89605
89606         * lib/safe-read.h: Assume C89. Add comments.
89607         (safe_read): Change return type to size_t.
89608         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
89609         byte counts > SSIZE_MAX correctly.
89610         * lib/safe-write.h: New file.
89611         * lib/safe-write.c: New file.
89612         * lib/full-read.h: New file.
89613         * lib/full-read.c: New file.
89614         * lib/full-write.h: Assume C89. Add comments.
89615         * lib/full-write.c: Include safe-write.h.
89616         (full_write): Rewritten to use safe_write.
89617         Suggested by Jim Meyering and Paul Eggert.
89618
89619 2002-11-21  Jim Meyering  <jim@meyering.net>
89620
89621         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
89622
89623         Merge in changes from the coreutils.
89624
89625         2002-09-25  Paul Eggert  <eggert@twinsun.com>
89626         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
89627         <stdint.h>.
89628         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
89629         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
89630         int.  Work more efficiently if X is the same width as uintmax_t.
89631         Do not compare X to -1, to avoid bogus compiler warning.
89632         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
89633         Don't assume that f_frsize and f_bsize are the same type.
89634
89635         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
89636         warning on FreeBSD.
89637
89638         * lib/makepath.c (make_path): Restore umask *before* creating the final
89639         component.
89640         (make_path): Minor reformatting.
89641
89642         * lib/xmalloc.c: Adjust to work with new autoconf macros,
89643         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
89644         HAVE_MALLOC/HAVE_REALLOC.
89645
89646         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
89647         dummy ones.  At least on GNU/Linux systems, `auto' means something
89648         else.
89649         From Michael Stone.
89650
89651 2002-11-21  Bruno Haible  <bruno@clisp.org>
89652
89653         Remove case insensitive option matching.
89654         * lib/argmatch.h (argcasematch): Remove declaration.
89655         (ARGCASEMATCH): Remove macro.
89656         (__xargmatch_internal): Remove case_sensitive argument.
89657         (XARGMATCH): Update.
89658         (XARGCASEMATCH): Remove macro.
89659         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
89660         case_sensitive argument.
89661         (argcasematch): Remove function.
89662         (__xargmatch_internal): Remove case_sensitive argument.
89663         (main): Use XARGMATCH instead of XARGCASEMATCH.
89664
89665         * lib/xmalloc.c: Change compile-time error message. Add comment about
89666         required autoconf version.
89667
89668 2002-11-20  Paul Eggert  <eggert@twinsun.com>
89669
89670         Merge argmatch cleanups from Bison.  Assume C89.
89671
89672         * lib/argmatch.c: Include config.h here, not in argmatch.h.
89673         Include stdlib.h, for EXIT_FAILURE.
89674         Always include <string.h>, since we assume C89.
89675         (EXIT_FAILURE): Remove pre-C89 bug workaround.
89676         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
89677         Include <stddef.h> instead, since it's all we need for size_t.
89678         (PARAMS): Remove.  All uses removed.
89679         (ARRAY_CARDINALITY): Do not bother to #undef.
89680         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
89681         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
89682         Remove unnecessary parentheses.
89683         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
89684         Insert necessary parentheses.
89685         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
89686         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
89687
89688 2002-11-19  Bruno Haible  <bruno@clisp.org>
89689
89690         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
89691         * lib/mbswidth.h: Include <stddef.h>, for size_t.
89692
89693         * lib/mbswidth.h (PARAMS): Remove macro.
89694         (mbswidth, mbsnwidth): Use ANSI C function declarations.
89695         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
89696
89697         * lib/gcd.h (PARAMS): Remove macro.
89698         (gcd): Use ANSI C function declarations.
89699         * lib/gcd.c (gcd): Likewise.
89700
89701 2002-11-15  Bruno Haible  <bruno@clisp.org>
89702
89703         * lib/strcspn.c: Include <stddef.h>.
89704         (strcspn): Use ANSI C function declaration. Change return type to
89705         size_t. Use NULL.
89706         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
89707         (strpbrk): Use NULL.
89708         * lib/strpbrk.h (PARAMS): Remove macro.
89709         (strpbrk): Use ANSI C function declaration.
89710         * lib/strstr.c: Don't include <sys/types.h>.
89711         * lib/strstr.h (PARAMS): Remove macro.
89712         (strstr): Use ANSI C function declarations.
89713
89714 2002-11-14  Karl Berry  <karl@gnu.org>
89715
89716         * config/mkinstalldirs: `do' on separate line, instead of
89717         `for var; do'.
89718
89719 2002-11-06  Bruno Haible  <bruno@clisp.org>
89720
89721         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
89722         * lib/gcd.c (gcd): Likewise.
89723
89724 2002-11-05  Bruno Haible  <bruno@clisp.org>
89725
89726         * lib/gcd.h: New file, from gettext-0.11.5.
89727         * lib/gcd.c: New file, from gettext-0.11.5.
89728
89729 2002-11-05  Bruno Haible  <bruno@clisp.org>
89730
89731         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89732         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89733         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89734         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89735
89736         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
89737         <libintl.h>.
89738         * lib/makepath.c: Include gettext.h instead of <locale.h> and
89739         <libintl.h>.
89740
89741         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
89742         * lib/human.c: Include gettext.h instead of <libintl.h>.
89743         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
89744         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
89745         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
89746         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
89747         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
89748         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
89749         (textdomain): Remove definition.
89750         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
89751
89752         * lib/long-options.c: Remove include of <libintl.h> and definition of
89753         _.
89754         * lib/same.c: Remove include of <libintl.h> and definition of _.
89755
89756 2002-11-04  Owen Taylor  <otaylor@redhat.com>
89757
89758         * lib/config.charset: A few additions for Solaris.
89759
89760 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
89761
89762         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
89763         * lib/localcharset.c (locale_charset): Declare as extern "C".
89764
89765 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
89766
89767         * lib/config.charset: msdos in uk_UA uses CP1125.
89768
89769 2002-11-04  Bruno Haible  <bruno@clisp.org>
89770
89771         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
89772         * lib/strcase.h: New file, from GNU gettext-0.11.5.
89773         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
89774         * lib/strstr.h: New file, from GNU gettext-0.11.5.
89775         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
89776
89777 2002-11-04  Bruno Haible  <bruno@clisp.org>
89778
89779         * lib/localcharset.c (locale_charset): Don't return an empty string.
89780
89781 2002-11-04  Bruno Haible  <bruno@clisp.org>
89782
89783         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
89784         aliases.
89785
89786 2002-11-04  Bruno Haible  <bruno@clisp.org>
89787
89788         * lib/config.charset: Update for newest glibc. Add canonical names
89789         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
89790
89791 2002-11-04  Bruno Haible  <bruno@clisp.org>
89792
89793         * lib/config.charset: Add support for NetBSD.
89794
89795 2002-11-04  Bruno Haible  <bruno@clisp.org>
89796
89797         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
89798
89799 2002-11-01  Bruno Haible  <bruno@clisp.org>
89800
89801         * configure.in: Add AC_CONFIG_AUX_DIR call.
89802         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
89803         test/Makefile.
89804         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
89805
89806 2002-09-28  Karl Berry  <karl@gnu.org>
89807
89808         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
89809         installed automake until the next release, since changes have been
89810         made.
89811
89812 2002-09-25  Karl Berry  <karl@gnu.org>
89813
89814         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
89815         * lib/getopt*: copy from libc/posix.
89816         * lib/gettext.h: copy from gettext.
89817         * lib/.cppi-disable: add strdup.c, gettext.h.
89818
89819 2002-09-25  Karl Berry  <karl@gnu.org>
89820
89821         * config/srclist.txt: enable gettext.h check.
89822         * config/config.{guess,sub}: update from prep.
89823         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
89824                 from automake 1.6.3.
89825         See srclist*.
89826
89827 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
89828
89829         * regex.c (PATFETCH): Remove the translating fetch.
89830         (PATFETCH_RAW): Rename to PATFETCH.
89831         (set_image_of_range): New fun.
89832         (SET_RANGE_TABLE_WORK_AREA): Use it.
89833         (regex_compile): Don't translate the pattern chars so eagerly.
89834         Only do it when inserting an `exactn' bytecode or when handling
89835         a char-range.
89836         (mutually_exclusive_p): Avoid empty statement.
89837
89838 2002-07-06  Jim Meyering  <meyering@lucent.com>
89839
89840         * m4/README: Don't mention Makefile.am.in.
89841         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
89842
89843 2002-07-01  Jim Meyering  <meyering@lucent.com>
89844
89845         * lib/c-stack.c: Include sys/time.h.
89846         From Volker Borchert.
89847
89848 2002-06-26  Paul Eggert  <eggert@twinsun.com>
89849
89850         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
89851
89852 2002-06-26  Paul Eggert  <eggert@twinsun.com>
89853
89854         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
89855         New macro.  Use it uniformly instead of
89856         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
89857         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
89858         reported by Vin Shelton.
89859
89860 2002-06-22  Paul Eggert  <eggert@twinsun.com>
89861
89862         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
89863         Do not assume SA_SIGINFO behavior.
89864         Bug reported by Jim Meyering on NetBSD 1.5.2.
89865
89866 2002-06-22  Jim Meyering  <meyering@lucent.com>
89867
89868         * m4/c-stack.m4: New file, from diffutils-2.8.2.
89869         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
89870
89871         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
89872         now that configure.ac uses AC_GNU_SOURCE.
89873         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
89874         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
89875
89876         Update to latest tools.  Suggestions from Paul Eggert.
89877         * m4/stdbool.m4: New file, from diffutils-2.8.2.
89878         * m4/gnu-source.m4: Update from diffutils-2.8.2.
89879         * m4/fnmatch.m4: Likewise.
89880         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
89881         to AC_HEADER_STDBOOL
89882
89883 2002-06-22  Jim Meyering  <meyering@lucent.com>
89884
89885         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
89886         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
89887
89888 2002-06-22  Jim Meyering  <meyering@lucent.com>
89889
89890         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
89891
89892         * lib/exitfail.c, exitfail.h: Likewise.
89893         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
89894
89895         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
89896         of fnmatch.h.
89897         (EXTRA_DIST): Add fnmatch_loop.c.
89898         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
89899
89900         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
89901         * lib/fnmatch.c: Update from diffutils-2.8.2.
89902         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
89903         * lib/fnmatch.h: Remove file.
89904
89905 2002-06-21  Jim Meyering  <meyering@lucent.com>
89906
89907         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
89908         * m4/mbrtowc.m4: Likewise.
89909
89910         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
89911         * m4/mbswidth.m4: Reflect name change:
89912         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
89913         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
89914
89915         * m4/lib-link.m4: Update from gettext-0.11.2.
89916         * m4/gettext.m4: Likewise.
89917
89918         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
89919         From Alfred M. Szmidt.
89920
89921 2002-06-18  Paul Eggert  <eggert@twinsun.com>
89922
89923         * lib/file-type.h: Report an error if neither S_ISREG nor
89924         S_IFREG is defined, instead of using a test specific to glibc
89925         2.2.  This should be safe, since POSIX requires S_ISREG and
89926         Unix Version 7 had S_IFREG.  We don't need to check for
89927         <sys/types.h> since we don't use any symbols that it defines.
89928
89929 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
89930
89931         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
89932         $@-t, so that each temporary file name is unique and valid in the first
89933         8 characters, for operation under DOS.
89934
89935 2002-06-15  Paul Eggert  <eggert@twinsun.com>
89936
89937         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
89938
89939 2002-06-15  Jim Meyering  <meyering@lucent.com>
89940
89941         Work even with DJGPP 2.03, which lacks support for symlinks.
89942         From Richard Dawe.
89943         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
89944         is defined.
89945         * lib/lchown.c (S_ISLNK): Likewise.
89946
89947 2002-06-15  Jim Meyering  <meyering@lucent.com>
89948
89949         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
89950         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
89951         have been included before this file.
89952
89953 2002-06-14  Jim Meyering  <meyering@lucent.com>
89954
89955         * lib/file-type.h: Use the version from diffutils-2.8.2.
89956         * lib/file-type.c: Likewise.
89957
89958 2002-06-07  Jim Meyering  <meyering@lucent.com>
89959
89960         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
89961         They're needed at least for NetBSD 1.5.2.
89962         ($statxfs_includes): Include those same headers.
89963         ($statxfs_includes): Include sys/vfs.h if available.
89964         ($statxfs_includes): Likewise for sys/statvfs.h.
89965         Check for the following members in both structs statfs and statvfs:
89966         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
89967
89968 2002-06-01  Jim Meyering  <meyering@lucent.com>
89969
89970         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
89971         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
89972
89973 2002-05-28  Jim Meyering  <meyering@lucent.com>
89974
89975         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
89976         Reported by Volker Borchert.
89977
89978 2002-05-27  Jim Meyering  <meyering@lucent.com>
89979
89980         Fix a problem seen only on nonconforming systems whereby ls.c's
89981         use of localtime, and then of gettimeofday would cause trouble:
89982         the localtime call used to initialize rpl_gettimeofday's save
89983         mechanism would clobber ls's current local time information so
89984         that in any long listing the first file would always be listed
89985         with date 1970-01-01.  Analysis by Volker Borchert.
89986
89987         * lib/gettimeofday.c (localtime): Undefine.
89988         (rpl_localtime): New function.
89989
89990 2002-05-27  Jim Meyering  <meyering@lucent.com>
89991
89992         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
89993         localtime.
89994
89995         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
89996         use the replacement function; it wouldn't resolve at link time.
89997         Reported by Volker Borchert.
89998
89999 2002-05-22  Jim Meyering  <meyering@lucent.com>
90000
90001         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90002         file-type.h.
90003         * lib/file-type.h: New file.
90004         * lib/file-type.c (file_type): New file/function.  Extracted from
90005         diffutils.
90006
90007 2002-04-30  Jim Meyering  <meyering@lucent.com>
90008
90009         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90010
90011 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90012
90013         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
90014
90015 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90016
90017         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
90018         Do not check for alloca.h (no longer used) or stdbool.h (was never
90019         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
90020
90021 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90022
90023         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
90024
90025 2002-04-29  Jim Meyering  <meyering@lucent.com>
90026
90027         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
90028         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
90029         Use AC_FUNC_STRNLEN here instead.
90030
90031         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
90032         With autoconf-2.53a, it's part of AC_PROG_CC.
90033
90034 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90035
90036         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
90037         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
90038
90039 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90040
90041         * lib/sig2str.h, lib/sig2str.c: New files.
90042         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
90043
90044 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90045
90046         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
90047         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
90048         of 127, since 64 is the largest conceivable number for ancient
90049         nonstandard hosts.
90050         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
90051
90052 2002-04-28  Jim Meyering  <meyering@lucent.com>
90053
90054         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
90055
90056 2002-04-24  Jim Meyering  <meyering@lucent.com>
90057
90058         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
90059         (jm_PREREQ): Use it.
90060
90061         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
90062         mach/mach.h fcntl.h.
90063         Check for this function: setlocale.
90064
90065 2002-04-24  Jim Meyering  <meyering@lucent.com>
90066
90067         * lib/gettext.h: New file, from Gettext.
90068         * lib/Makefile.am (INCLUDES): Remove -I../intl.
90069         (libfetish_a_SOURCES): Add gettext.h.
90070
90071 2002-04-16  Jim Meyering  <meyering@lucent.com>
90072
90073         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
90074         ut_pid, ut_id, ut_exit.
90075
90076 2002-04-16  Jim Meyering  <meyering@lucent.com>
90077
90078         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
90079         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
90080         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
90081
90082 2002-04-12  Jim Meyering  <meyering@lucent.com>
90083
90084         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
90085         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
90086         existence of the getmntinfo function.  Needed for Darwin 5.3.
90087
90088         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
90089         This is necessary at least on Darwin 5.3.
90090
90091         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
90092         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
90093         strnlen.o in the library, and that makes some versions of ranlib
90094         object.
90095
90096 2002-04-12  Jim Meyering  <meyering@lucent.com>
90097
90098         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
90099
90100 2002-04-09  Jim Meyering  <meyering@lucent.com>
90101
90102         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
90103         to be more precise.  Rather than saying we're checking whether the
90104         function `works', say what we're testing.
90105         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
90106         Reported by Bruno Haible.
90107
90108 2002-03-10  Jim Meyering  <meyering@lucent.com>
90109
90110         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
90111         Suggestion from Santiago Vila.
90112
90113 2002-03-08  Jim Meyering  <meyering@lucent.com>
90114
90115         * lib/rename.c: Mention that this wrapper is needed also on
90116         mips-dec-ultrix4.4 systems.
90117
90118 2002-03-02  Jim Meyering  <meyering@lucent.com>
90119
90120         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
90121         not HAVE_CLOCK_SETTIME.
90122
90123 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90124
90125         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
90126         Check for clock_settime.
90127
90128 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90129
90130         * lib/nanosleep.h: Rename to....
90131         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
90132
90133         * lib/gettime.c: New file.
90134         * lib/settime.c: New file.
90135         * lib/stime.c: Remove.
90136
90137         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
90138         timespec.h.  Remove nanosleep.h.
90139
90140 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90141
90142         * m4/acl.m4: New file.
90143         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
90144         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
90145
90146 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90147
90148         * lib/acl.c, lib/acl.h: New files.
90149         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
90150
90151 2002-02-24  Jim Meyering  <meyering@lucent.com>
90152
90153         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
90154         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
90155         cause trouble.  Reported by Nelson Beebe.
90156
90157 2002-02-23  Paul Eggert  <eggert@twinsun.com>
90158
90159         * lib/path-concat.c (xpath_concat): Reorder code to pacify
90160         compilers that don't know that xalloc_die never returns.
90161
90162 2002-02-20  Jim Meyering  <meyering@lucent.com>
90163
90164         * lib/getdate.c: Regenerate using bison-1.33.
90165
90166 2002-02-17  Jim Meyering  <meyering@lucent.com>
90167
90168         * config/config.guess (main): Don't use `head -1'; it's no longer
90169         portable. Use `sed 1q' instead.
90170
90171 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
90172
90173         * m4/codeset.m4: Upgrade to gettext-0.11.
90174         * m4/gettext.m4: Upgrade to gettext-0.11.
90175         * m4/glibc21.m4: Upgrade to gettext-0.11.
90176         * m4/iconv.m4: Upgrade to gettext-0.11.
90177         * m4/isc-posix.m4: Upgrade to gettext-0.11.
90178         * m4/lcmessage.m4: Upgrade to gettext-0.11.
90179         * m4/lib-ld.m4: New file, from gettext-0.11.
90180         * m4/lib-link.m4: New file, from gettext-0.11.
90181         * m4/lib-prefix.m4: New file, from gettext-0.11.
90182         * m4/progtest.m4: Upgrade to gettext-0.11.
90183
90184 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90185
90186         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
90187         (jm_PREREQ): Use it.
90188
90189 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90190
90191         * lib/posixver.c, lib/posixver.h: New files.
90192         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90193
90194 2002-02-02  Paul Eggert  <eggert@twinsun.com>
90195             Bruno Haible  <bruno@clisp.org>
90196
90197         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
90198         (fwrite_success_callback): New declaration.
90199         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
90200         print_unicode_char. Call failure callback instead of error.
90201         (fwrite_success_callback): New function.
90202         (exit_failure_callback): New function.
90203         (fallback_failure_callback): New function.
90204         (print_unicode_char): Call unicode_to_mb.
90205
90206 2002-01-26  Jim Meyering  <meyering@lucent.com>
90207
90208         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
90209         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
90210
90211 2002-01-26  Jim Meyering  <meyering@lucent.com>
90212
90213         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
90214
90215 2002-01-22  Paul Eggert  <eggert@twinsun.com>
90216
90217         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
90218
90219 2002-01-22  Jim Meyering  <meyering@lucent.com>
90220
90221         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
90222         Otherwise, some versions of automake would omit the rule that makes
90223         Makefile from Makefile.in.
90224
90225 2002-01-21  Paul Eggert  <eggert@twinsun.com>
90226
90227         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
90228         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90229         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
90230         (memcoll): Set errno to zero if there is no error.
90231
90232         * lib/quotearg.c (quotearg_buffer_restyled):
90233         Fix bug with quoting buffers containing NUL when backslashing escapes.
90234         This bug was exposed by the other changes in this patch.
90235         (quotearg_n_options): New arg ARGSIZE.
90236         All callers changed.
90237         (quoting_options_from_style): New function.
90238         (quotearg_n_style): Use it.
90239         (quotearg_n_style_mem): New function.
90240
90241         * lib/quotearg.h (quotearg_n_style_mem): New function.
90242
90243 2002-01-19  Jim Meyering  <meyering@lucent.com>
90244
90245         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
90246         Remove useless quotes: DF_PROG="df".
90247         * m4/strnlen.m4: New file.
90248
90249 2002-01-16  Paul Eggert  <eggert@twinsun.com>
90250
90251         * lib/backupfile.c (ISDIGIT): Comment fix.
90252         * lib/getdate.y (ISDIGIT): Likewise.
90253         * lib/posixtm.c (ISDIGIT, year): Likewise.
90254         * lib/strverscmp.c (ISDIGIT): Likewise.
90255         * lib/userspec.c (ISDIGIT): Likewise.
90256
90257 2002-01-16  Jim Meyering  <meyering@lucent.com>
90258
90259         * lib/getdate.y: Add three semicolons, each just before a closing
90260         brace. Bison (as of version 1.31) no longer papers over that mistake.
90261
90262 2002-01-05  Jim Meyering  <meyering@lucent.com>
90263
90264         * lib/version-etc.c (version_etc_copyright): Update copyright year.
90265
90266 2001-12-19  Paul Eggert  <eggert@twinsun.com>
90267
90268         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
90269         not silently exit merely because the output buffer happens to
90270         have nothing pending.
90271
90272 2001-12-18  Paul Eggert  <eggert@twinsun.com>
90273
90274         See the big note in ../ChangeLog.
90275         * lib/human.c (suffixes): Prefer K to k for 1024.
90276         (generate_suffix_backwards): New function.
90277         (human_readable_inexact): Use it.
90278         * lib/xstrtol.c (__xstrtol): If there is no number but there
90279         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
90280         Accept 'K' as well as 'k'.
90281
90282 2001-12-15  Jim Meyering  <meyering@lucent.com>
90283
90284         * lib/regex.h (__restrict_arr): Update from libc.
90285
90286         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
90287         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
90288         (STREQ): Define.
90289
90290 2001-12-14  Jim Meyering  <meyering@lucent.com>
90291
90292         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
90293         Suggestion from Bruno Haible.
90294
90295 2001-12-10  Jim Meyering  <meyering@lucent.com>
90296
90297         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
90298         xrealloc, Instead, include "xalloc.h".
90299         (initbuffer): Don't cast xmalloc return value to char*.
90300         (readline): Reword comment.
90301         Don't cast xrealloc return value to char*
90302         Return NULL, not 0.
90303
90304 2001-12-09  Jim Meyering  <meyering@lucent.com>
90305
90306         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
90307         about `signed and unsigned type in conditional expression'.
90308         * lib/posixtm.c (posix_time_parse): Likewise.
90309
90310         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
90311
90312         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
90313         to avoid a pedantic warning.
90314
90315         * lib/getstr.c: Don't include assert.h.
90316         (getstr): Remove warning-evoking assertions.
90317         Return -1 if offset parameter is out of bounds.
90318         Change the type of a local from int to size_t.
90319
90320         * lib/strftime.c (my_strftime_localtime_r): Include this function
90321         definition in the `#if ! HAVE_TM_GMTOFF' block.
90322
90323         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
90324         Include xalloc.h instead.
90325
90326 2001-12-02  Jim Meyering  <meyering@lucent.com>
90327
90328         * lib/tempname.c: Don't declare getenv, thus reverting the change of
90329         2001-11-18.  It's no longer necessary, now that stdlib.h is always
90330         included.
90331
90332         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
90333         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
90334
90335 2001-11-30  Akim Demaille  <akim@epita.fr>
90336
90337         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
90338         before being defined.
90339
90340 2001-11-27  Paul Eggert  <eggert@twinsun.com>
90341
90342         * lib/quotearg.h (quotearg_n, quotearg_n_style):
90343         First arg is int, not unsigned.
90344         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
90345         (SIZE_MAX, UINT_MAX): New macros.
90346         (quotearg_n_options): Abort if N is negative.
90347         Avoid overflow check on hosts where size_t is 64 bits and int
90348         is 32 bits, as overflow is impossible there.
90349         Fix off-by-one typo that caused unnecessary reallocation.
90350
90351 2001-11-27  Jim Meyering  <meyering@lucent.com>
90352
90353         * lib/tempname.c: Merge with version from libc.
90354         * lib/regex.c: Likewise.
90355
90356         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
90357         systems for which STDC_HEADERS is 0, it was not included, resulting in
90358         a warning about an integer-to-pointer conversion problem with getenv.
90359         Reported by Volker Borchert.
90360
90361 2001-11-26  Jim Meyering  <meyering@lucent.com>
90362
90363         * lib/gtod.h: Remove file.
90364         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
90365         * lib/gettimeofday.c: Don't include gtod.h.
90366         (GTOD_init): Remove function.
90367         (rpl_gettimeofday): Do its job here instead, rather than aborting.
90368         Suggestion from Volker Borchert.
90369
90370 2001-11-23  Jim Meyering  <meyering@lucent.com>
90371
90372         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
90373         it.
90374         * lib/hash.c (struct hash_table): Define it here instead.
90375
90376 2001-11-22  Jim Meyering  <meyering@lucent.com>
90377
90378         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
90379
90380 2001-11-20  Jim Meyering  <meyering@lucent.com>
90381
90382         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
90383         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
90384
90385 2001-11-19  Jim Meyering  <meyering@lucent.com>
90386
90387         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
90388         directory.  Use "conftestXXXXXX" as the template.
90389         Suggestion from Paul Eggert.
90390
90391         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
90392         immediately, so the test doesn't mistakenly hit the max-open-files
90393         limit.
90394
90395 2001-11-18  Paul Eggert  <eggert@twinsun.com>
90396
90397         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
90398         (TEMPORARIES): New macro.
90399         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
90400         removes an artificial limitation (e.g. HP-UX 10.20, where
90401         TMP_MAX is 17576).
90402
90403 2001-11-18  Jim Meyering  <meyering@lucent.com>
90404
90405         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
90406
90407 2001-11-18  Jim Meyering  <meyering@lucent.com>
90408
90409         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
90410         on SunOS 4.
90411
90412         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
90413         files will be created before anything else.
90414
90415 2001-11-17  Paul Eggert  <eggert@twinsun.com>
90416
90417         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
90418         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
90419
90420 2001-11-17  Jim Meyering  <meyering@lucent.com>
90421
90422         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
90423         Prompted by a report from Bob Proulx.
90424
90425         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
90426         Instead, require UTILS_FUNC_MKSTEMP.
90427
90428 2001-11-17  Jim Meyering  <meyering@lucent.com>
90429
90430         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
90431         Now, that's done as part of AC_FUNC_STRTOD.
90432
90433 2001-11-17  Jim Meyering  <meyering@lucent.com>
90434
90435         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
90436         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
90437         rather than group writable.  Patch by Juan F. Codagnone.
90438
90439         * lib/readtokens.c: Remove explicit declarations of xmalloc and
90440         xrealloc, Instead, include "xalloc.h".
90441
90442         * lib/mountlist.c: Include unlocked-io.h after all system headers.
90443         Remove explicit declarations of xmalloc, xrealloc,
90444         and xstrdup.  Instead, include "xalloc.h".
90445
90446         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
90447         unlocked-io.h.
90448         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
90449         Likewise.
90450         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
90451
90452         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
90453         Reported by Padraig Brady.
90454
90455         * lib/mkstemp.c: #undef mkstemp.
90456         Include config.h.
90457         (rpl_mkstemp): Rename from mkstemp.
90458         Protoize.
90459
90460 2001-11-16  Jim Meyering  <meyering@lucent.com>
90461
90462         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
90463         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
90464         determine the amount of total physical memory, use pstat_getstatic.
90465         HPUX-11 doesn't define _SC_PHYS_PAGES.
90466         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
90467         If sysconf couldn't be used to determine the amount of available
90468         physical memory, use both pstat_getstatic and pstat_getdynamic.
90469         Based on a patch from Bob Proulx.
90470
90471 2001-11-10  Jim Meyering  <meyering@lucent.com>
90472
90473         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
90474         (jm_PREREQ): Use it.
90475
90476 2001-11-09  Jim Meyering  <meyering@lucent.com>
90477
90478         * m4/jm-macros.m4: Require autoconf-2.52f.
90479         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
90480         Use these AC_-prefixed names, not the AM_-prefixed ones.
90481
90482         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
90483
90484 2001-11-05  Jim Meyering  <meyering@lucent.com>
90485
90486         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
90487
90488 2001-11-04  Jim Meyering  <meyering@lucent.com>
90489
90490         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
90491         $DEFS.
90492
90493 2001-11-03  Jim Meyering  <meyering@lucent.com>
90494
90495         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
90496         of AC_DEFUN.
90497
90498         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
90499         know the name of the variable in the macro definition.
90500
90501 2001-11-03  Jim Meyering  <meyering@lucent.com>
90502
90503         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
90504         in argmatch_to_argument call.
90505
90506         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
90507         argument.
90508
90509         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
90510         e.g., a fault due to an attempt to free a NULL pointer.
90511
90512 2001-11-01  Jim Meyering  <meyering@lucent.com>
90513
90514         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
90515         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
90516
90517 2001-11-01  Jim Meyering  <meyering@lucent.com>
90518
90519         * lib/dirfd.c, lib/dirfd.h: New files.
90520         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
90521
90522         * lib/hash.c (hash_print) [TESTING]: Clean up.
90523
90524 2001-10-22  Paul Eggert  <eggert@twinsun.com>
90525
90526         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
90527         to avoid a warning if -Wall.
90528
90529 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
90530
90531         * README: New file
90532         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
90533         (per RMS's instructions, this is now the canonical source)
90534         * lgpl/, gpl/: New directories.
90535
90536 2001-10-21  Paul Eggert  <eggert@twinsun.com>
90537
90538         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
90539
90540 2001-10-21  Jim Meyering  <meyering@lucent.com>
90541
90542         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
90543         this code would end up calling gettext even in packages built
90544         with --disable-nls.
90545         * lib/getopt.c (_): Likewise.
90546         * lib/regex.c (_): Likewise.
90547
90548 2001-10-20  Paul Eggert  <eggert@twinsun.com>
90549
90550         * m4/error.m4 (jm_PREREQ_ERROR):
90551         Do not invoke AC_CHECK_FUNCS with strerror_r, as
90552         AC_FUNC_STRERROR_R does that.
90553         Check for strerror declaration.
90554
90555         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
90556         are supposed to have them these days.
90557         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
90558         Merge changes from latest Autoconf CVS.
90559         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
90560         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
90561         POSIX decided to standardize on the int flavor of strerror_r.
90562
90563 2001-10-20  Paul Eggert  <eggert@twinsun.com>
90564
90565         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
90566         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
90567         Use strerror_r that is only a macro, even if it is not a function.
90568         (strerror): Check for HAVE_DECL_STRERROR before declaring.
90569         (private_strerror): Use prototypes, not old-style function definition.
90570         (print_errno_message): New function.
90571         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
90572         char*-flavored one.
90573         (error_tail, error, error_at_line): Use it.
90574
90575 2001-10-11  Jim Meyering  <meyering@lucent.com>
90576
90577         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
90578         and quote_n (1, ... to avoid clobbering a buffer.
90579
90580 2001-10-05  Jim Meyering  <meyering@lucent.com>
90581
90582         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
90583         hash-pjw.h.
90584         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
90585         * lib/hash-pjw.h: New file.
90586
90587 2001-09-30  Jim Meyering  <meyering@lucent.com>
90588
90589         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
90590         `struct fsstat' has the `f_fstypename' member.
90591         Use that to define FS_TYPE, which is now used to make
90592         the getfsstat link test tighter.
90593
90594 2001-09-30  Jim Meyering  <meyering@lucent.com>
90595
90596         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
90597         Include <sys/ucred.h>, for Apple Darwin.
90598         Include sys/mount.h and sys/fs_types.h only if available.
90599         (FS_TYPE): Define.
90600         (read_filesystem_list): Use FS_TYPE.
90601
90602 2001-09-29  Paul Eggert  <eggert@twinsun.com>
90603
90604         * lib/exclude.c (excluded_filename): 0 -> false, since it's
90605         a boolean context.
90606
90607 2001-09-29  Jim Meyering  <meyering@lucent.com>
90608
90609         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
90610         [one-argument getmntent function]): Include stdio.h before mntent.h.
90611         SunOS 4.1.x needs it for the declaration of `FILE'.
90612         Patch by Volker Borchert.
90613
90614         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
90615         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
90616         sys/fs_types.h, and make the link-test for getfsstat guard #include
90617         directives with appropriate #if HAVE_*_H tests so that we can
90618         detect getfsstat on Apple Darwin1.3.7 systems.
90619         Reported by Nelson Beebe.
90620         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
90621
90622 2001-09-28  Paul Eggert  <eggert@twinsun.com>
90623
90624         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
90625         #defines strtoimax.  Also treat the other strto* functions
90626         like strtoimax.
90627
90628         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
90629         Check for strtoul and strtoumax,
90630         as those declarations are made even in the signed case.
90631         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
90632         Likewise, for strtol and strtoimax.
90633
90634 2001-09-28  Paul Eggert  <eggert@twinsun.com>
90635
90636         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
90637         #defines strtoimax.  Also treat the other strto* functions
90638         like strtoimax.
90639
90640         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
90641         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
90642         (strtoimax, strtoumax): Do not declare if already defined as a macro.
90643
90644 2001-09-26  Jim Meyering  <meyering@lucent.com>
90645
90646         Most macros in unlocked-io.h had the wrong number of arguments.
90647         * lib/gen-uio: New script.
90648         (USE_UNLOCKED_IO): Define to 1 if not already defined.
90649         * lib/unlocked-io.hin: Remove file.
90650         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
90651         rather than trying to embed it here.
90652         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
90653         Reported by Padraig Brady.
90654
90655 2001-09-25  Volker Borchert  <bt@teknon.de>
90656
90657         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
90658         `result'.
90659
90660 2001-09-24  Jim Meyering  <meyering@lucent.com>
90661
90662         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
90663
90664 2001-09-23  Jim Meyering  <meyering@lucent.com>
90665
90666         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
90667         instead of the mere test for existence of mntent.h.  The latter
90668         would get a false-positive on AIX 3.4 systems.
90669         In the outer getmntent if-block, don't die if neither of the getmntent
90670         tests succeeds.  Instead, just fall through and continue with the
90671         remaining tests.
90672
90673 2001-09-23  Jim Meyering  <meyering@lucent.com>
90674
90675         * lib/mountlist.c: Remove useless parentheses in #if directives.
90676         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
90677         the deprecated MOUNTED symbol is no longer defined in mntent.h.
90678
90679 2001-09-22  Jim Meyering  <meyering@lucent.com>
90680
90681         * m4/gettext.m4: New file.  From gettext.
90682         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
90683         * m4/progtest.m4: Likewise
90684         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
90685         * m4/glibc21.m4: Likewise.
90686
90687         * m4/libintl.m4: Remove.  No longer used.
90688
90689 2001-09-22  Jim Meyering  <meyering@lucent.com>
90690
90691         * lib/localcharset.c: Update from latest gettext.
90692         * lib/config.charset: Likewise.
90693
90694 2001-09-20  Jim Meyering  <meyering@lucent.com>
90695
90696         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
90697         strtoimax.
90698         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
90699         strtoumax.
90700
90701 2001-09-20  Jim Meyering  <meyering@lucent.com>
90702
90703         * lib/xstrtol.c (strtoimax): Guard declaration with
90704         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
90705         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
90706         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
90707         (strtoumax): Likewise, for completeness (it wasn't necessary).
90708
90709 2001-09-17  Paul Eggert  <eggert@twinsun.com>
90710
90711         * lib/strtoimax.c (HAVE_LONG_LONG):
90712         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
90713         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
90714         to work around bug in IBM C compiler.
90715
90716 2001-09-17  Jim Meyering  <meyering@lucent.com>
90717
90718         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
90719         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
90720         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
90721         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
90722         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
90723         whenever the right hand side need not be expanded by the shell.
90724
90725 2001-09-16  Paul Eggert  <eggert@twinsun.com>
90726
90727         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
90728         library.  It's not correct, as some older glibcs are buggy.
90729         fnmatch wasn't fixed until glibc 2.2.
90730
90731         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
90732         special shell magic here.
90733
90734 2001-09-16  Jim Meyering  <meyering@lucent.com>
90735
90736         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
90737         * m4/jm-macros.m4: Require it.
90738
90739 2001-09-16  Jim Meyering  <meyering@lucent.com>
90740
90741         * lib/mkdir.c: New file.
90742
90743 2001-09-15  Jim Meyering  <meyering@lucent.com>
90744
90745         * m4/jm-macros.m4: Check for help2man.
90746
90747 2001-09-11  Jim Meyering  <meyering@lucent.com>
90748
90749         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
90750         The body, by Paul Eggert, was moved here from configure.in.
90751         * m4/jm-macros.m4: Require UTILS_HOST_OS.
90752
90753 2001-09-04  Paul Eggert  <eggert@twinsun.com>
90754
90755         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
90756         (jm_PREREQ): Use it.
90757
90758 2001-09-04  Paul Eggert  <eggert@twinsun.com>
90759
90760         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
90761         Use ssize_t, not int, to store result of readlink.
90762         Check for ssize_t overflow as well as size_t overflow,
90763         as POSIX says the result of readlink is implementation-defined
90764         when ssize_t overflows.
90765         Remove unnecessary cast to char*.
90766         Use free+malloc instead of realloc, as the storage doesn't need
90767         to be preserved and it's clearer and can be more efficient that way.
90768         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
90769         * lib/xreadlink.h (xreadlink): Update prototype.
90770
90771 2001-09-04  Paul Eggert  <eggert@twinsun.com>
90772
90773         * lib/xgetcwd.c: Revert some of the previous change; intead,
90774         fix the HAVE_GETCWD_NULL code to behave more like the
90775         !HAVE_GETCWD_NULL code used to.
90776
90777         Include "xalloc.h".
90778         (xgetcwd): Do not return NULL when memory is exhausted; instead,
90779         invoke xalloc_die.
90780
90781 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90782
90783         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
90784         sys/param.h, as pathmax.h includes them.
90785
90786 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90787
90788         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
90789         (jm_PREREQ_XGETCWD): New macro.
90790
90791         * m4/getcwd.m4: New file.
90792
90793 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90794
90795         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
90796         like the HAVE_GETCWD_NULL code.
90797         Include pathmax.h if not HAVE_GETCWD.
90798         Do not include xalloc.h.
90799         (INITIAL_BUFFER_SIZE): New symbol.
90800         Do not use xmalloc / xrealloc, since the caller is responsible for
90801         handling errors.  Preserve errno around `free' during failure.
90802         Do not overrun buffer when using getwd.
90803
90804 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90805
90806         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
90807         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
90808         getcwd (NULL, 0).
90809
90810 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90811
90812         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
90813         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
90814         spotted by Jim Meyering.
90815
90816 2001-09-03  Jim Meyering  <meyering@lucent.com>
90817
90818         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
90819         failure.
90820
90821 2001-09-02  Jim Meyering  <meyering@lucent.com>
90822
90823         * lib/error.c: Update from GNU libc.
90824
90825 2001-09-01  Jim Meyering  <meyering@lucent.com>
90826
90827         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
90828         Used by df.
90829
90830 2001-09-01  Jim Meyering  <meyering@lucent.com>
90831
90832         * lib/xreadlink.c: New file.
90833         * lib/xreadlink.h: New file.
90834         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
90835         xreadlink.h.
90836
90837         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
90838         doesn't conflict with sparc Solaris 7's definition in
90839         /usr/include/sys/int_types.h.
90840
90841         * lib/exclude.c: Use `""', not `<>' to #include non-system header
90842         files.
90843         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
90844         and strncasecmp as r-values.  Unixware didn't have declarations.
90845
90846 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90847
90848         * lib/xstrtol.h: Add copyright notice.
90849         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
90850         LONGINT_INVALID_SUFFIX_CHAR.
90851
90852 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90853
90854         * lib/xstrtol.c (strtoimax): New decl.
90855
90856 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90857
90858         * lib/xgetcwd.c: Don't include pathmax.h.
90859         Include stdlib.h and unistd.h if available.
90860         Include xalloc.h.
90861         (xmalloc, xstrdup, free): Remove decls.
90862         (xgetcwd): Don't assume sizes fit in unsigned.
90863         Check for overflow when computing sizes.
90864         Simplify reallocation code.
90865
90866 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90867
90868         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
90869         a directory's st_size can have an arbitrary value, so the old
90870         usage could waste an arbitrary amount of memory.  All uses
90871         changed.
90872         * lib/savedir.h: Update prototype.
90873
90874 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90875
90876         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
90877
90878         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
90879         old strtoimax.c.
90880
90881         Also, make the following further changes to make this file's
90882         configuration more similar to that of strtol.c:
90883         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
90884         (strtoumax, uintmax_t, strtoull, strtol): Remove.
90885         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
90886         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
90887         changed to signed values.
90888
90889         And make the following changes as well:
90890         Fix copyright notice, as 1999 was missing.
90891         (verify): New macro.
90892         (strtoimax): Check sizes at compile-time, not run-time.
90893         Prefer strtol to strtoll if both work.
90894         (main): Remove; it was not that useful and was a pain to maintain.
90895
90896         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
90897
90898 2001-08-31  Jim Meyering  <meyering@lucent.com>
90899
90900         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
90901         Use an initial, malloc'd, buffer of length 128 rather than
90902         a statically allocated one of length 1024.
90903
90904 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90905
90906         Simplify code, partly by assuming autoconf 2.52 semantics.
90907
90908         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
90909
90910         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
90911         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
90912         All uses removed.
90913         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
90914         Move AC_REQUIRE to next-to-top level, to avoid confusion.
90915         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
90916         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
90917         jm_AC_HEADER_INTTYPES_H.
90918         * m4/jm-macros.m4 (jm_MACROS): Likewise.
90919
90920         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
90921
90922         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
90923         Quote first arg of AC_DEFUN.
90924         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
90925         since they are needed to parse the include file even if we need
90926         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
90927         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
90928         but with opposite signedness.
90929
90930 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90931
90932         Merge 'exclude' changes from tar 1.13.22.
90933         This fixes one or two unlikely storage allocation overflow bugs,
90934         but doesn't change user-visible behavior otherwise.
90935
90936 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90937
90938         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
90939         (jm_PREREQ_EXCLUDE): New macro.
90940
90941 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90942
90943         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
90944         tm to be declared.
90945
90946 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90947
90948         * lib/hash.c: Remove '2001' from copyright notice.
90949
90950 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90951
90952         * lib/full-write.h: New file.
90953         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
90954         * lib/full-write.c: Correct credits, as cccp.c no longer
90955         exists and anyway it was so heavily changed from the old cccp
90956         code as to be unrecognizable.  Include full-write.h.
90957         (full_write): Return size_t, with short writes meaning failure.
90958         All callers changed.  This fixes a bug with large buffers
90959         on 64-bit hosts.
90960         * lib/utime.c: Include full-write.h.
90961
90962 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90963
90964         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
90965         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
90966         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
90967         Include if available.
90968         (<xalloc.h>): Include
90969         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
90970         (verify): New macro.  Use it to verify that EXCLUDE macros do not
90971         collide with FNM macros.
90972         (struct patopts): New struct.
90973         (struct exclude): Use it, as exclude patterns now come with options.
90974         (new_exclude): Support above changes.
90975         (new_exclude, add_exclude_file):
90976         Initial size must now be a power of two to simplify overflow checking.
90977         (free_exclude, fnmatch_no_wildcards): New function.
90978         (excluded_filename): No longer requires options arg, as the options
90979         are determined by add_exclude.  Now returns bool, not int.
90980         (excluded_filename, add_exclude):
90981         Add support for the fancy new exclusion options.
90982         (add_exclude, add_exclude_file): Now takes int options arg.
90983         Check for arithmetic overflow when computing sizes.
90984         (add_exclude_file): xrealloc might modify errno, so don't
90985         realloc until after errno might be used.
90986
90987         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
90988         New macros.
90989         (free_exclude): New decl.
90990         (add_exclude, add_exclude_file): Now takes int options arg.
90991         (excluded_filename): No longer requires options arg, as the options
90992         are determined by add_exclude.  Now returns bool, not int.
90993
90994 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90995
90996         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
90997
90998 2001-08-27  Jim Meyering  <meyering@lucent.com>
90999
91000         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91001
91002         * lib/version-etc.c (N_): Remove definition.
91003         Revert most of last change.
91004         Instead, simply don't mark the `Copyright...' string for translation.
91005         Based on advice from Paul Eggert.
91006
91007         * lib/strtoxmax.c: Tweak comment.
91008
91009 2001-08-26  Jim Meyering  <meyering@lucent.com>
91010
91011         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
91012
91013         * m4/xstrtoimax.m4: New file.
91014         * m4/xstrtoumax.m4: Add comments explaining why we
91015         AC_REPLACE_FUNCS(strtol).
91016
91017 2001-08-26  Jim Meyering  <meyering@lucent.com>
91018
91019         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
91020         of copyright with `%s' so translators don't get an untranslated
91021         message in 2002.
91022         (COPYRIGHT_YEAR): Define.
91023         (version_etc): Use fprintf rather than fputs.
91024         Suggestion from Ulrich Drepper.
91025
91026         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
91027
91028         * lib/strtoll.c: New file, from GNU libc.
91029         * lib/xstrtoimax.c: New file.
91030
91031         * lib/xstrtol.h: Add xstrtoimax.
91032         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
91033         * lib/strtoimax.c: New file.  Likewise, but first define
91034         STRTOUXMAX_SIGNED.
91035
91036         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
91037         ...
91038         * lib/strtoxmax.c: ... then renamed to this.
91039
91040 2001-08-18  Paul Eggert  <eggert@twinsun.com>
91041
91042         * m4/inttypes.m4: Add AC_PREREQ(2.13).
91043         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
91044         (jm_AC_TYPE_INTMAX_T): New macro.
91045         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
91046
91047         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
91048
91049         * m4/longlong.m4: Renamed from ulonglong.m4.
91050         * m4/inttypes.m4: Renamed from inttypes_h.m4.
91051         * m4/uintmax_t.m4: Removed.
91052
91053 2001-08-13  Paul Eggert  <eggert@twinsun.com>
91054
91055         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
91056         Port to Solaris 8, where 'sed' requires a space after the 'r'
91057         command, and where sh dislikes "$/".  Clean up the spacing a bit.
91058         Redirect output to $tmp just once.
91059
91060 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
91061
91062         * lib/addext.c (<errno.h>): Include.
91063         (errno): Declare if not defined.
91064         (addext): Work correctly when pathconf returns -1 and leaves
91065         errno alone because there is no limit.  Also, work even if
91066         pathconf returns a value greater than SIZE_MAX.
91067
91068 2001-08-12  Jim Meyering  <meyering@lucent.com>
91069
91070         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
91071         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
91072         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
91073         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
91074         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
91075         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
91076         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
91077         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
91078         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
91079         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
91080         utime.m4, utimes.m4, xstrtoumax.m4:
91081         Quote the first argument in each use of AC_DEFUN.
91082
91083 2001-08-12  Jim Meyering  <meyering@lucent.com>
91084
91085         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
91086         Simply `return getcwd (NULL, 0);'.
91087         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
91088         Use 1300 as initial value for length, not PATH_MAX.
91089
91090         * lib/pathmax.h: Clean up cpp syntax.
91091
91092 2001-08-12  Jim Meyering  <meyering@lucent.com>
91093
91094         * lib/gettimeofday.c: New file.
91095         * lib/gtod.h: New file.
91096         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
91097
91098 2001-08-05  Jim Meyering  <meyering@lucent.com>
91099
91100         * m4/jm-macros.m4: Require autoconf-2.52.
91101
91102 2001-08-04  Jim Meyering  <meyering@lucent.com>
91103
91104         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
91105         stmt, to get in sync with glibc.
91106
91107 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91108
91109         The following changes are from gettext 0.10.39 as maintained by
91110         Bruno Haible.
91111
91112         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
91113         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
91114         with inverted sense.  All uses changed.
91115
91116         * lib/mbswidth.c: Don't include <limits.h>.
91117         Include <stdlib.h> and <string.h> unconditionally.
91118         (iswcntrl, mbsinit, ISCNTRL): New macros.
91119         (mbsnwidth): Use K&R style function declarations.
91120         Don't bother checking for MB_LEN_MAX == 1, since the compiler
91121         can optimize it when MB_CUR_MAX == 1.
91122         The width of control characters is zero, not 1.
91123
91124 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91125
91126         The following changes are from gettext 0.10.39 as maintained by
91127         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
91128
91129         * m4/codeset.m4: Upgrade to serial AM1.
91130         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
91131         all uses changed.  Quote first arg of AC_DEFUN.
91132         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
91133
91134         * m4/iconv.m4: Upgrade to serial AM2.
91135         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
91136         Add --with-libconv-prefix.
91137         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
91138         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
91139         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
91140         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
91141         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
91142
91143         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
91144         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
91145         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
91146         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
91147         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
91148         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
91149         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
91150         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
91151         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
91152
91153         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
91154         string.h any more.
91155
91156         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
91157         not the default value.
91158
91159         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
91160         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
91161         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
91162         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
91163         Also check for iswcntrl, used for wcwidth fallback.
91164         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
91165         to Autoconf 2.13.
91166
91167 2001-08-03  Jim Meyering  <meyering@lucent.com>
91168
91169         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
91170         as it was in the original.  Reported by Paul Eggert.
91171
91172 2001-07-16  Jim Meyering  <meyering@lucent.com>
91173
91174         * m4/gettimeofday.m4: New file.
91175         Prompted by a report from Bernhard Baehr.
91176
91177 2001-07-15  Jim Meyering  <meyering@lucent.com>
91178
91179         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
91180         stuff. Now it's in ../Makefile.cfg.
91181
91182 2001-07-15  Jim Meyering  <meyering@lucent.com>
91183
91184         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
91185         (BUILT_SOURCES): Add unlocked-io.h.
91186         (io_functions): Define.
91187         (unlocked-io.h): New rule.
91188         (DISTCLEANFILES): Add unlocked-io.h.
91189         (all-local): Depend on unlocked-io.h, to ensure it is created.
91190
91191         * lib/unlocked-io.hin: New file
91192
91193         * lib/regex.c: Update from glibc.
91194
91195 2001-07-05  Jim Meyering  <meyering@lucent.com>
91196
91197         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
91198         recommendation.
91199         (libfetish_a_SOURCES): Put all .h files here instead.
91200         Remove a thus-exposed (better checks in automake) duplicate and
91201         two unnecessary .h files.
91202
91203 2001-07-04  Jim Meyering  <meyering@lucent.com>
91204
91205         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
91206         that generates jm-glibc-io.m4 so that it doesn't trigger any make
91207         distcheck failure.
91208
91209 2001-07-02  Jim Meyering  <meyering@lucent.com>
91210
91211         The following changes were prompted by suggestions from Bruno Haible.
91212
91213         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
91214         is now generated.
91215         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
91216         definition of EXTRA_DIST.
91217         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
91218         ensure that the generated file is created/updated whenever the list
91219         of $(unlocked_functions) is changed.
91220         (jm-glibc-io.m4): New rule.
91221         (unlocked-io.h): New rule -- currently unused.
91222
91223 2001-06-24  Jim Meyering  <meyering@lucent.com>
91224
91225         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
91226         unmatched right bracket, rather than kludging it with an extra,
91227         falsely-matching quote in a comment.  Patch by Akim Demaille.
91228
91229 2001-06-11  Jim Meyering  <meyering@lucent.com>
91230
91231         * lib/regex.c: Update from GNU libc.
91232
91233 2001-05-27  Jim Meyering  <meyering@lucent.com>
91234
91235         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
91236         Check for ut_type in struct utmp.
91237
91238 2001-05-27  Jim Meyering  <meyering@lucent.com>
91239
91240         * lib/readutmp.h (UT_TYPE): Define.
91241
91242 2001-05-24  Jim Meyering  <meyering@lucent.com>
91243
91244         * lib/argmatch.c: Include "quote.h".
91245         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
91246         quote function.  Reported by Göran Uddeborg.
91247
91248 2001-05-22  Jim Meyering  <meyering@lucent.com>
91249
91250         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
91251         now that we use the package-supplied version unconditionally.
91252         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
91253
91254 2001-05-21  Jim Meyering  <meyering@lucent.com>
91255
91256         * m4/regex.m4: Change a couple backticks to single quotes to avoid
91257         shell syntax errors.
91258
91259 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
91260
91261         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
91262
91263 2001-05-20  Paul Eggert  <eggert@twinsun.com>
91264
91265         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
91266         Don't bother to check library strftime, since
91267         we'll be using our own my_strftime function anyway.
91268         Define my_strftime instead of strftime.
91269
91270 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
91271
91272         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
91273         which is not yet declared.
91274
91275 2001-05-15  Jim Meyering  <meyering@lucent.com>
91276
91277         * m4/regex.m4: Use proper quoting so brackets appear in the test
91278         program.
91279         Reported by, and with help from, Bruno Haible.
91280
91281 2001-05-13  Jim Meyering  <meyering@lucent.com>
91282
91283         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
91284         undefined.
91285
91286 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91287
91288         dirname code cleanup.  base_name now behaves more compatibly
91289         with POSIX basename when given file names that have trailing
91290         slashes, and similarly for dir_name.  Add new primitives
91291         base_len and dir_len.  Put the directory-name-related decls
91292         into dirname.h.
91293
91294         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
91295         * lib/backupfile.c (base_name): Likewise.
91296         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
91297         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
91298         * lib/makepath.c (strip_trailing_slashes): Likewise.
91299         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
91300         ISSLASH): Likewise.
91301         * lib/rename.c (strip_trailing_slashes): Likewise.
91302         * lib/same.c (base_name): Likewise.
91303         * lib/stripslash.c (ISSLASH): Likewise.
91304
91305         * lib/addext.c: Include <dirname.h> after size_t is defined.
91306         * lib/backupfile.c: Likewise.
91307
91308         * lib/addext.c (addext): Use base_len to trim redundant
91309         trailing slashes instead of doing it ourselves.
91310         But do not trim the last slash if it is not redundant.
91311
91312         * lib/backupfile.c (find_backup_file_name,
91313         max_backup_version): Use base_len instead of rolling it ourselves.
91314         Handle the case of "" and (on DOS) "C:" correctly.
91315
91316         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
91317         needed. Include <string.h>, <dirname.h>.
91318         (base_name): Allow file names ending in slashes, other than names
91319         that are all slashes.  In this case, return the basename followed
91320         by the slashes.  This is more general, and can be used in places
91321         where the original base_name purposely had an assertion failure.
91322         (base_len): New function.
91323
91324         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
91325         Do not include <assert.h>; no longer needed.
91326         Include xalloc.h.
91327         (memrchr): Remove decl.
91328         (dir_name_r): Remove.
91329         (dir_len): Renamed from dirlen.  All callers changed.
91330         Rewrite in terms of base_name, for simplicity and consistency.
91331         (dir_name): Never return NULL.  All callers changed.
91332         Do not include <stdlib.h> in test program; no longer needed.
91333         return 0; is fine for test program.
91334
91335         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
91336         New macros.
91337         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
91338
91339         * lib/path-concat.c (path_concat): Use base_len to compute
91340         base length, not strlen; this means we cannot rely on memcpy
91341         to null-terminate.
91342
91343         * lib/same.c (STREQ): Remove.
91344         (same_name): Handle the case where the basename ends in trailing '/'.
91345
91346         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
91347         a slash was stripped.  Do not strip the last slash after a
91348         file system prefix.
91349
91350 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91351
91352         * lib/Makefile.am (libfetish_a_SOURCES):
91353         Add strftime.c, since we now compile it on all hosts.
91354
91355         * lib/strftime.c (my_strftime):
91356         Define to nstrftime if emacs, but only if my_strftime is not defined.
91357         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
91358         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
91359         Add one more extra argument: a nanoseconds value.
91360         All uses changed.
91361         (ns): New macro.
91362         (my_strftime function): Add %N format.
91363         (emacs_strftimeu): Renamed from emacs_strftime,
91364         with extra ut argument.
91365
91366 2001-05-09  Paul Eggert  <eggert@twinsun.com>
91367
91368         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
91369
91370 2001-04-21  Jim Meyering  <meyering@lucent.com>
91371
91372         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
91373         doesn't interfere.
91374
91375 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
91376
91377         * m4/ftruncate.m4: Check for chsize.
91378         Link with ftruncate.o unconditionally if ftruncate is missing.
91379         This was required when cross-compiling to i586-mingw32msvc.
91380
91381 2001-04-08  Jim Meyering  <meyering@lucent.com>
91382
91383         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
91384         recomputed; that's necessary when the offset spans a DST transition.
91385         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
91386
91387 2001-04-02  Jim Meyering  <meyering@lucent.com>
91388
91389         * lib/regex.h, regex.c: Update from GNU libc.
91390
91391 2001-03-24  Jim Meyering  <meyering@lucent.com>
91392
91393         * m4/jm-macros.m4: Require autoconf-2.49d.
91394
91395 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
91396
91397         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
91398
91399 2001-03-19  Paul Eggert  <eggert@twinsun.com>
91400
91401         * lib/version-etc.c (version_etc_copyright): Update to 2001.
91402
91403 2001-03-17  Jim Meyering  <meyering@lucent.com>
91404
91405         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
91406         now that the version in autoconf is equivalent.
91407         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
91408
91409         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
91410         Suggestion from Akim Demaille.
91411
91412         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
91413         (jm_PREREQ_TEMPNAME): New function.
91414
91415 2001-03-16  Paul Eggert  <eggert@twinsun.com>
91416
91417         * lib/tempname.c (uint64_t): Define to uintmax_t if
91418         not defined, and if UINT64_MAX is not defined.
91419         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
91420         Reported by John David Anglin.
91421
91422 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
91423
91424         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
91425         resolve alias if codeset is empty.
91426         * lib/config.charset (BeOS): Use wildcard syntax.
91427
91428 2001-03-13  Jim Meyering  <meyering@lucent.com>
91429
91430         * lib/path-concat.c (path_concat)
91431         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
91432         concatenating e.g., `C:' and `foo'.
91433         From Bruno Haible.
91434
91435 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
91436
91437         * lib/localcharset.c (locale_charset): Don't use
91438         setlocale(LC_CTYPE,NULL). Don't return NULL.
91439         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
91440
91441 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
91442
91443         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
91444         support for DOS/DJGPP.
91445
91446 2001-03-01  Paul Eggert  <eggert@twinsun.com>
91447
91448         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
91449         lacks mkstemp.  Compile our own tempname.c if we compile our own
91450         mkstemp.c, as mkstemp relies on tempname.
91451
91452 2001-03-01  Jim Meyering  <meyering@lucent.com>
91453
91454         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
91455         AH_VERBATIM really does output its argument verbatim.
91456
91457 2001-02-28  Paul Eggert  <eggert@twinsun.com>
91458
91459         * lib/Makefile.am (libfetish_a_SOURCES):
91460         Add dup-safer.c, fopen-safer.c.
91461         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
91462
91463         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
91464         * lib/unistd-safer.h: New files.
91465
91466 2001-02-25  Paul Eggert  <eggert@twinsun.com>
91467
91468         The mkstemp replacement is taken from glibc 2.2.2, with some
91469         portability fixes for use outside glibc, as follows:
91470
91471         * lib/tempname.c (struct_stat64): New macro.
91472         (direxists, __gen_tempname): Use it.
91473         This avoids a portability problem with Solaris 8.
91474
91475         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
91476         (<stddef.h>, <stdint.h>, <string.h>):
91477         Include only if STDC_HEADERS || _LIBC.
91478         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
91479         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
91480         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
91481         (__set_errno): Define this macro if <errno.h> doesn't.
91482         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
91483         Define these macros if <stdio.h> doesn't.
91484         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
91485         Define these macros if <sys/stat.h>
91486         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
91487         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
91488         __xstat64): Define if not _LIBC.
91489         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
91490         (__gen_tempname): Invoke gettimeofday only if
91491         HAVE_GETTIMEOFDAY || _LIBC;
91492         otherwise, fall back on plain "time".
91493         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
91494
91495         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
91496
91497         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
91498
91499 2001-02-18  Paul Eggert  <eggert@twinsun.com>
91500
91501         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
91502
91503 2001-02-17  Paul Eggert  <eggert@twinsun.com>
91504
91505         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
91506         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
91507         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
91508         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91509
91510 2001-02-17  Paul Eggert  <eggert@twinsun.com>
91511
91512         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
91513         Remove workaround macros for hosts that have mbrtowc but not
91514         mbstate_t, as we now insist on proper declarations for both
91515         before using mbrtowc.
91516
91517 2001-02-17  Jim Meyering  <meyering@lucent.com>
91518
91519         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
91520         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
91521         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
91522         UnixWare 7.1.1.
91523
91524         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
91525         rather than AC_CACHE_VAL.
91526
91527 2001-02-17  Jim Meyering  <meyering@lucent.com>
91528
91529         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
91530         around included file name.
91531
91532         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
91533
91534         * lib/strftime.c: Update from GNU libc (the only changes were to
91535         comments).
91536
91537 2001-02-17  Jim Meyering  <meyering@lucent.com>
91538
91539         * lib/regex.c: Update from libc.
91540
91541 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
91542
91543         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
91544         clash.
91545
91546 2001-02-16  Paul Eggert  <eggert@twinsun.com>
91547
91548         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
91549         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
91550         Reported by Mark Hounschell via Paul Eggert.
91551
91552 2001-02-07  Jim Meyering  <meyering@lucent.com>
91553
91554         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
91555
91556 2001-02-05  Jim Meyering  <meyering@lucent.com>
91557
91558         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
91559         it includes the patch required for `large file' support with at least
91560         HP-UX's 10.20 /bin/cc.
91561
91562 2001-02-03  Jim Meyering  <meyering@lucent.com>
91563
91564         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
91565         AS_IF, now that it works once again (mysteriously).
91566         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
91567
91568 2001-01-30  Jim Meyering  <meyering@lucent.com>
91569
91570         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
91571         * m4/chown.m4: Rename conftestchown to conftest.chown.
91572         * m4/rename.m4: s/conftestdir/conftest.d1/ and
91573         s/conftestdir2/conftest.d2/.
91574         * m4/utimes.m4: s/conftestdata/conftest.data/
91575         Inspired by Pavel Roskin's change in autoconf.
91576
91577 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
91578
91579         * lib/config.charset: Update for FreeBSD 4.2.
91580
91581 2001-01-27  Jim Meyering  <meyering@lucent.com>
91582
91583         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
91584         a use of AS_IF.
91585         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
91586
91587 2001-01-26  Jim Meyering  <meyering@lucent.com>
91588
91589         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
91590         quotearg.c includes it.
91591
91592 2001-01-26  Jim Meyering  <meyering@lucent.com>
91593
91594         * lib/quotearg.c: Include stddef.h.
91595         * lib/quote.c: Include stddef.h.
91596         Reported by Axel Kittenberger.
91597
91598         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
91599         line in double quotes so that it evokes a better diagnostic.
91600         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
91601         Reported by Axel Kittenberger.
91602
91603 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
91604
91605         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
91606         as if it was a `charset'.
91607
91608 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
91609
91610         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
91611         has const.
91612
91613 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
91614
91615         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
91616         to avoid a warning.  Add back 'const' to inptr.
91617
91618 2001-01-20  Jim Meyering  <meyering@lucent.com>
91619
91620         Be sure that headers are checked before used in code compiled
91621         for the type checks.
91622         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
91623         In place of that, invoke jm_CHECK_ALL_TYPES.
91624         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
91625         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
91626         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
91627         The check for ssize_t was mistakenly run before the test for unistd.h.
91628
91629         The configure-time check for stdbool.h was missing.
91630         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
91631         (jm_PREREQ_HASH): New function.
91632
91633 2001-01-17  Jim Meyering  <meyering@lucent.com>
91634
91635         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
91636         for autoconf-2.49c.
91637         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
91638
91639 2001-01-16  Jim Meyering  <meyering@lucent.com>
91640
91641         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
91642         From Bruno Haible.
91643
91644 2001-01-14  Jim Meyering  <meyering@lucent.com>
91645
91646         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
91647         foo and bar.  Create conftestdir/ in the script, not in the C code.
91648         Remove directories in the script, not in the C code.
91649         Remove conftestdir{,2} before trying to create the directory.
91650         Make the entire configure script fail if the mkdir fails.
91651
91652 2001-01-14  Jim Meyering  <meyering@lucent.com>
91653
91654         * lib/rename.c: New file.  From Volker Borchert.
91655         Include stdlib.h, string.h or strings.h, and xalloc.h.
91656         Use strip_trailing_slashes rather than open-coding it.
91657
91658 2001-01-03  Paul Eggert  <eggert@twinsun.com>
91659
91660         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
91661
91662 2001-01-03  Jim Meyering  <meyering@lucent.com>
91663
91664         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
91665         of local `inptr' to avoid warning with some system declarations of
91666         iconv.
91667
91668 2001-01-02  Volker Borchert  <bt@teknon.de>
91669
91670         * m4/rename.m4: New file.
91671         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
91672
91673 2001-01-01  Jim Meyering  <meyering@lucent.com>
91674
91675         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
91676         even on systems with utmpx.h.  It's necessary for the declaration of
91677         utmp's ut_user member.  Reported by Andreas Jaeger.
91678
91679         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
91680         available. They are required for the declarations of getgrgid and
91681         getpwuid resp.
91682         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
91683         Reported by Andreas Jaeger.
91684
91685 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
91686
91687         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
91688         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
91689         so `make install' also works in VPATH builds.
91690
91691 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
91692
91693         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
91694         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
91695         can be used in subdirectories.
91696
91697 2000-12-29  Paul Eggert  <eggert@twinsun.com>
91698
91699         * lib/modechange.c: Do not assume that mode_t uses the
91700         traditional octal encoding.  E.g. "chmod 1 FOO" should set
91701         the other-execute bit of FOO even if S_IXOTH != 1.
91702
91703         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
91704         WOTH, XOTH, ALLM): New macros.
91705         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
91706          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
91707         Use them.
91708         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
91709         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
91710         (mode_compile):
91711         No need to use uintmax_t; unsigned long is long enough.
91712         Don't bother to get suffix since we don't use it.
91713
91714 2000-12-26  Jim Meyering  <meyering@lucent.com>
91715
91716         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
91717         better with autoheader.
91718
91719 2000-12-24  Jim Meyering  <meyering@lucent.com>
91720
91721         * lib/hash.c (is_prime): Return explicit boolean values.
91722         (hash_get_first): Return NULL to appease Irix5.6's 89.
91723         Reported by Nelson Beebe.
91724
91725 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
91726
91727         * lib/localcharset.c (locale_charset): Add support for Win32.
91728
91729 2000-12-18  Paul Eggert  <eggert@twinsun.com>
91730
91731         * lib/physmem.h, lib/physmem.c: New files.
91732
91733         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
91734         (noinst_HEADERS): Add physmem.h.
91735
91736         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
91737         't' for compatibility with Solaris 8 sort.
91738
91739 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
91740
91741         * lib/config.charset: Add support for BeOS.
91742
91743 2000-12-17  Jim Meyering  <meyering@lucent.com>
91744
91745         * m4/dos.m4 (jm_AC_DOS): New file and macro.
91746         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
91747
91748 2000-12-16  Jim Meyering  <meyering@lucent.com>
91749
91750         This bug had a serious impact on chown: `chown N:M FILE' (for integer
91751         N and M) would have treated it like `chown N:N FILE'.
91752
91753         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
91754
91755 2000-12-16  Jim Meyering  <meyering@lucent.com>
91756
91757         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
91758         SHELLS_FILE to a file name that's useful on djgpp systems.
91759         Include stdlib.h.
91760         (ADDITIONAL_DEFAULT_SHELLS): Define.
91761         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
91762         Based mostly on a patch from Prashant TR.
91763
91764 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
91765
91766         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
91767         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
91768         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
91769
91770 2000-12-08  Andreas Schwab  <schwab@suse.de>
91771
91772         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
91773         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
91774
91775 2000-12-07  Jim Meyering  <meyering@lucent.com>
91776
91777         * lib/stripslash.c (ISSLASH): Define.
91778         (strip_trailing_slashes): Use ISSLASH rather than comparing against
91779         `/'.
91780         From Prashant TR.
91781
91782         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
91783         (dir_name_r): Declare this function as static.
91784         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
91785         manifest itself on a name containing a mix of slashes and
91786         backslashes.
91787         Make this function work with names starting with a DOS-style
91788         drive letter and colon prefix.
91789         (dir_name): Append `.' if necessary.
91790         Based mostly on patches from Prashant TR and Eli Zaretskii.
91791
91792         * lib/dirname.h (dir_name_r): Remove prototype.
91793
91794 2000-12-06  Paul Eggert  <eggert@twinsun.com>
91795
91796         * m4/off_t-format.m4: Remove this file.
91797         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
91798
91799 2000-12-06  Jim Meyering  <meyering@lucent.com>
91800
91801         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
91802         replacement strtoull, we may well need the replacement strtoul, too.
91803         Check for declarations of strtoul and strtoull.
91804         Check for strtol.  Mainly as a cue to cause automake to include
91805         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
91806         Check for limits.h -- strtol.c needs it.
91807
91808 2000-12-05  Jim Meyering  <meyering@lucent.com>
91809
91810         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
91811
91812 2000-12-04  Jim Meyering  <meyering@lucent.com>
91813
91814         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
91815         Also include memory.h, stdlib.h, unistd.h if appropriate.
91816         Reported by Andreas Jaeger (conflicting declaration of malloc).
91817
91818 2000-12-02  Jim Meyering  <meyering@lucent.com>
91819
91820         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
91821         * m4/jm-macros.m4 (jm_MACROS): require it.
91822
91823 2000-12-02  Jim Meyering  <meyering@lucent.com>
91824
91825         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
91826
91827 2000-12-01  Paul Eggert  <eggert@twinsun.com>
91828
91829         * lib/memrchr.c: Include <config.h> before any system include file.
91830
91831 2000-11-30  Jim Meyering  <meyering@lucent.com>
91832
91833         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
91834
91835 2000-11-30  Jim Meyering  <meyering@lucent.com>
91836
91837         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
91838
91839 2000-11-29  Paul Eggert  <eggert@twinsun.com>
91840
91841         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
91842
91843 2000-11-26  Jim Meyering  <meyering@lucent.com>
91844
91845         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
91846
91847 2000-11-22  Paul Eggert  <eggert@twinsun.com>
91848
91849         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
91850         size of (size_t) -1; it's not portable.
91851
91852 2000-11-17  Jim Meyering  <meyering@lucent.com>
91853
91854         * lib/strstr.c: Update from GNU libc.
91855
91856 2000-11-17  Akim Demaille  <akim@epita.fr>
91857
91858         * lib/obstack.h: Formatting changes.
91859         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
91860         prevent type checking.
91861         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
91862         cast the value to (void *): assigning a `foo *' to a `void *'
91863         variable is valid.
91864         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
91865
91866 2000-11-16  Jim Meyering  <meyering@lucent.com>
91867
91868         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
91869
91870 2000-11-11  Jim Meyering  <meyering@lucent.com>
91871
91872         * lib/error.c: Add a couple #includes, merging from GNU libc version.
91873
91874 2000-11-10  Jim Meyering  <meyering@lucent.com>
91875
91876         * lib/obstack.h: Update from GNU libc.
91877         * lib/obstack.c: Likewise.
91878
91879 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
91880
91881         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
91882
91883 2000-11-06  Paul Eggert  <eggert@twinsun.com>
91884
91885         * lib/getusershell.c (setusershell): Use rewind rather than
91886         fseek/fseeko, to avoid configuration hassles with fseeko.
91887         Don't bother opening SHELLS_FILE if shellstream is NULL;
91888         it's not necessary.
91889
91890 2000-11-05  Jim Meyering  <meyering@lucent.com>
91891
91892         * lib/makepath.h (make_dir): Declare.
91893         * lib/makepath.c (make_dir): Remove `static' attribute.
91894         Tweak a comment.
91895
91896 2000-11-04  Jim Meyering  <meyering@lucent.com>
91897
91898         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
91899
91900 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
91901
91902         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
91903         last one in a bucket, advance to the next bucket.
91904
91905 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
91906
91907         * lib/fnmatch.c: Do not comment out all the code if we are using
91908         the GNU C library, because in some cases we are replacing buggy
91909         code in the GNU C library itself.
91910
91911 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
91912
91913         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
91914         (regex_compile): Catch bogus \(\1\).
91915
91916 2000-10-30  Paul Eggert  <eggert@twinsun.com>
91917
91918         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
91919         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
91920         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
91921
91922 2000-10-30  Paul Eggert  <eggert@twinsun.com>
91923
91924         * lib/error.h, getline.h, modechange.h:
91925         Remove "2000" from Copyright line, as the file hasn't been
91926         changed this year other than in the copyright notice.
91927
91928         * lib/xalloc.h: Add "2000" to Copyright line, as this file
91929         was changed this year.
91930
91931 2000-10-29  Jim Meyering  <meyering@lucent.com>
91932
91933         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
91934         renaming.
91935         * m4/ls-mntd-fs.m4: Likewise
91936
91937 2000-10-29  Jim Meyering  <meyering@lucent.com>
91938
91939         * lib/xstat.in: Fix grammar in comment.
91940
91941 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
91942
91943         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
91944         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
91945         doesn't define __restrict_arr.
91946
91947 2000-10-28  Jim Meyering  <meyering@lucent.com>
91948
91949         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
91950         (jm_PREREQ_MEMCHR): New function.
91951
91952 2000-10-28  Jim Meyering  <meyering@lucent.com>
91953
91954         * lib/memchr.c: Update from libc.
91955         Adjust for portability:
91956         [HAVE_STDLIB_H]: Include stdlib.h.
91957         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
91958         Undef __memchr, too.
91959         [!weak_alias]: Define __memchr to memchr.
91960
91961         * lib/regex.c: Update from libc.
91962         * lib/regex.h: Likewise.
91963         * lib/getopt1.c: Likewise.
91964         * lib/memcmp.c: Likewise.
91965
91966         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
91967         Avoid using fseek, when possible -- it's broken by design.
91968         Patch by Ulrich Drepper.
91969
91970 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
91971
91972         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
91973         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
91974         Giving in to popular pressure to shut up the compiler with casts.
91975
91976 2000-10-26  Jim Meyering  <meyering@lucent.com>
91977
91978         * lib/strftime.c: Update from libc.
91979
91980 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
91981
91982         * regex.c: More `unsigned char' -> `re_char' changes.
91983         Also change several `int' into `re_wchar_t'.
91984         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
91985         (PUSH_FAILURE_POINTER): Don't cast any more.
91986         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
91987         We want GCC to complain, since this piece of code makes
91988         re_match non-reentrant, which *should* be fixed.
91989         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
91990         (EXTEND_BUFFER): Use RETALLOC.
91991         (SET_LIST_BIT): Don't cast.
91992         (re_wchar_t): New type.
91993         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
91994         that those two functions will always properly return.
91995         (IMMEDIATE_QUIT_CHECK): Cast to void.
91996         (analyse_first): Use recursion rather than an explicit stack.
91997         (re_compile_fastmap): Can't fail anymore.
91998         (re_search_2): Don't check re_compile_fastmap for failure.
91999         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92000         Now also sets the new value (passed in a new argument).
92001         (re_match_2_internal): Use it.
92002         Also, use a new var `reg' of type size_t when looping through regs
92003         rather than reuse the inappropriate `mcnt'.
92004
92005 2000-10-25  Jim Meyering  <meyering@lucent.com>
92006
92007         * lib/obstack.c: Update from libc.
92008
92009 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92010
92011         * regex.c (regex_compile): Change the way of handling a range from
92012         a char less than 256 to a char not less than 256.
92013
92014 2000-10-24  Andrew Innes  <andrewi@gnu.org>
92015
92016         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
92017         NT-Emacs only.
92018         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
92019         so that re_search functions only quit when callers expect them to.
92020
92021 2000-10-23  Jim Meyering  <meyering@lucent.com>
92022
92023         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
92024         wrong.  That set_locale call must not have any side effects.
92025         From Paul Eggert.
92026
92027 2000-10-22  Jim Meyering  <meyering@lucent.com>
92028
92029         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
92030         [CYCLIC]: Remove now-unused definition.
92031
92032         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
92033         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
92034         Suggestion from Ulrich Drepper.
92035
92036 2000-10-21  Jim Meyering  <meyering@lucent.com>
92037
92038         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
92039         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
92040         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
92041
92042 2000-10-21  Jim Meyering  <meyering@lucent.com>
92043
92044         * lib/dirname.c (memrchr): Declare if necessary.
92045         (dir_name): Remove the restriction that there be no
92046         trailing slashes.  Now, this code skips past them, effectively
92047         ignoring them.
92048         [TEST_DIRNAME] (main): New unit tests.
92049
92050         * lib/memrchr.c: New file from GNU libc.
92051         Undef __memrchr, too.
92052         [!weak_alias]: Define __memrchr to memrchr.
92053         Guard weak_alias use with `#ifdef weak_alias'.
92054
92055 2000-10-21  Jim Meyering  <meyering@lucent.com>
92056
92057         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
92058         (dir_name): Use dir_name_r.
92059         * lib/dirname.h (dir_name_r): Declare it.
92060
92061 2000-10-17  Jim Meyering  <meyering@lucent.com>
92062
92063         * lib/quote.h (PARAMS): Define and use.
92064         Reported by Akim Demaille.
92065
92066         * lib/getopt.c: Update from libc.
92067
92068 2000-10-16  Jim Meyering  <meyering@lucent.com>
92069
92070         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
92071         setlocale.
92072         From Jan Fedak.
92073
92074 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
92075
92076         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
92077
92078 2000-09-25  Jim Meyering  <meyering@lucent.com>
92079
92080         * lib/md5.h (rol): Define (from GnuPG).
92081
92082         * lib/sha.c: Give credit (GnuPG) where due.
92083         (M): Use rol rather than open-coding it.
92084         Add a FIXME comment.
92085
92086 2000-09-21  Jim Meyering  <meyering@lucent.com>
92087
92088         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
92089         Reported by Michael Stone.
92090
92091 2000-09-20  Jim Meyering  <meyering@lucent.com>
92092
92093         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
92094         (noinst_HEADERS): Add sha.h.
92095         Based on code from Scott G. Miller and from GnuPG.
92096
92097 2000-09-18  Jim Meyering  <meyering@lucent.com>
92098
92099         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
92100         LIBS. Otherwise, everyone ends up linking with -lelf for some
92101         configurations.
92102         Reported by Mike Stone.
92103
92104 2000-09-15  Jim Meyering  <meyering@lucent.com>
92105
92106         * lib/regex.c: Update from libc.
92107
92108 2000-09-10  Jim Meyering  <meyering@lucent.com>
92109
92110         * lib/getopt.c (_getopt_internal): Update from glibc.
92111
92112 2000-09-09  Jim Meyering  <meyering@lucent.com>
92113
92114         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
92115         think it should be used as a general replacement for isascii.
92116         * lib/fnmatch.c: Likewise.
92117         * lib/mbswidth.c: Likewise
92118         * lib/regex.c: Likewise.
92119
92120         Don't use atoi.
92121         * lib/userspec.c: Include sys/param.h and limits.h.
92122         Include xstrtol.h.
92123         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92124         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
92125         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
92126         UID, GID.  Check range.
92127
92128 2000-09-06  Jim Meyering  <meyering@lucent.com>
92129
92130         * lib/getopt.c (_getopt_internal): Update from glibc.
92131
92132 2000-08-30  Jim Meyering  <meyering@lucent.com>
92133
92134         * lib/strftime.c: Merge in changes from GNU libc.
92135
92136 2000-08-26  Jim Meyering  <meyering@lucent.com>
92137
92138         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
92139         * m4/fpending.m4: New file.
92140
92141 2000-08-26  Jim Meyering  <meyering@lucent.com>
92142
92143         * lib/closeout.c: Include "__fpending.h".
92144         (close_stdout_status): Return right away if there's nothing to flush.
92145
92146         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
92147         * lib/__fpending.c: New file.
92148         * lib/__fpending.h: New file.
92149
92150 2000-08-20  Jim Meyering  <meyering@lucent.com>
92151
92152         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
92153         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
92154         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
92155
92156 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
92157
92158         Improve fileutils installation on systems where running
92159         programs (like install) can't be unlinked.
92160         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
92161         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
92162
92163 2000-08-07  Paul Eggert  <eggert@twinsun.com>
92164
92165         Standardize on "memory exhausted" instead of "Memory exhausted"
92166         or "virtual memory exhausted".
92167         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
92168         "virtual memory exhausted".
92169         * lib/same.c (same_name): Invoke xalloc_die instead of printing
92170         our own message.
92171         * lib/userspec.c (parse_user_spec): Likewise.
92172         * lib/bumpalloc.h: comment fix
92173         * lib/same.c, userspec.c: Include xalloc.h.
92174
92175         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
92176         not char *const and pointing to a constant array.
92177         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
92178         (xrealloc): Comment fix.
92179
92180         * lib/userspec.c (parse_user_spec):
92181         Don't translate a message until just before returning,
92182         to avoid unnecessary translation.
92183
92184 2000-08-07  Jim Meyering  <meyering@lucent.com>
92185
92186         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
92187         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
92188         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
92189         getgroups.c, gethostname.c, getopt.h, group-member.c,
92190         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
92191         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
92192         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
92193         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
92194         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
92195         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
92196         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
92197         yesno.c: Back out Copyright date changes for each file with no change
92198         this year.  This eases coordination with other programs using the same
92199         source code modules.  From Paul Eggert.
92200
92201 2000-08-06  Paul Eggert  <eggert@twinsun.com>
92202
92203         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
92204         not char, for compatibility with glibc 2.1.3 strftime.c.
92205
92206 2000-08-03  Greg McGary  <greg@mcgary.org>
92207
92208         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
92209         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
92210         (EXTEND_BUFFER): Use them.
92211
92212 2000-08-01  Jim Meyering  <meyering@lucent.com>
92213
92214         * lib/dirname.c (ISSLASH): Define.
92215         (BACKSLASH_IS_PATH_SEPARATOR): Define.
92216         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
92217         both `\' and `/' may be use as path separators.
92218         Based on a patch from Prashant TR.
92219
92220 2000-07-31  Paul Eggert  <eggert@twinsun.com>
92221
92222         * lib/quotearg.c (quotearg_n_options): Don't make the initial
92223         slot vector a constant, since it might get modified.
92224
92225 2000-07-31  Jim Meyering  <meyering@lucent.com>
92226
92227         * lib/xmalloc.c: Use `virtual memory exhausted', not
92228         `Memory exhausted'.
92229         * lib/obstack.c (print_and_abort): Likewise.
92230
92231 2000-07-30  Paul Eggert  <eggert@twinsun.com>
92232
92233         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
92234         buffer, so that the caller can always quote one small
92235         component of a "memory exhausted" message in slot 0.
92236         From a suggestion by Jim Meyering.
92237
92238 2000-07-30  Jim Meyering  <meyering@lucent.com>
92239
92240         * lib/makepath.c (make_path): Quote the other instance, too.
92241
92242         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
92243         (STATIC_BUF_SIZE): Define.
92244         (quotearg_n_options): Use only statically allocated storage when
92245         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
92246         than STATIC_BUF_SIZE.
92247
92248 2000-07-29  Jim Meyering  <meyering@lucent.com>
92249
92250         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
92251         * lib/dirname.c (dir_name): Likewise.
92252
92253         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
92254         `/'.
92255
92256         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
92257         (dir_name): Assert that there are no trailing slashes.
92258
92259 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
92260
92261         * lib/mbswidth.h (mbswidth): Add a flags argument.
92262         (mbswidth): New declaration.
92263         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
92264         * lib/mbswidth.c (mbswidth): Add a flags argument.
92265         (mbsnwidth): New function.
92266
92267 2000-07-24  Jim Meyering  <meyering@lucent.com>
92268
92269         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
92270
92271 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92272
92273         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
92274
92275 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92276
92277         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
92278         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
92279         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
92280         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
92281         invoke multibyte primitives.
92282
92283 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92284
92285         * lib/quotearg.c:
92286         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
92287         so that mbstate_t is always defined.
92288
92289         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
92290         be 1 in at least one GCC installation, and this configuration
92291         error is likely to be common.  Ignoring MB_LEN_MAX hurts
92292         performance on hosts that have mbrtowc but have only unibyte
92293         locales, but I assume these hosts are rare.
92294
92295 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92296
92297         * lib/mbswidth.c (_XOPEN_SOURCE):
92298         Don't define; this causes problems on Solaris 7.
92299         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
92300
92301 2000-07-23  Jim Meyering  <meyering@lucent.com>
92302
92303         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
92304         too: getgrgid, getpwuid, getuid.
92305
92306 2000-07-23  Jim Meyering  <meyering@lucent.com>
92307
92308         * lib/basename.c (base_name): Add an assertion.
92309
92310 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
92311
92312         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
92313         shadow its mbsinit function.
92314
92315 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92316
92317         * lib/mbswidth.h: New file.
92318         * lib/mbswidth.c: New file.
92319         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
92320         (noinst_HEADERS): Add mbswidth.h.
92321
92322 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92323
92324         * lib/config.charset: Add support for FreeBSD. Improve support for
92325         HP-UX and IRIX 6.
92326
92327 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
92328
92329         * m4/mbswidth.m4: New file.
92330         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
92331
92332 2000-07-15  Jim Meyering  <meyering@lucent.com>
92333
92334         * lib/makepath.c: Include quote.h.
92335         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
92336         corresponding argument in a `quote (...)' call.
92337         Give better diagnostics.
92338
92339         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
92340         (noinst_HEADERS): Add quote.h.
92341
92342         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
92343         from tar's src/misc.c.
92344         * lib/quote.h: New file.  Prototypes for same.
92345
92346 2000-07-14  Paul Eggert  <eggert@twinsun.com>
92347
92348         From a suggestion by Bruno Haible.
92349         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
92350         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
92351         to decide whether to define the BeOS workaround macro;
92352         this adjusts to the change to AC_MBSTATE_T.
92353
92354 2000-07-14  Jim Meyering  <meyering@lucent.com>
92355
92356         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
92357         jm_AC_TYPE_UINTMAX_T.
92358
92359 2000-07-13  Paul Eggert  <eggert@twinsun.com>
92360
92361         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
92362
92363         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
92364         quotearg_buffer_restyled): Add support for
92365         clocale_quoting_style.  Undo previous change to
92366         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
92367         and "{RIGHT QUOTATION MARK}" msgids.
92368
92369 2000-07-10  Paul Eggert  <eggert@twinsun.com>
92370
92371         From a suggestion by Bruno Haible.
92372         * m4/mbstate_t.m4 (AC_MBSTATE_T):
92373         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
92374         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
92375         and mbstate_t, to a single-part test that simply defines mbstate_t.
92376         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
92377         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
92378
92379 2000-07-10  Jim Meyering  <meyering@lucent.com>
92380
92381         * m4/strerror_r.m4: Mirror the correction made in autoconf.
92382
92383         * m4/gnu-source.m4: Output to confdefs.h directly.
92384         Suggestion from Akim Demaille.
92385
92386 2000-07-09  Paul Eggert  <eggert@twinsun.com>
92387
92388         The old behavior of quoting `like this' doesn't look good with
92389         newer, ISO-style fonts.  See:
92390         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
92391
92392         Instead, quote "like this" by default.  Let the translator
92393         tailor the locale-specific quoting behavior by providing
92394         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
92395
92396         * lib/quotearg.c (N_): New macro.
92397         (gettext_default): New function.
92398         (quotearg_buffer_restyled): Use
92399         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
92400         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
92401
92402 2000-07-09  Jim Meyering  <meyering@lucent.com>
92403
92404         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
92405         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
92406
92407         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
92408         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
92409
92410 2000-07-09  Jim Meyering  <meyering@lucent.com>
92411
92412         * lib/Most files: Update copyright dates to include 2000.
92413
92414 2000-07-08  Jim Meyering  <meyering@lucent.com>
92415
92416         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
92417         if not defined.
92418         (xgethostname): Remove now-unnecessary #ifdef.
92419         Move declaration of `err' into loop where it's used.
92420
92421 2000-07-05  Paul Eggert  <eggert@twinsun.com>
92422         and Bruno Haible  <haible@clisp.cons.org>
92423
92424         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
92425         only if the test for an object-type mbstate_t fails.  This
92426         prevents us from mistakenly reporting that mbstate_t is a
92427         system object type after we "#define mbstate_t int" to work
92428         around its lack.
92429
92430 2000-07-05  Paul Eggert  <eggert@twinsun.com>
92431         and Bruno Haible  <haible@clisp.cons.org>
92432
92433         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
92434
92435 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92436
92437         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
92438         to strerror_r.
92439         Include <ctype.h> for use of isalpha.
92440
92441 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92442
92443         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
92444         by allocating a larger buffer. Test the gethostname return value for
92445         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
92446         returns an error and ENAMETOOLONG isn't defined.
92447
92448 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92449
92450         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
92451         dimension.
92452
92453 2000-07-04  Jim Meyering  <meyering@lucent.com>
92454
92455         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
92456         of the deprecated AC_CHECKING.
92457
92458 2000-07-04  Jim Meyering  <meyering@lucent.com>
92459
92460         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
92461         Reported by Bruno Haible.
92462
92463 2000-07-04  Jim Meyering  <meyering@lucent.com>
92464
92465         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
92466         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
92467         lacks mbrtowc.
92468
92469 2000-07-03  Paul Eggert  <eggert@twinsun.com>
92470
92471         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
92472         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
92473
92474 2000-07-03  Paul Eggert  <eggert@twinsun.com>
92475         and Bruno Haible  <haible@clisp.cons.org>
92476
92477         * lib/quotearg.c (mbrtowc):
92478         Assign to *pwc, and return 1 only if result is nonzero.
92479         (iswprint): Use ISPRINT when substituting our own mbrtowc.
92480
92481 2000-07-03  Jim Meyering  <meyering@lucent.com>
92482
92483         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
92484
92485 2000-07-03  Jim Meyering  <meyering@lucent.com>
92486
92487         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
92488         This is necessary to get a definition of e.g., UTMP_FILE on
92489         HP-UX 10.20.
92490         From Bob Proulx.
92491
92492 2000-07-02  Jim Meyering  <meyering@lucent.com>
92493
92494         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
92495
92496         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
92497         AC_LIBOBJ(function_name).
92498         * m4/chown.m4: Likewise.
92499         * m4/fnmatch.m4: Likewise.
92500         * m4/ftruncate.m4: Likewise.
92501         * m4/getgroups.m4: Likewise.
92502         * m4/getline.m4: Likewise.
92503         * m4/group-member.m4: Likewise.
92504         * m4/jm-macros.m4: Likewise.
92505         * m4/lstat.m4: Likewise.
92506         * m4/malloc.m4: Likewise.
92507         * m4/memcmp.m4: Likewise.
92508         * m4/nanosleep.m4: Likewise.
92509         * m4/putenv.m4: Likewise.
92510         * m4/realloc.m4: Likewise.
92511         * m4/regex.m4: Likewise.
92512         * m4/stat.m4: Likewise.
92513         * m4/strftime.m4: Likewise.
92514
92515 2000-07-02  Jim Meyering  <meyering@lucent.com>
92516
92517         * lib/quotearg.c (mbstate_t): Don't define here.
92518
92519 2000-07-02  Jim Meyering  <meyering@lucent.com>
92520
92521         * lib/nanosleep.c (SIGCONT): Define if not already defined.
92522
92523 2000-07-01  Jim Meyering  <meyering@lucent.com>
92524
92525         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
92526
92527 2000-07-01  Jim Meyering  <meyering@lucent.com>
92528
92529         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
92530         problem.
92531
92532 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
92533
92534         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
92535         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
92536
92537 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
92538
92539         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
92540         per change in ../m4/ls-mntd-fs.m4.
92541         (read_filesystem_list): Ignore symbolic links.
92542
92543 2000-06-29  Jim Meyering  <meyering@lucent.com>
92544
92545         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
92546         for declaration of strcmp.
92547
92548         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
92549
92550         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
92551         Avoid warning by casting result to `char *' to remove `const'.
92552
92553 2000-06-28  Jim Meyering  <meyering@lucent.com>
92554
92555         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
92556         included by quotearg.c, for which we perform this test.  From
92557         Bruno Haible.
92558
92559 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
92560
92561         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
92562         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
92563         <utmpx.h> exists, put readutmp.o into LIBOBJS.
92564
92565 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
92566
92567         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
92568
92569 2000-06-26  Paul Eggert  <eggert@twinsun.com>
92570
92571         savedir now sets errno on failure and invokes xmalloc to get memory.
92572         Fix a couple of other minor bugs while we're at it.
92573
92574         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
92575         (NAMLEN): Remove macro.
92576         (malloc, realloc): Remove decls.
92577         (stpcpy): Likewise.
92578         ("xalloc.h"): Include.
92579         (NAME_SIZE_DEFAULT): New macro.
92580         (savedir): Use xmalloc / xrealloc to allocate memory.
92581         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
92582         Skip "" directory entries.
92583         Use strlen to calculate directory entry length, since the old method
92584         is rarely used these days and isn't worth supporting.
92585         Don't use a pointer after freeing it.
92586         Check for integer overflow when calculating allocation size.
92587         Use memcpy to copy entries, instead of stpcpy.
92588         Set errno properly when returning NULL.
92589         Check for readdir error.
92590
92591 2000-06-26  Jim Meyering  <meyering@lucent.com>
92592
92593         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
92594
92595 2000-06-25  Jim Meyering  <meyering@lucent.com>
92596
92597         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
92598         Linux header bug when _XOPEN_SOURCE is defined to 500.
92599
92600 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
92601
92602         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
92603         deficiency.
92604
92605 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
92606
92607         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
92608         Include xalloc.h.
92609         Don't include <stdlib.h>.  Don't declare malloc, realloc.
92610
92611 2000-06-24  Jim Meyering  <meyering@lucent.com>
92612
92613         * m4/strerror_r.m4: Revive this file -- to try out an experimental
92614         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
92615         for which strerror does return char*, but which lacks a conveniently
92616         accessible declaration of the function.  If the compile-test says
92617         strerror_r doesn't work, then resort to a `run'-test that works on
92618         BeOS and segfaults on DEC Unix.
92619
92620 2000-06-24  Jim Meyering  <meyering@lucent.com>
92621
92622         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
92623
92624 2000-06-23  Paul Eggert  <eggert@twinsun.com>
92625
92626         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
92627         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
92628
92629 2000-06-23  Paul Eggert  <eggert@twinsun.com>
92630
92631         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
92632         (mbrtowc, mbstate_t): Define substitutes if
92633         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
92634         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
92635         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
92636
92637 2000-06-23  Jim Meyering  <meyering@lucent.com>
92638
92639         * m4/afs.m4: Add missing AC_MSG_RESULT.
92640         Reported by Bruno Haible.
92641
92642         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
92643         Suggestion from Bruno Haible.
92644
92645 2000-06-23  Jim Meyering  <meyering@lucent.com>
92646
92647         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
92648
92649 2000-06-21  Jim Meyering  <meyering@lucent.com>
92650
92651         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
92652
92653 2000-06-21  Jim Meyering  <meyering@lucent.com>
92654
92655         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
92656         (noinst_HEADERS): Add getstr.h.
92657
92658         * lib/getline.c (getstr): Move into a separate file.
92659         * lib/getstr.c (getstr): New file, extracted from getline.c, with
92660         the following changes: new parameter, delim2; both delim[12]
92661         parameters have type `int', not `char'.  The latter would lose
92662         with 8-bit delimiters.
92663         * lib/getstr.h: New file.
92664
92665 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
92666
92667         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
92668         than 1024, return a memory chunk of least possible size, instead
92669         of size PATH_MAX + 2. In the loop, increment the size proportionally.
92670         Use free/xmalloc instead of xrealloc to avoid copying for very long
92671         paths.
92672
92673 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
92674
92675         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
92676         the empty string.
92677
92678 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
92679
92680         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
92681         address, not strdup.  Include <stdlib.h> and don't declare free().
92682
92683 2000-06-19  Jim Meyering  <meyering@lucent.com>
92684
92685         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
92686
92687 2000-06-18  Jim Meyering  <meyering@lucent.com>
92688
92689         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
92690
92691         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
92692         `checking whether...' message to be consistent with that of the
92693         lstat test.
92694
92695 2000-06-18  Jim Meyering  <meyering@lucent.com>
92696
92697         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
92698         Besides, these days every porting target provides a mkdir function.
92699
92700         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
92701         needed. (this snippet comes from src/system.h).
92702
92703 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
92704
92705         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
92706
92707 2000-06-15  Paul Eggert  <eggert@twinsun.com>
92708
92709         * lib/human.c (adjust_value): New function.
92710         (human_readable_inexact): Apply rounding style even when
92711         printing approximate values.
92712
92713 2000-06-14  Paul Eggert  <eggert@twinsun.com>
92714
92715         * lib/human.c (human_readable_inexact): Allow an input block
92716         size that is not a multiple of the output block size, and vice versa.
92717         Reported by Piergiorgio Sartor.
92718
92719 2000-06-14  Paul Eggert  <eggert@twinsun.com>
92720
92721         * lib/getdate.y (get_date): Apply relative times after time
92722         zone indicator, not before.  Reported by Todd A. Jacobs.
92723
92724 2000-06-13  Jim Meyering  <meyering@lucent.com>
92725
92726         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
92727
92728         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
92729
92730 2000-06-12  Paul Eggert  <eggert@twinsun.com>
92731
92732         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
92733
92734 2000-06-12  Jim Meyering  <meyering@lucent.com>
92735
92736         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
92737         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
92738         optional argument.
92739         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
92740         the optional argument, `lib'.
92741
92742 2000-06-08  Jim Meyering  <meyering@lucent.com>
92743
92744         * m4/largefile.m4: Remove file (now that it's part of autoconf).
92745
92746 2000-06-04  Paul Eggert  <eggert@twinsun.com>
92747
92748         Rewrite largefile configuration so that we don't need to run
92749         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
92750         AC_CANONICAL_HOST in configure.in -- jmm]
92751
92752         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
92753         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
92754         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
92755         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
92756         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
92757         All uses changed.
92758         Instead of inspecting the output of getconf, try to compile the
92759         test program without and with the macro definition.
92760         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
92761         for getconf.  Instead, check for the needed flags by compiling
92762         test programs.
92763
92764 2000-06-04  Paul Eggert  <eggert@twinsun.com>
92765
92766         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
92767
92768 2000-06-04  Jim Meyering  <meyering@lucent.com>
92769
92770         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
92771         SunOS 4.1.4 for which gid_t is an unsigned type.
92772
92773 2000-06-03  Jim Meyering  <meyering@lucent.com>
92774
92775         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
92776         now that autoconf requires that.
92777
92778         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
92779         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
92780         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
92781
92782 2000-06-03  Jim Meyering  <meyering@lucent.com>
92783
92784         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
92785
92786 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
92787
92788         * m4/glibc21.m4: New file.
92789         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
92790
92791 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
92792
92793         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
92794         newer, don't install charset.alias.
92795         * lib/config.charset: Change the Linux/glibc rules so they become empty
92796         on glibc-2.1 or newer.
92797
92798 2000-06-02  Jim Meyering  <meyering@lucent.com>
92799
92800         * lib/mountlist.c: Back out last change.  Instead, do this...
92801         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
92802         me_dummy member using the same `ignore'-testing code.
92803         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
92804         fs_type strings.
92805         From Mark D. Roth.
92806
92807 2000-05-29  Jim Meyering  <meyering@lucent.com>
92808
92809         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
92810         mounts with the `ignore' attribute.  Based on a patch from
92811         Mark D. Roth.
92812
92813 2000-05-28  Jim Meyering  <meyering@lucent.com>
92814
92815         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
92816         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92817         * m4/stat.m4: Likewise.
92818         * m4/lstat.m4: Likewise.
92819         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
92820
92821         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
92822         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
92823
92824 2000-05-26  Jim Meyering  <meyering@lucent.com>
92825
92826         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
92827
92828 2000-05-24  Jim Meyering  <meyering@lucent.com>
92829
92830         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
92831         autoconf requires that.
92832         * m4/lib-check.m4: Likewise.
92833         * m4/jm-macros.m4: Likewise.
92834         * m4/strftime.m4: Likewise.
92835
92836         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
92837         AC_CHECK_DECLS, now that autoconf requires that.
92838
92839 2000-05-22  Jim Meyering  <meyering@lucent.com>
92840
92841         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92842         * m4/lstat.m4: Likewise.
92843
92844 2000-05-22  Jim Meyering  <meyering@lucent.com>
92845
92846         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
92847
92848 2000-05-20  Jim Meyering  <meyering@lucent.com>
92849
92850         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
92851         (jm_PREREQ): Use it.
92852
92853 2000-05-18  Jim Meyering  <meyering@lucent.com>
92854
92855         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
92856         back, too, since it may have been modified by allocate_entry.
92857         (hash_delete): Rewrite to use neither the assignment operator
92858         nor the comma operator in an if-expression.
92859
92860 2000-05-15  Paul Eggert  <eggert@twinsun.com>
92861
92862         * lib/closeout.c:
92863         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
92864         Remove; no longer needed.
92865         "quotearg.h": Add include.
92866         (file_name): Do not bother to explicitly initialize to NULL; it's less
92867         efficient on some hosts.
92868         (close_stdout_status): Remove test as to whether stdout was already
92869         closed; it breaks for the case "echo x | sort >&-".
92870         Quote file name colons.
92871         Do not assume that _("write error") lacks format strings.
92872
92873 2000-05-15  Jim Meyering  <meyering@lucent.com>
92874
92875         * lib/version-etc.c (version_etc_copyright): Update the copyright
92876         string used in all --version output.
92877
92878 2000-05-14  Jim Meyering  <meyering@lucent.com>
92879
92880         * lib/closeout.c (close_stdout_set_file_name): New function.
92881         (close_stdout_status): Use new file-scoped global.
92882         Return right away if fstat says the stdout file descriptor is invalid.
92883         * lib/closeout.h (close_stdout_set_file_name): Declare.
92884
92885 2000-05-10  Jim Meyering  <meyering@lucent.com>
92886
92887         * lib/closeout.c [default_exit_status]: New file-scoped variable.
92888         (close_stdout_set_status): New function.
92889         * lib/closeout.h (close_stdout_set_status): Declare.
92890
92891 2000-05-09  Jim Meyering  <meyering@lucent.com>
92892
92893         * m4/gettext.m4: Rename this...
92894         * m4/libintl.m4: ...to this.
92895
92896 2000-05-08  Jim Meyering  <meyering@lucent.com>
92897
92898         * lib/long-options.c: Don't include closeout.h.
92899         (parse_long_options): Don't call close_stdout for --version.
92900
92901 2000-05-06  Paul Eggert  <eggert@twinsun.com>
92902
92903         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
92904         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
92905         2.1.3 bug.  This avoids a clash when files like regex.c define
92906         _GNU_SOURCE.
92907
92908 2000-05-06  Jim Meyering  <meyering@lucent.com>
92909
92910         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
92911         (AC_REPLACE_FUNCS): Add strnlen.
92912
92913         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
92914         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
92915
92916         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
92917         AC_SEARCH_LIBS call for nanosleep.
92918         (LIB_NANOSLEEP): Set and AC_SUBST.
92919
92920 2000-05-06  Jim Meyering  <meyering@lucent.com>
92921
92922         * lib/strnlen.c: Undefine __strnlen and strnlen.
92923         [!weak_alias]: Define __strnlen to strnlen.
92924
92925         * lib/atexit.c: New file, from libiberty.
92926
92927 2000-05-06  Jim Meyering  <meyering@lucent.com>
92928
92929         * lib/closeout.c (close_stdout_status): Also check for errors on the
92930         stderr stream.
92931
92932 2000-05-05  Jim Meyering  <meyering@lucent.com>
92933
92934         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
92935         AC_SEARCH_LIBS call for clock_gettime.
92936         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
92937
92938         * m4/search-libs.m4: Update from autoconf.
92939
92940         su doesn't work on Solaris 2.6.
92941         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
92942         <shadow.h>.  Reported by Dragos Harabor.
92943
92944 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
92945
92946         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
92947         memcpy instead of xmalloc, xrealloc, path_concat.
92948         (locale_charset): Treat empty environment variables as absent.
92949         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
92950
92951 2000-05-04  Jim Meyering  <meyering@lucent.com>
92952
92953         * lib/getopt.c: Update from glibc.
92954         * lib/obstack.c: Likewise.
92955         * lib/obstack.h: Likewise.
92956         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
92957         file
92958
92959         * lib/regex.h: Likewise.
92960         * lib/strndup.c: Likewise.
92961         * lib/strnlen.c: New file, from glibc.
92962
92963 2000-05-03  Jim Meyering  <meyering@lucent.com>
92964
92965         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
92966
92967 2000-05-02  Paul Eggert  <eggert@twinsun.com>
92968
92969         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
92970         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
92971         compile-time test, rather than inspecting host and OS, to
92972         decide whether to define _LARGEFILE_SOURCE.
92973
92974 2000-05-01  Jim Meyering  <meyering@lucent.com>
92975
92976         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
92977
92978         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
92979         Based on a patch from Bruno Haible.
92980
92981 2000-05-01  Jim Meyering  <meyering@lucent.com>
92982
92983         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
92984
92985 2000-04-29  Jim Meyering  <meyering@lucent.com>
92986
92987         * lib/path-concat.c: Declare strdup only if it's not defined.
92988         * lib/canon-host.c: Likewise.
92989
92990 2000-04-28  Jim Meyering  <meyering@lucent.com>
92991
92992         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
92993         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
92994         is included first, then limits.h is included by locale.h by libintl.h.
92995         From John David Anglin.
92996
92997 2000-04-25  Jim Meyering  <meyering@lucent.com>
92998
92999         * lib/makepath.c (S_IRWXUGO): Define.
93000         (make_path): Always perform explicit chmod if MODE specifies any
93001         of the `special' permission bits.  Prompted by a bug report against
93002         install from Mate Wierdl and Joost van Baal.
93003
93004 2000-04-18  Jim Meyering  <meyering@lucent.com>
93005
93006         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93007         (jm_PREREQ): Use it.
93008
93009 2000-04-18  Jim Meyering  <meyering@lucent.com>
93010
93011         * lib/README: New file.
93012
93013         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
93014         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
93015
93016 2000-04-17  Jim Meyering  <meyering@lucent.com>
93017
93018         Get it right :-)
93019         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
93020         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
93021         Suggestion from Akim Demaille.
93022
93023 2000-04-17  Jim Meyering  <meyering@lucent.com>
93024
93025         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
93026         the definition of it to rpl_strftime also defined-away the system's
93027         declaration.
93028
93029 2000-04-15  Jim Meyering  <meyering@lucent.com>
93030
93031         Use `C' to denote so-called `contiguous' files, the same way
93032         that tar does.
93033         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
93034         (ftypelet): Use S_ISCTG.
93035         From Michael Deutschmann.
93036
93037 2000-04-14  Jim Meyering  <meyering@lucent.com>
93038
93039         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
93040         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
93041         clobbered.
93042
93043 2000-04-14  Jim Meyering  <meyering@lucent.com>
93044
93045         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
93046
93047 2000-04-13  Jim Meyering  <meyering@lucent.com>
93048
93049         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
93050         AH_VERBATIM to insert required #ifndef into config.h.in.
93051         Suggestion from Akim Demaille.
93052
93053 2000-04-12  Jim Meyering  <meyering@lucent.com>
93054
93055         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
93056         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
93057         Christian Krackowizer.
93058
93059         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
93060         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
93061         (AC_SYS_LARGEFILE): Require.
93062         (AM_C_PROTOTYPES): Require.
93063
93064 2000-04-08  Jim Meyering  <meyering@lucent.com>
93065
93066         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
93067         names don't conflict.  Reported by Eli Zaretskii.
93068
93069 2000-04-07  Jim Meyering  <meyering@lucent.com>
93070
93071         * lib/putenv.c: Move inclusion of errno.h so it follows that of
93072         sys/types.h, to work around system header problems on AIX 3.2.5.
93073         From Bruno Haible.
93074
93075 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
93076
93077         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
93078         bug.  Deal with the different error behavior of Irix iconv.
93079
93080 2000-04-05  Paul Eggert  <eggert@twinsun.com>
93081
93082         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
93083         IRIX if the installer said otherwise.
93084
93085 2000-04-05  Jim Meyering  <meyering@lucent.com>
93086
93087         Portability tweaks required for ultrix4.3.
93088         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
93089         (jm_CHECK_DECLS): Add getutent to the list of functions.
93090         (_jm_DECL_HEADERS): Add utmpx.h.
93091         From John David Anglin.
93092
93093         * m4/strftime.m4: Back out the 2000-04-02 change.
93094         Instead of that change, simply undefine putenv in the test program.
93095
93096 2000-04-05  Jim Meyering  <meyering@lucent.com>
93097
93098         Portability tweaks required for ultrix4.3.
93099         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
93100         getutent.
93101         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
93102         * lib/canon-host.c: Declare strdup.
93103         * lib/path-concat.c: Likewise.
93104         From John David Anglin.
93105
93106 2000-04-04  Jim Meyering  <meyering@lucent.com>
93107
93108         Be more DOS 8.3-friendly.
93109         * lib/ref-add.sin: Renamed from ref-add.sed.in.
93110         * lib/ref-del.sin: Renamed from ref-del.sed.in.
93111         * lib/Makefile.am: Reflect renaming.
93112         Reported by Eli Zaretskii.
93113
93114         Use a temporary file name that won't clash with `charset.alias'
93115         in the DOS 8.3 name space.
93116         * lib/Makefile.am (charset_tmp): Define.
93117         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
93118         (uninstall-local): Likewise.
93119         Reported by Eli Zaretskii.
93120
93121 2000-04-03  Jim Meyering  <meyering@lucent.com>
93122
93123         * m4/gettext.m4: Fix typo in comment.
93124
93125         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
93126         textutils/configure.in).  Suggestion from Paul Eggert.
93127         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
93128
93129 2000-04-02  Paul Eggert  <eggert@twinsun.com>
93130
93131         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
93132         variable in the shell rather than using putenv, which isn't
93133         portable.  This avoids the configure-time inter-test dependency
93134         on the potentially-renamed putenv function.
93135
93136 2000-03-30  Paul Eggert  <eggert@twinsun.com>
93137
93138         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
93139         before checking struct stat.st_blksize, so that
93140         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
93141
93142 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93143
93144         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
93145         since strftime.c uses HAVE_STRFTIME to decide whether to use
93146         the underlying strftime.
93147
93148 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93149
93150         * lib/time/strftime.c (my_strftime): Make sure we call the system
93151         strftime, not ourselves, when invoking the underlying strftime.
93152
93153 2000-03-24  Jim Meyering  <meyering@lucent.com>
93154
93155         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
93156         (charset_alias): Define.
93157         (install-exec-local): Factor out common code.
93158         (uninstall-local): Split lines longer than 80.
93159         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
93160         (SUFFIXES): Define.
93161         (.sed.in.sed): New rule.  Don't redirect directly to $@.
93162         (CLEANFILES): Add ref-add.sed and ref-del.sed.
93163
93164 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
93165
93166         * lib/config.charset: Output a line containing "Packages using this
93167         file".
93168         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
93169         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
93170         ref-del.sed): New rules.
93171
93172 2000-03-17  Jim Meyering  <meyering@lucent.com>
93173
93174         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
93175         Otherwise, include <strings.h>
93176
93177 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
93178
93179         * lib/unicodeio.c (utf8_wctomb): New function.
93180         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
93181         format instead of in UCS-4 with platform dependent endianness.
93182
93183 2000-03-10  Jim Meyering  <meyering@lucent.com>
93184
93185         * m4/lib-check.m4: Look for getspnam in -lgen, too.
93186         From Marco Franzen.
93187
93188 2000-03-07  Paul Eggert  <eggert@twinsun.com>
93189
93190         * lib/savedir.c (savedir): Work even if directory size is
93191         negative; this can happen with some screwy NFS configurations.
93192
93193 2000-03-06  Jim Meyering  <meyering@lucent.com>
93194
93195         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
93196         if it's NULL (because we ran out of memory).  From Bruno Haible.
93197
93198 2000-03-05  Jim Meyering  <meyering@lucent.com>
93199
93200         * lib/localcharset.c ("path-concat.h"): Include.
93201         (get_charset_aliases): Use path_concat instead of ANSI string
93202         concatenation.
93203
93204         * lib/unicodeio.h (PARAMS): Define.
93205         Use it to guard prototype.
93206
93207 2000-03-04  Jim Meyering  <meyering@lucent.com>
93208
93209         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
93210         for lib/localcharset.c.
93211
93212 2000-03-04  Jim Meyering  <meyering@lucent.com>
93213
93214         * lib/Makefile.am (install-exec-local): Create $(libdir) before
93215         installing into it.
93216         (uninstall-local): Uncomment this rule so `make distcheck' works
93217         once again.
93218
93219         * lib/unicodeio.c (<errno.h>): Include it.
93220         (errno): Declare if not defined.
93221
93222         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
93223
93224         * lib/config.charset: New version, incorporating remarks from a linux
93225         i18n mailing list.  From Bruno Haible.
93226
93227 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
93228
93229         * m4/codeset.m4: New file.
93230         * m4/iconv.m4: New file.
93231         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
93232
93233 2000-03-03  Jim Meyering  <meyering@lucent.com>
93234
93235         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
93236
93237 2000-03-02  Jim Meyering  <meyering@lucent.com>
93238
93239         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
93240         the messages come out on separate lines.
93241
93242         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
93243         rather than jm_CHECK_DECLARATIONS.
93244         * m4/decl.m4: Remove now-unused file.
93245
93246         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
93247         geteuid.
93248
93249 2000-03-02  Jim Meyering  <meyering@lucent.com>
93250
93251         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
93252
93253 2000-03-01  Jim Meyering  <meyering@lucent.com>
93254
93255         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
93256         * lib/unicodeio.c: Likewise.
93257
93258 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
93259
93260         * lib/config.charset: New file.
93261         * lib/localcharset.c: New file.
93262         * lib/unicodeio.h, lib/unicodeio.c: New files.
93263         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
93264         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
93265         (noinst_HEADERS): Add unicodeio.h.
93266         (all-local, install-exec-local, charset.alias): New targets.
93267
93268 2000-02-28  Paul Eggert  <eggert@twinsun.com>
93269
93270         * lib/quotearg.c (ALERT_CHAR): New macro.
93271         (quotearg_buffer_restyled): Use it.
93272
93273 2000-02-27  Jim Meyering  <meyering@lucent.com>
93274
93275         * m4/check-decl.m4: Add getenv to the list.
93276
93277 2000-02-27  Jim Meyering  <meyering@lucent.com>
93278
93279         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
93280         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
93281
93282         * lib/backupfile.c: Guard inclusion of stdlib.h with
93283         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
93284         Declare malloc if needed.
93285
93286         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
93287         `#ifndef HAVE_DECL..'
93288         now that autoconf always defines the HAVE_DECL_ symbols.
93289         * lib/human.c: Likewise.
93290         * lib/same.c: Likewise.
93291         * lib/strtoumax.c: Likewise.
93292
93293         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
93294         declaration check was not run.
93295         * lib/hash.c: Likewise.
93296         * lib/human.c: Likewise.
93297         * lib/same.c: Likewise.
93298         * lib/strtoumax.c: Likewise.
93299
93300         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
93301         `.', then first look up the entire `.'-containing string as a login
93302         name.
93303
93304 2000-02-23  Jim Meyering  <meyering@lucent.com>
93305
93306         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
93307         in place of my hack.
93308
93309 2000-02-18  Paul Eggert  <eggert@twinsun.com>
93310
93311         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
93312         (textint): New typedef.
93313         (parser_control): Member year changed from int to textint.
93314         All uses changed.
93315         (YYSTYPE): Removed; replaced by %union with int and textint members.
93316         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
93317         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
93318         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
93319         (tSNUMBER, tUNUMBER): Now of type <textintval>.
93320         (date, number, to_year): Use width of number in digits, not its value,
93321         to determine whether it's a 2-digit year, or a 2-digit time.
93322         (yylex): Store number of digits of numeric tokens.
93323         Reported by John Kendall.
93324
93325         (parser_control): Changed from struct parser_control to typedef (for
93326         consistency).  All uses changed.
93327
93328         (tID): Removed; not used.
93329         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
93330
93331 2000-02-14  Paul Eggert  <eggert@twinsun.com>
93332
93333         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
93334         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
93335
93336 2000-02-12  Jim Meyering  <meyering@lucent.com>
93337
93338         * lib/userspec.c (ISDIGIT): Define it.
93339         (isdigit): Remove definition.
93340         (is_number): Use ISDIGIT, not isdigit.
93341         <libintl.h>: Include.
93342         (_ and N_): Define.
93343         (parse_user_spec): Mark translatable strings.
93344
93345 2000-02-10  Jim Meyering  <meyering@lucent.com>
93346
93347         With these changes, nanosleep.[ch] are finally enough like the other
93348         lib/* replacement files to compile on a few more losing systems.
93349
93350         * lib/nanosleep.h: Don't include config.h.
93351         Remove prototype from declaration of nanosleep.
93352         (PARAMS): Remove now-unneeded definition.
93353         * lib/nanosleep.c: #undef nanosleep.
93354         (rpl_nanosleep): Rename from nanosleep.
93355
93356 2000-02-10  Jim Meyering  <meyering@lucent.com>
93357
93358         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
93359         gnu_nanosleep to rpl_nanosleep.
93360
93361 2000-02-09  Jim Meyering  <meyering@lucent.com>
93362
93363         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
93364         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
93365
93366 2000-02-08  Akim Demaille  <akim@epita.fr>
93367
93368         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
93369         `[' and `]' and remove uses of `changequote'.
93370         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
93371         (AC_SYS_LARGEFILE): Likewise.
93372         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
93373         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
93374         of changequote.
93375         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
93376         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
93377         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
93378         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
93379
93380 2000-02-05  Jim Meyering  <meyering@lucent.com>
93381
93382         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
93383         Remove explicit use of AC_HEADER_TIME.  It is required by
93384         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
93385         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
93386         in autoconf whereby the expansion of the latter ended up preceding
93387         the expansion of its prerequisite, AC_HEADER_TIME.
93388         Reported by Volker Borchert.
93389
93390 2000-02-03  Jim Meyering  <meyering@lucent.com>
93391
93392         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
93393
93394 2000-02-03  Jim Meyering  <meyering@lucent.com>
93395
93396         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
93397         rather than with `#if HAVE_UTMPNAME'.
93398
93399 2000-02-02  Jim Meyering  <meyering@lucent.com>
93400
93401         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
93402         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
93403         Reported by Eli Zaretskii.
93404
93405 2000-02-01  Jim Meyering  <meyering@lucent.com>
93406
93407         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
93408
93409 2000-01-31  Jim Meyering  <meyering@lucent.com>
93410
93411         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
93412         functions.  Add the time.h and sys/time.h headers along with the
93413         AC_REQUIRE'ment of AC_HEADER_TIME.
93414
93415 2000-01-31  Jim Meyering  <meyering@lucent.com>
93416
93417         * lib/nanosleep.h (nanosleep): Guard declaration with
93418         `#if ! HAVE_DECL_NANOSLEEP'.
93419         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
93420         the declaration in that vendor's sys/timers.h.
93421         Reported by Christian Krackowizer.
93422
93423         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
93424         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
93425         (ISPRINT): Likewise.
93426         Reported by Tom Tromey.
93427
93428 2000-01-30  Jim Meyering  <meyering@lucent.com>
93429
93430         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
93431
93432         * m4/prereq.m4 (utmp_includes): Define.
93433         Check for ut_user and ut_name members in both struct utmpx
93434         and struct utmp.
93435
93436 2000-01-30  Jim Meyering  <meyering@lucent.com>
93437
93438         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
93439         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
93440         header files where only utmpx.ut_user is declared.
93441
93442         * lib/readutmp.h (UT_USER): Define.
93443
93444 2000-01-29  Jim Meyering  <meyering@lucent.com>
93445
93446         * m4/lib-check.m4: New file containing library-related checks from
93447         fileutils and sh-utils (textutils had none).
93448
93449 2000-01-28  Jim Meyering  <meyering@lucent.com>
93450
93451         * m4/perl.m4: Change format of warning message to look more like that
93452         from the missing script.  Suggestion from François Pinard.
93453
93454 2000-01-25  Jim Meyering  <meyering@lucent.com>
93455
93456         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
93457         well as time.h in the compile check.
93458         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
93459         Fix typo in cross-compiling case: s/yes/no/.
93460
93461 2000-01-23  Jim Meyering  <meyering@lucent.com>
93462
93463         * m4/jm-macros.m4: Move df-related tests here from
93464         fileutils/configure.in
93465
93466         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
93467         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
93468
93469         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
93470         s/space/ac_fsusage_space/.
93471         (jm_FILE_SYSTEM_USAGE): Take two parameters.
93472
93473         * m4/ftruncate.m4: New file (derived from part of
93474         fileutils/configure.in).
93475         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
93476         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
93477
93478         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
93479         AC_SUBST these here, rather than just in sh-util/configure.in, so
93480         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
93481         all the same.
93482         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
93483         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
93484         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
93485         (AC_SUBST(POW_LIBM)): Likewise.
93486         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
93487
93488 2000-01-23  Jim Meyering  <meyering@lucent.com>
93489
93490         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
93491         obstack.c.
93492
93493 2000-01-22  Jim Meyering  <meyering@lucent.com>
93494
93495         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
93496
93497         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
93498
93499         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
93500         configure.in
93501         (AC_CHECK_HEADERS): Likewise for sh-utils.
93502         (AC_CHECK_HEADERS): Likewise for textutils.
93503         Merge the three lists of headers.
93504
93505         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
93506         from fileutils' configure.in.
93507
93508         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
93509         code. Moved tests into their own function (_jm_DECL_HEADERS) in
93510         check-decl.m4.
93511
93512         * m4/check-decl.m4: Use #if rather than #ifdef.
93513         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
93514         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
93515         (_jm_DECL_HEADERS): Define new function.
93516         (jm_CHECK_DECLARATIONS): Require it.
93517
93518 2000-01-22  Jim Meyering  <meyering@lucent.com>
93519
93520         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
93521         [! HAVE_DECL_STRTOULL]: Declare strtoull.
93522         Required for some AIX systems.  Reported by Christian Krackowizer.
93523         [TESTING] (main): New function.
93524
93525         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
93526         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
93527         letters.
93528
93529         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
93530         iswprint.
93531
93532         * lib/strverscmp.c (ISDIGIT): Define.
93533         (strverscmp): Use ISDIGIT, not isdigit.
93534
93535 2000-01-19  Jim Meyering  <meyering@lucent.com>
93536
93537         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
93538         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
93539         defines `struct timespec' in <sys/time.h>
93540
93541         * m4/c-bs-a.m4: Remove uses of changequote altogether.
93542         Thanks to Akim for explaining.
93543
93544 2000-01-17  Paul Eggert  <eggert@twinsun.com>
93545
93546         * lib/nanosleep.c (nanosleep):
93547         Don't use SA_INTERRUPT to decide whether to call sigaction, as
93548         POSIX.1 doesn't require SA_INTERRUPT and some systems
93549         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
93550         it's been part of POSIX.1 since day 1 (in 1988).
93551
93552 2000-01-17  Jim Meyering  <meyering@lucent.com>
93553
93554         * lib/interlock: Remove unused file.  Reported by François Pinard.
93555
93556 2000-01-16  Paul Eggert  <eggert@twinsun.com>
93557
93558         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
93559         alert, backslash, formfeed, and vertical tab unnecessarily in
93560         shell quoting style.
93561
93562 2000-01-16  Jim Meyering  <meyering@lucent.com>
93563
93564         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
93565         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
93566         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
93567         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
93568
93569 2000-01-16  Jim Meyering  <meyering@lucent.com>
93570
93571         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
93572         because the latter didn't work.
93573
93574 2000-01-15  Jim Meyering  <meyering@lucent.com>
93575
93576         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
93577         (AC_REPLACE_FUNCS): Add memcpy and memset.
93578         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
93579         Add strpbrk.
93580         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
93581
93582 2000-01-12  Jim Meyering  <meyering@lucent.com>
93583
93584         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
93585         (jm_PREREQ): Use it.
93586         (jm_PREREQ_READUTMP): New macro.
93587         (jm_PREREQ): Use it.
93588
93589 2000-01-11  Paul Eggert  <eggert@twinsun.com>
93590
93591         Quote multibyte characters correctly.
93592         * m4/c-bs-a.m4: New file.
93593         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
93594         (jm_PREREQ): Use it.
93595
93596 2000-01-11  Paul Eggert  <eggert@twinsun.com>
93597
93598         * m4/uintmax_t.m4: Port to autoconf 2.13.
93599
93600 2000-01-08  Jim Meyering  <meyering@ascend.com>
93601
93602         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
93603         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
93604
93605 2000-01-04  Jim Meyering  <meyering@ascend.com>
93606
93607         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
93608         jm_STRUCT_DIRENT_D_TYPE.
93609         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
93610         jm_STRUCT_DIRENT_D_INO.
93611         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
93612         jm_STRUCT_UTIMBUF.
93613         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
93614         renamings.
93615         * m4/utime.m4: Likewise.
93616
93617         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
93618         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
93619
93620 2000-01-03  Paul Eggert  <eggert@twinsun.com>
93621
93622         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
93623         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
93624
93625 2000-01-02  Jim Meyering  <meyering@ascend.com>
93626
93627         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
93628         remember if this is necessary.
93629
93630 1999-12-26  Jim Meyering  <meyering@ascend.com>
93631
93632         * m4/jm-macros.m4: Use it here.
93633         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
93634
93635 1999-12-23  Jim Meyering  <meyering@ascend.com>
93636
93637         * m4/jm-macros.m4: Check for clock_gettime (moved from
93638         fileutils/configure.in)
93639         Check for gettimeofday.
93640
93641 1999-12-20  Jim Meyering  <meyering@ascend.com>
93642
93643         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
93644         autoconf-2.14a-1999-12-20.
93645
93646 1999-12-19  Jim Meyering  <meyering@ascend.com>
93647
93648         * m4/lstat-slash.m4: New file.
93649         * m4/jm-macros.m4: Use the new macro:
93650         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93651
93652 1999-12-07  Jim Meyering  <meyering@ascend.com>
93653
93654         * m4/perl.m4: Require that File::Compare be available, too.
93655         Too many systems seem to lack it.
93656
93657         * m4/strftime.m4: Add checks for most of the cpp macros tested in
93658         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
93659
93660 1999-11-18  Paul Eggert  <eggert@twinsun.com>
93661
93662         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
93663         problem with the QNX 4.25 shell, which doesn't propagate exit
93664         status of failed commands inside shell assignments.
93665
93666 1999-11-17  Jim Meyering  <meyering@ascend.com>
93667
93668         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
93669
93670 1999-11-07  Jim Meyering  <meyering@ascend.com>
93671
93672         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
93673
93674 1999-11-06  Jim Meyering  <meyering@ascend.com>
93675
93676         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
93677         * m4/jm-macros.m4 (jm_MACROS): Use it here.
93678
93679 1999-11-05  Jim Meyering  <meyering@ascend.com>
93680
93681         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
93682         configure.in of textutils, fileutils, and sh-utils into this one
93683         (shared between those packages) file.
93684         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
93685         AC_STRUCT_ST_BLKSIZE.
93686
93687 1999-11-03  Jim Meyering  <meyering@ascend.com>
93688
93689         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
93690         of AC_CHECK_TYPE checks includes unistd.h.
93691         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
93692         Suggestion from Akim Demaille.
93693
93694 1999-10-30  Jim Meyering  <meyering@ascend.com>
93695
93696         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
93697         m4-quoted string.
93698         * m4/ls-mntd-fs.m4: Likewise.
93699         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
93700         * m4/jm-winsz1.m4: Likewise.
93701
93702         * m4/const.m4: Remove file, since the fix made it into the experimental
93703         version of autoconf.
93704         * m4/mktime.m4: Likewise.
93705
93706         * m4/check-type.m4: Remove file, now that the latest version of
93707         AC_CHECK_TYPE takes a third arg to specify additional #includes.
93708
93709         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
93710         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
93711         AC_CHECK_TYPE.
93712
93713 1999-10-04  Jim Meyering  <meyering@ascend.com>
93714
93715         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
93716
93717 1999-09-22  Paul Eggert  <eggert@twinsun.com>
93718
93719         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
93720         2.95.1 bug with HP-UX 10.20.
93721
93722 1999-09-17  Jim Meyering  <meyering@ascend.com>
93723
93724         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
93725         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
93726         due to missing strdup (against sh-utils-2.0).
93727
93728 1999-08-29  Jim Meyering  <meyering@ascend.com>
93729
93730         * m4/jm-macros.m4: Require jm_BISON.
93731         * m4/bison.m4: New file.
93732
93733 1999-08-17  Paul Eggert  <eggert@twinsun.com>
93734
93735         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
93736         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
93737
93738 1999-08-05  Jim Meyering  <meyering@ascend.com>
93739
93740         * m4/getline.m4: Rename test file from conftestdata to conftest.data
93741         to avoid conflicts with `conftest' on 8+3 filesystems.
93742         Suggestion from Eli Zaretskii.
93743
93744 1999-08-04  Jim Meyering  <meyering@ascend.com>
93745
93746         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
93747         fileutils and sh-utils (textutils's getline test was inadequate).
93748         (AM_FUNC_GETLINE): Run this test.
93749         (AC_CHECK_FUNCS): Check for getdelim.
93750         Reported by Bob Proulx.
93751
93752 1999-08-02  Jim Meyering  <meyering@ascend.com>
93753
93754         * m4/jm-macros.m4: Add a comment.
93755
93756 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93757
93758         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
93759         <inttypes.h> defines strtoumax as a macro (and not as a
93760         function).
93761
93762 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93763
93764         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
93765         that we can shift, multiply and divide unsigned long long
93766         values; Ultrix cc can't do it.
93767
93768 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93769
93770         * m4/mktime.m4: New file, which is a preview of what should appear
93771         in the next public autoconf release.
93772
93773 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93774
93775         * m4/lfs.m4: Remove this file.
93776         * m4/largefile.m4: New file.  It contains the old contents of
93777         lfs.m4, except that all names with prefix AC_LFS have been
93778         changed to use the prefix AC_SYS_LARGEFILE instead, to be
93779         compatible with future autoconf versions.  Also, some minor m4
93780         quoting problems have been fixed.
93781
93782 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93783
93784         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
93785         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
93786         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
93787         and simplify the shell code.
93788
93789 1999-08-01  Jim Meyering  <meyering@ascend.com>
93790
93791         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
93792         m4.
93793
93794 1999-07-20  Jim Meyering  <meyering@ascend.com>
93795
93796         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
93797
93798 1999-07-15  Jim Meyering  <meyering@ascend.com>
93799
93800         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
93801
93802 1999-05-22  Jim Meyering  <meyering@ascend.com>
93803
93804         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
93805
93806 1999-05-20  Jim Meyering  <meyering@ascend.com>
93807
93808         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
93809         Add a colon after each `then' in case $4 is empty.
93810
93811 1999-05-16  Jim Meyering  <meyering@ascend.com>
93812
93813         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
93814
93815 1999-05-10  Jim Meyering  <meyering@ascend.com>
93816
93817         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
93818
93819         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
93820         AC_FUNC_MKTIME.
93821
93822 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
93823
93824         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
93825
93826 1999-05-04  Paul Eggert  <eggert@twinsun.com>
93827
93828         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
93829         not CPPFLAGS, so that linking works correctly in IRIX.
93830
93831 1999-04-30  Paul Eggert  <eggert@twinsun.com>
93832
93833         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
93834
93835 1999-04-20  Paul Eggert  <eggert@twinsun.com>
93836
93837         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
93838         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
93839         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
93840         jm_AC_TYPE_UNSIGNED_LONG_LONG.
93841         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
93842
93843         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
93844
93845 1999-04-20  Jim Meyering  <meyering@ascend.com>
93846
93847         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
93848         AC_REPLACE xstroull if necessary.  From Paul Eggert.
93849         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
93850
93851 1999-04-18  Jim Meyering  <meyering@ascend.com>
93852
93853         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
93854         * m4/jm-macros.m4: Use it.
93855
93856 1999-04-06  Jim Meyering  <meyering@ascend.com>
93857
93858         * m4/strftime.m4: Remove test for %f.
93859
93860 1999-03-29  Jim Meyering  <meyering@ascend.com>
93861
93862         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
93863         superset of the AC_TYPE_* checks in the textutils, fileutils,
93864         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
93865         AC_TYPE_PID_T.
93866
93867 1999-03-28  Jim Meyering  <meyering@ascend.com>
93868
93869         * m4/jm-macros.m4: Define GNU_PACKAGE here.
93870         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
93871         replaced e.g., in the *.sh files of the sh-utils.
93872
93873 1999-03-20  Jim Meyering  <meyering@ascend.com>
93874
93875         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
93876         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
93877         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
93878
93879 1999-03-19  Jim Meyering  <meyering@ascend.com>
93880
93881         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
93882
93883 1999-03-12  Jim Meyering  <meyering@ascend.com>
93884
93885         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
93886
93887 1999-03-07  Jim Meyering  <meyering@ascend.com>
93888
93889         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
93890         declared.
93891
93892 1999-02-17  Jim Meyering  <meyering@ascend.com>
93893
93894         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
93895         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
93896
93897 1999-02-07  Jim Meyering  <meyering@ascend.com>
93898
93899         * m4/group-member.m4: New file -- extracted from sh-utils'
93900         configure.in.
93901
93902         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
93903         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
93904
93905 1999-02-06  Jim Meyering  <meyering@ascend.com>
93906
93907         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
93908         * m4/fnmatch.m4: Likewise.
93909         * m4/getgroups.m4: Likewise.
93910         * m4/lstat.m4: Likewise.
93911         * m4/malloc.m4: Likewise.
93912         * m4/putenv.m4: Likewise.
93913         * m4/realloc.m4: Likewise.
93914         * m4/regex.m4: Likewise.
93915         * m4/stat.m4: Likewise.
93916         * m4/strftime.m4: Likewise.
93917         Suggestion from Alain Magloire.
93918
93919         * m4/chown.m4: Use `.$ac_objext', not `.o'.
93920         * m4/fnmatch.m4: Likewise.
93921         * m4/getgroups.m4: Likewise.
93922         * m4/getline.m4: Likewise.
93923         * m4/lstat.m4: Likewise.
93924         * m4/malloc.m4: Likewise.
93925         * m4/memcmp.m4: Likewise.
93926         * m4/putenv.m4: Likewise.
93927         * m4/realloc.m4: Likewise.
93928         * m4/regex.m4: Likewise.
93929         * m4/stat.m4: Likewise.
93930         * m4/strftime.m4: Likewise.
93931         Suggestion from Alain Magloire.
93932
93933         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
93934         an argument.
93935
93936         * m4/regex.m4: Add a run-time Test for proper operation of
93937         re_compile_pattern.
93938
93939 1999-01-31  Jim Meyering  <meyering@ascend.com>
93940
93941         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
93942
93943 1999-01-30  Jim Meyering  <meyering@ascend.com>
93944
93945         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
93946
93947         * m4/jm-mktime.m4: Make this a wrapper around the official
93948         AM_FUNC_MKTIME rather than my private copy, now that the official one
93949         is up to date.
93950         * m4/mktime.m4: Remove file.
93951
93952         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
93953         * m4/uptime.m4: Likewise.
93954         * m4/uintmax_t.m4: Likewise.
93955
93956 1999-01-28  Jim Meyering  <meyering@ascend.com>
93957
93958         * m4/jm-macros.m4: Use jm_AFS.
93959         * m4/afs.m4: New file (from fileutils' configure.in).
93960
93961         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
93962         * m4/chown.m4: Likewise.
93963         * m4/d-ino.m4: Likewise.
93964         * m4/d-type.m4: Likewise.
93965         * m4/fnmatch.m4: Likewise.
93966         * m4/getgroups.m4: Likewise.
93967         * m4/gettext.m4: Likewise.
93968         * m4/jm-mktime.m4: Likewise.
93969         * m4/jm-winsz2.m4: Likewise.
93970         * m4/lcmessage.m4: Likewise.
93971         * m4/ls-mntd-fs.m4: Likewise.
93972         * m4/malloc.m4: Likewise.
93973         * m4/memcmp.m4: Likewise.
93974         * m4/putenv.m4: Likewise.
93975         * m4/realloc.m4: Likewise.
93976         * m4/st_mtim.m4: Likewise.
93977         * m4/strftime.m4: Likewise.
93978
93979 1999-01-16  Jim Meyering  <meyering@ascend.com>
93980
93981         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
93982         (ARGMATCH_DIE_DECL): Define.
93983
93984 1999-01-12  Jim Meyering  <meyering@ascend.com>
93985
93986         * m4/Makefile.am.in: Rewrite to avoid using fmt.
93987         Reported by Lars Hecking.
93988
93989 1999-01-10  Jim Meyering  <meyering@ascend.com>
93990
93991         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
93992         gross kludge.
93993         * m4/inttypes_h.m4: Likewise.
93994         * m4/lstat.m4: Likewise.
93995         * m4/malloc.m4: Likewise.
93996         * m4/readdir.m4: Likewise.
93997         * m4/realloc.m4: Likewise.
93998         * m4/st_dm_mode.m4: Likewise.
93999         * m4/stat.m4: Likewise.
94000         * m4/utimbuf.m4: Likewise.
94001         * m4/utimes.m4: Likewise.
94002
94003         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94004         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94005         comments in config.h.in are meaningful.
94006
94007         * m4/jm-macros.m4: Require autoconf-2.13 here.
94008
94009         * m4/regex.m4: By default, don't use the included regex.c on systems
94010         with glibc 2.  Suggestion from Uli Drepper.
94011
94012 1999-01-02  Jim Meyering  <meyering@ascend.com>
94013
94014         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
94015
94016 1998-12-18  Jim Meyering  <meyering@ascend.com>
94017
94018         * m4/Makefile.am.in (Makefile.am): Simplify rule.
94019         Based on a suggestion from Lars Hecking.
94020
94021 1998-11-16  Paul Eggert  <eggert@twinsun.com>
94022
94023         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
94024
94025 1998-11-16  Jim Meyering  <meyering@ascend.com>
94026
94027         * m4/lfs.m4: Double-quote the `uname...` expression.
94028
94029 1998-11-14  Jim Meyering  <meyering@ascend.com>
94030
94031         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
94032         * m4/stat.m4: Likewise.
94033
94034 1998-11-03  Jim Meyering  <meyering@ascend.com>
94035
94036         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
94037         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
94038
94039 1998-10-18  Jim Meyering  <meyering@ascend.com>
94040
94041         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
94042
94043 1998-10-17  Jim Meyering  <meyering@ascend.com>
94044
94045         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
94046         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
94047         calls for those previously hard-coded headers.  Instead, take a new
94048         parameter.
94049         (jm_CHECK_DECLARATIONS): Reflect interface change.
94050         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
94051         (jm_CHECK_DECL_LOCALTIME_R): New macro.
94052
94053         * m4/mktime.m4: Test for spring-forward gap before long-running test.
94054
94055 1998-10-14  Jim Meyering  <meyering@ascend.com>
94056
94057         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
94058         instead of "TZ=America/Vancouver".  From Paul Eggert.
94059
94060 1998-10-11  Jim Meyering  <meyering@ascend.com>
94061
94062         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
94063         This adds a test for a recently added compatibility fix for mktime.c.
94064         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
94065
94066 1998-09-27  Jim Meyering  <meyering@ascend.com>
94067
94068         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
94069
94070         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
94071         ../configure.in, including a change from Gordon Matzigkeit to allow
94072         cross-compiling for the Hurd.
94073
94074         * m4/glibc.m4: New file/macro to test for the GNU C Library
94075         versions 1 and 2.  From Gordon Matzigkeit.
94076         Indent.
94077
94078 1998-09-21  Jim Meyering  <meyering@ascend.com>
94079
94080         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
94081
94082 1998-08-18  Paul Eggert  <eggert@twinsun.com>
94083
94084         Port nanosecond-resolution times to UnixWare 2.1.2 and
94085         pedantic Solaris 2.6.
94086
94087         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
94088         AC_STRUCT_ST_MTIM.
94089         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
94090         Generate name of ns member, instead of just 1 or undef.
94091         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
94092
94093 1998-08-15  Jim Meyering  <meyering@ascend.com>
94094
94095         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
94096         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
94097         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
94098         instead of jm_TYPE_SSIZE_T.
94099
94100 1998-08-12  Jim Meyering  <meyering@ascend.com>
94101
94102         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
94103
94104 1998-08-02  Jim Meyering  <meyering@ascend.com>
94105
94106         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
94107         in acconfig.h manually.
94108
94109 1998-07-31  Paul Eggert  <eggert@twinsun.com>
94110
94111         * m4/st_mtim.m4: New file.
94112
94113 1998-07-28  Jim Meyering  <meyering@ascend.com>
94114
94115         * m4/utimes.m4: Undef stat.
94116
94117 1998-07-25  Jim Meyering  <meyering@ascend.com>
94118
94119         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
94120         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
94121
94122 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
94123
94124         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
94125         uid and gid actually remain unchanged.
94126
94127 1998-07-07  Jim Meyering  <meyering@ascend.com>
94128
94129         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
94130
94131 1998-07-04  Jim Meyering  <meyering@ascend.com>
94132
94133         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
94134         to prove that this macro can be used in packages without regex.c.
94135
94136 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
94137
94138         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
94139         is to be used.
94140
94141 1998-07-03  Jim Meyering  <meyering@ascend.com>
94142
94143         * m4/gettext.m4: Add -lintl if it's found to be necessary.
94144
94145         * m4/gettext.m4: New file -- from gettext-0.10.35.
94146         * m4/lcmessage.m4: Likewise.
94147         * m4/progtest.m4: Likewise.
94148
94149         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
94150         * m4/jm-macros.m4: Require the new macro.
94151
94152 1998-06-29  Jim Meyering  <meyering@ascend.com>
94153
94154         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
94155         for the definition of NGROUPS (used in a system header included
94156         by sys/mount.h).
94157
94158 1998-06-28  Jim Meyering  <meyering@ascend.com>
94159
94160         * m4/ls-mntd-fs.m4: New file.
94161         * m4/fstypename.m4: New file.
94162
94163         * m4/jm-macros.m4: Require the new macro.
94164         * m4/jm-glibc-io.m4: New file.
94165
94166 1998-05-19  Jim Meyering  <meyering@ascend.com>
94167
94168         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
94169         * m4/lchown.m4: New file.
94170
94171         * m4/Makefile.am.in: New file.
94172         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
94173
94174 1998-05-14  Jim Meyering  <meyering@ascend.com>
94175
94176         * m4/Makefile.am (EXTRA_DIST): Add them.
94177         * m4/jm-macros.m4: New file.
94178         * m4/utimbuf.m4: New file.
94179
94180 1998-05-12  Jim Meyering  <meyering@ascend.com>
94181
94182         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
94183
94184 1998-05-11  Jim Meyering  <meyering@ascend.com>
94185
94186         * m4/isc-posix.m4: New file.
94187
94188 1998-05-10  Jim Meyering  <meyering@ascend.com>
94189
94190         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
94191
94192 1998-05-09  Jim Meyering  <meyering@ascend.com>
94193
94194         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
94195         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
94196         with automake.
94197
94198         * m4/ssize_t.m4: New file.
94199         * m4/mktime.m4: Remove file -- the new automake has this now.
94200
94201 1998-04-26  Jim Meyering  <meyering@ascend.com>
94202
94203         * m4/assert.m4: New file.
94204         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
94205
94206 1998-04-05  Jim Meyering  <meyering@ascend.com>
94207
94208         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
94209         (jm_PREREQ): Use it here.
94210
94211 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
94212
94213         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
94214         in acconfig.h.
94215
94216 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
94217
94218         * m4/prereq.m4: New file.
94219         * m4/error.m4: New file.
94220         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
94221
94222 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
94223
94224         * m4/getline.m4: Don't set am_cv_func_working_getline before the
94225         cache-check for the same variable -- that defeated the purpose of
94226         the test; the test program was never run.  This was a problem only
94227         on systems with losing getline functions -- HP-UX 10.20 is one.
94228         Reported by Bjorn Helgaas.
94229
94230 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
94231
94232         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
94233
94234 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
94235
94236         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
94237
94238         * m4/const.m4: New file.  Use an initializer in this declaration
94239         typedef int charset[2]; const charset x;
94240         Reported by Bob Glickstein.
94241
94242 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
94243
94244         * m4/chown.m4: Fix reversed types on -1 args to chown.
94245         From Kaveh Ghazi.
94246
94247 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
94248
94249         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
94250         Add lseek and memchr.
94251
94252         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
94253         T.E.Dickey <dickey@clark.net> said that some older preprocessors
94254         have a 20-character limit on names.
94255
94256 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
94257
94258         * m4/inttypes_h.m4: New file.
94259         * m4/uintmax_t.m4: New file.
94260         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
94261
94262
94263         -----
94264
94265         Local Variables:
94266         coding: utf-8
94267         End:
94268
94269         Copyright (C) 1997-2012 Free Software Foundation, Inc.
94270
94271         Copying and distribution of this file, with or without
94272         modification, are permitted provided the copyright notice
94273         and this notice are preserved.